"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6515],{71619:function(e,t,r){r.d(t,{Z:function(){return o}}),r(2784);var n=r(40018),a=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.4.4","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":180,"w":1080,"h":1080,"nm":"Liveday_logo_symbol 2","ddd":1,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-2,-304],[-2,300]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.4,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":21,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.121569001441,0.16470600203,0.215685990277,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":131,"s":[0]},{"t":141,"s":[26]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":131,"s":[50]},{"t":141,"s":[26]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":122,"op":141,"st":123,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-2,-304],[-2,300]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.4,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":21,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.121569001441,0.16470600203,0.215685990277,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.523],"y":[0]},"t":0,"s":[26]},{"t":16,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.523],"y":[0]},"t":0,"s":[26]},{"t":16,"s":[50]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":27,"st":0,"bm":0},{"ddd":1,"ind":3,"ty":3,"nm":"Null 1","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"rx":{"a":0,"k":0,"ix":8},"ry":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.532],"y":[0]},"t":24,"s":[90]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.601],"y":[0]},"t":113,"s":[0]},{"t":122,"s":[90]}],"ix":9},"rz":{"a":1,"k":[{"i":{"x":[0.505],"y":[1]},"o":{"x":[0.808],"y":[0]},"t":56,"s":[0]},{"t":98,"s":[360]}],"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.591,0.591,0.333],"y":[0,0,0]},"t":56,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.667,0.667,0.333],"y":[0,0,0]},"t":86,"s":[63,63,100]},{"t":98,"s":[100,100,100]}],"ix":6}},"ao":0,"ip":0,"op":180,"st":0,"bm":0},{"ddd":1,"ind":7,"ty":4,"nm":"Lager 4 Outlines 2","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"rx":{"a":0,"k":0,"ix":8},"ry":{"a":0,"k":0,"ix":9},"rz":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[-10]},{"t":98,"s":[0]}],"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.791,"y":0},"t":50,"s":[0,0,0],"to":[-6.667,-2.667,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.65,"y":0},"t":85,"s":[-40,-16,0],"to":[0,0,0],"ti":[-6.667,-2.667,0]},{"t":98,"s":[0,0,0]}],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.595,6.819],[0,0],[-7.722,0],[0,0],[0,0],[0,0],[-0.871,10.196],[0,0],[0,0]],"o":[[0,0],[0.671,-7.693],[0,0],[0,0],[0,0],[-10.233,0],[0,0],[0,0],[-6.845,0]],"v":[[-120.501,-70.702],[-112.661,-160.478],[-97.828,-174.073],[121.096,-174.073],[90.634,174.073],[-6.348,174.073],[-23.752,155.12],[-5.56,-58.019],[-108.877,-58.019]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.400000029919,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[354.241,540],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":1,"ind":8,"ty":4,"nm":"Lager 3 Outlines 2","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"rx":{"a":0,"k":0,"ix":8},"ry":{"a":0,"k":0,"ix":9},"rz":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[-10]},{"t":98,"s":[0]}],"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.791,"y":0},"t":50,"s":[0,0,0],"to":[2.167,-5.333,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.65,"y":0},"t":85,"s":[13,-32,0],"to":[0,0,0],"ti":[2.167,-5.333,0]},{"t":98,"s":[0,0,0]}],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-7.352,0],[0,0],[0.589,-6.628],[0,0],[0,0],[0,0]],"o":[[0,0],[0.639,-7.324],[0,0],[6.654,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-121.099,-58.019],[-112.095,-161.129],[-97.972,-174.073],[109.223,-174.073],[120.51,-161.739],[90.692,174.073],[-25.356,174.073],[-5.05,-58.019]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.400000029919,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[596.436,423.946],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":1,"ind":9,"ty":4,"nm":"Lager 5 Outlines 2","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"rx":{"a":0,"k":0,"ix":8},"ry":{"a":0,"k":0,"ix":9},"rz":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[-10]},{"t":98,"s":[0]}],"ix":10},"or":{"a":0,"k":[0,0,0],"ix":7},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.791,"y":0},"t":50,"s":[0,0,0],"to":[2.667,7,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.65,"y":0},"t":85,"s":[16,42,0],"to":[0,0,0],"ti":[2.667,7,0]},{"t":98,"s":[0,0,0]}],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0.527,-6.015],[0,0],[7.344,0],[0,0],[-0.62,7.025],[0,0],[0,0]],"o":[[0,0],[6.037,0],[0,0],[-0.642,7.316],[0,0],[-7.053,0],[0,0],[0,0],[0,0]],"v":[[67.115,-116.054],[173.011,-116.054],[183.261,-104.865],[165.022,103.125],[150.909,116.054],[-171.199,116.054],[-183.168,102.982],[-174.081,0],[58.016,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.400000029919,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[618.957,714.073],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0}],"markers":[]}'),i=r(77311),s=r(52322),o=function(){return(0,s.jsx)(s.Fragment,{children:"web"==i.Z.OS?(0,s.jsx)("div",{className:"flex h-screen w-screen items-center justify-center",children:(0,s.jsx)("div",{className:"h-96 w-96",children:(0,s.jsx)(n.Z,{animationData:a})})}):null})}},40018:function(e,t,r){var n=r(95235),a=r(82269);r(2784);var i=r(97680),s=r.n(i),o=r(77311),l=r(52322),c=["animationData","noLoop"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}t.Z=function(e){var t=e.animationData,r=e.noLoop,i=(0,a.Z)(e,c);return(0,l.jsx)(l.Fragment,{children:"web"==o.Z.OS?(0,l.jsx)(s(),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({animationData:t,loop:!0!==r},i)):null})}},481:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(95235),a=r(82269),i=r(97680),s=r.n(i),o=r(77311),l=r(52322),c=["animationData","noLoop"];function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var u=function(e){var t=e.animationData,r=e.noLoop,i=(0,a.Z)(e,c);return(0,l.jsx)(l.Fragment,{children:"web"==o.Z.OS?(0,l.jsx)(s(),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({animationData:t,loop:!0!==r},i)):null})},x=r(60013),m=function(){return(0,l.jsx)(l.Fragment,{children:"web"==o.Z.OS?(0,l.jsx)("div",{className:"h-8 w-16",children:(0,l.jsx)(u,{animationData:x})}):null})}},53941:function(e,t,r){r.d(t,{K4:function(){return x},Ur:function(){return u}});var n=r(77311),a=r(2784),i=r(98614),s=r(68810),o=r(66131),l=r(85126),c=r(77584),d=r(52322);function u(e){var t=e.message,r=e.subtitle,n=e.shouldShow,o=e.hide,u=(0,i.$G)("common").t;return(0,a.useEffect)(function(){if(n){var e=setTimeout(function(){o()},1500);return function(){return clearTimeout(e)}}},[n,o]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6",children:(0,d.jsx)("div",{className:"flex w-full flex-col items-center gap-y-4 sm:items-end",children:(0,d.jsx)(s.u,{show:n,as:a.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,d.jsx)("div",{className:"p-4",children:(0,d.jsxs)("div",{className:"flex items-start",children:[(0,d.jsx)("div",{className:"shrink-0",children:(0,d.jsx)(l.Z,{className:"h-6 w-6 text-green-400","aria-hidden":"true"})}),(0,d.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-gray-900",children:t}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:r})]}),(0,d.jsx)("div",{className:"ml-4 flex shrink-0",children:(0,d.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",onClick:function(){o()},children:[(0,d.jsx)("span",{className:"sr-only",children:u("close")}),(0,d.jsx)(c.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})})})}function x(e){var t=e.message,r=e.subtitle,n=e.shouldShow,l=e.hide,u=(0,i.$G)("common").t;return(0,a.useEffect)(function(){if(n){var e=setTimeout(function(){l()},3e3);return function(){return clearTimeout(e)}}},[n,l]),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6",children:(0,d.jsx)("div",{className:"flex w-full flex-col items-center gap-y-4 sm:items-end",children:(0,d.jsx)(s.u,{show:n,as:a.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,d.jsx)("div",{className:"p-4",children:(0,d.jsxs)("div",{className:"flex items-start",children:[(0,d.jsx)("div",{className:"shrink-0",children:(0,d.jsx)(o.Z,{className:"h-6 w-6 text-red-400","aria-hidden":"true"})}),(0,d.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-gray-900",children:t}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:r})]}),(0,d.jsx)("div",{className:"ml-4 flex shrink-0",children:(0,d.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",onClick:function(){l()},children:[(0,d.jsx)("span",{className:"sr-only",children:u("close")}),(0,d.jsx)(c.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})})})}t.ZP=function(e){var t=e.title,r=e.subtitle,i=e.notificationType,u=e.open,x=e.setOpen;return"web"===n.Z.OS?(0,d.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex items-end px-4 py-6 sm:items-start sm:p-6",children:(0,d.jsx)("div",{className:"flex w-full flex-col items-center gap-y-4 sm:items-end",children:(0,d.jsx)(s.u,{show:u,as:a.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,d.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,d.jsx)("div",{className:"p-4",children:(0,d.jsxs)("div",{className:"flex items-start",children:[(0,d.jsxs)("div",{className:"flex-shrink-0",children:["error"===i&&(0,d.jsx)(o.Z,{className:"h-6 w-6 text-red-400","aria-hidden":"true"}),"success"===i&&(0,d.jsx)(l.Z,{className:"h-6 w-6 text-green-400","aria-hidden":"true"}),"warning"===i&&(0,d.jsx)(o.Z,{className:"h-6 w-6 text-yellow-400","aria-hidden":"true"}),"info"===i&&(0,d.jsx)(o.Z,{className:"h-6 w-6 text-blue-400","aria-hidden":"true"})]}),(0,d.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-gray-900",children:t}),r&&(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:r})]}),(0,d.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,d.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",onClick:function(){x(!1)},children:[(0,d.jsx)("span",{className:"sr-only",children:"Close"}),(0,d.jsx)(c.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})}):null}},33447:function(e,t,r){r.d(t,{wj:function(){return ep},bU:function(){return eg},gw:function(){return ey},ZP:function(){return ef}});var n,a=r(95235),i=r(23769),s=r(2784),o=r(77311),l=r(19011),c=r(12741),d=r(89258),u=r(3633),x=r(87653),m=r(17381),h=r(39934),f=r(52076),p=r(67226),g=r(68465),y=r(6117),v=r(93425),b=r(75689),k=r(58683),j=r(52322),w=v.Z.create({container:{flex:1,backgroundColor:"white"},basePadding:{padding:20},title:{fontSize:18,fontWeight:"bold",margin:10},topControls:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",margin:10},searchContainer:{flex:1,marginRight:10},searchInput:{height:40,borderColor:"gray",borderWidth:1,paddingHorizontal:10},filterButton:{padding:10,backgroundColor:"#f0f0f0",borderRadius:5},showOnlyContainer:{flexDirection:"row",alignItems:"center",flexWrap:"wrap",margin:10},showOnlyOption:{marginLeft:10,padding:5,borderWidth:1,borderColor:"#ccc",borderRadius:5},showOnlyOptionSelected:{backgroundColor:"#007AFF"},showOnlyOptionText:{color:"#000"},showOnlyOptionSelectedText:{color:"#fff"},headerRow:{flexDirection:"row",backgroundColor:"#f2f2f2"},headerCell:{width:150,padding:10,flexDirection:"row",alignItems:"center"},headerText:{fontWeight:"bold"},row:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:"#e0e0e0"},hoveredRow:{backgroundColor:"#f0f0f0"},selectedRow:{backgroundColor:"#e6f7ff"},thickRow:{paddingVertical:15},thinRow:{paddingVertical:5},cell:{width:150,padding:10},cellText:{fontSize:14},percentageText:{fontSize:12,textAlign:"right",marginBottom:2},percentageBarBackground:{height:6,backgroundColor:"#e0e0e0",borderRadius:3},percentageBar:{height:6,borderRadius:3},percentageBarRed:{backgroundColor:"red"},percentageBarBrand:{backgroundColor:"#007AFF"},percentageBarYellow:{backgroundColor:"yellow"},percentageBarGreen:{backgroundColor:"green"},footer:{padding:10,borderTopWidth:1,borderTopColor:"#e0e0e0"},modalContainer:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.5)"},modalContent:{backgroundColor:"white",padding:20,borderRadius:10,width:"80%"},modalTitle:{fontSize:18,fontWeight:"bold",marginBottom:10},filterSectionTitle:{fontSize:16,fontWeight:"bold",marginTop:10,marginBottom:5},filterOption:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,borderBottomWidth:1,borderBottomColor:"#e0e0e0"},datePickerButton:{height:40,borderColor:"gray",borderWidth:1,marginBottom:10,paddingHorizontal:10,justifyContent:"center"},applyDateFilter:{backgroundColor:"#007AFF",padding:10,borderRadius:5,alignItems:"center"},applyDateFilterText:{color:"white",fontWeight:"bold"},closeButton:{marginTop:20,padding:10,backgroundColor:"#f0f0f0",borderRadius:5,alignItems:"center"},dropdownOverlay:{flex:1,backgroundColor:"rgba(0, 0, 0, 0.5)",justifyContent:"center",alignItems:"center"},dropdownContent:{backgroundColor:"white",borderRadius:5,padding:10,width:"80%"},dropdownItem:{padding:10,borderBottomWidth:1,borderBottomColor:"#e0e0e0"},emptyStateContainer:{flex:1,justifyContent:"center",alignItems:"center",padding:20},emptyStateTitle:{fontSize:18,fontWeight:"bold",marginVertical:10},emptyStateDescription:{textAlign:"center",marginBottom:20},emptyStateButton:{backgroundColor:"#007AFF",padding:10,borderRadius:5},emptyStateButtonText:{color:"white",fontWeight:"bold"},checkbox:{width:20,height:20,borderWidth:1,borderColor:"#007AFF",borderRadius:3,justifyContent:"center",alignItems:"center"},checkboxInner:{width:12,height:12,backgroundColor:"#007AFF",borderRadius:2},radio:{width:20,height:20,borderWidth:1,borderColor:"#007AFF",borderRadius:10,justifyContent:"center",alignItems:"center"},radioInner:{width:12,height:12,backgroundColor:"#007AFF",borderRadius:6},pagination:{flexDirection:"row",justifyContent:"center",alignItems:"center",padding:10},paginationButton:{padding:10,backgroundColor:"#f0f0f0",borderRadius:5,marginHorizontal:5},paginationText:{fontSize:16,fontWeight:"bold",marginHorizontal:10}}),N=function(e){var t,r,n=e.columns,a=e.data,i=e.data_length,o=e.skipBasePadding,l=e.thickRows,v=void 0!==l&&l,N=e.thinRows,S=void 0!==N&&N,C=e.onRowClick,Z=e.rowKeyField,O=e.sortable,P=void 0===O||O,B=e.initialSortColumn,E=e.initialSortDirection,F=e.title,T=e.searchPlaceholder,D=e.onSearch,R=e.filterOptions,A=e.onFilter,L=e.customFilters,V=e.topActions,_=e.bottomActions,z=e.showEntries,I=e.showOnlyOptions,M=e.onShowOnlyChange,G=e.initialShowOnly,W=e.onDateFilter,H=e.emptyState,K=e.selectedRows,U=e.onSelectRow,X=e.onSelectAllRows,J=e.selectionMode,$=void 0===J?"multiple":J,q=e.selectedRow,Y=e.onSelectSingleRow,Q=e.pagination,ee=(0,s.useState)(B),et=ee[0],er=ee[1],en=(0,s.useState)(void 0===E?"asc":E),ea=en[0],ei=en[1],es=(0,s.useState)(null),eo=es[0],el=es[1],ec=(0,s.useState)(null),ed=ec[0],eu=ec[1],ex=(0,s.useState)(""),em=ex[0],eh=ex[1],ef=(0,s.useState)(!1),ep=ef[0],eg=ef[1],ey=(0,s.useState)([]),ev=ey[0],eb=ey[1],ek=(0,s.useState)(void 0===G?"all":G),ej=ek[0],ew=ek[1],eN=(0,s.useState)(null),eS=eN[0],eC=eN[1],eZ=(0,s.useState)(null),eO=eZ[0],eP=eZ[1],eB=(0,s.useState)(!1),eE=eB[0],eF=eB[1],eT=(0,s.useState)(!1),eD=eT[0],eR=eT[1],eA=(0,s.useRef)(null),eL=(0,s.useState)(0),eV=eL[0],e_=eL[1],ez=(0,s.useState)(new d.Z.Value(100))[0],eI=(0,s.useState)(new Set((void 0===K?[]:K).map(function(e){return String(e[Z])}))),eM=eI[0],eG=eI[1],eW=function(e){if("multiple"===$){var t=String(e[Z]),r=new Set(eM);r.has(t)?r.delete(t):r.add(t),eG(r),U&&U(e,!eM.has(t))}else"single"===$&&Y&&Y(e)},eH=function(e){P&&!1!==e.sortable&&(et===e.key?ei("asc"===ea?"desc":"asc"):(er(e.key),ei("asc")))},eK=function(e){var t=ev.includes(e)?ev.filter(function(t){return t!==e}):[].concat((0,c.Z)(ev),[e]);eb(t),A&&A(t)},eU=function(e){ew(e),M&&M(e)},eX=function(e){eu(ed===e?null:e)};(0,s.useEffect)(function(){!function(){if(eA.current){var e=u.Z.get("window").width,t=150*n.length;d.Z.timing(ez,{toValue:70+eV/(t-e)*30,duration:0,useNativeDriver:!1}).start()}}()},[n,eV,ez]);var eJ=s.useMemo(function(){return(0,c.Z)(a).sort(function(e,t){if(et){var r=n.find(function(e){return e.key===et});if(r&&r.sortFunction)return r.sortFunction(e[et],t[et],ea);if(e[et]<t[et])return"asc"===ea?-1:1;if(e[et]>t[et])return"asc"===ea?1:-1}return 0})},[a,et,ea,n]);return 0===i&&H?(0,j.jsxs)(x.Z,{style:w.emptyStateContainer,children:[H.icon,(0,j.jsx)(m.Z,{style:w.emptyStateTitle,children:H.title}),(0,j.jsx)(m.Z,{style:w.emptyStateDescription,children:H.description}),H.action&&(0,j.jsx)(h.Z,{style:w.emptyStateButton,onPress:H.action,children:(0,j.jsx)(m.Z,{style:w.emptyStateButtonText,children:H.actionLabel})})]}):(0,j.jsxs)(x.Z,{style:[w.container,void 0!==o&&o?{}:w.basePadding],children:[F&&(0,j.jsx)(m.Z,{style:w.title,children:F}),(0,j.jsxs)(x.Z,{style:w.topControls,children:[(0,j.jsx)(x.Z,{style:w.searchContainer,children:(0,j.jsx)(f.Z,{style:w.searchInput,placeholder:void 0===T?"Search...":T,value:em,onChangeText:function(e){eh(e),D&&D(e)}})}),(0,j.jsx)(h.Z,{style:w.filterButton,onPress:function(){return eg(!0)},children:(0,j.jsx)(m.Z,{children:"Filter"})}),V]}),I&&(0,j.jsxs)(x.Z,{style:w.showOnlyContainer,children:[(0,j.jsx)(m.Z,{children:"Show only:"}),I.map(function(e){return(0,j.jsx)(h.Z,{style:[w.showOnlyOption,ej===e.value&&w.showOnlyOptionSelected],onPress:function(){return eU(e.value)},children:(0,j.jsx)(m.Z,{style:ej===e.value?w.showOnlyOptionSelectedText:w.showOnlyOptionText,children:e.label})},e.id)})]}),(0,j.jsx)(p.Z,{ref:eA,horizontal:!0,onScroll:function(e){e_(e.nativeEvent.contentOffset.x)},scrollEventThrottle:16,children:(0,j.jsxs)(d.Z.View,{style:{opacity:ez},children:[(0,j.jsxs)(x.Z,{style:w.headerRow,children:[("multiple"===$||"single"===$)&&(0,j.jsx)(h.Z,{style:w.headerCell,onPress:"multiple"===$?function(){var e=eM.size===eJ.length;eG(e?new Set:new Set(eJ.map(function(e){return String(e[Z])}))),X&&X(!e)}:void 0,children:"multiple"===$&&(0,j.jsx)(x.Z,{style:w.checkbox,children:eM.size===eJ.length&&(0,j.jsx)(x.Z,{style:w.checkboxInner})})}),n.map(function(e){return(0,j.jsxs)(h.Z,{style:w.headerCell,onPress:function(){return eH(e)},children:[(0,j.jsx)(m.Z,{style:w.headerText,children:e.header}),P&&!1!==e.sortable&&et===e.key&&(0,j.jsx)(k.Z,{name:"asc"===ea?"arrow-up":"arrow-down",size:16,color:"black"})]},String(e.key))})]}),(0,j.jsx)(g.Z,{data:eJ,keyExtractor:function(e){return String(e[Z])},renderItem:function(e){var t=e.item,r=String(t[Z]),a="multiple"===$?eM.has(r):q===t;return(0,j.jsxs)(h.Z,{style:[w.row,eo===r&&w.hoveredRow,a&&w.selectedRow,v&&w.thickRow,S&&w.thinRow],onPress:function(){return C&&C(t)},onPressIn:function(){return el(r)},onPressOut:function(){return el(null)},children:[("multiple"===$||"single"===$)&&(0,j.jsx)(h.Z,{style:w.cell,onPress:function(){return eW(t)},children:"multiple"===$?(0,j.jsx)(x.Z,{style:w.checkbox,children:a&&(0,j.jsx)(x.Z,{style:w.checkboxInner})}):(0,j.jsx)(x.Z,{style:w.radio,children:a&&(0,j.jsx)(x.Z,{style:w.radioInner})})}),n.map(function(e){var n,a;return(0,j.jsx)(x.Z,{style:w.cell,children:e.icon&&e.items?(0,j.jsx)(h.Z,{onPress:function(){return eX(r)},children:e.icon}):e.render?e.render(t):"percentage"===e.type?(a=t[e.key],(0,j.jsxs)(x.Z,{children:[(0,j.jsx)(m.Z,{style:w.percentageText,children:"".concat(a," %")}),(0,j.jsx)(x.Z,{style:w.percentageBarBackground,children:(0,j.jsx)(x.Z,{style:[w.percentageBar,a<25?w.percentageBarRed:a<50?w.percentageBarBrand:a<75?w.percentageBarYellow:w.percentageBarGreen,{width:"".concat(a,"%")}]})})]})):(0,j.jsx)(m.Z,{style:w.cellText,children:String(null!==(n=t[e.key])&&void 0!==n?n:"")})},"".concat(r,"-").concat(String(e.key)))})]})}})]})}),(void 0===z||z)&&(0,j.jsx)(x.Z,{style:w.footer,children:(0,j.jsx)(m.Z,{children:"Showing ".concat(eJ.length," ").concat(null==F?void 0:F.toLowerCase())})}),_,Q&&(0,j.jsxs)(x.Z,{style:w.pagination,children:[(0,j.jsx)(h.Z,{style:[w.paginationButton,{opacity:Q.page>0?1:.5}],onPress:Q.onPrevious,disabled:0===Q.page,children:(0,j.jsx)(m.Z,{children:"Previous"})}),(0,j.jsx)(m.Z,{style:w.paginationText,children:Q.page+1}),(0,j.jsx)(h.Z,{style:[w.paginationButton,{opacity:Q.hasNextPage?1:.5}],onPress:Q.onNext,disabled:!Q.hasNextPage,children:(0,j.jsx)(m.Z,{children:"Next"})})]}),(0,j.jsx)(y.Z,{visible:ep,animationType:"slide",transparent:!0,onRequestClose:function(){return eg(!1)},children:(0,j.jsx)(x.Z,{style:w.modalContainer,children:(0,j.jsxs)(x.Z,{style:w.modalContent,children:[(0,j.jsx)(m.Z,{style:w.modalTitle,children:"Filters"}),R&&(0,j.jsxs)(x.Z,{children:[(0,j.jsx)(m.Z,{style:w.filterSectionTitle,children:"Category"}),R.map(function(e){return(0,j.jsxs)(h.Z,{style:w.filterOption,onPress:function(){return eK(e.value)},children:[(0,j.jsx)(m.Z,{children:e.label}),ev.includes(e.value)&&(0,j.jsx)(k.Z,{name:"checkmark",size:24,color:"green"})]},e.value)})]}),W&&(0,j.jsxs)(x.Z,{children:[(0,j.jsx)(m.Z,{style:w.filterSectionTitle,children:"Date"}),(0,j.jsx)(h.Z,{style:w.datePickerButton,onPress:function(){return eF(!0)},children:(0,j.jsx)(m.Z,{children:eS?eS.toISOString().split("T")[0]:"Select Start Date"})}),eE&&(0,j.jsx)(b.ZP,{value:eS||new Date,mode:"date",display:"default",onChange:function(e,t){eF(!1),t&&eC(t)}}),(0,j.jsx)(h.Z,{style:w.datePickerButton,onPress:function(){return eR(!0)},children:(0,j.jsx)(m.Z,{children:eO?eO.toISOString().split("T")[0]:"Select End Date"})}),eD&&(0,j.jsx)(b.ZP,{value:eO||new Date,mode:"date",display:"default",onChange:function(e,t){eR(!1),t&&eP(t)}}),(0,j.jsx)(h.Z,{style:w.applyDateFilter,onPress:function(){W&&W(eS,eO),eg(!1)},children:(0,j.jsx)(m.Z,{style:w.applyDateFilterText,children:"Apply Date Filter"})})]}),L,(0,j.jsx)(h.Z,{style:w.closeButton,onPress:function(){return eg(!1)},children:(0,j.jsx)(m.Z,{children:"Close"})})]})})}),ed&&(0,j.jsx)(y.Z,{visible:!!ed,transparent:!0,animationType:"fade",onRequestClose:function(){return eu(null)},children:(0,j.jsx)(h.Z,{style:w.dropdownOverlay,onPress:function(){return eu(null)},children:(0,j.jsx)(x.Z,{style:w.dropdownContent,children:null===(t=n.find(function(e){return e.items}))||void 0===t?void 0:null===(r=t.items)||void 0===r?void 0:r.call(t,a.find(function(e){return String(e[Z])===ed})).map(function(e,t){return(0,j.jsx)(h.Z,{style:w.dropdownItem,onPress:function(){e.action&&e.action(),eu(null)},children:(0,j.jsx)(m.Z,{children:e.label})},t)})})})})]})};function S(e){return(0,l.Z)(e),(0,j.jsx)(x.Z,{})}function C(e){return(0,l.Z)(e),(0,j.jsx)(x.Z,{})}function Z(e){return(0,l.Z)(e),(0,j.jsx)(x.Z,{})}var O=r(20406),P=r(28526),B=r.n(P),E=r(68810),F=r(73248),T=r(19798),D=r(46602),R=r(33769),A=r(24137),L=r(154),V=r(77584),_=r(56198),z=r(17335),I=r(85481),M=r(3061),G=r(39097),W=r.n(G),H=r(75031),K=r(56730),U=r(464),X=r(98614),J=r(34309),$=r(44553),q=r(53941),Y=r(481);function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function et(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return er(e,t)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw i}}}}function er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function en(e){var t,r,n,a=e.columns,i=e.data,o=e.data_length,l=e.skipBasePadding,d=void 0!==l&&l,u=e.thickRows,x=void 0!==u&&u,m=e.thinRows,h=void 0!==m&&m,f=e.onRowClick,p=e.rowKeyField,g=e.sortable,y=void 0===g||g,v=e.initialSortColumn,b=e.initialSortDirection,k=e.title,w=e.searchPlaceholder,N=e.onSearch,S=e.filterOptions,C=e.onFilter,Z=e.customFilters,O=e.topActions,P=e.bottomActions,B=e.showEntries,E=e.showOnlyOptions,F=e.onShowOnlyChange,R=e.initialShowOnly,A=e.onDateFilter,L=e.emptyState,V=e.selectedRows,_=e.onSelectRow,z=e.onSelectAllRows,M=e.selectionMode,G=void 0===M?"multiple":M,H=e.selectedRow,X=e.onSelectSingleRow,J=e.pagination,$=(0,s.useState)(v),q=$[0],Y=$[1],Q=(0,s.useState)(void 0===b?"asc":b),ee=Q[0],er=Q[1],en=(0,s.useState)(null),ea=en[0],ei=en[1],es=(0,s.useState)(null),eo=es[0],el=es[1],ec=(0,s.useState)(null),ed=ec[0],eu=ec[1],ex=(0,s.useState)(""),em=ex[0],eh=ex[1],ef=(0,s.useState)(!1),ep=ef[0],eg=ef[1],ey=(0,s.useState)([]),ev=ey[0],eb=ey[1],ek=(0,s.useState)(void 0===R?"all":R),ej=ek[0],ew=ek[1],eN=(0,s.useRef)(null),eS=(0,s.useState)(0),eC=eS[0],eZ=eS[1],eO=(0,s.useState)(100),eP=eO[0],eB=eO[1],eE=(0,s.useRef)(null),eF=(0,s.useRef)(null),eT=(0,s.useState)(null),eD=eT[0],eR=eT[1],eA=(0,s.useState)(null),eL=eA[0],eV=eA[1],e_=(0,s.useState)(new Set((void 0===V?[]:V).map(function(e){return String(e[p])}))),ez=e_[0],eI=e_[1],eM=function(e){var t=String(e[p]),r=new Set(ez);r.has(t)?r.delete(t):r.add(t),eI(r),_&&_(e,!ez.has(t))},eG=function(e){X&&X(e)};(0,U.Z)(eF,function(){ep&&eg(!1)}),(0,s.useEffect)(function(){var e=eN.current;if(e){var t=function(){eZ(e.scrollLeft)};return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}},[a]),(0,s.useEffect)(function(){var e=eN.current;if(e){var t=new ResizeObserver(function(e){var t,r=et(e);try{for(r.s();!(t=r.n()).done;){var n=t.value.target,a=n.scrollWidth,i=n.clientWidth;eB(70+eC/(a-i)*30)}}catch(e){r.e(e)}finally{r.f()}});return t.observe(e),function(){t.unobserve(e)}}},[a,eC]);var eW=function(e){y&&!1!==e.sortable&&(q===e.key?er("asc"===ee?"desc":"asc"):(Y(e.key),er("asc")))},eH=function(e){var t=ev.includes(e)?ev.filter(function(t){return t!==e}):[].concat((0,c.Z)(ev),[e]);eb(t),C&&C(t)},eK=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"right";if(e.stopPropagation(),eo===t)el(null),eu(null);else{var n,a=e.target.getBoundingClientRect(),i=null===(n=eN.current)||void 0===n?void 0:n.getBoundingClientRect();if(i){var s=a.left-i.left,o=i.right-a.right,l={top:a.bottom+window.scrollY,left:"right"===r?a.right+window.scrollX:"auto",right:"left"===r?window.innerWidth-a.right-window.scrollX:"auto"};"right"===r&&o<176&&s>=176?(l.left="auto",l.right=window.innerWidth-a.right-window.scrollX):"left"===r&&s<176&&o>=176&&(l.right="auto",l.left=a.left+window.scrollX),el(t),eu(l)}}};(0,U.Z)(eE,function(){el(null),eu(null)});var eU=function(e){ew(e),F&&F(e)},eX=s.useMemo(function(){return(0,c.Z)(i).sort(function(e,t){if(q){var r=a.find(function(e){return e.key===q});if(r&&r.sortFunction)return r.sortFunction(e[q],t[q],ee);if(e[q]<t[q])return"asc"===ee?-1:1;if(e[q]>t[q])return"asc"===ee?1:-1}return 0})},[i,q,ee,a]);return(0,j.jsx)("div",{className:"w-full ".concat(d?"":"px-6 "),children:o>0||!L?(0,j.jsx)("section",{className:"bg-gray-50 dark:bg-gray-900 ".concat(d?"":"py-3 sm:py-5"),children:(0,j.jsxs)("div",{className:"w-full",children:[(0,j.jsxs)("div",{className:"relative bg-white shadow-md dark:bg-gray-800 sm:rounded-lg",children:[(0,j.jsx)("div",{className:"mx-4 border-b dark:border-gray-700",children:k&&(0,j.jsxs)("div",{className:"flex items-center justify-between gap-x-4 pt-3",children:[(0,j.jsx)("div",{className:"flex flex-1 items-center gap-x-3",children:(0,j.jsx)("h5",{className:"mb-2 text-2xl font-semibold dark:text-white",children:k})}),(0,j.jsx)("div",{className:"mb-4 flex w-full shrink-0 flex-col items-stretch justify-end gap-x-4 md:w-auto md:flex-row md:items-center",children:O})]})}),(0,j.jsxs)("div",{className:"mx-4 flex flex-col-reverse items-end justify-between py-3 md:flex-row md:gap-x-4",children:[(0,j.jsxs)("div",{className:"flex w-full flex-col gap-y-3 md:flex-row md:items-center md:gap-y-0 lg:w-2/3",children:[N&&(0,j.jsxs)("form",{className:"w-full flex-1 md:mr-4 md:max-w-sm",children:[(0,j.jsx)("label",{htmlFor:"default-search",className:"sr-only text-sm font-medium text-gray-900 dark:text-white",children:"Search"}),(0,j.jsxs)("div",{className:"relative",children:[(0,j.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,j.jsx)("svg",{"aria-hidden":"true",className:"h-4 w-4 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,j.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,j.jsx)("input",{type:"search",id:"default-search",className:"focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2 pl-10 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder:text-gray-400",placeholder:void 0===w?"Search...":w,required:!0,value:em,onChange:function(e){var t=e.target.value;eh(t),N&&N(t)}})]})]}),(S||A)&&(0,j.jsxs)("div",{children:[(0,j.jsxs)("button",{id:"filterDropdownButton","data-dropdown-toggle":"filterDropdown",type:"button",className:"hover:text-primary-700 flex w-full items-center justify-center rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm font-medium text-gray-900 hover:bg-gray-100 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700 md:w-auto",onClick:function(){return eg(function(e){return!e})},children:[(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"mr-2 h-4 w-4 text-gray-400",viewBox:"0 0 20 20",fill:"currentColor",children:(0,j.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z"})}),"Filter",(0,j.jsx)("svg",{className:"-mr-1 ml-1.5 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,j.jsx)("path",{clipRule:"evenodd",fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"})})]}),(0,j.jsxs)("div",{id:"filterDropdown",className:(0,K.A)(ep?"absolute":"hidden","z-10 mt-2 w-56 rounded-lg bg-white shadow dark:bg-gray-700"),ref:eF,children:[A&&(0,j.jsxs)("div",{className:"p-3",children:[(0,j.jsx)("h6",{className:"mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Date"}),(0,j.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,j.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,j.jsx)("label",{htmlFor:"start-date",className:"text-xs font-medium text-gray-900 dark:text-white",children:"From"}),(0,j.jsx)("input",{type:"date",id:"start-date",className:"focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder:text-gray-400",value:(null==eD?void 0:eD.toISOString().split("T")[0])||"",onChange:function(e){return eR(new Date(e.target.value))}})]}),(0,j.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,j.jsx)("label",{htmlFor:"end-date",className:"text-xs font-medium text-gray-900 dark:text-white",children:"To"}),(0,j.jsx)("input",{type:"date",id:"end-date",className:"focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder:text-gray-400",value:(null==eL?void 0:eL.toISOString().split("T")[0])||"",onChange:function(e){return eV(new Date(e.target.value))}})]})]}),(0,j.jsx)("button",{className:"mt-2 w-full rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300",onClick:function(){A&&A(eD,eL)},children:"Apply Date Filter"})]}),S&&(0,j.jsxs)("div",{className:"p-3",children:[(0,j.jsx)("h6",{className:"mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Category"}),(0,j.jsx)("ul",{className:"space-y-2 text-sm","aria-labelledby":"filterDropdownButton",children:S.map(function(e){return(0,j.jsx)("li",{children:(0,j.jsxs)("label",{className:"flex w-full items-center rounded px-2 py-1 hover:bg-gray-100 dark:hover:bg-gray-600",children:[(0,j.jsx)("input",{type:"checkbox",value:e.value,className:"h-4 w-4 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-500 dark:bg-gray-600 dark:ring-offset-gray-700 dark:focus:ring-blue-600",onChange:function(){return eH(e.value)},checked:ev.includes(e.value)}),(0,j.jsx)("span",{className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})},e.value)})})]})]})]}),Z,(ev.length>0||null!==eD||null!==eL)&&(0,j.jsx)("button",{id:"clearFilterButton",type:"button",className:"hover:text-primary-700 ml-2 flex w-full items-center justify-center rounded-lg bg-white px-4 py-2 text-sm font-medium text-gray-900 hover:bg-gray-100 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700 md:w-auto",onClick:function(){eb([]),eR(null),eV(null),C&&C([]),A&&A(null,null)},children:"Rensa filter"})]}),(0,j.jsx)("div",{className:"mb-3 flex w-full shrink-0 flex-col items-stretch justify-end gap-x-4 md:mb-0 md:w-auto md:flex-row md:items-center",children:P})]}),E&&(0,j.jsxs)("div",{className:"mx-4 flex flex-wrap pb-3",children:[(0,j.jsx)("div",{className:"mr-4 mt-3 hidden items-center text-sm font-medium text-gray-900 dark:text-white md:flex",children:"Visa endast:"}),(0,j.jsx)("div",{className:"flex flex-wrap",children:E.map(function(e){return(0,j.jsxs)("div",{className:"mr-4 mt-3 flex items-center",children:[(0,j.jsx)("input",{id:e.id,type:"radio",name:"show-only",className:(0,K.A)(ej===e.value?"bg-brand":"hover:bg-brand dark:bg-gray-700","text-brand h-4 w-4 border-gray-300 focus:ring-0 focus:ring-offset-0 dark:border-gray-600"),onChange:function(){return eU(e.value)},value:e.value,checked:ej===e.value}),(0,j.jsx)("label",{htmlFor:e.id,className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]},e.id)})})]}),(0,j.jsx)("div",{ref:eN,className:"overflow-x-scroll",style:{WebkitMaskImage:"linear-gradient(90deg, #000 ".concat(eP,"%, transparent)")},children:(0,j.jsxs)("table",{className:"w-full text-left text-sm text-gray-500 dark:text-gray-400",children:[(0,j.jsx)("thead",{className:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",children:(0,j.jsxs)("tr",{children:["multiple"===G&&_&&(0,j.jsx)("th",{scope:"col",className:"p-4",children:(0,j.jsxs)("div",{className:"flex items-center",children:[(0,j.jsx)("input",{id:"checkbox-all-search",type:"checkbox",className:"text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 h-4 w-4 rounded border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800",checked:ez.size===eX.length,onChange:function(){var e=ez.size===eX.length;eI(e?new Set:new Set(eX.map(function(e){return String(e[p])}))),z&&z(!e)}}),(0,j.jsx)("label",{htmlFor:"checkbox-all-search",className:"sr-only",children:"checkbox"})]})}),"single"===G&&X&&(0,j.jsx)("th",{scope:"col",className:"p-4",children:(0,j.jsx)("span",{className:"sr-only",children:"Select"})}),a.map(function(e){return(0,j.jsxs)("th",{scope:"col",className:"px-4 py-3 ".concat(y&&!1!==e.sortable?"cursor-pointer":""),onClick:function(){return eW(e)},children:[e.header,y&&!1!==e.sortable&&q===e.key&&("asc"===ee?(0,j.jsx)(T.Z,{className:"ml-1 inline-block h-4 w-4 text-gray-500"}):(0,j.jsx)(D.Z,{className:"ml-1 inline-block h-4 w-4 text-gray-500"}))]},String(e.key))})]})}),(0,j.jsx)("tbody",{children:eX.map(function(e){var t=String(e[p]),r=ea===t,n="multiple"===G?ez.has(t):H===e;return(0,j.jsxs)("tr",{id:"ROW-".concat(t),onClick:function(){return f&&f(e)},onMouseEnter:function(){return ei(t)},onMouseLeave:function(){return ei(null)},className:"border-b transition-colors duration-200 dark:border-gray-600 ".concat(r?"bg-gray-100 dark:bg-gray-700":n?"bg-gray-50 dark:bg-gray-600":"hover:bg-gray-50 dark:hover:bg-gray-600"),children:["multiple"===G&&_&&(0,j.jsx)("td",{className:"w-4 px-4 ".concat(x?"py-3":h?"py-1":"py-2"),children:(0,j.jsxs)("div",{className:"flex items-center",children:[(0,j.jsx)("input",{id:"checkbox-table-search-".concat(t),type:"checkbox",checked:n,onChange:function(){return eM(e)},onClick:function(e){return e.stopPropagation()},className:"text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 h-4 w-4 rounded border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800"}),(0,j.jsx)("label",{htmlFor:"checkbox-table-search-".concat(t),className:"sr-only",children:"checkbox"})]})}),"single"===G&&X&&(0,j.jsx)("td",{className:"w-4 px-4 ".concat(x?"py-3":h?"py-1":"py-2"),children:(0,j.jsxs)("div",{className:"flex items-center",children:[(0,j.jsx)("input",{id:"radio-table-search-".concat(t),type:"radio",name:"table-radio",checked:n,onChange:function(){return eG(e)},onClick:function(e){return e.stopPropagation()},className:"text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600 h-4 w-4 border-gray-300 focus:ring-2 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800"}),(0,j.jsx)("label",{htmlFor:"radio-table-search-".concat(t),className:"sr-only",children:"radio"})]})}),a.map(function(n){var a,i,s;return(0,j.jsx)("td",{className:"whitespace-nowrap px-4 ".concat(x?"py-3":h?"py-1":"py-2"," font-medium text-gray-900 dark:text-white"),children:n.icon&&n.items?(0,j.jsx)("div",{className:"relative",children:(0,j.jsx)("button",{onClick:function(e){return eK(e,t)},className:"inline-flex items-center rounded-lg p-1 text-center text-sm font-medium ".concat(r?"text-gray-800 dark:text-gray-100":"text-gray-500 dark:text-gray-400"," hover:bg-gray-200 hover:text-gray-800 focus:outline-none dark:hover:bg-gray-700 dark:hover:text-gray-100"),children:n.icon})}):n.render?n.render(e):"percentage"===n.type?(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"mb-1 flex justify-end",children:(0,j.jsx)("span",{className:"text-xs font-medium text-gray-500 dark:text-gray-400",children:"".concat(null!==(a=e[n.key])&&void 0!==a?a:0," %")})}),(0,j.jsx)("div",{className:"h-1.5 rounded-full bg-gray-200 dark:bg-gray-700",children:(0,j.jsx)("div",{className:"h-1.5 rounded-full ".concat(e[n.key]<25?"bg-red-500":e[n.key]<50?"bg-brand":e[n.key]<75?"bg-yellow-500":"bg-green-500"),style:{width:"".concat(null!==(i=e[n.key])&&void 0!==i?i:0,"%")}})})]}):String(null!==(s=e[n.key])&&void 0!==s?s:"")},"".concat(t,"-").concat(String(n.key)))})]},t)})})]})}),(0,j.jsxs)("nav",{className:"flex flex-col items-start justify-between gap-y-3 p-4 md:flex-row md:items-center md:gap-y-0","aria-label":"Table navigation",children:[(void 0===B||B)&&(0,j.jsxs)("span",{className:"text-sm font-normal text-gray-500 dark:text-gray-400",children:["Visar",(0,j.jsx)("span",{className:"mx-1 font-semibold text-gray-900 dark:text-white",children:eX.length}),null==k?void 0:k.toLowerCase()]}),function(){if(!J)return null;var e=J.page,t=J.hasNextPage,r=J.onPrevious,n=J.onNext;return(0,j.jsxs)("ul",{className:"inline-flex items-center space-x-1",children:[e>0&&(0,j.jsx)("li",{children:(0,j.jsxs)("button",{onClick:r,className:"rounded-md border border-gray-300 bg-white px-3 py-1 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",children:[(0,j.jsx)("span",{className:"sr-only",children:"Previous"}),(0,j.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,j.jsx)("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})})]})}),(0,j.jsx)("li",{children:(0,j.jsx)("button",{className:"rounded-md border px-3 py-1 text-sm ".concat("bg-primary-500 border-primary-500 text-white"),children:e+1})}),t&&(0,j.jsx)("li",{children:(0,j.jsxs)("button",{onClick:n,className:"rounded-md border border-gray-300 bg-white px-3 py-1 text-gray-500 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",children:[(0,j.jsx)("span",{className:"sr-only",children:"Next"}),(0,j.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,j.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})]})})]})}()]})]}),ed&&(0,j.jsx)("div",{style:{position:"absolute",top:"".concat(ed.top,"px"),left:"auto"!==ed.left?"".concat(ed.left,"px"):"auto",right:"auto"!==ed.right?"".concat(ed.right,"px"):"auto"},className:"z-20 w-44 divide-y divide-gray-100 rounded bg-white shadow dark:divide-gray-600 dark:bg-gray-700",ref:eE,children:eo&&(0,j.jsx)("ul",{className:"py-1 text-sm text-gray-700 dark:text-gray-200",children:null===(t=a.find(function(e){return e.items}))||void 0===t?void 0:null===(r=t.items)||void 0===r?void 0:r.call(t,i.find(function(e){return String(e[p])===eo})).map(function(e,t){return(0,j.jsx)("li",{children:e.link?(0,j.jsx)(W(),{href:e.link,className:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:e.label}):(0,j.jsx)("button",{onClick:function(t){t.stopPropagation(),e.action&&e.action(),el(null),eu(null)},className:"block w-full px-4 py-2 text-left hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:e.label})},t)})})})]})}):(0,j.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,j.jsxs)("div",{className:"text-center",children:[(0,j.jsx)("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,j.jsx)("path",{vectorEffect:"non-scaling-stroke",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})}),(0,j.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:null==L?void 0:L.title}),(0,j.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:null==L?void 0:L.description}),(0,j.jsxs)("div",{className:"mt-6",children:[L.action&&(0,j.jsxs)("button",{onClick:L.action,className:"inline-flex items-center rounded-md border border-transparent bg-gray-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",children:[(0,j.jsx)(I.Z,{className:"-ml-1 mr-2 h-5 w-5","aria-hidden":"true"}),null==L?void 0:L.actionLabel]}),L.actionLink&&(0,j.jsxs)(W(),{href:null!==(n=null==L?void 0:L.actionLink)&&void 0!==n?n:"",className:"inline-flex items-center rounded-md border border-transparent bg-gray-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",children:[(0,j.jsx)(I.Z,{className:"-ml-1 mr-2 h-5 w-5","aria-hidden":"true"}),null==L?void 0:L.actionLabel]})]})]})})})}function ea(e){var t,r,n,a=e.importOptions,i=e.onSave,o=(0,X.$G)("common").t,l=(0,s.useState)(!1),c=l[0],d=l[1],u=(0,s.useState)([]),x=u[0],m=u[1],h=(0,s.useState)([]),f=h[0],p=h[1],g=(0,s.useState)(!1),y=g[0],v=g[1],b=(0,s.useState)(0),k=b[0],w=b[1],N=(0,s.useState)([]),S=N[0],C=N[1],Z=(0,s.useState)([]),P=Z[0],E=Z[1],F=(0,s.useState)(!1),T=F[0],D=F[1],A=(0,s.useState)(!1),L=A[0],V=A[1],_=(0,s.useRef)(null),z=(0,s.useState)(0),I=z[0],M=z[1],G=(0,s.useState)(100),W=G[0],K=G[1];(0,s.useEffect)(function(){var e=_.current;if(e){var t=function(){M(e.scrollLeft)};return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}},[f,y]),(0,s.useEffect)(function(){var e=_.current;if(e){var t=new ResizeObserver(function(e){var t,r=et(e);try{for(r.s();!(t=r.n()).done;){var n=t.value.target,a=n.scrollWidth,i=n.clientWidth;K(70+I/(a-i)*30)}}catch(e){r.e(e)}finally{r.f()}});return t.observe(e),function(){t.unobserve(e)}}},[f,I,y]),(0,s.useEffect)(function(){p(x)},[x]),(0,s.useEffect)(function(){w(null==x?void 0:x.map(function(e){return e.length}).reduce(function(e,t){return Math.max(e,t)},0))},[x]),(0,s.useEffect)(function(){var e;C(null===(e=Array.from(Array(k).keys()))||void 0===e?void 0:e.map(function(){return null}))},[k]),(0,s.useEffect)(function(){if(y){var e=[];p(function(t){var r=Array.from({length:t.length},function(){return[]});return S.forEach(function(n,a){null!==n&&(e.push(n),t.forEach(function(e,t){r[t]&&r[t].push(e[a])}))}),r}),E(e)}},[y,S]);var U=function(e){p(function(t){return t.filter(function(t,r){return r!==e})})},$=(t=(0,O.Z)(B().mark(function e(){var t;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!0),t=f.map(function(e){var t={};return P.forEach(function(r,n){var a;t[r.value]=null!==(a=e[n])&&void 0!==a?a:null}),t}),e.next=5,i(t);case 5:v(!0),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),V(!0);case 12:return e.prev=12,d(!1),e.finish(12);case 15:case"end":return e.stop()}},e,null,[[0,8,12,15]])})),function(){return t.apply(this,arguments)}),q=(r=(0,O.Z)(B().mark(function e(t){var r,n,a;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!T){e.next=4;break}return e.abrupt("return");case 4:return D(!0),e.prev=5,e.t0=fetch,e.t1="".concat("https://api.liveday.se","/excel/interpret"),e.t2=t,e.t3=t.type,e.t4="Bearer ",e.next=13,(0,J.aN)();case 13:return e.t5=e.sent,e.t6=e.t4.concat.call(e.t4,e.t5),e.t7={"Content-type":e.t3,Authorization:e.t6},e.t8={method:"POST",body:e.t2,headers:e.t7},e.next=19,(0,e.t0)(e.t1,e.t8);case 19:return n=e.sent,e.next=22,n.json();case 22:if(!(a=e.sent).error){e.next=25;break}throw Error(a.error.message);case 25:m(null!==(r=a.data)&&void 0!==r?r:[]),e.next=32;break;case 28:e.prev=28,e.t9=e.catch(5),console.error(e.t9),V(!0);case 32:return e.prev=32,D(!1),e.finish(32);case 35:case"end":return e.stop()}},e,null,[[5,28,32,35]])})),function(e){return r.apply(this,arguments)});return(0,j.jsxs)("div",{className:"flex flex-1 flex-col overflow-y-auto xl:overflow-hidden",children:[f.length>0?(0,j.jsxs)("div",{className:"bg-gray-50 py-3 dark:bg-gray-900 sm:py-5",children:[(0,j.jsxs)("div",{className:"bg-white shadow-md dark:bg-gray-800 sm:rounded-lg",children:[(0,j.jsx)("div",{className:"border-b p-4 dark:border-gray-700",children:(0,j.jsx)("h5",{className:"font-semibold dark:text-white",children:"Spreadsheet"})}),(0,j.jsx)("div",{className:"overflow-x-auto",ref:_,style:{WebkitMaskImage:"linear-gradient(90deg, #000 ".concat(W,"%, transparent)")},children:(0,j.jsxs)("table",{className:"w-full text-left text-sm text-gray-500 dark:text-gray-400",children:[(0,j.jsx)("thead",{className:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",children:(0,j.jsxs)("tr",{children:[(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:(0,j.jsx)("span",{className:"sr-only",children:"Tools"})}),y?null==P?void 0:P.map(function(e,t){return(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:e.name},"saved-".concat(t))}):null===(n=Array.from(Array(k).keys()))||void 0===n?void 0:n.map(function(e,t){return(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:(0,j.jsxs)("select",{onChange:function(e){return C(null==S?void 0:S.map(function(r,n){if(n===t){var i=a.find(function(t){return t.value===e.target.value});return null!=i?i:null}return r}))},id:"select-".concat(e),className:"block w-full rounded-lg border border-gray-300 bg-white p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",children:[(0,j.jsx)("option",{value:"",selected:!0,children:"Choose column"}),null==a?void 0:a.map(function(e){return(0,j.jsx)("option",{value:e.value,disabled:S.some(function(t){return(null==t?void 0:t.value)===e.value}),children:e.name},"option-".concat(e.value))})]})},"select-".concat(e))})]})}),(0,j.jsx)("tbody",{children:null==f?void 0:f.map(function(e,t){return(0,j.jsxs)("tr",{className:"border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:[(0,j.jsx)("td",{className:"w-4 px-4 py-3",children:(0,j.jsx)("div",{className:"flex items-center",children:(0,j.jsx)(R.Z,{className:"h-4 w-4 cursor-pointer text-gray-400 hover:text-gray-500",onClick:function(){return U(t)}})})}),null==e?void 0:e.map(function(e,r){return(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e},"".concat(t,"-").concat(r))})]},t)})})]})})]}),(0,j.jsxs)("div",{className:"flex justify-end pt-8",children:[(0,j.jsx)("button",{type:"button",onClick:function(){V(!1),p([]),v(!1)},className:"hover:bg-blue-gray-50 rounded-md border border-gray-300 bg-gray-900 px-4 py-2 text-sm font-medium text-gray-100 shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:o("cancel")}),(0,j.jsx)("button",{type:"button",className:"bg-brand ml-3 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-gray-100 shadow-sm  focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",onClick:y?$:function(){return v(!0)},children:c?(0,j.jsx)(Y.Z,{}):o(y?"save":"format")})]})]}):(0,j.jsx)(H.ZP,{onDrop:function(e){return q(e[0])},children:function(e){var t=e.getRootProps,r=e.getInputProps;return(0,j.jsx)("div",ee(ee({className:"mt-1 flex justify-center rounded-md border-2 border-dashed border-gray-300 px-6 pb-6 pt-5"},t()),{},{children:(0,j.jsxs)("div",{className:"space-y-1 text-center",children:[(0,j.jsx)("svg",{className:"mx-auto h-12 w-12 text-gray-400",stroke:"currentColor",fill:"none",viewBox:"0 0 48 48","aria-hidden":"true",children:(0,j.jsx)("path",{d:"M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),(0,j.jsxs)("div",{className:"flex text-sm text-gray-600",children:[(0,j.jsxs)("label",{htmlFor:"file-upload",className:"relative cursor-pointer rounded-md bg-white font-medium text-blue-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-blue-500 focus-within:ring-offset-2 hover:text-blue-500",children:[(0,j.jsx)("span",{children:"Upload a file"}),(0,j.jsx)("input",ee({id:"file-upload",name:"file-upload",type:"file",className:"sr-only"},r()))]}),(0,j.jsx)("p",{className:"pl-1",children:"or drag and drop"})]}),(0,j.jsx)("p",{className:"text-xs text-gray-500",children:"XLS, XLSX, CSV up to 5MB"})]})}))}}),L&&(0,j.jsx)("div",{className:"mt-4 text-red-600",children:"An error occurred. Please try again."})]})}var ei=(n=(0,O.Z)(B().mark(function e(t){var r,n,a,i;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=fetch,e.t1="".concat("https://api.liveday.se","/qr/export.png"),e.t2="Bearer ",e.next=5,(0,J.aN)();case 5:return e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3),e.t5={"Content-Type":"application/json",Authorization:e.t4},e.t6=JSON.stringify({data:t}),e.t7={method:"POST",headers:e.t5,body:e.t6},e.next=12,(0,e.t0)(e.t1,e.t7);case 12:if((r=e.sent).ok){e.next=15;break}throw Error("Network response was not ok");case 15:return e.next=17,r.blob();case 17:n=e.sent,a=window.URL.createObjectURL(n),(i=document.createElement("a")).href=a,i.download="export.png",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(a),document.body.removeChild(i);case 26:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),es=function(e){var t=e.onClick;return(0,j.jsxs)("button",{type:"button",className:"hover:text-primary-700 flex flex-shrink-0 items-center justify-center rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-gray-900 hover:bg-gray-100 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700",onClick:t,children:[(0,j.jsx)(A.Z,{className:"mr-2 h-4 w-4"}),"Exportera till Excel"]})},eo=function(e){var t=e.tickets,r=e.kiosk,n=e.merch,a=e.restaurants;return(0,j.jsxs)("div",{className:"flex flex-row",children:[(0,j.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,K.A)("h-4 w-4",t.length>0?"text-gray-300":"text-gray-600"),children:[(0,j.jsx)("g",{clipPath:"url(#clip0_530_386263)",children:(0,j.jsx)("path",{d:"M2 6C2 5.46957 2.21071 4.96086 2.58579 4.58579C2.96086 4.21071 3.46957 4 4 4H16C16.5304 4 17.0391 4.21071 17.4142 4.58579C17.7893 4.96086 18 5.46957 18 6V8C17.4696 8 16.9609 8.21071 16.5858 8.58579C16.2107 8.96086 16 9.46957 16 10C16 10.5304 16.2107 11.0391 16.5858 11.4142C16.9609 11.7893 17.4696 12 18 12V14C18 14.5304 17.7893 15.0391 17.4142 15.4142C17.0391 15.7893 16.5304 16 16 16H4C3.46957 16 2.96086 15.7893 2.58579 15.4142C2.21071 15.0391 2 14.5304 2 14V12C2.53043 12 3.03914 11.7893 3.41421 11.4142C3.78929 11.0391 4 10.5304 4 10C4 9.46957 3.78929 8.96086 3.41421 8.58579C3.03914 8.21071 2.53043 8 2 8V6Z",fill:"currentColor"})}),(0,j.jsx)("defs",{children:(0,j.jsx)("clipPath",{id:"clip0_530_386263",children:(0,j.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]}),(0,j.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,K.A)("h-4 w-4",r.length>0?"text-gray-300":"text-gray-600"),children:[(0,j.jsx)("g",{clipPath:"url(#clip0_530_386267)",children:(0,j.jsx)("path",{d:"M13.88 2.00789C13.75 2.00789 13.62 2.09789 13.5 2.16789L10 4.25789V8.00789H6V10.0079H7L8 20.0079H14L15 10.0079H16V8.00789H12V5.34789L14.5 3.84789C15 3.56789 15.13 3.00789 14.84 2.50789C14.63 2.14789 14.26 1.95789 13.88 2.00789Z",fill:"currentColor"})}),(0,j.jsx)("defs",{children:(0,j.jsx)("clipPath",{id:"clip0_530_386267",children:(0,j.jsx)("rect",{width:"22",height:"22",fill:"white"})})})]}),(0,j.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,K.A)("h-4 w-4",n.length>0?"text-gray-300":"text-gray-600"),children:(0,j.jsx)("path",{d:"M21.7243 7.82715L15.6407 5C15.0127 5.81445 13.6222 6.38281 12.0006 6.38281C10.3789 6.38281 8.98846 5.81445 8.36041 5L2.27685 7.82715C2.03 7.94434 1.93002 8.22559 2.05188 8.45703L3.83914 11.8115C3.96412 12.043 4.26408 12.1367 4.51092 12.0225L6.27944 11.2109C6.61065 11.0586 6.9981 11.2842 6.9981 11.6328V19.0625C6.9981 19.5811 7.44491 20 7.99796 20H15.9969C16.55 20 16.9968 19.5811 16.9968 19.0625V11.6299C16.9968 11.2842 17.3842 11.0557 17.7154 11.208L19.4839 12.0195C19.7308 12.1367 20.0307 12.043 20.1557 11.8086L21.9461 8.45703C22.0711 8.22559 21.9711 7.94141 21.7243 7.82715Z",fill:"currentColor"})}),(0,j.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,K.A)("h-4 w-4",a.length>0?"text-gray-300":"text-gray-600"),children:(0,j.jsx)("path",{d:"M10.6667 9.6H9V4H7.33333V9.6H5.66667V4H4V9.6C4 11.296 5.38333 12.672 7.125 12.776V20H9.20833V12.776C10.95 12.672 12.3333 11.296 12.3333 9.6V4H10.6667V9.6ZM14.8333 7.2V13.6H16.9167V20H19V4C16.7 4 14.8333 5.792 14.8333 7.2Z",fill:"currentColor"})})]})};function el(e){return null!==e&&"cart"in e}function ec(e){return null!==e&&"adress"in e}var ed=function(e){var t=e.label,r=e.value,n=e.isEditing,a=e.onEdit,i=e.onChange,s=e.onCancel,o=e.onSave,l=e.readonly,c=void 0!==l&&l;return(0,j.jsx)("div",{className:"mb-2",children:n?(0,j.jsxs)("div",{className:"flex flex-row",children:[(0,j.jsxs)("label",{htmlFor:t.toLowerCase(),className:"block font-medium text-gray-700 dark:text-white",children:[t,":"]}),(0,j.jsxs)("div",{className:"ml-2 flex rounded-md shadow-sm",children:[(0,j.jsx)("input",{type:"text",name:t.toLowerCase(),id:t.toLowerCase(),className:"block w-full rounded-none rounded-l-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:r,onChange:function(e){return i(e.target.value)}}),(0,j.jsx)("button",{type:"button",className:"relative -ml-px inline-flex items-center gap-x-1.5 bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-100 ring-1 ring-inset ring-gray-300 hover:bg-gray-900",onClick:s,children:"Avbryt"}),(0,j.jsx)("button",{type:"button",className:"bg-brand relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-100 ring-1 ring-inset ring-gray-300 hover:bg-gray-900",onClick:o,children:"Spara"})]})]}):(0,j.jsxs)("h5",{className:"font-semibold dark:text-white",onClick:c?void 0:a,children:[(0,j.jsxs)("span",{className:"font-normal",children:[t,":"]})," ",r,!c&&(0,j.jsx)(L.Z,{className:"ml-1 inline-block h-5 w-5 cursor-pointer text-gray-400 hover:text-gray-200"})]})})},eu=function(e){var t,r,n=e.isOpen,a=e.onClose,i=e.order,o=e.onUpdateOrder,l=e.onSendEmail,c=(0,s.useContext)($.V).state,d=(0,X.$G)("common").t,u=(0,s.useState)(!1),x=u[0],m=u[1],h=(0,s.useState)(""),f=h[0],p=h[1],g=(0,s.useState)(!1),y=g[0],v=g[1],b=(0,s.useState)(""),k=b[0],w=b[1],N=(0,s.useState)(!1),S=N[0],C=N[1],Z=(0,s.useState)(""),P=Z[0],T=Z[1],D=(0,s.useState)(""),R=D[0],A=D[1],L=(0,s.useState)(!1),z=L[0],I=L[1];(0,s.useEffect)(function(){var e,t,r,n,a,s,o;el(i)&&null!==i?(p(null!==(e=null===(t=i.shipping)||void 0===t?void 0:t.name)&&void 0!==e?e:""),w(null!==(r=null==i?void 0:i.email)&&void 0!==r?r:""),T(null!==(n=null==i?void 0:i.phone_number)&&void 0!==n?n:"")):ec(i)&&null!==i&&(p(null!==(a=null===(s=i.adress)||void 0===s?void 0:s.name)&&void 0!==a?a:""),w(null!==(o=i.email)&&void 0!==o?o:""))},[i]);var M=(t=(0,O.Z)(B().mark(function e(){return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=3;break}return e.next=3,o(f,k,P);case 3:m(!1),v(!1),C(!1);case 6:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),G=function(e){var t=e.items,r=e.type;return(0,j.jsx)(s.Fragment,{children:t.length>0&&(0,j.jsxs)("div",{className:"relative mb-4 bg-white shadow-md dark:bg-gray-800 sm:rounded-lg",children:[(0,j.jsx)("div",{className:"mx-4 border-b dark:border-gray-700",children:(0,j.jsx)("div",{className:"flex items-center justify-between gap-x-4 pt-3",children:(0,j.jsx)("div",{className:"flex flex-1 items-center gap-x-3",children:(0,j.jsx)("h5",{className:"font-semibold dark:text-white",children:r})})})}),(0,j.jsx)("div",{className:"overflow-x-auto",children:(0,j.jsxs)("table",{className:"w-full text-left text-sm text-gray-500 dark:text-gray-400",children:[(0,j.jsx)("thead",{className:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",children:(0,j.jsxs)("tr",{children:["Tickets"===r&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Match"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Sektion"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Rad"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Plats"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Pris"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Priskategori"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Biljettl\xe4nk"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"QR-kod"})]}),"Merch"===r&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Produkt"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Storlek"})]}),("Kiosk"===r||"Restaurant"===r)&&(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Produkt"}),"Membership"===r&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Produkt"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Prisgrupp"})]})]})}),(0,j.jsx)("tbody",{children:t.map(function(e){var t,n,a,i,s,o,l;return"Tickets"===r&&e.Ticket?(0,j.jsxs)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:[(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Ticket.event_name}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Ticket.section_name}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Ticket.row}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Ticket.seat}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:null!==(t=e.Ticket.selected_price)&&void 0!==t&&t.value?"".concat(e.Ticket.selected_price.value," kr"):"-"}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:null!==(n=null===(a=e.Ticket.selected_price)||void 0===a?void 0:a.name)&&void 0!==n?n:"-"}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:(0,j.jsx)("a",{href:"https://api.liveday.se/ticket/ticket/".concat(e.Ticket.ticket_key,"/free.pdf"),className:"inline-flex items-center rounded-lg p-0.5 text-center text-sm font-medium text-gray-500 hover:text-gray-800 focus:outline-none dark:text-gray-400 dark:hover:text-gray-100",children:"L\xe4nk till biljett-PDF"})}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:(0,j.jsx)("div",{onClick:function(){var t,r;null!==(t=e.Ticket)&&void 0!==t&&t.ticket_key&&ei(null===(r=e.Ticket)||void 0===r?void 0:r.ticket_key)},className:"inline-flex cursor-pointer items-center rounded-lg p-0.5 text-center text-sm font-medium text-gray-500 hover:text-gray-800 focus:outline-none dark:text-gray-400 dark:hover:text-gray-100",children:"H\xe4mta QR-kod (PNG)"})})]},"".concat(e.Ticket.pk,"-").concat(e.Ticket.sk)):"Merch"===r&&e.Item?(0,j.jsxs)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:[(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Item.name}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:null!==(i=null===(s=e.Item.selected_size)||void 0===s?void 0:s.name)&&void 0!==i?i:""})]},"".concat(e.Item.pk,"-").concat(e.Item.sk)):"Kiosk"===r&&e.Kiosk?(0,j.jsx)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Kiosk.name})},"".concat(e.Kiosk.pk,"-").concat(e.Kiosk.sk)):"Membership"===r&&e.Membership?(0,j.jsxs)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:[(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Membership.name}),(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:null===(o=e.Membership)||void 0===o?void 0:null===(l=o.selected_price)||void 0===l?void 0:l.name})]},"".concat(e.Membership.pk,"-").concat(e.Membership.sk)):"Restaurant"===r&&e.Restaurant?(0,j.jsx)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.Restaurant.name})},"".concat(e.Restaurant.pk,"-").concat(e.Restaurant.sk)):null})})]})})]})})};return(0,j.jsx)(E.u.Root,{show:n,as:s.Fragment,children:(0,j.jsxs)(F.V,{as:"div",className:"".concat(c.theme," relative z-10"),onClose:a,children:[(0,j.jsx)("div",{className:"fixed inset-0"}),(0,j.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,j.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,j.jsx)("div",{className:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10 sm:pl-16",children:(0,j.jsx)(E.u.Child,{as:s.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,j.jsx)(F.V.Panel,{className:"pointer-events-auto w-screen max-w-md",children:(0,j.jsxs)("div",{className:"flex h-full flex-col divide-y divide-gray-800 bg-gray-800 shadow-xl",children:[(0,j.jsx)("div",{className:"bg-gray-800 px-4 py-6 sm:px-6",children:(0,j.jsxs)("div",{className:"flex items-center justify-between",children:[(0,j.jsx)(F.V.Title,{className:"text-base font-semibold leading-6 text-white",children:"Orderinformation"}),(0,j.jsx)("div",{className:"ml-3 flex h-7 items-center",children:(0,j.jsxs)("button",{type:"button",className:"relative rounded-md bg-gray-700 text-gray-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:a,children:[(0,j.jsx)("span",{className:"absolute -inset-2.5"}),(0,j.jsx)("span",{className:"sr-only",children:"Close panel"}),(0,j.jsx)(V.Z,{className:"h-6 w-6","aria-hidden":"true"})]})})]})}),(0,j.jsxs)("div",{className:"flex flex-1 flex-col overflow-y-auto border-t border-gray-200 pt-2",children:[(0,j.jsxs)("div",{className:"mx-8 my-4",children:[(0,j.jsx)(ed,{label:"Namn",value:f,isEditing:x,onEdit:function(){return m(!0)},onChange:p,onCancel:function(){if(m(!1),el(i)){var e,t;p(null!==(e=null==i?void 0:null===(t=i.shipping)||void 0===t?void 0:t.name)&&void 0!==e?e:"")}},onSave:M,readonly:ec(i)&&null!==i}),(0,j.jsx)(ed,{label:"E-post",value:k,isEditing:y,onEdit:function(){return v(!0)},onChange:w,onCancel:function(){var e;v(!1),w(null!==(e=null==i?void 0:i.email)&&void 0!==e?e:"")},onSave:M,readonly:ec(i)&&null!==i}),(0,j.jsx)(ed,{label:"Telefonnummer",value:P,isEditing:S,onEdit:function(){return C(!0)},onChange:T,onCancel:function(){if(el(i)&&null!==i){var e;C(!1),T(null!==(e=null==i?void 0:i.phone_number)&&void 0!==e?e:"")}},onSave:M,readonly:ec(i)&&null!==i}),(0,j.jsx)("div",{className:"mt-2",children:el(i)&&null!==i&&null!==i.payment_intent&&(0,j.jsxs)("h5",{className:"font-semibold dark:text-white",children:[(0,j.jsx)("span",{className:"font-normal",children:"Betalnings-ID:"})," ",null==i?void 0:i.payment_intent]})})]}),(0,j.jsxs)("div",{className:"divide-y px-4 sm:px-6",children:[el(i)&&null!==i&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(G,{items:i.cart.items.filter(function(e){return void 0!==e.Ticket}),type:"Tickets"}),(0,j.jsx)(G,{items:i.cart.items.filter(function(e){return void 0!==e.Item}),type:"Merch"}),(0,j.jsx)(G,{items:i.cart.items.filter(function(e){return void 0!==e.Kiosk}),type:"Kiosk"}),(0,j.jsx)(G,{items:i.cart.items.filter(function(e){return void 0!==e.Membership}),type:"Membership"}),(0,j.jsx)(G,{items:i.cart.items.filter(function(e){return void 0!==e.Restaurant}),type:"Restaurant"}),(0,j.jsx)(function(e){var t=e.campaigns;return(0,j.jsx)(s.Fragment,{children:t.length>0&&(0,j.jsxs)("div",{className:"relative mb-4 bg-white shadow-md dark:bg-gray-800 sm:rounded-lg",children:[(0,j.jsx)("div",{className:"mx-4 border-b dark:border-gray-700",children:(0,j.jsx)("div",{className:"flex items-center justify-between gap-x-4 pt-3",children:(0,j.jsx)("div",{className:"flex flex-1 items-center gap-x-3",children:(0,j.jsx)("h5",{className:"font-semibold dark:text-white",children:d("campaigns")})})})}),(0,j.jsx)("div",{className:"overflow-x-auto",children:(0,j.jsxs)("table",{className:"w-full text-left text-sm text-gray-500 dark:text-gray-400",children:[(0,j.jsx)("thead",{className:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",children:(0,j.jsxs)("tr",{children:[(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Namn"}),(0,j.jsx)("th",{scope:"col",className:"px-4 py-3",children:"Kod"})]})}),(0,j.jsx)("tbody",{children:t.map(function(e){return(0,j.jsxs)("tr",{className:"cursor-pointer border-b hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-700",children:[(0,j.jsx)("th",{scope:"row",className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.name}),(0,j.jsx)("td",{className:"whitespace-nowrap px-4 py-2 font-medium text-gray-900 dark:text-white",children:e.code})]},"".concat(e.pk,"-").concat(e.sk))})})]})})]})})},{campaigns:null!==(r=i.cart.campaigns)&&void 0!==r?r:[]})]}),ec(i)&&null!==i&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(G,{items:i.items.filter(function(e){return void 0!==e.Ticket}),type:"Tickets"}),(0,j.jsx)(G,{items:i.items.filter(function(e){return void 0!==e.Item}),type:"Merch"}),(0,j.jsx)(G,{items:i.items.filter(function(e){return void 0!==e.Kiosk}),type:"Kiosk"}),(0,j.jsx)(G,{items:i.items.filter(function(e){return void 0!==e.Membership}),type:"Membership"}),(0,j.jsx)(G,{items:i.items.filter(function(e){return void 0!==e.Restaurant}),type:"Restaurant"})]})]})]}),(0,j.jsxs)("div",{className:"flex flex-shrink-0 flex-col justify-end p-4",children:[z&&(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"relative mx-4 mt-2 rounded-md shadow-sm",children:[(0,j.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,j.jsx)(_.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})}),(0,j.jsx)("input",{type:"email",name:"email",id:"email",className:"block w-full rounded-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",value:R,onChange:function(e){return A(e.target.value)}})]})}),el(i)&&(0,j.jsx)(s.Fragment,{children:z?(0,j.jsxs)("div",{className:"flex flex-shrink-0 flex-row justify-end p-4",children:[(0,j.jsx)("button",{className:"inline-flex justify-center rounded-md bg-red-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-400 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600",onClick:function(){return I(!1)},children:"Avbryt"}),(0,j.jsx)("button",{className:"bg-brand ml-2 inline-flex justify-center rounded-md px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600",onClick:function(){l&&l(i,R)},children:"Skicka"})]}):(0,j.jsxs)("div",{className:"flex flex-shrink-0 flex-row justify-end p-4",children:[(0,j.jsx)("button",{className:"outline-brand text-brand hover:bg-brand inline-flex justify-center rounded-md px-3 py-2 text-sm font-semibold shadow-sm outline hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600",onClick:function(){return I(!0)},children:"Skicka till ny e-post"}),(0,j.jsx)("button",{className:"bg-brand ml-2 inline-flex justify-center rounded-md px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-gray-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-600",onClick:function(){l&&l(i)},children:"Skicka orderbekr\xe4ftelse igen"})]})})]})]})})})})})})]})})},ex=function(e){var t,r,n,a,i,o,l=e.orders,c=e.fetchData,d=e.page,u=e.totalPages,x=e.skipBasePadding,m=(0,X.$G)("common").t,h=(0,s.useState)(null),f=h[0],p=h[1],g=(0,s.useState)([]),y=g[0],v=g[1],b=(0,s.useState)(""),k=b[0],w=b[1],N=(0,s.useState)(!1),S=N[0],C=N[1],Z=(0,s.useState)(!1),P=Z[0],E=Z[1];(0,s.useEffect)(function(){var e=l;k.length>0&&(e=e.filter(function(e){var t,r,n;return(null===(t=e.shipping)||void 0===t?void 0:t.name.toLowerCase().includes(k.toLowerCase()))||(null===(r=e.email)||void 0===r?void 0:r.toLowerCase().includes(k.toLowerCase()))||(null===(n=e.phone_number)||void 0===n?void 0:n.toLowerCase().includes(k.toLowerCase()))})),v(e)},[k,l]);var F=(t=(0,O.Z)(B().mark(function e(t,r){var n,a;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.t0=fetch,e.t1="".concat("https://api.liveday.se","/order/organization/").concat(t.uuid,"/send_email"),e.t2="Bearer ",e.next=8,(0,J.aN)();case 8:return e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3),e.t5={"Content-Type":"application/json",Authorization:e.t4},e.t6=JSON.stringify({email:(null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)>0?r:void 0}),e.t7={method:"POST",headers:e.t5,body:e.t6},e.next=15,(0,e.t0)(e.t1,e.t7);case 15:return a=e.sent,e.next=18,a.json();case 18:E(!0),p(null),e.next=25;break;case 22:e.prev=22,e.t8=e.catch(2),C(!0);case 25:case"end":return e.stop()}},e,null,[[2,22]])})),function(e,r){return t.apply(this,arguments)}),T=(r=(0,O.Z)(B().mark(function e(t,r,n){var a,i;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==f){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.t0=fetch,e.t1="".concat("https://api.liveday.se","/order/organization/").concat(f.uuid),e.t2="Bearer ",e.next=8,(0,J.aN)();case 8:return e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3),e.t5={"Content-Type":"application/json",Authorization:e.t4},e.t6=JSON.stringify({name:null!=t?t:null===(a=f.shipping)||void 0===a?void 0:a.name,email:null!=r?r:f.email,phone_number:null!=n?n:f.phone_number}),e.t7={method:"POST",headers:e.t5,body:e.t6},e.next=15,(0,e.t0)(e.t1,e.t7);case 15:return i=e.sent,e.next=18,i.json();case 18:E(!0),e.next=24;break;case 21:e.prev=21,e.t8=e.catch(2),C(!0);case 24:case"end":return e.stop()}},e,null,[[2,21]])})),function(e,t,n){return r.apply(this,arguments)}),D=(n=(0,O.Z)(B().mark(function e(){var t,r,n,a,i;return B().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(y.length>0)){e.next=30;break}return t=[["Match","Namn","E-post","Telefonnummer","Betalnings-ID (Stripe)","Antal biljetter","Priskategori","Belopp","Skapad","Betals\xe4tt","Kampanjkod"]],y.forEach(function(e){var r,n,a,i,s,o,l,c,d,u,x,m,h,f,p,g,y=null===(r=e.cart.items)||void 0===r?void 0:r.filter(function(e){return void 0!==e.Ticket}).length,v=null!==(n=null===(a=e.cart.items)||void 0===a?void 0:null===(i=a.find(function(e){return void 0!==e.Ticket}))||void 0===i?void 0:null===(s=i.Ticket)||void 0===s?void 0:s.event_name)&&void 0!==n?n:"",b=null!==(o=null===(l=e.cart.campaigns)||void 0===l?void 0:l.map(function(e){return e.code}).join(", "))&&void 0!==o?o:"",k=null!==(c=null===(d=e.cart.items)||void 0===d?void 0:d.map(function(e){var t,r,n;return null!==(t=null===(r=e.Ticket)||void 0===r?void 0:null===(n=r.selected_price)||void 0===n?void 0:n.name)&&void 0!==t?t:""}).join(", "))&&void 0!==c?c:"";t.push([v,null!==(u=null===(x=e.shipping)||void 0===x?void 0:x.name)&&void 0!==u?u:"",null!==(m=e.email)&&void 0!==m?m:"",null!==(h=e.phone_number)&&void 0!==h?h:"",null!==(f=e.payment_intent)&&void 0!==f?f:"","".concat(y," st"),k,"".concat(e.total_price," kr"),null!==(p=e.created_at)&&void 0!==p?p:"",e.payment_intent?"Liveday":(null!==(g=e.total_price)&&void 0!==g?g:0)>0?"Swish":"-",b])}),e.t0=fetch,e.t1="".concat("https://api.liveday.se","/excel/export.xslx"),e.t2="Bearer ",e.next=9,(0,J.aN)();case 9:return e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3),e.t5={"Content-Type":"application/json",Authorization:e.t4},e.t6=JSON.stringify({data:{Potter:t}}),e.t7={method:"POST",headers:e.t5,body:e.t6},e.next=16,(0,e.t0)(e.t1,e.t7);case 16:if((r=e.sent).ok){e.next=19;break}throw Error("Network response was not ok");case 19:return e.next=21,r.blob();case 21:n=e.sent,a=window.URL.createObjectURL(n),(i=document.createElement("a")).href=a,i.download="export.xlsx",document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(a),document.body.removeChild(i);case 30:e.next=35;break;case 32:e.prev=32,e.t8=e.catch(0),console.error("Error exporting to Excel:",e.t8);case 35:case"end":return e.stop()}},e,null,[[0,32]])})),function(){return n.apply(this,arguments)}),R=[{key:"name",header:"Namn",sortable:!0,render:function(e){var t;return null===(t=e.shipping)||void 0===t?void 0:t.name}},{key:"created_at",header:"Datum",sortable:!0,render:function(e){return e.created_at?"".concat(new Date(e.created_at).toLocaleDateString()," ").concat(new Date(e.created_at).toLocaleTimeString()):"-"}},{key:"total_price",header:"Belopp",sortable:!0,render:function(e){return"".concat(e.total_price," kr")}},{key:"payment_method",header:"Betals\xe4tt",sortable:!0,render:function(e){var t;return(null!==(t=e.total_price)&&void 0!==t?t:0)>0?e.payment_intent?"Stripe":"Manuell swish":"-"}},{key:"categories",header:"Kategorier",render:function(e){var t=e.cart.items.filter(function(e){return void 0!==e.Ticket}),r=e.cart.items.filter(function(e){return void 0!==e.Item}),n=e.cart.items.filter(function(e){return void 0!==e.Restaurant}),a=e.cart.items.filter(function(e){return void 0!==e.Kiosk});return(0,j.jsx)("div",{className:"flex flex-row",children:(0,j.jsx)(eo,{tickets:t,kiosk:a,merch:r,restaurants:n})})}},{key:"ticket_count",header:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z.Z,{className:"inline-block h-4 w-4"})," ",(0,j.jsx)("span",{className:"ml-1 inline-block",children:"x"})]}),sortable:!0,render:function(e){return e.cart.items.filter(function(e){return void 0!==e.Ticket}).length}},{key:"city",header:"Ort",sortable:!0,render:function(e){var t;return null===(t=e.shipping)||void 0===t?void 0:t.city}},{key:"email",header:"E-postadress",sortable:!0},{key:"status",header:"Status",render:function(){return(0,j.jsx)("div",{className:"block rounded-md bg-green-900 py-1 text-center text-xs text-green-300",children:"Betald"})}},{key:"actions",header:"",icon:(0,j.jsx)(M.Z,{className:"h-5 w-5"}),items:function(e){return[{label:"Redigera",action:function(){return p(e)}},{label:"Skicka bekr\xe4ftelse",action:function(){var t;return F(e,null!==(t=e.email)&&void 0!==t?t:void 0)}}]}}];return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(q.K4,{shouldShow:S,message:"N\xe5got gick fel!",subtitle:"Det gick inte att skicka bekr\xe4ftelse till kund. F\xf6rs\xf6k igen senare.",hide:function(){return C(!1)}}),(0,j.jsx)(q.Ur,{shouldShow:P,message:"Bekr\xe4ftelse skickad!",subtitle:"Bekr\xe4ftelse skickad till kund p\xe5 nytt.",hide:function(){return E(!1)}}),(0,j.jsx)(eu,{isOpen:null!==f,onClose:function(){return p(null)},order:f,onUpdateOrder:T,onSendEmail:F}),(0,j.jsx)(en,{columns:R,data:y,data_length:l.length,onRowClick:function(e){return p(e)},rowKeyField:"sk",initialSortColumn:"created_at",initialSortDirection:"desc",title:"Transaktioner",searchPlaceholder:"S\xf6k...",onSearch:w,topActions:(0,j.jsx)(es,{onClick:D}),selectionMode:"single",selectedRow:null!=f?f:void 0,onSelectSingleRow:function(e){return p(e)},pagination:{page:d,hasNextPage:d<u-1,onPrevious:function(){return c("previous")},onNext:function(){return c("next")}},emptyState:{title:null!==(a=m("no-events"))&&void 0!==a?a:"",description:null!==(i=m("get-started-by-creating-a-new-event"))&&void 0!==i?i:"",actionLabel:null!==(o=m("new-event"))&&void 0!==o?o:"",actionLink:"/venue/events/new"},skipBasePadding:void 0!==x&&x,thinRows:!0})]})};function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ef=function(e){var t=(0,i.Z)({},e);return(0,j.jsx)(j.Fragment,{children:"web"!=o.Z.OS?(0,j.jsx)(N,eh({},t)):(0,j.jsx)(en,eh({},t))})};function ep(e){var t=(0,i.Z)({},e);return(0,j.jsx)(j.Fragment,{children:"web"!=o.Z.OS?(0,j.jsx)(S,eh({},t)):(0,j.jsx)(ea,eh({},t))})}function eg(e){var t=(0,i.Z)({},e);return(0,j.jsx)(j.Fragment,{children:"web"!=o.Z.OS?(0,j.jsx)(C,eh({},t)):(0,j.jsx)(eu,eh({},t))})}function ey(e){var t=(0,i.Z)({},e);return(0,j.jsx)(j.Fragment,{children:"web"!=o.Z.OS?(0,j.jsx)(Z,eh({},t)):(0,j.jsx)(ex,eh({},t))})}},60013:function(e){e.exports=JSON.parse('{"v":"5.7.11","fr":60,"ip":0,"op":81,"w":1920,"h":1080,"nm":"Loading Dots","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Dot4","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[25]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":39,"s":[100]},{"t":55,"s":[25]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[1142,540,0],"to":[0,-6.667,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":39,"s":[1142,500,0],"to":[0,0,0],"ti":[0,-6.667,0]},{"t":55,"s":[1142,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-284,92,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":25,"s":[50,50,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":39,"s":[75,75,100]},{"t":55,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[120,120],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.11764705882352941,0.00392156862745098,0.011764705882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-284,92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Dot3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":17,"s":[25]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[100]},{"t":47,"s":[25]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[1022,540,0],"to":[0,-6.667,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":31,"s":[1022,500,0],"to":[0,0,0],"ti":[0,-6.667,0]},{"t":47,"s":[1022,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-284,92,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":17,"s":[50,50,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":31,"s":[75,75,100]},{"t":47,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[120,120],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.11764705882352941,0.00392156862745098,0.011764705882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-284,92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Dot2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":9,"s":[25]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":23,"s":[100]},{"t":39,"s":[25]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[902,540,0],"to":[0,-6.667,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[902,500,0],"to":[0,0,0],"ti":[0,0,0]},{"t":39,"s":[902,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-284,92,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":9,"s":[50,50,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":23,"s":[75,75,100]},{"t":39,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[120,120],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.11764705882352941,0.00392156862745098,0.011764705882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-284,92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Dot1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[25]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":14,"s":[100]},{"t":30,"s":[25]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[782,540,0],"to":[0,-6.667,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[782,500,0],"to":[0,0,0],"ti":[0,-6.667,0]},{"t":30,"s":[782,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[-284,92,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[50,50,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":14,"s":[75,75,100]},{"t":30,"s":[50,50,100]}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[120,120],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.11764705882352941,0.00392156862745098,0.011764705882352941,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-284,92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0}],"markers":[]}')}}]);
//# sourceMappingURL=6515-287279b48513eddd.js.map