@sikka/hawa 0.0.235 → 0.0.237

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useState as t,useRef as n,useEffect as r,useMemo as a,useReducer as o,useCallback as i,forwardRef as l,useImperativeHandle as u,Fragment as c,createContext as s,useLayoutEffect as d,useContext as f,Component as m,memo as p}from"react";import v from"react-select";import g from"react-select/creatable";import h from"prop-types";import b from"direction";import y from"lodash/debounce";import x from"lodash/throttle";import E from"react-dom";import{useForm as D,FormProvider as w,Controller as C}from"react-hook-form";function F(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=F(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function B(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=F(e))&&(r&&(r+=" "),r+=t);return r}var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},j.apply(this,arguments)};function A(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function O(e,t,n,r){var a=function(e){return t=e,(null!=(r=n)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e:new n((function(t){t(e)}));var t,r};return new(n||(n=Promise))((function(n,o){var i=function(e){try{u(r.next(e))}catch(e){o(e)}},l=function(e){try{u(r.throw(e))}catch(e){o(e)}},u=function(e){e.done?n(e.value):a(e.value).then(i,l)};u((r=r.apply(e,t||[])).next())}))}function k(e,t){var n,r,a,o,i=function(e){return function(t){return l([e,t])}},l=function(i){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,i[0]&&(u=0)),u;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(a=u.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){u.label=i[1];break}if(6===i[0]&&u.label<a[1]){u.label=a[1],a=i;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(i);break}a[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}},u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o}function N(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function P(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var S=function(t){var n=t.size,r=void 0===n?"sm":n;A(t,["size"]);return e.createElement("div",{className:"flex flex-row gap-x-3"},e.createElement("div",{className:B({button:"h-4 w-4",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"}[r],"animate-spin rounded-full border-4 border-gray-400 border-t-white text-white")}))},T=function(a){var o=a.children,i=a.content,l=a.size,u=void 0===l?"normal":l,c=a.position,s=void 0===c?"top-right":c,d=a.direction,f=void 0===d?"ltr":d,m=t(!1),p=m[0],v=m[1],g=n(null),h=t(null),b=h[0],y=h[1],x=t(null),E=x[0],D=x[1],w=n(null),C=t(null),F=C[0],j=C[1],A=t(null),O=A[0],k=A[1];r((function(){var e,t,n,r;k(null===(e=w.current)||void 0===e?void 0:e.getBoundingClientRect().height),j(null===(t=w.current)||void 0===t?void 0:t.getBoundingClientRect().width),y(null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect().height),D(null===(r=g.current)||void 0===r?void 0:r.getBoundingClientRect().width)}));var N;switch(s){case"top-right":N="rtl"===f?"".concat(F-E,"px, -").concat(O+b+5,"px"):"0px, -".concat(O+b+5,"px");break;case"top-left":N="rtl"===f?"".concat(0,"px, -").concat(O+b+5,"px"):"-".concat(F-E,"px, -").concat(O+b+5,"px");break;case"bottom-right":N="rtl"===f?"".concat(F-E,"px, ").concat(5,"px"):"-".concat(0,"px, ").concat(5,"px");break;case"bottom-left":N="rtl"===f?"0px, ".concat(5,"px"):"-".concat(F-E,"px,").concat(5,"px");break;case"right-bottom":N="rtl"===f?"".concat(F+5,"px, -").concat(b,"px"):"".concat(E+5,"px, -").concat(b,"px");break;case"right-top":N="rtl"===f?"".concat(F+5,"px, -").concat(O,"px"):"".concat(E+5,"px, -").concat(O,"px");break;case"left-bottom":N="rtl"===f?"-".concat(E+5,"px, -").concat(b,"px"):"-".concat(F+5,"px, -").concat(b,"px");break;case"left-top":N="rtl"===f?"-".concat(E+5,"px, -").concat(O,"px"):"-".concat(F+5,"px, -").concat(O,"px");break;default:N="-".concat(F/2,"px, -").concat(b+O/2,"px")}return e.createElement("div",{onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}},e.createElement("div",{ref:g},o),e.createElement("div",{ref:w,style:{position:"absolute",width:"max-content",transform:"translate(".concat(N,")"),opacity:p?"1":"0",maxWidth:"200px"},className:B("absolute z-10 rounded bg-gray-900 text-center text-sm font-medium text-white shadow-sm transition-all duration-300 dark:bg-gray-700",{normal:"py-2 px-3 leading-2",small:"py-2 px-2 text-[10px] leading-tight",large:"py-2 px-2 text-lg leading-tight"}[u])},i))},R="cursor-default pointer-events-none",M={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},_=function(t){var n=t.className,r=t.variant,a=void 0===r?"contained":r,o=t.color,i=void 0===o?"default":o,l=t.size,u=void 0===l?"medium":l,c=t.width,s=void 0===c?"normal":c,d=t.disabled,f=void 0!==d&&d,m=t.isLoading,p=void 0!==m&&m,v=t.tooltip,g=t.tooltipSize,h=void 0===g?"normal":g,b=t.tooltipPosition,y=void 0===b?"top-left":b,x=t.tooltipDirection,E=void 0===x?"ltr":x,D=t.margins,w=void 0===D?"2":D,C=t.children,F=t.badge,j=A(t,["className","variant","color","size","width","disabled","isLoading","tooltip","tooltipSize","tooltipPosition","tooltipDirection","margins","children","badge"]),O="cursor-pointer h-[2.36rem] justify-center items-center text-center font-medium rounded transition-all",k={xs:"px-1 py-1",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},N={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},P={contained:"border-transparent",outlined:"bg-transparent border"},_={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"text-neutral-900 bg-buttonSecondary-default hover:text-white hover:bg-buttonSecondary-700"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200",primary:"text-black hover:bg-gray-50",secondary:"text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white"}};return e.createElement("div",{className:B("relative","none"!==w?"my-".concat(w):"m-0",{full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"}[s])},v?e.createElement(T,{direction:E,position:y,size:h,content:v},e.createElement("button",{className:f?B(n,O,P[a],k[u],N[s],R,M[a]):B(n,O,P[a],k[u],_[a][i],N[s]),disabled:f,onClick:j.onClick},p?e.createElement(S,{size:"button"}):C)):e.createElement("button",{className:f?B(n,O,P[a],k[u],N[s],R,M[a]):B(n,O,P[a],k[u],_[a][i],N[s]),disabled:f,onClick:j.onClick},p?e.createElement(S,{size:"button"}):e.createElement("div",{className:"flex flex-row items-center gap-2 whitespace-nowrap"},j.startIcon&&j.startIcon,C,j.endIcon&&j.endIcon)),F&&e.createElement("div",{className:"absolute -top-3 -right-3 inline-flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-red-500 text-xs font-bold text-white dark:border-gray-900"},F))},L=function(a){var o=a.title,i=a.description,l=a.severity,u=void 0===l?"info":l,c=a.position,s=void 0===c?"bottom-left":c,d=a.actions;a.handleClose;var f=a.duration,m=t(!1),p=m[0],v=m[1],g=n(null);return r((function(){if(f){var e=setTimeout((function(){v(!0)}),f),t=setTimeout((function(){v(!0),g.current.removeChild(g.current.children[0])}),f+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[f]),e.createElement("div",{ref:g},e.createElement("div",{id:"toast-default",role:"alert",className:B("fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800",{info:"text-blue-700 bg-blue-100",warning:"text-yellow-700 bg-yellow-100",error:"text-red-700 bg-red-100",success:"text-green-700 bg-green-100",none:"text-gray-500 bg-white "}[u],{"top-left":"top-4","top-right":"top-4 right-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-left":"bottom-4","bottom-right":"bottom-4 right-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"}[s],"p-2 transition-all",p?"opacity-0":"opacity-100")},e.createElement("div",{className:"w-full p-3 flex flex-col gap-2"},e.createElement("div",{className:"text-sm font-bold"},o),e.createElement("div",{className:"text-sm font-normal"},i),d&&e.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.map((function(t,n){return e.createElement(_,{key:n,variant:t.variant,onClick:t.onClick(),margins:"none"},t.icon&&t.icon,t.label)})))),e.createElement("button",{type:"button",className:"right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){return v(!0)}},e.createElement("span",{className:"sr-only"},"Close"),e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},z=function(t){var n=t.size,r=void 0===n?"normal":n,a=A(t,["size"]);return e.createElement("label",{htmlFor:"default-toggle",className:"relative inline-flex cursor-pointer items-center"},e.createElement("input",{type:"checkbox",value:"",id:"default-toggle",className:"peer sr-only"}),e.createElement("div",{className:B({small:"",normal:"peer-checked:after:translate-x-full h-6 w-11 after:top-[2px] after:left-[2px] after:h-5 after:w-5 ",large:"peer-checked:after:translate-x-[2.445rem] h-10 w-20 after:top-[2px] after:left-[2px] after:h-9 after:w-9"}[r],"peer rounded-full bg-gray-200 after:absolute after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-buttonPrimary-500 peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-buttonPrimary-700")}),a.text&&e.createElement("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},a.text))},I=function(n){var a=t(n.val),o=a[0],i=a[1];return r((function(){n.onChange(o)}),[o]),e.createElement("div",{className:B(n.centered?"flex h-full items-center justify-center":"flex h-full items-start ")},e.createElement("input",{type:"checkbox",checked:o,onChange:function(e){return i(e.target.checked)},id:n.id,"aria-label":n.label,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(n.label||n.helperText)&&e.createElement("div",{className:" flex cursor-pointer flex-col py-2",onClick:function(e){return i(!o)}},n.label&&e.createElement("label",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},n.label),n.helperText&&e.createElement("p",{className:"mx-2 mt-1 text-xs text-red-600 dark:text-red-500"},n.helperText)))},W=function(n){var r=t(n.defaultValue);return r[0],r[1],e.createElement("div",null,e.createElement("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700"},e.createElement("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist"},n.options.map((function(t,n){return e.createElement("li",{key:n,className:"mr-2",role:"presentation"},e.createElement("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:"".concat(t.value,"-tab"),"data-tabs-target":"#".concat(t.value),type:"button",role:"tab","aria-controls":t.value,"aria-selected":"true"},t.label))})))),e.createElement("div",{id:"myTabContent"},n.options.map((function(t,n){return e.createElement("div",{key:n,className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:t.value,role:"tabpanel","aria-labelledby":"".concat(t.value,"-tab")},t.content)}))))},q=function(t){var n=t.size,r=void 0===n?"normal":n,a=t.label,o=t.icon,i=t.color,l=t.dot,u=t.dotType,c=void 0===u?"available":u;return e.createElement("span",{className:B("flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",{small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""}[r],i?"bg-".concat(i,"-100 text-").concat(i,"-500"):"bg-layoutPrimary-500")},l&&e.createElement("span",{className:B({small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"}[r],{available:"bg-green-500",unavailable:"bg-red-500"}[c])}),o&&o,a)};function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){V(e,t,n[t])}))}return e}function G(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var H=function(t){var n=t.margin,r=void 0===n?"normal":n,a=t.width,o=void 0===a?"full":a,i=t.preview,l=void 0!==i&&i,u=A(t,["margin","width","preview"]),c="block w-full rounded border border-gray-300 bg-white p-2 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";return e.createElement("div",{className:B("flex max-h-fit flex-col justify-center",{none:"mb-0",normal:"mb-3",large:"mb-5"}[r],{small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"}[o])},u.label&&e.createElement("label",{htmlFor:"first_name",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},u.label),l?e.createElement(e.Fragment,null,u.multiline?e.createElement("textarea",U({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):e.createElement("div",{className:"relative"},u.icon&&e.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),e.createElement("div",{className:B("block w-full rounded bg-gray-50 p-2 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",u.icon?"pl-10":"")},u.value))):e.createElement(e.Fragment,null,u.multiline?e.createElement("textarea",U({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):e.createElement("div",{className:"relative"},u.icon&&e.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),e.createElement("input",G(U({},u),{className:B(c,u.icon?"pl-10":"")}))),u.helperText&&e.createElement("p",{className:"mb-0 mt-1 text-xs text-red-600 dark:text-red-500"},u.helperText)))},K=function(n){var r=t(n.color),a=r[0],o=r[1];return e.createElement("div",{className:"flex w-fit flex-row rounded border-2 border-gray-200 p-0"},e.createElement("div",{style:{backgroundColor:a},className:"rounded-tl-lg rounded-bl-lg"},e.createElement("input",{type:"color",value:a,onChange:function(e){o(e.target.value),n.handleChange(e)},className:"opacity-0"})),e.createElement("input",{type:"text",value:a,className:"w-24 rounded-tr-lg rounded-br-lg pr-2 pl-2"}))},Z=function(t){var n=t.value,r=t.handleChange,a=t.startElement,o=t.endElement,i=t.label,l=A(t,["value","handleChange","startElement","endElement","label"]),u=e.useState(n),c=u[0],s=u[1];return e.createElement("div",l,i&&e.createElement("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},i),e.createElement("div",{className:"flex w-fit flex-row items-center justify-center"},e.createElement("div",{className:"mr-2"},a)," ",e.createElement("input",{id:"default-range",type:"range",value:c,onChange:function(e){s(e.target.value),r(e)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),e.createElement("div",{className:"ml-2"},o)," "))},Y=function(n){var r,a,o=t(n.defaultValue),i=o[0],l=o[1];return e.createElement("div",null,e.createElement("ul",{className:B((null===(r=n.options)||void 0===r?void 0:r.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":"","flex max-w-fit flex-row whitespace-nowrap rounded bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400")},null===(a=n.options)||void 0===a?void 0:a.map((function(t,r){return e.createElement("li",{className:"w-full",key:r},e.createElement("button",{"aria-current":"page",onClick:function(){l(t.value),n.onChangeTab(t.value)},className:i===t.value?"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-500 rounded active":"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"},t.label))}))))};function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}var X=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef,o=t.size,i=void 0===o?"normal":o;A(t,["cx","children","getStyles","innerProps","innerRef","size"]);return e.createElement("div",J({ref:a,className:B({small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""}[i],"flex w-full rounded border border-gray-300 bg-gray-50 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")},r),n)},Q=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef;return A(t,["cx","children","getStyles","innerProps","innerRef"]),e.createElement("div",J({className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded bg-white p-1 px-1.5 ring-1 ring-blue-200",ref:a},r),n)},ee=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef;return t.size,A(t,["cx","children","getStyles","innerProps","innerRef","size"]),e.createElement("div",J({ref:a,className:"flex flex-row items-center justify-between rounded p-1 px-2 hover:bg-buttonPrimary-500 hover:text-white"},r),n)},te=function(t){return e.createElement("div",null,t.label&&e.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},t.label),!t.isCreatable&&e.createElement(v,{isDisabled:t.disabled,options:t.options,isClearable:t.isClearable,isMulti:t.isMulti,isSearchable:t.isSearchable,onChange:function(e,n){return t.onChange(e,n)},components:{Control:X,Option:ee,Menu:Q},getOptionLabel:t.getOptionLabel}),t.isCreatable&&e.createElement(g,{styles:{input:function(e){return j(j({},e),{"input:focus":{boxShadow:"none"}})},control:function(e){return j(j({},e),{borderRadius:"0.75rem"})},menu:function(e){return j(j({},e),{borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"})},menuList:function(e){return j(j({},e),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"})},option:function(e){return j(j({},e),{borderRadius:"0.75rem",margin:3,width:"98%"})}},options:t.options,isClearable:t.isClearable,isMulti:t.isMulti,isSearchable:t.isSearchable,onCreateOption:function(){return console.log("im changing")},onChange:function(e,n){return t.onChange(e,n)},onInputChange:function(e,n){return t.onInputChange(e,n)}}),t.helperText&&e.createElement("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500"},t.helperText))},ne=function(t){var n=t.settingsLabel,r=t.settingsType,a=t.settingsDescription,o=t.colorProps,i=t.rangeProps,l=t.radioProps,u=t.switchProps,c=t.selectProps;return e.createElement("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle"},e.createElement("div",null,e.createElement("div",{className:"text-sm"},n),a&&e.createElement("div",{className:"text-xs"},a)," "),"text"===r&&e.createElement(H,{margin:"none",width:"small"}),"boolean"===r&&e.createElement(z,u),"range"===r&&e.createElement(Z,i),"color"===r&&e.createElement(K,o),"radio"===r&&e.createElement(Y,l),"select"===r&&e.createElement(te,c))},re=function(t){return e.createElement("div",null,t.children)},ae=function(t){var n=t.variant,r=void 0===n?"normal":n,a=t.direction,o=void 0===a?"ltr":a,i=A(t,["variant","direction"]);return e.createElement("div",{className:B("mb-4 flex flex-col rounded p-4 text-sm",{normal:{info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}}[r][i.severity]),role:"alert",dir:o},e.createElement("span",{className:"font-medium"},i.title),e.createElement("span",null," "+i.text),i.actions&&e.createElement("div",{className:"mt-2 flex flex-row gap-2"},i.actions.map((function(t,n){return e.createElement(_,{key:n,variant:t.variant,onClick:t.onClick(),margins:"none"},t.label)}))))},oe=function(a){var o=a.menuItems,i=a.withHeader,l=a.direction,u=void 0===l?"ltr":l,c=a.headerTitle,s=a.headerSubtitle,d=a.size,f=void 0===d?"normal":d,m=a.children,p=a.onClickOutside,v=a.actionedItem,g=a.position,h=void 0===g?"top-right":g,b=t(!1),y=b[0],x=b[1],E=n(null),D=t(null),w=D[0],C=D[1],F=t(null),j=F[0],A=F[1],O=n(null),k=t(null),N=k[0],P=k[1],S=t(null),T=S[0],R=S[1];r((function(){var e,t,n,r;R(null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect().height),P(null===(t=O.current)||void 0===t?void 0:t.getBoundingClientRect().width),C(null===(n=E.current)||void 0===n?void 0:n.getBoundingClientRect().height),A(null===(r=E.current)||void 0===r?void 0:r.getBoundingClientRect().width);var a=function(e){O.current&&!O.current.contains(e.target)&&x(!1)};return document.addEventListener("click",a,!0),function(){document.removeEventListener("click",a,!0)}}),[p]);var M,_={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""};switch(h){case"top-right":M="rtl"===u?"".concat(N-j,"px, -").concat(T+w+5,"px"):"0px, -".concat(T+w+5,"px");break;case"top-left":M="rtl"===u?"".concat(0,"px, -").concat(T+w+5,"px"):"-".concat(N-j,"px, -").concat(T+w+5,"px");break;case"bottom-right":M="rtl"===u?"-".concat(0,"px, ").concat(5,"px"):"-".concat(j-N,"px, ").concat(5,"px");break;case"bottom-left":M="rtl"===u?"0px, ".concat(5,"px"):"-".concat(N-j,"px,").concat(5,"px");break;case"right-bottom":M="rtl"===u?"".concat(N+5,"px, -").concat(w,"px"):"".concat(j+5,"px, -").concat(w,"px");break;case"right-top":M="rtl"===u?"".concat(N+5,"px, -").concat(T,"px"):"".concat(j+5,"px, -").concat(T,"px");break;case"left-bottom":M="rtl"===u?"-".concat(j+5,"px, -").concat(w,"px"):"-".concat(N+5,"px, -").concat(w,"px");break;case"left-top":M="rtl"===u?"-".concat(j+5,"px, -").concat(T,"px"):"-".concat(N+5,"px, -").concat(T,"px");break;default:M="-".concat(N/2,"px, -").concat(w+T/2,"px")}return e.createElement("div",{onClick:function(){x(!y)}},e.createElement("div",{ref:E},m),e.createElement("div",{ref:O,style:{position:"absolute",width:"max-content",transform:"translate(".concat(M,")"),maxWidth:"200px"},className:B("border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",y?"opacity-100":"invisible opacity-0")},i&&e.createElement("div",{className:"py-3 px-4 text-xs text-gray-900 dark:text-white"},e.createElement("div",null,c),e.createElement("div",{className:"truncate font-medium"},s)),null==o?void 0:o.map((function(t,n){return e.createElement("ul",{key:n,className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"},null==t?void 0:t.map((function(t,n){return t.element?e.createElement("li",{key:n,className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"},t.element):e.createElement("li",{key:n,onClick:function(){t.disabled?console.log("button is disabled"):null==t||t.action(v)},className:B(t.isButton?"flex cursor-pointer flex-row items-center rounded bg-buttonPrimary-500 py-2 px-4 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse dark:hover:bg-buttonPrimary-700 dark:hover:text-white":" flex flex-row items-center rounded rtl:flex-row-reverse ",_[f],t.disabled?"text-gray-300":" cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 dark:hover:text-white")},t.icon&&e.createElement("div",{className:"small"===f?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2"},t.icon),t.label)})))}))))},ie=function(e,n,a){var o=t([]),i=o[0],l=o[1],u=t([]),c=u[0],s=u[1];return r((function(){if(e){var t=function(e,t){for(var n=[],r=Math.ceil((null==e?void 0:e.length)/t),a=1;a<=r;a++)n.push(a);return n}(e,a);l(P([],t,!0));var r=function(e,t,n){return null==e?void 0:e.slice((t-1)*n,t*n)}(e,n,a);s(P([],r,!0))}}),[e,l,n,s,a]),{slice:c,range:i}},le={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ue=e.createContext&&e.createContext(le),ce=function(){return ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ce.apply(this,arguments)},se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function de(t){return t&&t.map((function(t,n){return e.createElement(t.tag,ce({key:n},t.attr),de(t.child))}))}function fe(t){return function(n){return e.createElement(me,ce({attr:ce({},t.attr)},n),de(t.child))}}function me(t){var n=function(n){var r,a=t.attr,o=t.size,i=t.title,l=se(t,["attr","size","title"]),u=o||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",ce({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,l,{className:r,style:ce(ce({color:t.color||n.color},n.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==ue?e.createElement(ue.Consumer,null,(function(e){return n(e)})):n(le)}function pe(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function ve(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function ge(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function he(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function be(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function ye(e){return fe({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}}]})(e)}function xe(e){return fe({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}function Ee(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"}}]})(e)}function De(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"}}]})(e)}function we(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(e)}function Ce(e){return fe({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function Fe(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}function Be(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}}]})(e)}function je(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"}}]})(e)}function Ae(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function Oe(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"}}]})(e)}function ke(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function Ne(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}var Pe=function(n){var a,o,i,l,u,c,s,d,f,m,p,v,g,h,b,y,x,E,D=n.size,w=void 0===D?"normal":D,C=n.bodyColor,F=void 0===C?"white":C,j=n.headerColor,O=void 0===j?"gray-200":j,k=n.borders,N=n.highlightFirst,P=void 0!==N&&N,S=n.direction,T=void 0===S?"ltr":S,R=n.bordersWidth,M=void 0===R?"1":R,L=n.pagination,z=void 0===L||L,I=A(n,["size","bodyColor","headerColor","borders","highlightFirst","direction","bordersWidth","pagination"]),W=t(10),q=W[0],V=W[1],U=t(null),G=U[0],K=U[1],Z=t(1),Y=Z[0],$=Z[1],J=ie(I.rows,Y,q),X=J.slice,Q=J.range;r((function(){(null==X?void 0:X.length)<1&&1!==Y&&$(Y-1),G&&$(G)}),[X,Y]);var ee="rtl"===T,te={normal:"py-3 px-6",small:"px-3 py-1"};return e.createElement("div",{className:"relative flex flex-col gap-2 "},e.createElement("div",{className:"overflow-x-auto rounded bg-".concat(O)},I.headerTools&&e.createElement("div",{className:"flex flex-row items-center justify-between gap-2 px-4 py-2"},e.createElement(H,{icon:e.createElement(we,{color:"gray"}),placeholder:"Search",width:"full",margin:"none"}),e.createElement("div",{className:"flex flex-row items-center justify-between gap-2"},e.createElement(_,{startIcon:e.createElement(je,null),endIcon:e.createElement(Fe,null)},null!==(o=null===(a=I.texts)||void 0===a?void 0:a.filter)&&void 0!==o?o:"Filter"))),e.createElement("table",{className:B("outer"===k||"all"===k?"outline outline-[".concat(M,"px] -outline-offset-1 outline-gray-300"):"","w-full rounded text-left text-sm text-gray-500 dark:text-gray-400","bg-".concat(O))},e.createElement("thead",{className:B("text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400","rows"===k||"all"===k||"inner"===k?"border-b ":"")},e.createElement("tr",null,I.columns.map((function(t,n){return t.hidden?void 0:e.createElement("th",{key:n,scope:"col",colSpan:2,className:B(te[w],0===n||"cols"!==k&&"all"!==k&&"inner"!==k?"":"border-r border-r-[".concat(M,"px] border-l border-l-[").concat(M,"px]"))},t.value)})),I.actions?e.createElement("th",{scope:"col",className:B(te[w],"w-[calc(1%)] text-center")},null!==(l=null===(i=I.texts)||void 0===i?void 0:i.actions)&&void 0!==l?l:"Actions"):null)),e.createElement("tbody",{className:F&&I.rows?"bg-".concat(F):"bg-transparent"},I.rows?null==X?void 0:X.map((function(t,n){var r=n==(null==X?void 0:X.length)-1;return e.createElement("tr",{key:n,className:B(" dark:border-gray-700 dark:bg-gray-800",I.clickable?"hover:bg-gray-100":"",r||"all"!==k&&"rows"!==k&&"inner"!==k?"":"border-b border-b-[".concat(M,"px]"))},null==t?void 0:t.map((function(n,a){var o=0===a,i=a===(null==t?void 0:t.length)-1,l=ee&&r&&i&&!I.actions,u=ee&&r&&o,c=!ee&&r&&o,s=!ee&&r&&i&&!I.actions;return n.hidden?void 0:e.createElement("td",{colSpan:2,key:a,className:B(te[w],P&&o?"font-bold":"font-normal",u?"rounded-bl-none rounded-br":l||c?"rounded-bl rounded-br-none":s?"rounded-bl-none rounded-br":"",(o||i||"cols"!==k&&"inner"!==k&&"all"!==k)&&(o||!I.actions||"cols"!==k&&"inner"!==k&&"all"!==k)?"":"border-l border-l-[".concat(M,"px] border-r border-r-[").concat(M,"px]"))},n.value)})),I.actions?"small"!==w?e.createElement("td",{align:ee?"right":"left",className:B(ee&&r?"rounded-bl rounded-br-none":"",!ee&&r?"rounded-bl-none rounded-br":""),colSpan:1},e.createElement("div",{className:"flex items-center justify-center"},e.createElement(oe,{size:"small",actionedItem:[n,t],menuItems:I.actions,position:"rtl"===T?"right-bottom":"left-bottom",direction:T},e.createElement("div",{className:"flex w-fit items-center justify-center rounded p-2 hover:bg-gray-200"},e.createElement(ke,null))))):e.createElement("div",{className:"flex flex-row items-center justify-center gap-2 p-1"},I.actions[0].map((function(t){return e.createElement("div",{className:" p-1 hover:bg-gray-100 transition-all"},t.icon)}))):null)})):e.createElement("tr",{className:"bg-transparent"},e.createElement("td",{colSpan:20},e.createElement("div",{className:B("w-full rounded-b bg-white p-5 text-center",F?"bg-".concat(F):"bg-white")},null!==(c=null===(u=I.texts)||void 0===u?void 0:u.noData)&&void 0!==c?c:"No Data")))))),z&&e.createElement("div",{className:"flex flex-row items-center justify-between "},Q.length>1?e.createElement("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded "},e.createElement("div",{className:B("flex h-6 w-6 rotate-180 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 "),onClick:function(){return $(Y<=1?Q.length:Y-1)}},e.createElement(Fe,null)),e.createElement("div",{className:"flex flex-row items-center overflow-clip rounded transition-all"},Q.length>6&&Q.map((function(t,n){if(n<=0)return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)})),(null==Q?void 0:Q.length)>6&&e.createElement("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:0!==Y||Y!==Q.length-1?Y:"...",value:1==Y||Y==Q.length?"...":G||Y,onChange:function(e){return K(parseInt(e.target.value))},onKeyDown:function(e){"Enter"===e.key&&($(G),K(null))}}),(null==Q?void 0:Q.length)>6&&Q.map((function(t,n){if(n>=Q.length-1)return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)})),(null==Q?void 0:Q.length)<=6&&Q.map((function(t,n){return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)}))),e.createElement("div",{onClick:function(){return Y>=Q.length?$(1):$(Y+1)},className:B("flex h-6 w-6 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 ")},e.createElement(Fe,null))):e.createElement("div",null),I.rows?e.createElement("div",{className:"flex w-fit flex-row items-center gap-2 "},e.createElement("div",{className:"text-xs "},I.rows.length," ",null!==(d=null===(s=I.texts)||void 0===s?void 0:s.items)&&void 0!==d?d:"Items"),e.createElement("select",{value:q,className:"h-6 rounded text-xs",onChange:function(e){V(parseInt(e.target.value))}},e.createElement("option",{value:10,style:{fontSize:10}},"10 / ",null!==(m=null===(f=I.texts)||void 0===f?void 0:f.page)&&void 0!==m?m:"Page"),e.createElement("option",{value:20,style:{fontSize:10}},"20 / ",null!==(v=null===(p=I.texts)||void 0===p?void 0:p.page)&&void 0!==v?v:"Page"),e.createElement("option",{value:30,style:{fontSize:10}},"30 / ",null!==(h=null===(g=I.texts)||void 0===g?void 0:g.page)&&void 0!==h?h:"Page"),e.createElement("option",{value:50,style:{fontSize:10}},"50 / ",null!==(y=null===(b=I.texts)||void 0===b?void 0:b.page)&&void 0!==y?y:"Page"),e.createElement("option",{value:100,style:{fontSize:10}},"100 / ",null!==(E=null===(x=I.texts)||void 0===x?void 0:x.page)&&void 0!==E?E:"Page"))):e.createElement("div",null)))};function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=function(t){return e.createElement(H,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Se(e,t,n[t])}))}return e}({type:"search"},t))},Re=function(t){var n=e.useState(!1),r=n[0],a=n[1];return e.createElement("div",null,e.createElement("button",{id:"accordion-collapse-heading-"+t.count,type:"button",className:B(r?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:function(){return a(!r)},"data-accordion-target":"#accordion-collapse-body-"+t.count,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+t.count},e.createElement("span",null,t.title),e.createElement("svg",{"data-accordion-icon":"",className:"h-6 w-6 ".concat(r?"":"rotate-180"," shrink-0 transition-all"),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{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",clipRule:"evenodd"}))),e.createElement("div",{id:"accordion-collapse-body-"+t.count,"aria-labelledby":"accordion-collapse-heading-"+t.count,className:B(r?"invisible hidden h-0 p-0":" visible h-full","rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900")},e.createElement("p",{className:"mb-2 text-gray-500 dark:text-gray-400"},t.content)))},Me=function(t){return e.createElement("div",{id:"accordion-collapse","data-accordion":"collapse",className:"flex flex-col gap-3"},t.content.map((function(n,r){return e.createElement(Re,{title:n.title,content:n.content,count:t.content.length-1===r?-1:r})})))},_e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Le(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=_e.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var ze=[".DS_Store","Thumbs.db"];function Ie(e){return"object"==typeof e&&null!==e}function We(e){return Ge(e.target.files).map((function(e){return Le(e)}))}function qe(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Le(e)}))]}}))}))}function Ve(e,t){return O(this,void 0,void 0,(function(){var n;return k(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=Ge(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(He))]):[3,2];case 1:return[2,Ue(Ke(r.sent()))];case 2:return[2,Ue(Ge(e.files).map((function(e){return Le(e)})))]}}))}))}function Ue(e){return e.filter((function(e){return-1===ze.indexOf(e.name)}))}function Ge(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function He(e){if("function"!=typeof e.webkitGetAsEntry)return Ze(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$e(t):Ze(e)}function Ke(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(N(arguments[t]));return e}(e,Array.isArray(t)?Ke(t):[t])}),[])}function Ze(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Le(t);return Promise.resolve(n)}function Ye(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return[2,e.isDirectory?$e(e):Je(e)]}))}))}function $e(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function a(){var o=this;t.readEntries((function(t){return O(o,void 0,void 0,(function(){var o,i,l;return k(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=u.sent(),e(o),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(Ye)),r.push(l),a(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Je(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Le(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Xe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t}))}return!0};function Qe(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ot=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},it=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},lt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},ut={code:"too-many-files",message:"Too many files"};function ct(e,t){var n="application/x-moz-file"===e.type||Xe(e,t);return[n,n?null:ot(t)]}function st(e,t,n){if(dt(e.size))if(dt(t)&&dt(n)){if(e.size>n)return[!1,it(n)];if(e.size<t)return[!1,lt(t)]}else{if(dt(t)&&e.size<t)return[!1,lt(t)];if(dt(n)&&e.size>n)return[!1,it(n)]}return[!0,null]}function dt(e){return null!=e}function ft(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function mt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function pt(e){e.preventDefault()}function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.some((function(t){return!ft(e)&&t&&t.apply(void 0,[e].concat(r)),ft(e)}))}}function gt(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return tt(tt({},e),{},nt({},t,[]))}),{}):{}}]}var ht=["children"],bt=["open"],yt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],xt=["refKey","onChange","onClick"];function Et(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||wt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ot=l((function(t,n){var r=t.children,a=Pt(At(t,ht)),o=a.open,i=At(a,bt);return u(n,(function(){return{open:o}}),[o]),e.createElement(c,null,r(Bt(Bt({},i),{},{open:o})))}));Ot.displayName="Dropzone";var kt={disabled:!1,getFilesFromEvent:function(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return Ie(e)&&Ie(e.dataTransfer)?[2,Ve(e.dataTransfer,e.type)]:function(e){return Ie(e)&&Ie(e.target)}(e)?[2,We(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qe(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ot.defaultProps=kt,Ot.propTypes={children:h.func,accept:h.oneOfType([h.string,h.arrayOf(h.string)]),multiple:h.bool,preventDropOnDocument:h.bool,noClick:h.bool,noKeyboard:h.bool,noDrag:h.bool,noDragEventsBubbling:h.bool,minSize:h.number,maxSize:h.number,maxFiles:h.number,disabled:h.bool,getFilesFromEvent:h.func,onFileDialogCancel:h.func,onFileDialogOpen:h.func,useFsAccessApi:h.bool,onDragEnter:h.func,onDragLeave:h.func,onDragOver:h.func,onDrop:h.func,onDropAccepted:h.func,onDropRejected:h.func,validator:h.func};var Nt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Bt(Bt({},kt),e),l=t.accept,u=t.disabled,c=t.getFilesFromEvent,s=t.maxSize,d=t.minSize,f=t.multiple,m=t.maxFiles,p=t.onDragEnter,v=t.onDragLeave,g=t.onDragOver,h=t.onDrop,b=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,D=t.useFsAccessApi,w=t.preventDropOnDocument,C=t.noClick,F=t.noKeyboard,B=t.noDrag,j=t.noDragEventsBubbling,A=t.validator,O=a((function(){return"function"==typeof E?E:Tt}),[E]),k=a((function(){return"function"==typeof x?x:Tt}),[x]),N=n(null),P=n(null),S=Dt(o(St,Nt),2),T=S[0],R=S[1],M=T.isFocused,_=T.isFileDialogActive,L=T.draggedFiles,z=n("undefined"!=typeof window&&window.isSecureContext&&D&&"showOpenFilePicker"in window),I=function(){!z.current&&_&&setTimeout((function(){P.current&&(P.current.files.length||(R({type:"closeDialog"}),k()))}),300)};r((function(){return window.addEventListener("focus",I,!1),function(){window.removeEventListener("focus",I,!1)}}),[P,_,k,z]);var W=n([]),q=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),W.current=[])};r((function(){return w&&(document.addEventListener("dragover",pt,!1),document.addEventListener("drop",q,!1)),function(){w&&(document.removeEventListener("dragover",pt),document.removeEventListener("drop",q))}}),[N,w]);var V=i((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Et(W.current),[e.target]),mt(e)&&Promise.resolve(c(e)).then((function(t){ft(e)&&!j||(R({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e))}))}),[c,p,j]),U=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=mt(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&g&&g(e),!1}),[g,j]),G=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return N.current&&N.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),mt(e)&&v&&v(e))}),[N,v,j]),H=i((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Dt(ct(e,l),2),a=t[0],o=t[1],i=Dt(st(e,d,s),2),u=i[0],c=i[1],f=A?A(e):null;if(a&&u&&!f)n.push(e);else{var m=[o,c];f&&(m=m.concat(f)),r.push({file:e,errors:m.filter((function(e){return e}))})}})),(!f&&n.length>1||f&&m>=1&&n.length>m)&&(n.forEach((function(e){r.push({file:e,errors:[ut]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&y&&y(r,t),n.length>0&&b&&b(n,t)}),[R,f,l,d,s,m,h,b,y,A]),K=i((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],mt(e)&&Promise.resolve(c(e)).then((function(t){ft(e)&&!j||H(t,e)})),R({type:"reset"})}),[c,H,j]),Z=i((function(){if(z.current){R({type:"openDialog"}),O();var e={multiple:f,types:gt(l)};window.showOpenFilePicker(e).then((function(e){return c(e)})).then((function(e){H(e,null),R({type:"closeDialog"})})).catch((function(e){!function(e){return Qe(e,DOMException)&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return Qe(e,DOMException)&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(z.current=!1,P.current&&(P.current.value=null,P.current.click())):(k(e),R({type:"closeDialog"}))}))}else P.current&&(R({type:"openDialog"}),O(),P.current.value=null,P.current.click())}),[R,O,k,D,H,l,f]),Y=i((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Z()))}),[N,Z]),$=i((function(){R({type:"focus"})}),[]),J=i((function(){R({type:"blur"})}),[]),X=i((function(){C||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Z():setTimeout(Z,0))}),[C,Z]),Q=function(e){return u?null:e},ee=function(e){return F?null:Q(e)},te=function(e){return B?null:Q(e)},ne=function(e){j&&e.stopPropagation()},re=a((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,a=e.onKeyDown,o=e.onFocus,i=e.onBlur,l=e.onClick,c=e.onDragEnter,s=e.onDragOver,d=e.onDragLeave,f=e.onDrop,m=At(e,yt);return Bt(Bt(jt({onKeyDown:ee(vt(a,Y)),onFocus:ee(vt(o,$)),onBlur:ee(vt(i,J)),onClick:Q(vt(l,X)),onDragEnter:te(vt(c,V)),onDragOver:te(vt(s,U)),onDragLeave:te(vt(d,G)),onDrop:te(vt(f,K)),role:"string"==typeof r&&""!==r?r:"button"},n,N),u||F?{}:{tabIndex:0}),m)}}),[N,Y,$,J,X,V,U,G,K,F,B,u]),ae=i((function(e){e.stopPropagation()}),[]),oe=a((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,a=e.onClick,o=At(e,xt);return Bt(Bt({},jt({accept:l,multiple:f,type:"file",style:{display:"none"},onChange:Q(vt(r,K)),onClick:Q(vt(a,ae)),tabIndex:-1},n,P)),o)}}),[P,l,f,K,u]),ie=L.length,le=ie>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!(!o&&t.length>1||o&&i>=1&&t.length>i)&&t.every((function(e){var t=rt(ct(e,n),1)[0],o=rt(st(e,r,a),1)[0];return t&&o}))}({files:L,accept:l,minSize:d,maxSize:s,multiple:f,maxFiles:m}),ue=ie>0&&!le;return Bt(Bt({},T),{},{isDragAccept:le,isDragReject:ue,isFocused:M&&!u,getRootProps:re,getInputProps:oe,rootRef:N,inputRef:P,open:Q(Z)})}function St(e,t){switch(t.type){case"focus":return Bt(Bt({},e),{},{isFocused:!0});case"blur":return Bt(Bt({},e),{},{isFocused:!1});case"openDialog":return Bt(Bt({},Nt),{},{isFileDialogActive:!0});case"closeDialog":return Bt(Bt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Bt(Bt({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Bt(Bt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Bt({},Nt);default:return e}}function Tt(){}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var _t=function(n){var a,o,i,l,u=n.texts,c=n.files,s=n.setFiles;n.setDeletedFiles,n.onAcceptedFiles,n.errorMessages;var d=n.maxFiles,f=n.accept,m=n.showPreview,p=n.onDeleteFile,v=n.onClearFiles,g=n.maxSize,h=n.label,b=t(0),y=b[0],x=b[1],E=t(0),D=E[0],w=E[1],C=Pt({multiple:!0,accept:f,maxSize:g,maxFiles:d,onDrop:function(e){s(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),F=C.getRootProps,B=C.getInputProps,j=C.fileRejections,A=C.acceptedFiles;C.isDragActive,r((function(){return function(){null==c||c.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[c]),r((function(){s(A)}),[A,y]),v=function(){A.length=0,A.splice(0,A.length),s([])},r((function(){if(g>0){var e=Math.floor(Math.log(g)/Math.log(1024));w(parseFloat((g/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[g]);var O=j.map((function(t,n){return e.createElement(ae,{text:t.file.name,title:t.errors[0].code,severity:"error"})})),k=null==c?void 0:c.map((function(t,n){return e.createElement("div",{className:"relative m-3 rounded "},e.createElement("button",{onClick:function(e){e.stopPropagation(),A.splice(A.indexOf(t),1),x(Math.random),p(t)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded rounded-tr-none rounded-bl-none bg-gray-900 p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal"},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),e.createElement("span",{className:"sr-only"},"Close modal")),e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(t.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg",key:t.name}))}));return e.createElement("div",null,h&&e.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},h),e.createElement("div",Mt(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rt(e,t,n[t])}))}return e}({},F({})),{className:"flex flex-col justify-center rounded border border-dashed border-black bg-white transition-all hover:bg-gray-100 "}),e.createElement("input",B()),e.createElement("div",{className:"pt-4 text-center"},u.clickHereToUpload),e.createElement("div",{className:"pb-4 text-center text-xs"},u.maxFileSize," ",D),e.createElement("div",{className:"flex justify-center "},A.length>0&&e.createElement(_,{onClick:function(e){e.stopPropagation(),v()}},"Clear All")),k&&m?e.createElement("aside",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},className:"rounded-lg border-red-500"},k):null,e.createElement("div",{className:"px-2"},"too-many-files"===(null===(o=null===(a=j[0])||void 0===a?void 0:a.errors[0])||void 0===o?void 0:o.code)?e.createElement(ae,{text:u.tooManyFiles,severity:"error"}):"file-too-large"===(null===(l=null===(i=j[0])||void 0===i?void 0:i.errors[0])||void 0===l?void 0:l.code)?e.createElement(ae,{text:u.fileTooLarge,severity:"error"}):O)))},Lt=function(t){return e.createElement("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4"},e.createElement("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},e.createElement("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}))),e.createElement("div",{className:"p-4"},t.children))},zt=[{country_label:"Saudi Arabia",code:"SA",unicode:"&#x1F1F8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"&#x1F1E6;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"&#x1F1E7;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"&#x1F1F0;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"&#x1F1F6;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"&#x1F1F4;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"&#x1F1E6;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"&#x1F1E6;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"&#x1F1E6;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"&#x1F1E6;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"&#x1F1E6;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"&#x1F1E6;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"&#x1F1E6;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"&#x1F1E6;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"&#x1F1E6;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"&#x1F1E6;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"&#x1F1E6;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"&#x1F1E6;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"&#x1F1E6;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"&#x1F1E6;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"&#x1F1E6;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"&#x1F1E7;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"&#x1F1E7;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"&#x1F1E7;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"&#x1F1E7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"&#x1F1E7;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"&#x1F1E7;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"&#x1F1E7;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"&#x1F1E7;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"&#x1F1E7;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"&#x1F1E7;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"&#x1F1E7;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"&#x1F1E7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"&#x1F1E7;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"&#x1F1E7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"&#x1F1E7;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"&#x1F1E7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"&#x1F1E7;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"&#x1F1E7;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"&#x1F1E8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"&#x1F1E8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"&#x1F1E8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"&#x1F1E8;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"&#x1F1E8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"&#x1F1E8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"&#x1F1E8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"&#x1F1E8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"&#x1F1E8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"&#x1F1E8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"&#x1F1E8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"&#x1F1E8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"&#x1F1E8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"&#x1F1E8;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"&#x1F1E8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"&#x1F1E8;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"&#x1F1E8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"&#x1F1E8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"&#x1F1E9;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"&#x1F1E9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"&#x1F1E9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"&#x1F1E9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"&#x1F1E9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"&#x1F1E9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"&#x1F1EA;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"&#x1F1EA;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"&#x1F1EA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"&#x1F1EA;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"&#x1F1EA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"&#x1F1EA;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"&#x1F1EB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"&#x1F1EB;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"&#x1F1EB;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"&#x1F1EB;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"&#x1F1EB;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"&#x1F1EB;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"&#x1F1EC;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"&#x1F1EC;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"&#x1F1EC;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"&#x1F1EC;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"&#x1F1EC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"&#x1F1EC;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"&#x1F1EC;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"&#x1F1EC;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"&#x1F1EC;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"&#x1F1EC;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"&#x1F1EC;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"&#x1F1EC;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"&#x1F1EC;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"&#x1F1EC;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"&#x1F1EC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"&#x1F1EC;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"&#x1F1EC;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"&#x1F1EC;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"&#x1F1EC;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"&#x1F1ED;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"&#x1F1ED;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"&#x1F1ED;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"&#x1F1ED;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"&#x1F1ED;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"&#x1F1EE;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"&#x1F1EE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"&#x1F1EE;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"&#x1F1EE;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"&#x1F1EE;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"&#x1F1EE;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"&#x1F1EE;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"&#x1F1EE;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"&#x1F1EE;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"&#x1F1EE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"&#x1F1EF;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"&#x1F1EF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"&#x1F1EF;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"&#x1F1EF;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"&#x1F1F0;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"&#x1F1F0;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"&#x1F1F0;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"&#x1F1F0;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"&#x1F1F0;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"&#x1F1F0;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"&#x1F1F0;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"&#x1F1F0;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"&#x1F1F0;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"&#x1F1F0;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"&#x1F1F1;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"&#x1F1F1;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"&#x1F1F1;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"&#x1F1F1;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"&#x1F1F1;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"&#x1F1F1;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"&#x1F1F1;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"&#x1F1F1;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"&#x1F1F1;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"&#x1F1F1;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"&#x1F1F1;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"&#x1F1F2;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"&#x1F1F2;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"&#x1F1F2;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"&#x1F1F2;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"&#x1F1F2;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"&#x1F1F2;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"&#x1F1F2;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"&#x1F1F2;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"&#x1F1F2;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"&#x1F1F2;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"&#x1F1F2;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"&#x1F1F2;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"&#x1F1F2;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"&#x1F1F2;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"&#x1F1F2;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"&#x1F1F2;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"&#x1F1F2;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"&#x1F1F2;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"&#x1F1F2;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"&#x1F1F2;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"&#x1F1F2;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"&#x1F1F2;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"&#x1F1F2;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"&#x1F1F3;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"&#x1F1F3;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"&#x1F1F3;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"&#x1F1F3;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"&#x1F1F3;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"&#x1F1F3;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"&#x1F1F3;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"&#x1F1F3;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"&#x1F1F3;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"&#x1F1F3;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"&#x1F1F3;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"&#x1F1F3;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"&#x1F1F5;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"&#x1F1F5;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"&#x1F1F5;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"&#x1F1F5;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"&#x1F1F5;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"&#x1F1F5;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"&#x1F1F5;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"&#x1F1F5;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"&#x1F1F5;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"&#x1F1F5;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"&#x1F1F5;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"&#x1F1F5;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"&#x1F1F5;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"&#x1F1F5;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"&#x1F1F7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"&#x1F1F7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"&#x1F1F7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"&#x1F1F7;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"&#x1F1F7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"&#x1F1F8;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"&#x1F1F8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"&#x1F1F8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"&#x1F1F8;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"&#x1F1F8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"&#x1F1F8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"&#x1F1F8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"&#x1F1F8;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"&#x1F1F8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"&#x1F1F8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"&#x1F1F8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"&#x1F1F8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"&#x1F1F8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"&#x1F1F8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"&#x1F1F8;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"&#x1F1F8;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"&#x1F1F8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"&#x1F1F8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"&#x1F1F8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"&#x1F1F9;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"&#x1F1F9;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"&#x1F1F9;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"&#x1F1F9;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"&#x1F1F9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"&#x1F1F9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"&#x1F1F9;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"&#x1F1F9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"&#x1F1F9;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"&#x1F1F9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"&#x1F1F9;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"&#x1F1F9;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"&#x1F1F9;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"&#x1F1F9;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"&#x1F1F9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"&#x1F1FA;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"&#x1F1FA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"&#x1F1FA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"&#x1F1FA;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"&#x1F1FA;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"&#x1F1FB;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"&#x1F1FB;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"&#x1F1FB;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"&#x1F1FB;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"&#x1F1FB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"&#x1F1FB;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"&#x1F1FB;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"&#x1F1FC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"&#x1F1FC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"&#x1F1FE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"&#x1F1FE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"&#x1F1FF;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"&#x1F1FF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"&#x1F1FF;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}];function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef,o=A(t,["cx","children","getStyles","innerProps","innerRef"]);return e.createElement("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){It(e,t,n[t])}))}return e}({ref:a,className:"m-2 flex flex-row items-center justify-between rounded p-1 px-2 hover:bg-blue-200"},r),e.createElement("div",{className:"flex flex-row items-center justify-center gap-1"},e.createElement("img",{className:"h-8 w-8",src:o.data.image}),e.createElement("span",{className:"text-[10px]"},o.data.country_label)),n)},qt=function(n){var r=t("+966"),a=r[0],o=r[1];return e.createElement("div",{className:"mb-3 flex flex-col"},n.label&&e.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},n.label),e.createElement("div",{dir:"ltr",className:"flex flex-row"},e.createElement(v,{styles:{input:function(e){return j(j({},e),{fontSize:"0.875rem","input:focus":{boxShadow:"none"},lineHeight:"1.25rem",padding:"0.37rem"})},singleValue:function(e){return j(j({},e),{fontSize:"0.875rem",textAlign:"right"})},control:function(e){return j(j({},e),{width:64,borderRadius:"0.5rem",borderTopRightRadius:0,borderBottomRightRadius:0})},menu:function(e){return j(j({},e),{width:190,borderRadius:"0.5rem"})}},components:{Option:Wt,DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:zt,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",defaultValue:n.preferredCountry,value:a,onChange:function(e,t){return o(e)}}),e.createElement("input",{onChange:n.handleChange,type:"number",className:"block w-full appearance-none rounded rounded-l-none border border-l-0 border-gray-300 bg-gray-50 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"}),n.helperText&&e.createElement("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500"},n.helperText)))},Vt=function(n){var r,a,o=n.orientation,i=void 0===o?"horizontal":o,l=n.direction,u=void 0===l?"ltr":l,c=n.width,s=void 0===c?"normal":c,d=n.marginBetween,f=void 0===d?0:d,m=n.pill,p=void 0!==m&&m,v=A(n,["orientation","direction","width","marginBetween","pill"]),g=t(null===(r=v.options[0])||void 0===r?void 0:r.value),h=g[0],b=g[1],y={vertical:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",horizontal:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active"},x={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"};return e.createElement("div",{dir:u,className:B({vertical:"flex flex-row",horizontal:"flex flex-col"}[i],v.options[h]?"border-b-2":"border-b-0")},e.createElement("ul",{className:B(f?"vertical"===i?"mb-0":"mb-"+f:"",f&&"rtl"===u?"ml-"+f:"mr-"+f,{vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-buttonPrimary-500 text-center text-sm font-medium text-gray-500 dark:text-gray-400"}[i],"border-buttonPrimary-500",{full:"w-full min-w-full",normal:"w-fit"}[s],p?"gap-0.5 rounded border-none bg-gray-100 p-0.5":"vertical"===i?"rtl"===u?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-2")},null===(a=v.options)||void 0===a?void 0:a.map((function(t,n){return e.createElement("li",{key:n},e.createElement("button",{"aria-current":"page",onClick:function(){b(t.value),null==v||v.onChangeTab(t)},className:B(t.value===h?[y[i],"rtl"===u?"rounded-r":"rounded-l"]:x[i],"w-full transition-all",p?"rounded":"vertical"===i?"rounded rounded-tl-none rounded-bl-none":"rounded rounded-br-none rounded-bl-none")},t.label))}))),e.createElement("div",{className:"flex-1 transition-all"},v.options.map((function(t,n){return e.createElement("div",{key:n,className:B(h===t.value?"":"hidden")},t.content)}))))},Ut=function(t){var n=t.open,a=t.title,o=t.onClose,i=t.closeOnClickOutside,l=void 0===i||i,u=A(t,["open","title","onClose","closeOnClickOutside"]);return r((function(){return l&&n&&(window.onclick=function(e){e.stopPropagation(),o()}),function(){return window.onclick=null}}),[n]),e.createElement("div",{className:B("absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all",n?"z-10 opacity-100 ":"invisible -z-10 opacity-0")},e.createElement("div",{className:B("absolute h-screen w-full bg-gray-500 opacity-50",n?"opacity-50":"opacity-0")}),e.createElement("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700"},e.createElement("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600"},e.createElement("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white"},a),e.createElement("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:function(e){o()}},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),e.createElement("span",{className:"sr-only"},"Close modal"))),e.createElement("div",{className:"space-y-6 p-3"},u.children),e.createElement("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600"},u.actions)))},Gt=function(t){return e.createElement("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400"},t.withLogo?e.createElement("a",{href:t.onLogoClicked},e.createElement("div",{className:"cursor-pointer"},e.createElement("image",{href:t.logoURL,width:100,height:50}))):null,e.createElement("div",null,t.version),t.credits?t.credits:null)},Ht=function(t){var n=t.orientation,r=void 0===n?"horizontal":n,a=A(t,["orientation"]);return e.createElement("div",{className:B({vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"}[r]," flex-wrap justify-start gap-4")},a.steps.map((function(t,n){return e.createElement("div",{key:n,className:"my-2 flex w-auto flex-row flex-wrap justify-start "},e.createElement("div",{className:"vertical"===r?"flex w-full flex-row items-center":n+1===a.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"},e.createElement("div",{className:"flex flex-row gap-2 "},e.createElement("div",{className:B("ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",n+1<=a.currentStep?"bg-buttonPrimary-500 text-white":"bg-buttonPrimary-200")},n+1<=a.currentStep?e.createElement(be,{fontSize:11}):n+1),e.createElement("div",{className:"whitespace-nowrap"},t))))})))},Kt=function(t){return e.createElement("div",{onClick:t.handleClick,className:B("flex flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit",{full:"w-full",min:"w-fit",normal:"w-full max-w-[200px]"}[t.width],{plain:"",contained:"bg-layoutPrimary-500",outlined:"ring-2 w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white",dropshadow:"bg-white drop-shadow-md"}[t.variant]),style:{backgroundColor:t.color?t.color:"contained"===t.variant?"var(--layout-primary-500)":""}},e.createElement("div",null,t.label),t.isLoading?e.createElement(S,null):e.createElement("div",{className:"text-2xl font-bold"},t.number)," ",t.helperText&&e.createElement("div",{className:"text-xs"},t.helperText)," ")},Zt=function(t){var n=t.open,r=t.setOpen,a=t.position;t.heading,t.children;var o=A(t,["open","setOpen","position","heading","children"]);return e.createElement("div",{className:B("left"==a?"w-60 z-50 h-full absolute overflow-x-clip top-0 left-0 border-r bg-white":"w-60 z-50 h-full absolute overflow-x-clip top-0 right-0 border-l bg-white","left"==a?"flex-row-reverse":"flex-row","overflow-x-clip transition-all",n?"w-60":"w-0")},o.drawerHeader&&e.createElement(Yt,{direction:a,setOpen:r},o.drawerHeader),o.drawerBody&&e.createElement($t,{direction:a},o.drawerBody),o.drawerFooter&&e.createElement(Jt,{direction:a},o.drawerFooter))},Yt=function(t){return e.createElement("div",{className:B("flex w-full flex-row items-center justify-between border-b p-4","left"==t.direction?"flex-row":"flex-row-reverse")},t.children,e.createElement("div",{className:"justify-self-end rounded border p-1 hover:cursor-pointer",onClick:function(){return t.setOpen(!1)}},"left"==t.direction?e.createElement(ye,{size:20,strokeWidth:2}):e.createElement(xe,{size:20,strokeWidth:2})))},$t=function(t){return e.createElement("div",{className:B("overflow-clip whitespace-nowrap p-4","left"==t.direction?"flex-row":"flex-row-reverse text-right")},t.children)},Jt=function(t){return e.createElement("div",{className:B("absolute bottom-0 w-full whitespace-nowrap border-t p-4","left"==t.direction?"flex-row":"flex-row-reverse text-right")},t.children)},Xt=function(n){var r=n.subsections,a=t(null),o=a[0],i=a[1];return e.createElement("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 "},r.map((function(t,n){return e.createElement("div",{key:n,className:"my-0"},t.title&&e.createElement("div",{className:"my-4 font-bold"},t.title),t.sections.map((function(t,n){return e.createElement(Qt,{key:n,onItemClick:function(){return i(t.value)},selected:o,value:t.value,icon:t.icon,title:t.label,chip:"Upgrade"})})))})))},Qt=function(t){var n=t.title,r=t.value,a=t.icon,o=t.chip,i=t.selected,l=t.onItemClick;return e.createElement("div",{onClick:l,className:B("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",i===r?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-300")},e.createElement("div",{className:"flex w-full flex-row items-center justify-start gap-2"},a," ",e.createElement("span",null,n)),o&&e.createElement(q,{label:"Upgrade",size:"normal"})," ")},en=function(t){var n;return e.createElement("div",{className:"flex w-full flex-col gap-0 border p-4"},e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("span",{className:"bg-white-200"},t.title),t.tooltip&&e.createElement(T,{content:t.tooltip,position:"right-top"},e.createElement(Be,null))),e.createElement("div",{className:"bg-white-100 flex flex-row"},e.createElement("div",null,t.currentUsage),e.createElement("div",null," (",t.percent,"%)")),e.createElement("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700"},e.createElement("div",{className:"h-2.5 rounded-full bg-buttonPrimary-500",style:{width:"".concat(null!==(n=t.percent)&&void 0!==n?n:0,"%")}})))};function tn(e){return fe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{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"}}]})(e)}function nn(e){return fe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}var rn=function(n){var r,a=n.direction,o=void 0===a?"ltr":a,i=n.texts,l=void 0===i?{total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"}:i,u=A(n,["direction","texts"]),c=function(t){return e.createElement("div",{className:B(t.start?"items-start":"items-end","flex w-full flex-col")},e.createElement("div",{className:" text-sm text-gray-500"},t.label),e.createElement("div",{className:" whitespace-nowrap"},t.text))},s=t(!1),d=s[0],f=s[1];return e.createElement("div",{className:"flex w-full flex-col"},e.createElement("div",{className:"flex w-full flex-row items-center gap-2 border p-4 "},u.invoiceActions&&e.createElement("div",{className:B("transition-all hover:cursor-pointer ","rtl"===o?"rotate-180":"",d?"rotate-90":""),onClick:function(){return f(!d)}},e.createElement(tn,{fontSize:30})),e.createElement("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:function(){return f(!d)}},e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("span",{className:"bg-white-200"},u.invoiceTitle),u.status&&e.createElement(q,{size:"small",label:u.status})),e.createElement("div",{className:"font-sm text-gray-400"},u.invoiceSubtitle)),e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("div",{className:"whitespace-nowrap"},u.total),e.createElement(oe,{direction:o,position:"rtl"===o?"bottom-right":"bottom-left",menuItems:u.invoiceActions},e.createElement("div",{className:" p-2"},e.createElement(Oe,null))))),d&&e.createElement("div",{className:B(d?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all")},e.createElement("div",{className:"border-b pb-2"},u.invoiceDescription),null===(r=u.products)||void 0===r?void 0:r.map((function(t,n){return e.createElement("div",{key:n,className:"flex flex-row border-b pb-4"},e.createElement("div",{className:"w-full"},e.createElement(c,{start:!0,label:l.plan,text:t.plan})),e.createElement("div",{className:"flex w-full flex-row gap-20 "},e.createElement(c,{label:l.usage,text:"".concat(t.usage," SAR")}),e.createElement(c,{label:l.price,text:"".concat(t.price," SAR")}),e.createElement(c,{label:l.amount,text:"".concat(t.amount," SAR")})))})),e.createElement("div",{className:"flex flex-row justify-between"},e.createElement("div",null,l.total)," ",e.createElement("div",null,u.total))))},an=function(){var n=t(""),r=n[0],a=n[1];return e.createElement("div",{className:"relative inline-block text-left"},e.createElement("span",{className:"rounded-md shadow-sm"},e.createElement("input",{type:"date",value:r,onChange:function(e){a(e.target.value)},className:"block w-full rounded border border-gray-300 bg-white p-2 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"})))},on=function(t){var n=A(t,[]);return e.createElement("div",{className:"relative flex w-full max-w-sm flex-col gap-2 rounded bg-white p-4 shadow-md"},e.createElement("div",{className:"absolute left-2 top-2 p-1.5 text-sm"},n.title),e.createElement("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close"},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))),e.createElement("div",{className:"mt-8"},n.question),e.createElement("div",{className:"flex w-full flex-row gap-1 rounded"},n.options.map((function(t){return e.createElement("span",{onClick:function(){return n.onOptionClicked(t)},className:"w-full cursor-pointer rounded border bg-white p-4 text-center transition-all hover:bg-gray-100"},t)}))),n.texts&&e.createElement("div",{className:" flex flex-row justify-between text-xs"},e.createElement("span",null,n.texts.least),e.createElement("span",null,n.texts.most)))},ln=function(t){return e.createElement(t.icon,{className:t.disabled?"text-gray-300":"hover:text-gray-500",size:t.size,onClick:t.onClick||function(){}})},un=function(t){var n=e.useState(t.index||0),r=n[0],a=n[1];e.useEffect((function(){console.log("INDEX CHANGED TO: ".concat(r))}),[r]);var o={small:["",-8],medium:["2",-11],big:["3",-16]};return e.createElement("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-white p-4 py-6 shadow-md"},e.createElement(ln,{icon:ge,size:t.arrowSize||48,disabled:0==r,onClick:function(){0!=r&&a(r-1)}}),e.createElement("div",{className:"relative box-border flex h-min flex-col items-center justify-center p-5"},e.createElement("div",null,t.items[r].icon),e.createElement("div",{className:"absolute bottom-0 text-".concat(o[t.labelSize||"small"][0],"xl "),style:{marginBottom:o[t.labelSize||"small"][1]}},t.items[r].label)),e.createElement(ln,{icon:he,size:t.arrowSize||48,disabled:r==t.items.length-1,onClick:function(){r!=t.items.length-1&&a(r+1)}}))},cn=function(t){return e.createElement("div",{className:"border-box mr-[5px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-400 p-2",onMouseDown:t.onMouseDown},t.name)},sn={bold:"font-bold",italic:"italic",under:"underline",strike:"line-through"},dn=function(a){var o=t({content:"",stylings:[],revert:[0,0],lastCopy:[],pasted:{status:!1,length:0}}),i=o[0],l=o[1],u=n(null),c=n(i),s=function(e){c.current=e,l(e)},d=function(e){for(var t=0;e=e.previousSibling;t++);return t},f=function(){if(document.activeElement!=u.current)return[0,0];var e=window.getSelection(),t=Array.from(u.current.childNodes);t=t.filter((function(e){return!["#text","BR"].includes(e.nodeName)}));var n=e.anchorNode.parentNode,r=n==u.current?t.length:d(n),a=t.slice(0,r).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0),o=e.focusNode.parentNode,i=o==u.current?t.length:d(o),l=t.slice(0,i).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0);return[a+e.anchorOffset,l+e.focusOffset].sort((function(e,t){return e-t}))};r((function(){setTimeout((function(){var e=c.current.revert,t=e[0],n=e[1];if(0!=t||0!=n){for(var r=null,a=null,o=0,i=Array.from(u.current.childNodes),l=0;l<i.length;l++){var s=i[l],d=s.textContent.length+o;null==r&&t>=o&&t<=d&&(r=i[l],t-=o),null==a&&n>o&&n<=d&&(a=i[l],n-=o),o+=s.textContent.length}var f=document.createRange(),m=window.getSelection();f.setStart(r.firstChild,t),f.setEnd(a.firstChild,n),m.removeAllRanges(),m.addRange(f)}}),1)}),[i.revert]);var m=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},p=function(e){return e.sort((function(e,t){return e-t}))[0]},v=function(e){return e.sort((function(e,t){return t-e}))[0]},g=function(e,t){return e.type!=t.type?-1:t.start<=e.start&&t.finish>=e.finish?0:0==function(e,t){for(var n=new Set,r=0,a=t;r<a.length;r++){var o=a[r];e.has(o)&&n.add(o)}return n}(new Set(m(e.start-1,e.finish-1)),new Set(m(t.start-1,t.finish-1))).size?2:1},h=function(e){var t=c.current.stylings.slice(),n=f(),r=n[0],a=n[1];if(r!=a){for(var o,l={type:e,start:r,finish:a},u=[],d=0;d<t.length;d++){var m=t[d],h=g(l,m);-1!=h&&u.push([h,d,m])}u.find((function(e){var t=e[0];return e[1],e[2],1==t}))?o=function(e,t,n,r){var a=e.filter((function(e){var t=e[0];return e[1],e[2],1==t})).map((function(e){return e[0],[e[1],e[2]]}));a.push([-1,n]);var o=a.map((function(e){return e[0],e[1].start})).sort((function(e,t){return e-t}))[0],i=a.map((function(e){return e[0],e[1].finish})).sort((function(e,t){return t-e}))[0],l=a.map((function(e){return e[0]}));return(t=t.filter((function(e,t){return!l.includes(t)}))).push({type:r,start:o,finish:i}),t}(u,t,l,e):u.find((function(e){var t=e[0];return e[1],e[2],0==t}))?o=function(e,t,n,r){var a=e.find((function(e){var t=e[0];return e[1],e[2],0==t}));a[0];var o=a[1],i=a[2];t=t.filter((function(e,t){return t!=o}));var l=[{type:r,start:p([i.start,n.start]),finish:v([i.start,n.start])},{type:r,start:p([i.finish,n.finish]),finish:v([i.finish,n.finish])}];return l=l.filter((function(e){return e.start!=e.finish})),P(P([],t,!0),l,!0)}(u,t,l,e):(u.find((function(e){var t=e[0];return e[1],e[2],2==t}))||0==u.length)&&(o=P(P([],t,!0),[l],!1)),s(j(j({},i),{stylings:o,revert:[r,a]}))}},b=function(e,t){return e.type==t.type&&e.start==t.start&&e.finish==t.finish},y=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=i.stylings.filter((function(r){var a=r.start,o=r.finish;return e>=a+t&&e<o+n}));return r},x=function(e){return i.stylings.findIndex((function(t){return t.start==e.start&&t.finish==e.finish&&t.type==e.type}))},E=function(e,t){var n=e.filter((function(e){var n=e.start,r=e.finish;return t(n,r)})),r=[];return e.map((function(e,t){n.find((function(t){return b(e,t)}))&&r.push({index:t,type:e.type,start:e.start,finish:e.finish})})),r},D=function(e){setTimeout((function(){for(var t=f(),n=t[0],r=t[1],a=e.length-c.current.content.length,o=n-a,l=c.current.stylings.slice(),u=function(e){var t=i.stylings.filter((function(t){var n=t.start;return t.finish,n>=e}));return t}(o),d=[],m=0,g=u;m<g.length;m++){var h=g[m],y=x(h),D=l[y];d.push([y,D.start+a,D.finish+a])}if(a<0&&(l=function(e,t,n){var r=c.current.stylings.slice(),a=[],o=r.filter((function(e){var r=e.start;return t<r&&n<=r}));r.map((function(t,n){o.find((function(e){return b(t,e)}))&&a.push({index:n,start:t.start-e,finish:t.finish-e})}));var i=r.filter((function(e){var r=e.start,a=e.finish;return t<=r&&n>=a}));r.map((function(e,t){i.find((function(t){return b(e,t)}))&&a.push({index:t,start:e.start,finish:e.start})}));var l=r.filter((function(e){var r=e.start,a=e.finish;return t>r&&n<=a||t>=r&&n<a}));r.map((function(t,n){l.find((function(e){return b(t,e)}))&&a.push({index:n,start:t.start,finish:t.finish-e})}));var u=r.filter((function(e){var r=e.start,a=e.finish;return n<a&&n>r&&t<r}));r.map((function(t,r){u.find((function(e){return b(t,e)}))&&a.push({index:r,start:v([n,t.start])-e,finish:t.finish-e})}));var s=r.filter((function(e){var r=e.start,a=e.finish;return t>r&&t<a&&n>a}));return r.map((function(e,n){s.find((function(t){return b(e,t)}))&&a.push({index:n,start:e.start,finish:p([t,e.finish])})})),a.map((function(e){var t=e.index,n=e.start,a=e.finish;r[t]=j(j({},r[t]),{start:n,finish:a})})),r}(Math.abs(a),n,r+Math.abs(a))),a>0&&(l=function(e,t,n){t-=e+1,n-=e+1;var r=c.current.stylings.slice(),a=[],o=E(r,(function(e,r){return e>t&&e+1>=n})).map((function(t){return j(j({},t),{start:t.start+e,finish:t.finish+e})}));a.push(o),console.log("Addition (".concat(e,")")),console.log([t,n]),r.length>0&&console.log([r[0].start,r[0].finish]);var i=E(r,(function(n,r){return t+1==r&&1==e})).map((function(t){return j(j({},t),{start:t.start,finish:t.finish+e})}));a.push(i);var l=E(r,(function(e,r){return t>=e&&n+1<r})).map((function(t){return j(j({},t),{finish:t.finish+e})}));return a.push(l),console.log(e),console.log("Encapsulated: ".concat(l.length)),console.log("Succeeding: ".concat(o.length)),console.log("Preceding: ".concat(i.length)),a.flat().map((function(e){var t=e.index,n=e.start,a=e.finish;r[t]=j(j({},r[t]),{start:n,finish:a})})),r}(Math.abs(a),n,r)),l=l.filter((function(t){return!(t.start==t.finish||t.start>=e.length&&t.finish>=e.length)})),c.current.pasted.status){l=function(e,t,n,r){console.log("Paste:"),console.log([n,r]),console.log(e);var a=[],o=E(e,(function(e,t){return n<=e&&r>=t})).map((function(e){return j(j({},e),{start:e.start,finish:e.start})}));a.push(o);var i=E(e,(function(e,t){return e<n&&t>r})).map((function(e){return a.push(j(j({},e),{index:-1,start:r,finish:e.finish})),a.push(j(j({},e),{index:-1,start:e.start,finish:n})),j(j({},e),{start:e.start,finish:e.start})}));a.push(i);var l=E(e,(function(e,a){return a>n&&a<=r-t+1&&e<n})).map((function(e){return j(j({},e),{finish:n})}));a.push(l);var u=E(e,(function(e,a){return a>r-t&&e>=n&&e<r-t})).map((function(e){return j(j({},e),{start:r})}));return a.push(u),console.log("Encapsulating: ".concat(o.length)),console.log("Encapsulated: ".concat(i.length)),console.log("Left Intersecting: ".concat(l.length)),console.log("Right Intersecting: ".concat(u.length)),(a=a.flat()).map((function(t){var n=t.index,r=t.start,a=t.finish;-1!=n?e[n]=j(j({},e[n]),{start:r,finish:a}):e.push({type:t.type,start:r,finish:a})})),console.log(e),e}(l,a,n-c.current.pasted.length,n);for(var w=0,C=c.current.lastCopy;w<C.length;w++){D=C[w];D=j(j({},D),{start:D.start+n-c.current.pasted.length,finish:D.finish+n-c.current.pasted.length}),l.push(D)}}l=l.filter((function(t){return!(t.start==t.finish||t.start>=e.length&&t.finish>=e.length)})),s(j(j({},c.current),{content:e,stylings:l,revert:[n,r],pasted:{status:!1,length:0}}))}),0)};return r((function(){var e=function(){var e=c.current.content,t=c.current.stylings.map((function(e){return[e.start,e.finish]})).flat();t=t.sort((function(e,t){return e-t})),0!=(t=t.filter((function(e,n){return t.indexOf(e)==n})))[0]&&t.unshift(0);var n=e.length;t[t.length-1]!=n&&t.push(n);for(var r=[],a=0;a<t.length-1;a++)r.push([t[a],e.substring(t[a],t[a+1])]);return r}().map((function(e,t){var n=e[0],r=e[1],a=y(n);return'<span class="'.concat(a.map((function(e){return sn[e.type]})).join(" "),'" data-child-index="').concat(t,'">').concat(r,"</span>")})).join("");u.current.innerHTML=e}),[i.content,i.stylings,i.revert]),e.createElement("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded bg-blue-300 shadow-md"},e.createElement("div",{className:B("flex w-full flex-row justify-start p-2")},e.createElement(cn,{name:"B",onMouseDown:function(e){e.preventDefault(),h("bold")}}),e.createElement(cn,{name:"I",onMouseDown:function(e){e.preventDefault(),h("italic")}}),e.createElement(cn,{name:"U",onMouseDown:function(e){e.preventDefault(),h("under")}}),e.createElement(cn,{name:"S",onMouseDown:function(e){e.preventDefault(),h("strike")}})),e.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),e.createElement("div",{className:"w-full"},e.createElement("div",{ref:u,contentEditable:"true",className:"h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none p-2 outline-none",onPaste:function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain");document.execCommand("insertHTML",!1,t),console.log(t),s(j(j({},c.current),{pasted:{status:!0,length:t.length}}))},onInput:function(e){D(e.target.textContent)},onCopy:function(e){var t=f(),n=function(e,t){for(var n=[],r=e;r<t;r++)n.push(y(r));return n=(n=(n=n.flat().filter((function(e){return e}))).filter((function(e,t){return n.findIndex((function(t){return t.start==e.start&&t.finish==e.finish&&t.type==e.type}))==t}))).map((function(n){return j(j({},n),{start:v([n.start,e])-e,finish:p([n.finish,t])-e})}))}(t[0],t[1]);s(j(j({},i),{lastCopy:n}))}})),e.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),e.createElement("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white"},"Submit"))};
1
+ import e,{useState as t,useRef as n,useEffect as r,useMemo as a,useReducer as o,useCallback as i,forwardRef as l,useImperativeHandle as u,Fragment as c,createContext as s,useLayoutEffect as d,useContext as f,Component as m,memo as p}from"react";import v from"react-select";import g from"react-select/creatable";import h from"prop-types";import b from"direction";import y from"lodash/debounce";import x from"lodash/throttle";import E from"react-dom";import{useForm as D,FormProvider as w,Controller as C}from"react-hook-form";function F(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=F(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function B(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=F(e))&&(r&&(r+=" "),r+=t);return r}var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},j.apply(this,arguments)};function A(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function O(e,t,n,r){var a=function(e){return t=e,(null!=(r=n)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?e:new n((function(t){t(e)}));var t,r};return new(n||(n=Promise))((function(n,o){var i=function(e){try{u(r.next(e))}catch(e){o(e)}},l=function(e){try{u(r.throw(e))}catch(e){o(e)}},u=function(e){e.done?n(e.value):a(e.value).then(i,l)};u((r=r.apply(e,t||[])).next())}))}function k(e,t){var n,r,a,o,i=function(e){return function(t){return l([e,t])}},l=function(i){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,i[0]&&(u=0)),u;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(a=u.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){u.label=i[1];break}if(6===i[0]&&u.label<a[1]){u.label=a[1],a=i;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(i);break}a[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}},u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o}function N(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function P(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var S=function(t){var n=t.size,r=void 0===n?"sm":n;A(t,["size"]);return e.createElement("div",{className:"flex flex-row gap-x-3"},e.createElement("div",{className:B({button:"h-4 w-4",sm:"h-6 w-6",normal:"h-8 w-8",lg:"h-14 w-14",xl:"h-24 w-24"}[r],"animate-spin rounded-full border-4 border-gray-400 border-t-white text-white")}))},T=function(a){var o=a.children,i=a.content,l=a.size,u=void 0===l?"normal":l,c=a.position,s=void 0===c?"top-right":c,d=a.direction,f=void 0===d?"ltr":d,m=t(!1),p=m[0],v=m[1],g=n(null),h=t(null),b=h[0],y=h[1],x=t(null),E=x[0],D=x[1],w=n(null),C=t(null),F=C[0],j=C[1],A=t(null),O=A[0],k=A[1];r((function(){var e,t,n,r;k(null===(e=w.current)||void 0===e?void 0:e.getBoundingClientRect().height),j(null===(t=w.current)||void 0===t?void 0:t.getBoundingClientRect().width),y(null===(n=g.current)||void 0===n?void 0:n.getBoundingClientRect().height),D(null===(r=g.current)||void 0===r?void 0:r.getBoundingClientRect().width)}));var N;switch(s){case"top-right":N="rtl"===f?"".concat(F-E,"px, -").concat(O+b+5,"px"):"0px, -".concat(O+b+5,"px");break;case"top-left":N="rtl"===f?"".concat(0,"px, -").concat(O+b+5,"px"):"-".concat(F-E,"px, -").concat(O+b+5,"px");break;case"bottom-right":N="rtl"===f?"".concat(F-E,"px, ").concat(5,"px"):"-".concat(0,"px, ").concat(5,"px");break;case"bottom-left":N="rtl"===f?"0px, ".concat(5,"px"):"-".concat(F-E,"px,").concat(5,"px");break;case"right-bottom":N="rtl"===f?"".concat(F+5,"px, -").concat(b,"px"):"".concat(E+5,"px, -").concat(b,"px");break;case"right-top":N="rtl"===f?"".concat(F+5,"px, -").concat(O,"px"):"".concat(E+5,"px, -").concat(O,"px");break;case"left-bottom":N="rtl"===f?"-".concat(E+5,"px, -").concat(b,"px"):"-".concat(F+5,"px, -").concat(b,"px");break;case"left-top":N="rtl"===f?"-".concat(E+5,"px, -").concat(O,"px"):"-".concat(F+5,"px, -").concat(O,"px");break;default:N="-".concat(F/2,"px, -").concat(b+O/2,"px")}return e.createElement("div",{onMouseEnter:function(){return v(!0)},onMouseLeave:function(){return v(!1)}},e.createElement("div",{ref:g},o),e.createElement("div",{ref:w,style:{position:"absolute",width:"max-content",transform:"translate(".concat(N,")"),opacity:p?"1":"0",maxWidth:"200px"},className:B("absolute z-10 rounded bg-gray-900 text-center text-sm font-medium text-white shadow-sm transition-all duration-300 dark:bg-gray-700",{normal:"py-2 px-3 leading-2",small:"py-2 px-2 text-[10px] leading-tight",large:"py-2 px-2 text-lg leading-tight"}[u])},i))},R="cursor-default pointer-events-none",M={contained:"text-gray-300 bg-gray-100",outlined:"text-gray-300 border-gray-300"},_=function(t){var n=t.className,r=t.variant,a=void 0===r?"contained":r,o=t.color,i=void 0===o?"default":o,l=t.size,u=void 0===l?"medium":l,c=t.width,s=void 0===c?"normal":c,d=t.disabled,f=void 0!==d&&d,m=t.isLoading,p=void 0!==m&&m,v=t.tooltip,g=t.tooltipSize,h=void 0===g?"normal":g,b=t.tooltipPosition,y=void 0===b?"top-left":b,x=t.tooltipDirection,E=void 0===x?"ltr":x,D=t.margins,w=void 0===D?"2":D,C=t.children,F=t.badge,j=A(t,["className","variant","color","size","width","disabled","isLoading","tooltip","tooltipSize","tooltipPosition","tooltipDirection","margins","children","badge"]),O="cursor-pointer h-[2.36rem] justify-center items-center text-center font-medium rounded transition-all",k={xs:"px-1 py-1",small:"text-xs px-2.5 py-1.5",medium:"text-sm leading-4 px-3 py-2",large:"text-sm px-4 py-2",noPadding:"p-0",full:"h-full max-h-full p-2"},N={full:"w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",half:"w-full text-center flex items-center justify-center h-full",normal:"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"},P={contained:"border-transparent",outlined:"bg-transparent border"},_={contained:{default:"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",primary:"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",secondary:"text-neutral-900 bg-buttonSecondary-default hover:text-white hover:bg-buttonSecondary-700"},outlined:{default:"text-gray-600 border-gray-600 hover:bg-gray-200",primary:"text-black hover:bg-gray-50",secondary:"text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white"}};return e.createElement("div",{className:B("relative","none"!==w?"my-".concat(w):"m-0",{full:"w-full flex justify-center text-center inline-flex items-center",half:"w-1/2",normal:"w-fit"}[s])},v?e.createElement(T,{direction:E,position:y,size:h,content:v},e.createElement("button",{className:f?B(n,O,P[a],k[u],N[s],R,M[a]):B(n,O,P[a],k[u],_[a][i],N[s]),disabled:f,onClick:j.onClick},p?e.createElement(S,{size:"button"}):C)):e.createElement("button",{className:f?B(n,O,P[a],k[u],N[s],R,M[a]):B(n,O,P[a],k[u],_[a][i],N[s]),disabled:f,onClick:j.onClick},p?e.createElement(S,{size:"button"}):e.createElement("div",{className:"flex flex-row items-center gap-2 whitespace-nowrap"},j.startIcon&&j.startIcon,C,j.endIcon&&j.endIcon)),F&&e.createElement("div",{className:"absolute -top-3 -right-3 inline-flex h-6 w-6 items-center justify-center rounded-full border-2 border-white bg-red-500 text-xs font-bold text-white dark:border-gray-900"},F))},L=function(a){var o=a.title,i=a.description,l=a.severity,u=void 0===l?"info":l,c=a.position,s=void 0===c?"bottom-left":c,d=a.actions;a.handleClose;var f=a.duration,m=t(!1),p=m[0],v=m[1],g=n(null);return r((function(){if(f){var e=setTimeout((function(){v(!0)}),f),t=setTimeout((function(){v(!0),g.current.removeChild(g.current.children[0])}),f+1e3);return function(){clearTimeout(e),clearTimeout(t)}}}),[f]),e.createElement("div",{ref:g},e.createElement("div",{id:"toast-default",role:"alert",className:B("fixed flex flex-row items-top p-1 w-full max-w-xs rounded shadow dark:text-gray-400 dark:bg-gray-800",{info:"text-blue-700 bg-blue-100",warning:"text-yellow-700 bg-yellow-100",error:"text-red-700 bg-red-100",success:"text-green-700 bg-green-100",none:"text-gray-500 bg-white "}[u],{"top-left":"top-4","top-right":"top-4 right-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-left":"bottom-4","bottom-right":"bottom-4 right-4","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"}[s],"p-2 transition-all",p?"opacity-0":"opacity-100")},e.createElement("div",{className:"w-full p-3 flex flex-col gap-2"},e.createElement("div",{className:"text-sm font-bold"},o),e.createElement("div",{className:"text-sm font-normal"},i),d&&e.createElement("div",{className:"mt-2 flex flex-row gap-2"},d.map((function(t,n){return e.createElement(_,{key:n,variant:t.variant,onClick:t.onClick(),margins:"none"},t.icon&&t.icon,t.label)})))),e.createElement("button",{type:"button",className:"right-0 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close",onClick:function(){return v(!0)}},e.createElement("span",{className:"sr-only"},"Close"),e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})))))},z=function(t){var n=t.size,r=void 0===n?"normal":n,a=A(t,["size"]);return e.createElement("label",{htmlFor:"default-toggle",className:"relative inline-flex cursor-pointer items-center"},e.createElement("input",{type:"checkbox",value:"",id:"default-toggle",className:"peer sr-only"}),e.createElement("div",{className:B({small:"",normal:"peer-checked:after:translate-x-full h-6 w-11 after:top-[2px] after:left-[2px] after:h-5 after:w-5 ",large:"peer-checked:after:translate-x-[2.445rem] h-10 w-20 after:top-[2px] after:left-[2px] after:h-9 after:w-9"}[r],"peer rounded-full bg-gray-200 after:absolute after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:bg-buttonPrimary-500 peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-buttonPrimary-700")}),a.text&&e.createElement("span",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},a.text))},I=function(n){var a=t(n.val),o=a[0],i=a[1];return r((function(){n.onChange(o)}),[o]),e.createElement("div",{className:B(n.centered?"flex h-full items-center justify-center":"flex h-full items-start ")},e.createElement("input",{type:"checkbox",checked:o,onChange:function(e){return i(e.target.checked)},id:n.id,"aria-label":n.label,className:"mt-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-2 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-blue-600"}),(n.label||n.helperText)&&e.createElement("div",{className:" flex cursor-pointer flex-col py-2",onClick:function(e){return i(!o)}},n.label&&e.createElement("label",{className:"mx-2 text-sm font-medium text-gray-900 dark:text-gray-300"},n.label),n.helperText&&e.createElement("p",{className:"mx-2 mt-1 text-xs text-red-600 dark:text-red-500"},n.helperText)))},W=function(n){var r=t(n.defaultValue);return r[0],r[1],e.createElement("div",null,e.createElement("div",{className:"mb-4 border-b border-gray-200 dark:border-gray-700"},e.createElement("ul",{className:"-mb-px flex flex-wrap text-center text-sm font-medium",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist"},n.options.map((function(t,n){return e.createElement("li",{key:n,className:"mr-2",role:"presentation"},e.createElement("button",{className:"inline-block rounded-t-lg border-b-2 border-blue-600 p-4 text-blue-600 hover:text-blue-600 dark:border-blue-500 dark:text-blue-500 dark:hover:text-blue-500",id:"".concat(t.value,"-tab"),"data-tabs-target":"#".concat(t.value),type:"button",role:"tab","aria-controls":t.value,"aria-selected":"true"},t.label))})))),e.createElement("div",{id:"myTabContent"},n.options.map((function(t,n){return e.createElement("div",{key:n,className:"rounded bg-gray-50 p-4 dark:bg-gray-800",id:t.value,role:"tabpanel","aria-labelledby":"".concat(t.value,"-tab")},t.content)}))))},q=function(t){var n=t.size,r=void 0===n?"normal":n,a=t.label,o=t.icon,i=t.color,l=t.dot,u=t.dotType,c=void 0===u?"available":u;return e.createElement("span",{className:B("flex flex-row w-fit gap-1 items-center rounded px-2.5 py-0.5 font-bold text-blue-800 dark:bg-blue-200 dark:text-blue-800",{small:"h-full leading-4 px-1 py-0 text-[9px] gap-0.5 ",normal:"h-fit text-xs",large:""}[r],i?"bg-".concat(i,"-100 text-").concat(i,"-500"):"bg-layoutPrimary-500")},l&&e.createElement("span",{className:B({small:"flex h-1 w-1 rounded-full",normal:"flex h-2 w-2 rounded-full",large:"flex h-3 w-3 rounded-full"}[r],{available:"bg-green-500",unavailable:"bg-red-500"}[c])}),o&&o,a)};function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){V(e,t,n[t])}))}return e}function G(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var H=function(t){var n=t.margin,r=void 0===n?"normal":n,a=t.width,o=void 0===a?"full":a,i=t.preview,l=void 0!==i&&i,u=A(t,["margin","width","preview"]),c="block w-full rounded border border-gray-300 bg-white p-2 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";return e.createElement("div",{className:B("flex max-h-fit flex-col justify-center",{none:"mb-0",normal:"mb-3",large:"mb-5"}[r],{small:"w-full max-w-2xs",normal:"w-1/2",full:"w-full"}[o])},u.label&&e.createElement("label",{htmlFor:"first_name",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},u.label),l?e.createElement(e.Fragment,null,u.multiline?e.createElement("textarea",U({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):e.createElement("div",{className:"relative"},u.icon&&e.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),e.createElement("div",{className:B("block w-full rounded bg-gray-50 p-2 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",u.icon?"pl-10":"")},u.value))):e.createElement(e.Fragment,null,u.multiline?e.createElement("textarea",U({id:"message",rows:4,className:c,onChange:u.onChange,type:u.type,"aria-label":u.label,placeholder:u.placeholder,defaultValue:u.defaultValue,value:u.value},u)):e.createElement("div",{className:"relative"},u.icon&&e.createElement("div",{className:"absolute left-3 top-1/2 -translate-y-1/2"},u.icon),e.createElement("input",G(U({},u),{className:B(c,u.icon?"pl-10":"")}))),u.helperText&&e.createElement("p",{className:"mb-0 mt-1 text-xs text-red-600 dark:text-red-500"},u.helperText)))},K=function(n){var r=t(n.color),a=r[0],o=r[1];return e.createElement("div",{className:"flex w-fit flex-row rounded border-2 border-gray-200 p-0"},e.createElement("div",{style:{backgroundColor:a},className:"rounded-tl-lg rounded-bl-lg"},e.createElement("input",{type:"color",value:a,onChange:function(e){o(e.target.value),n.handleChange(e)},className:"opacity-0"})),e.createElement("input",{type:"text",value:a,className:"w-24 rounded-tr-lg rounded-br-lg pr-2 pl-2"}))},Z=function(t){var n=t.value,r=t.handleChange,a=t.startElement,o=t.endElement,i=t.label,l=A(t,["value","handleChange","startElement","endElement","label"]),u=e.useState(n),c=u[0],s=u[1];return e.createElement("div",l,i&&e.createElement("label",{htmlFor:"default-range",className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},i),e.createElement("div",{className:"flex w-fit flex-row items-center justify-center"},e.createElement("div",{className:"mr-2"},a)," ",e.createElement("input",{id:"default-range",type:"range",value:c,onChange:function(e){s(e.target.value),r(e)},className:"h-2 w-fit cursor-pointer appearance-none rounded bg-gray-200 dark:bg-gray-700"}),e.createElement("div",{className:"ml-2"},o)," "))},Y=function(n){var r,a,o=t(n.defaultValue),i=o[0],l=o[1];return e.createElement("div",null,e.createElement("ul",{className:B((null===(r=n.options)||void 0===r?void 0:r.length)>2?"flex-wrap xs:max-w-full xs:flex-nowrap":"","flex max-w-fit flex-row whitespace-nowrap rounded bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400")},null===(a=n.options)||void 0===a?void 0:a.map((function(t,r){return e.createElement("li",{className:"w-full",key:r},e.createElement("button",{"aria-current":"page",onClick:function(){l(t.value),n.onChangeTab(t.value)},className:i===t.value?"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-500 rounded active":"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"},t.label))}))))};function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}var X=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef,o=t.size,i=void 0===o?"normal":o;A(t,["cx","children","getStyles","innerProps","innerRef","size"]);return e.createElement("div",J({ref:a,className:B({small:"h-7 text-xs",normal:"h-[2.36rem] text-sm",large:""}[i],"flex w-full rounded border border-gray-300 bg-gray-50 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")},r),n)},Q=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef;return A(t,["cx","children","getStyles","innerProps","innerRef"]),e.createElement("div",J({className:"absolute z-10 mt-2 flex w-full flex-col justify-start rounded bg-white p-1 px-1.5 ring-1 ring-blue-200",ref:a},r),n)},ee=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef;return t.size,A(t,["cx","children","getStyles","innerProps","innerRef","size"]),e.createElement("div",J({ref:a,className:"flex flex-row items-center justify-between rounded p-1 px-2 hover:bg-buttonPrimary-500 hover:text-white"},r),n)},te=function(t){return e.createElement("div",null,t.label&&e.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},t.label),!t.isCreatable&&e.createElement(v,{isDisabled:t.disabled,options:t.options,isClearable:t.isClearable,isMulti:t.isMulti,isSearchable:t.isSearchable,onChange:function(e,n){return t.onChange(e,n)},components:{Control:X,Option:ee,Menu:Q},getOptionLabel:t.getOptionLabel}),t.isCreatable&&e.createElement(g,{styles:{input:function(e){return j(j({},e),{"input:focus":{boxShadow:"none"}})},control:function(e){return j(j({},e),{borderRadius:"0.75rem"})},menu:function(e){return j(j({},e),{borderRadius:"0.75rem",padding:0,display:"flex",justifyContent:"center"})},menuList:function(e){return j(j({},e),{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%"})},option:function(e){return j(j({},e),{borderRadius:"0.75rem",margin:3,width:"98%"})}},options:t.options,isClearable:t.isClearable,isMulti:t.isMulti,isSearchable:t.isSearchable,onCreateOption:function(){return console.log("im changing")},onChange:function(e,n){return t.onChange(e,n)},onInputChange:function(e,n){return t.onInputChange(e,n)}}),t.helperText&&e.createElement("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500"},t.helperText))},ne=function(t){var n=t.settingsLabel,r=t.settingsType,a=t.settingsDescription,o=t.colorProps,i=t.rangeProps,l=t.radioProps,u=t.switchProps,c=t.selectProps;return e.createElement("div",{className:"flex max-h-fit flex-row items-center justify-between rounded align-middle"},e.createElement("div",null,e.createElement("div",{className:"text-sm"},n),a&&e.createElement("div",{className:"text-xs"},a)," "),"text"===r&&e.createElement(H,{margin:"none",width:"small"}),"boolean"===r&&e.createElement(z,u),"range"===r&&e.createElement(Z,i),"color"===r&&e.createElement(K,o),"radio"===r&&e.createElement(Y,l),"select"===r&&e.createElement(te,c))},re=function(t){return e.createElement("div",null,t.children)},ae=function(t){var n=t.variant,r=void 0===n?"normal":n,a=t.direction,o=void 0===a?"ltr":a,i=A(t,["variant","direction"]);return e.createElement("div",{className:B("mb-4 flex flex-col rounded p-4 text-sm",{normal:{info:"text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"top-accent":{info:"border-t-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-t-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-t-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-t-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"left-accent":{info:"border-l-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-l-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-l-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-l-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"right-accent":{info:"border-r-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-r-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-r-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-r-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"},"bottom-accent":{info:"border-b-4 border-blue-300 text-blue-700 bg-blue-100 dark:bg-blue-200 dark:text-blue-800",warning:"border-b-4 border-yellow-300 text-yellow-700 bg-yellow-100 dark:bg-yellow-200 dark:text-yellow-800",error:"border-b-4 border-red-300 text-red-700 bg-red-100 dark:bg-red-200 dark:text-red-800",success:"border-b-4 border-green-300 text-green-700 bg-green-100 dark:bg-green-200 dark:text-green-800"}}[r][i.severity]),role:"alert",dir:o},e.createElement("span",{className:"font-medium"},i.title),e.createElement("span",null," "+i.text),i.actions&&e.createElement("div",{className:"mt-2 flex flex-row gap-2"},i.actions.map((function(t,n){return e.createElement(_,{key:n,variant:t.variant,onClick:t.onClick(),margins:"none"},t.label)}))))},oe=function(a){var o=a.menuItems,i=a.withHeader,l=a.direction,u=void 0===l?"ltr":l,c=a.headerTitle,s=a.headerSubtitle,d=a.size,f=void 0===d?"normal":d,m=a.children,p=a.onClickOutside,v=a.actionedItem,g=a.position,h=void 0===g?"top-right":g,b=t(!1),y=b[0],x=b[1],E=n(null),D=t(null),w=D[0],C=D[1],F=t(null),j=F[0],A=F[1],O=n(null),k=t(null),N=k[0],P=k[1],S=t(null),T=S[0],R=S[1];r((function(){var e,t,n,r;R(null===(e=O.current)||void 0===e?void 0:e.getBoundingClientRect().height),P(null===(t=O.current)||void 0===t?void 0:t.getBoundingClientRect().width),C(null===(n=E.current)||void 0===n?void 0:n.getBoundingClientRect().height),A(null===(r=E.current)||void 0===r?void 0:r.getBoundingClientRect().width);var a=function(e){O.current&&!O.current.contains(e.target)&&x(!1)};return document.addEventListener("click",a,!0),function(){document.removeEventListener("click",a,!0)}}),[p]);var M,_={small:"text-[11px] p-1 px-4 m-0",normal:"py-2 px-4",large:""};switch(h){case"top-right":M="rtl"===u?"".concat(N-j,"px, -").concat(T+w+5,"px"):"0px, -".concat(T+w+5,"px");break;case"top-left":M="rtl"===u?"".concat(0,"px, -").concat(T+w+5,"px"):"-".concat(N-j,"px, -").concat(T+w+5,"px");break;case"bottom-right":M="rtl"===u?"-".concat(0,"px, ").concat(5,"px"):"-".concat(j-N,"px, ").concat(5,"px");break;case"bottom-left":M="rtl"===u?"0px, ".concat(5,"px"):"-".concat(N-j,"px,").concat(5,"px");break;case"right-bottom":M="rtl"===u?"".concat(N+5,"px, -").concat(w,"px"):"".concat(j+5,"px, -").concat(w,"px");break;case"right-top":M="rtl"===u?"".concat(N+5,"px, -").concat(T,"px"):"".concat(j+5,"px, -").concat(T,"px");break;case"left-bottom":M="rtl"===u?"-".concat(j+5,"px, -").concat(w,"px"):"-".concat(N+5,"px, -").concat(w,"px");break;case"left-top":M="rtl"===u?"-".concat(j+5,"px, -").concat(T,"px"):"-".concat(N+5,"px, -").concat(T,"px");break;default:M="-".concat(N/2,"px, -").concat(w+T/2,"px")}return e.createElement("div",{onClick:function(){x(!y)}},e.createElement("div",{ref:E},m),e.createElement("div",{ref:O,style:{position:"absolute",width:"max-content",transform:"translate(".concat(M,")"),maxWidth:"200px"},className:B("border-none absolute ring-offset-1 absolute z-10 w-44 divide-y divide-gray-100 overflow-y-clip rounded bg-gray-50 shadow-lg transition-all dark:bg-gray-700",y?"opacity-100":"invisible opacity-0")},i&&e.createElement("div",{className:"py-3 px-4 text-xs text-gray-900 dark:text-white"},e.createElement("div",null,c),e.createElement("div",{className:"truncate font-medium"},s)),null==o?void 0:o.map((function(t,n){return e.createElement("ul",{key:n,className:"bg-layout-1200 flex flex-col gap-1 p-1 text-gray-700 dark:text-gray-200"},null==t?void 0:t.map((function(t,n){return t.element?e.createElement("li",{key:n,className:"cursor-pointer items-center rounded hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"},t.element):e.createElement("li",{key:n,onClick:function(){t.disabled?console.log("button is disabled"):null==t||t.action(v)},className:B(t.isButton?"flex cursor-pointer flex-row items-center rounded bg-buttonPrimary-500 py-2 px-4 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse dark:hover:bg-buttonPrimary-700 dark:hover:text-white":" flex flex-row items-center rounded rtl:flex-row-reverse ",_[f],t.disabled?"text-gray-300":" cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 dark:hover:text-white")},t.icon&&e.createElement("div",{className:"small"===f?"mr-1 rtl:ml-1":"mr-2 rtl:ml-2"},t.icon),t.label)})))}))))},ie=function(e,n,a){var o=t([]),i=o[0],l=o[1],u=t([]),c=u[0],s=u[1];return r((function(){if(e){var t=function(e,t){for(var n=[],r=Math.ceil((null==e?void 0:e.length)/t),a=1;a<=r;a++)n.push(a);return n}(e,a);l(P([],t,!0));var r=function(e,t,n){return null==e?void 0:e.slice((t-1)*n,t*n)}(e,n,a);s(P([],r,!0))}}),[e,l,n,s,a]),{slice:c,range:i}},le={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ue=e.createContext&&e.createContext(le),ce=function(){return ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ce.apply(this,arguments)},se=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function de(t){return t&&t.map((function(t,n){return e.createElement(t.tag,ce({key:n},t.attr),de(t.child))}))}function fe(t){return function(n){return e.createElement(me,ce({attr:ce({},t.attr)},n),de(t.child))}}function me(t){var n=function(n){var r,a=t.attr,o=t.size,i=t.title,l=se(t,["attr","size","title"]),u=o||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",ce({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,l,{className:r,style:ce(ce({color:t.color||n.color},n.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&e.createElement("title",null,i),t.children)};return void 0!==ue?e.createElement(ue.Consumer,null,(function(e){return n(e)})):n(le)}function pe(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}}]})(e)}function ve(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function ge(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function he(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function be(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function ye(e){return fe({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}}]})(e)}function xe(e){return fe({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}}]})(e)}function Ee(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"}}]})(e)}function De(e){return fe({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"}}]})(e)}function we(e){return fe({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(e)}function Ce(e){return fe({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function Fe(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}function Be(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}}]})(e)}function je(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"}}]})(e)}function Ae(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"}}]})(e)}function Oe(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"}}]})(e)}function ke(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}}]})(e)}function Ne(e){return fe({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}var Pe=function(n){var a,o,i,l,u,c,s,d,f,m,p,v,g,h,b,y,x,E,D=n.size,w=void 0===D?"normal":D,C=n.bodyColor,F=void 0===C?"white":C,j=n.headerColor,O=void 0===j?"gray-200":j,k=n.borders,N=n.highlightFirst,P=void 0!==N&&N,S=n.direction,T=void 0===S?"ltr":S,R=n.bordersWidth,M=void 0===R?"1":R,L=n.pagination,z=void 0===L||L,I=A(n,["size","bodyColor","headerColor","borders","highlightFirst","direction","bordersWidth","pagination"]),W=t(10),q=W[0],V=W[1],U=t(null),G=U[0],K=U[1],Z=t(1),Y=Z[0],$=Z[1],J=ie(I.rows,Y,q),X=J.slice,Q=J.range;r((function(){(null==X?void 0:X.length)<1&&1!==Y&&$(Y-1),G&&$(G)}),[X,Y]);var ee="rtl"===T,te={normal:"py-3 px-6",small:"px-3 py-1"};return e.createElement("div",{className:"relative flex flex-col gap-2 "},e.createElement("div",{className:"overflow-x-auto rounded bg-".concat(O)},I.headerTools&&e.createElement("div",{className:"flex flex-row items-center justify-between gap-2 px-4 py-2"},e.createElement(H,{icon:e.createElement(we,{color:"gray"}),placeholder:"Search",width:"full",margin:"none"}),e.createElement("div",{className:"flex flex-row items-center justify-between gap-2"},e.createElement(_,{startIcon:e.createElement(je,null),endIcon:e.createElement(Fe,null)},null!==(o=null===(a=I.texts)||void 0===a?void 0:a.filter)&&void 0!==o?o:"Filter"))),e.createElement("table",{className:B("outer"===k||"all"===k?"outline outline-[".concat(M,"px] -outline-offset-1 outline-gray-300"):"","w-full rounded text-left text-sm text-gray-500 dark:text-gray-400","bg-".concat(O))},e.createElement("thead",{className:B("text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400","rows"===k||"all"===k||"inner"===k?"border-b ":"")},e.createElement("tr",null,I.columns.map((function(t,n){return t.hidden?void 0:e.createElement("th",{key:n,scope:"col",colSpan:2,className:B(te[w],0===n||"cols"!==k&&"all"!==k&&"inner"!==k?"":"border-r border-r-[".concat(M,"px] border-l border-l-[").concat(M,"px]"))},t.value)})),I.actions?e.createElement("th",{scope:"col",className:B(te[w],"w-[calc(1%)] text-center")},null!==(l=null===(i=I.texts)||void 0===i?void 0:i.actions)&&void 0!==l?l:"Actions"):null)),e.createElement("tbody",{className:F&&I.rows?"bg-".concat(F):"bg-transparent"},I.rows?null==X?void 0:X.map((function(t,n){var r=n==(null==X?void 0:X.length)-1;return e.createElement("tr",{key:n,className:B(" dark:border-gray-700 dark:bg-gray-800",I.clickable?"hover:bg-gray-100":"",r||"all"!==k&&"rows"!==k&&"inner"!==k?"":"border-b border-b-[".concat(M,"px]"))},null==t?void 0:t.map((function(n,a){var o=0===a,i=a===(null==t?void 0:t.length)-1,l=ee&&r&&i&&!I.actions,u=ee&&r&&o,c=!ee&&r&&o,s=!ee&&r&&i&&!I.actions;return n.hidden?void 0:e.createElement("td",{colSpan:2,key:a,className:B(te[w],P&&o?"font-bold":"font-normal",u?"rounded-bl-none rounded-br":l||c?"rounded-bl rounded-br-none":s?"rounded-bl-none rounded-br":"",(o||i||"cols"!==k&&"inner"!==k&&"all"!==k)&&(o||!I.actions||"cols"!==k&&"inner"!==k&&"all"!==k)?"":"border-l border-l-[".concat(M,"px] border-r border-r-[").concat(M,"px]"))},n.value)})),I.actions?"small"!==w?e.createElement("td",{align:ee?"right":"left",className:B(ee&&r?"rounded-bl rounded-br-none":"",!ee&&r?"rounded-bl-none rounded-br":""),colSpan:1},e.createElement("div",{className:"flex items-center justify-center"},e.createElement(oe,{size:"small",actionedItem:[n,t],menuItems:I.actions,position:"rtl"===T?"right-bottom":"left-bottom",direction:T},e.createElement("div",{className:"flex w-fit items-center justify-center rounded p-2 hover:bg-gray-200"},e.createElement(ke,null))))):e.createElement("div",{className:"flex flex-row items-center justify-center gap-2 p-1"},I.actions[0].map((function(t){return e.createElement("div",{className:" p-1 hover:bg-gray-100 transition-all"},t.icon)}))):null)})):e.createElement("tr",{className:"bg-transparent"},e.createElement("td",{colSpan:20},e.createElement("div",{className:B("w-full rounded-b bg-white p-5 text-center",F?"bg-".concat(F):"bg-white")},null!==(c=null===(u=I.texts)||void 0===u?void 0:u.noData)&&void 0!==c?c:"No Data")))))),z&&e.createElement("div",{className:"flex flex-row items-center justify-between "},Q.length>1?e.createElement("div",{className:"flex w-fit flex-row items-stretch justify-center gap-2 overflow-clip rounded "},e.createElement("div",{className:B("flex h-6 w-6 rotate-180 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 "),onClick:function(){return $(Y<=1?Q.length:Y-1)}},e.createElement(Fe,null)),e.createElement("div",{className:"flex flex-row items-center overflow-clip rounded transition-all"},Q.length>6&&Q.map((function(t,n){if(n<=0)return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)})),(null==Q?void 0:Q.length)>6&&e.createElement("input",{type:"text",className:" w-10 bg-gray-100 p-1 text-center text-xs",defaultValue:0!==Y||Y!==Q.length-1?Y:"...",value:1==Y||Y==Q.length?"...":G||Y,onChange:function(e){return K(parseInt(e.target.value))},onKeyDown:function(e){"Enter"===e.key&&($(G),K(null))}}),(null==Q?void 0:Q.length)>6&&Q.map((function(t,n){if(n>=Q.length-1)return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)})),(null==Q?void 0:Q.length)<=6&&Q.map((function(t,n){return e.createElement("button",{key:n,className:B("w-10 p-1 text-xs hover:bg-gray-200",Y===t?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"bg-gray-100"),onClick:function(){return $(t)}},t)}))),e.createElement("div",{onClick:function(){return Y>=Q.length?$(1):$(Y+1)},className:B("flex h-6 w-6 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 ")},e.createElement(Fe,null))):e.createElement("div",null),I.rows?e.createElement("div",{className:"flex w-fit flex-row items-center gap-2 "},e.createElement("div",{className:"text-xs "},I.rows.length," ",null!==(d=null===(s=I.texts)||void 0===s?void 0:s.items)&&void 0!==d?d:"Items"),e.createElement("select",{value:q,className:"h-6 rounded text-xs",onChange:function(e){V(parseInt(e.target.value))}},e.createElement("option",{value:10,style:{fontSize:10}},"10 / ",null!==(m=null===(f=I.texts)||void 0===f?void 0:f.page)&&void 0!==m?m:"Page"),e.createElement("option",{value:20,style:{fontSize:10}},"20 / ",null!==(v=null===(p=I.texts)||void 0===p?void 0:p.page)&&void 0!==v?v:"Page"),e.createElement("option",{value:30,style:{fontSize:10}},"30 / ",null!==(h=null===(g=I.texts)||void 0===g?void 0:g.page)&&void 0!==h?h:"Page"),e.createElement("option",{value:50,style:{fontSize:10}},"50 / ",null!==(y=null===(b=I.texts)||void 0===b?void 0:b.page)&&void 0!==y?y:"Page"),e.createElement("option",{value:100,style:{fontSize:10}},"100 / ",null!==(E=null===(x=I.texts)||void 0===x?void 0:x.page)&&void 0!==E?E:"Page"))):e.createElement("div",null)))};function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=function(t){return e.createElement(H,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Se(e,t,n[t])}))}return e}({type:"search"},t))},Re=function(t){var n=e.useState(!1),r=n[0],a=n[1];return e.createElement("div",null,e.createElement("button",{id:"accordion-collapse-heading-"+t.count,type:"button",className:B(r?"rounded":"rounded-t","flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"),onClick:function(){return a(!r)},"data-accordion-target":"#accordion-collapse-body-"+t.count,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+t.count},e.createElement("span",null,t.title),e.createElement("svg",{"data-accordion-icon":"",className:"h-6 w-6 ".concat(r?"":"rotate-180"," shrink-0 transition-all"),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{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",clipRule:"evenodd"}))),e.createElement("div",{id:"accordion-collapse-body-"+t.count,"aria-labelledby":"accordion-collapse-heading-"+t.count,className:B(r?"invisible hidden h-0 p-0":" visible h-full","rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900")},e.createElement("p",{className:"mb-2 text-gray-500 dark:text-gray-400"},t.content)))},Me=function(t){return e.createElement("div",{id:"accordion-collapse","data-accordion":"collapse",className:"flex flex-col gap-3"},t.content.map((function(n,r){return e.createElement(Re,{title:n.title,content:n.content,count:t.content.length-1===r?-1:r})})))},_e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Le(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=_e.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var ze=[".DS_Store","Thumbs.db"];function Ie(e){return"object"==typeof e&&null!==e}function We(e){return Ge(e.target.files).map((function(e){return Le(e)}))}function qe(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Le(e)}))]}}))}))}function Ve(e,t){return O(this,void 0,void 0,(function(){var n;return k(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=Ge(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(He))]):[3,2];case 1:return[2,Ue(Ke(r.sent()))];case 2:return[2,Ue(Ge(e.files).map((function(e){return Le(e)})))]}}))}))}function Ue(e){return e.filter((function(e){return-1===ze.indexOf(e.name)}))}function Ge(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function He(e){if("function"!=typeof e.webkitGetAsEntry)return Ze(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$e(t):Ze(e)}function Ke(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(N(arguments[t]));return e}(e,Array.isArray(t)?Ke(t):[t])}),[])}function Ze(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Le(t);return Promise.resolve(n)}function Ye(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return[2,e.isDirectory?$e(e):Je(e)]}))}))}function $e(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function a(){var o=this;t.readEntries((function(t){return O(o,void 0,void 0,(function(){var o,i,l;return k(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=u.sent(),e(o),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(Ye)),r.push(l),a(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Je(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Le(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Xe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t}))}return!0};function Qe(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ot=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},it=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},lt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},ut={code:"too-many-files",message:"Too many files"};function ct(e,t){var n="application/x-moz-file"===e.type||Xe(e,t);return[n,n?null:ot(t)]}function st(e,t,n){if(dt(e.size))if(dt(t)&&dt(n)){if(e.size>n)return[!1,it(n)];if(e.size<t)return[!1,lt(t)]}else{if(dt(t)&&e.size<t)return[!1,lt(t)];if(dt(n)&&e.size>n)return[!1,it(n)]}return[!0,null]}function dt(e){return null!=e}function ft(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function mt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function pt(e){e.preventDefault()}function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.some((function(t){return!ft(e)&&t&&t.apply(void 0,[e].concat(r)),ft(e)}))}}function gt(e){return e="string"==typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return tt(tt({},e),{},nt({},t,[]))}),{}):{}}]}var ht=["children"],bt=["open"],yt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],xt=["refKey","onChange","onClick"];function Et(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||wt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(e,t):void 0}}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ot=l((function(t,n){var r=t.children,a=Pt(At(t,ht)),o=a.open,i=At(a,bt);return u(n,(function(){return{open:o}}),[o]),e.createElement(c,null,r(Bt(Bt({},i),{},{open:o})))}));Ot.displayName="Dropzone";var kt={disabled:!1,getFilesFromEvent:function(e){return O(this,void 0,void 0,(function(){return k(this,(function(t){return Ie(e)&&Ie(e.dataTransfer)?[2,Ve(e.dataTransfer,e.type)]:function(e){return Ie(e)&&Ie(e.target)}(e)?[2,We(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qe(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ot.defaultProps=kt,Ot.propTypes={children:h.func,accept:h.oneOfType([h.string,h.arrayOf(h.string)]),multiple:h.bool,preventDropOnDocument:h.bool,noClick:h.bool,noKeyboard:h.bool,noDrag:h.bool,noDragEventsBubbling:h.bool,minSize:h.number,maxSize:h.number,maxFiles:h.number,disabled:h.bool,getFilesFromEvent:h.func,onFileDialogCancel:h.func,onFileDialogOpen:h.func,useFsAccessApi:h.bool,onDragEnter:h.func,onDragLeave:h.func,onDragOver:h.func,onDrop:h.func,onDropAccepted:h.func,onDropRejected:h.func,validator:h.func};var Nt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Pt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Bt(Bt({},kt),e),l=t.accept,u=t.disabled,c=t.getFilesFromEvent,s=t.maxSize,d=t.minSize,f=t.multiple,m=t.maxFiles,p=t.onDragEnter,v=t.onDragLeave,g=t.onDragOver,h=t.onDrop,b=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,E=t.onFileDialogOpen,D=t.useFsAccessApi,w=t.preventDropOnDocument,C=t.noClick,F=t.noKeyboard,B=t.noDrag,j=t.noDragEventsBubbling,A=t.validator,O=a((function(){return"function"==typeof E?E:Tt}),[E]),k=a((function(){return"function"==typeof x?x:Tt}),[x]),N=n(null),P=n(null),S=Dt(o(St,Nt),2),T=S[0],R=S[1],M=T.isFocused,_=T.isFileDialogActive,L=T.draggedFiles,z=n("undefined"!=typeof window&&window.isSecureContext&&D&&"showOpenFilePicker"in window),I=function(){!z.current&&_&&setTimeout((function(){P.current&&(P.current.files.length||(R({type:"closeDialog"}),k()))}),300)};r((function(){return window.addEventListener("focus",I,!1),function(){window.removeEventListener("focus",I,!1)}}),[P,_,k,z]);var W=n([]),q=function(e){N.current&&N.current.contains(e.target)||(e.preventDefault(),W.current=[])};r((function(){return w&&(document.addEventListener("dragover",pt,!1),document.addEventListener("drop",q,!1)),function(){w&&(document.removeEventListener("dragover",pt),document.removeEventListener("drop",q))}}),[N,w]);var V=i((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Et(W.current),[e.target]),mt(e)&&Promise.resolve(c(e)).then((function(t){ft(e)&&!j||(R({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),p&&p(e))}))}),[c,p,j]),U=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=mt(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&g&&g(e),!1}),[g,j]),G=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return N.current&&N.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),W.current=t,t.length>0||(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),mt(e)&&v&&v(e))}),[N,v,j]),H=i((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Dt(ct(e,l),2),a=t[0],o=t[1],i=Dt(st(e,d,s),2),u=i[0],c=i[1],f=A?A(e):null;if(a&&u&&!f)n.push(e);else{var m=[o,c];f&&(m=m.concat(f)),r.push({file:e,errors:m.filter((function(e){return e}))})}})),(!f&&n.length>1||f&&m>=1&&n.length>m)&&(n.forEach((function(e){r.push({file:e,errors:[ut]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&y&&y(r,t),n.length>0&&b&&b(n,t)}),[R,f,l,d,s,m,h,b,y,A]),K=i((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],mt(e)&&Promise.resolve(c(e)).then((function(t){ft(e)&&!j||H(t,e)})),R({type:"reset"})}),[c,H,j]),Z=i((function(){if(z.current){R({type:"openDialog"}),O();var e={multiple:f,types:gt(l)};window.showOpenFilePicker(e).then((function(e){return c(e)})).then((function(e){H(e,null),R({type:"closeDialog"})})).catch((function(e){!function(e){return Qe(e,DOMException)&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?function(e){return Qe(e,DOMException)&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(z.current=!1,P.current&&(P.current.value=null,P.current.click())):(k(e),R({type:"closeDialog"}))}))}else P.current&&(R({type:"openDialog"}),O(),P.current.value=null,P.current.click())}),[R,O,k,D,H,l,f]),Y=i((function(e){N.current&&N.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Z()))}),[N,Z]),$=i((function(){R({type:"focus"})}),[]),J=i((function(){R({type:"blur"})}),[]),X=i((function(){C||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Z():setTimeout(Z,0))}),[C,Z]),Q=function(e){return u?null:e},ee=function(e){return F?null:Q(e)},te=function(e){return B?null:Q(e)},ne=function(e){j&&e.stopPropagation()},re=a((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,a=e.onKeyDown,o=e.onFocus,i=e.onBlur,l=e.onClick,c=e.onDragEnter,s=e.onDragOver,d=e.onDragLeave,f=e.onDrop,m=At(e,yt);return Bt(Bt(jt({onKeyDown:ee(vt(a,Y)),onFocus:ee(vt(o,$)),onBlur:ee(vt(i,J)),onClick:Q(vt(l,X)),onDragEnter:te(vt(c,V)),onDragOver:te(vt(s,U)),onDragLeave:te(vt(d,G)),onDrop:te(vt(f,K)),role:"string"==typeof r&&""!==r?r:"button"},n,N),u||F?{}:{tabIndex:0}),m)}}),[N,Y,$,J,X,V,U,G,K,F,B,u]),ae=i((function(e){e.stopPropagation()}),[]),oe=a((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,a=e.onClick,o=At(e,xt);return Bt(Bt({},jt({accept:l,multiple:f,type:"file",style:{display:"none"},onChange:Q(vt(r,K)),onClick:Q(vt(a,ae)),tabIndex:-1},n,P)),o)}}),[P,l,f,K,u]),ie=L.length,le=ie>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!(!o&&t.length>1||o&&i>=1&&t.length>i)&&t.every((function(e){var t=rt(ct(e,n),1)[0],o=rt(st(e,r,a),1)[0];return t&&o}))}({files:L,accept:l,minSize:d,maxSize:s,multiple:f,maxFiles:m}),ue=ie>0&&!le;return Bt(Bt({},T),{},{isDragAccept:le,isDragReject:ue,isFocused:M&&!u,getRootProps:re,getInputProps:oe,rootRef:N,inputRef:P,open:Q(Z)})}function St(e,t){switch(t.type){case"focus":return Bt(Bt({},e),{},{isFocused:!0});case"blur":return Bt(Bt({},e),{},{isFocused:!1});case"openDialog":return Bt(Bt({},Nt),{},{isFileDialogActive:!0});case"closeDialog":return Bt(Bt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Bt(Bt({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Bt(Bt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Bt({},Nt);default:return e}}function Tt(){}function Rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var _t=function(n){var a,o,i,l,u=n.texts,c=n.files,s=n.setFiles;n.setDeletedFiles,n.onAcceptedFiles,n.errorMessages;var d=n.maxFiles,f=n.accept,m=n.showPreview,p=n.onDeleteFile,v=n.onClearFiles,g=n.maxSize,h=n.label,b=t(0),y=b[0],x=b[1],E=t(0),D=E[0],w=E[1],C=Pt({multiple:!0,accept:f,maxSize:g,maxFiles:d,onDrop:function(e){s(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),F=C.getRootProps,B=C.getInputProps,j=C.fileRejections,A=C.acceptedFiles;C.isDragActive,r((function(){return function(){null==c||c.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[c]),r((function(){s(A)}),[A,y]),v=function(){A.length=0,A.splice(0,A.length),s([])},r((function(){if(g>0){var e=Math.floor(Math.log(g)/Math.log(1024));w(parseFloat((g/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[g]);var O=j.map((function(t,n){return e.createElement(ae,{text:t.file.name,title:t.errors[0].code,severity:"error"})})),k=null==c?void 0:c.map((function(t,n){return e.createElement("div",{className:"relative m-3 rounded "},e.createElement("button",{onClick:function(e){e.stopPropagation(),A.splice(A.indexOf(t),1),x(Math.random),p(t)},type:"button",className:"absolute left-0 ml-auto inline-flex items-center rounded rounded-tr-none rounded-bl-none bg-gray-900 p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal"},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),e.createElement("span",{className:"sr-only"},"Close modal")),e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(t.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"},className:"rounded-lg",key:t.name}))}));return e.createElement("div",null,h&&e.createElement("div",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},h),e.createElement("div",Mt(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rt(e,t,n[t])}))}return e}({},F({})),{className:"flex flex-col justify-center rounded border border-dashed border-black bg-white transition-all hover:bg-gray-100 "}),e.createElement("input",B()),e.createElement("div",{className:"pt-4 text-center"},u.clickHereToUpload),e.createElement("div",{className:"pb-4 text-center text-xs"},u.maxFileSize," ",D),e.createElement("div",{className:"flex justify-center "},A.length>0&&e.createElement(_,{onClick:function(e){e.stopPropagation(),v()}},"Clear All")),k&&m?e.createElement("aside",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},className:"rounded-lg border-red-500"},k):null,e.createElement("div",{className:"px-2"},"too-many-files"===(null===(o=null===(a=j[0])||void 0===a?void 0:a.errors[0])||void 0===o?void 0:o.code)?e.createElement(ae,{text:u.tooManyFiles,severity:"error"}):"file-too-large"===(null===(l=null===(i=j[0])||void 0===i?void 0:i.errors[0])||void 0===l?void 0:l.code)?e.createElement(ae,{text:u.fileTooLarge,severity:"error"}):O)))},Lt=function(t){return e.createElement("div",{className:"flex flex-row rounded bg-layoutPrimary-500 p-4"},e.createElement("button",{className:"inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button"},e.createElement("svg",{className:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"}))),e.createElement("div",{className:"p-4"},t.children))},zt=[{country_label:"Saudi Arabia",code:"SA",unicode:"&#x1F1F8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg",label:"+966"},{country_label:"United Arab Emirates",code:"AE",unicode:"&#x1F1E6;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg",label:"+971"},{country_label:"Bahrain",code:"BH",unicode:"&#x1F1E7;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg",label:"+973"},{country_label:"Kuwait",code:"KW",unicode:"&#x1F1F0;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg",label:"+965"},{country_label:"Qatar",code:"QA",unicode:"&#x1F1F6;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg",label:"+974"},{country_label:"Oman",code:"OM",unicode:"&#x1F1F4;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg",label:"+968"},{country_label:"Andorra",value:"Andorra",code:"AD",unicode:"&#x1F1E6;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg",label:"+376"},{country_label:"Afghanistan",code:"AF",unicode:"&#x1F1E6;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg",label:"+93"},{country_label:"Antigua & Barbuda",code:"AG",unicode:"&#x1F1E6;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg",label:"+1268"},{country_label:"Anguilla",code:"AI",unicode:"&#x1F1E6;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg",label:"+1264"},{country_label:"Albania",code:"AL",unicode:"&#x1F1E6;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg",label:"+355"},{country_label:"Armenia",code:"AM",unicode:"&#x1F1E6;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg",label:"+374"},{country_label:"Angola",code:"AO",unicode:"&#x1F1E6;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg",label:"+244"},{country_label:"Antarctica",code:"AQ",unicode:"&#x1F1E6;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg",label:"+672"},{country_label:"Argentina",code:"AR",unicode:"&#x1F1E6;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg",label:"+54"},{country_label:"American Samoa",code:"AS",unicode:"&#x1F1E6;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg",label:"+1684"},{country_label:"Austria",code:"AT",unicode:"&#x1F1E6;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg",label:"+43"},{country_label:"Australia",code:"AU",unicode:"&#x1F1E6;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg",label:"+61"},{country_label:"Aruba",code:"AW",unicode:"&#x1F1E6;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg",label:"+297"},{country_label:"Åland Islands",code:"AX",unicode:"&#x1F1E6;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg",label:"+358"},{country_label:"Azerbaijan",code:"AZ",unicode:"&#x1F1E6;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg",label:"+994"},{country_label:"Bosnia & Herzegovina",code:"BA",unicode:"&#x1F1E7;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg",label:"+387"},{country_label:"Barbados",code:"BB",unicode:"&#x1F1E7;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg",label:"+1246"},{country_label:"Bangladesh",code:"BD",unicode:"&#x1F1E7;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg",label:"+880"},{country_label:"Belgium",code:"BE",unicode:"&#x1F1E7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg",label:"+32"},{country_label:"Burkina Faso",code:"BF",unicode:"&#x1F1E7;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg",label:"+226"},{country_label:"Bulgaria",code:"BG",unicode:"&#x1F1E7;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg",label:"+359"},{country_label:"Burundi",code:"BI",unicode:"&#x1F1E7;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg",label:"+257"},{country_label:"Benin",code:"BJ",unicode:"&#x1F1E7;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg",label:"+229"},{country_label:"St. Barthélemy",code:"BL",unicode:"&#x1F1E7;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg",label:"+590"},{country_label:"Bermuda",code:"BM",unicode:"&#x1F1E7;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg",label:"+1441"},{country_label:"Brunei",code:"BN",unicode:"&#x1F1E7;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg",label:"+673"},{country_label:"Bolivia",code:"BO",unicode:"&#x1F1E7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg",label:"+591"},{country_label:"Brazil",code:"BR",unicode:"&#x1F1E7;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg",label:"+55"},{country_label:"Bahamas",code:"BS",unicode:"&#x1F1E7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg",label:"+1242"},{country_label:"Bhutan",code:"BT",unicode:"&#x1F1E7;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg",label:"+975"},{country_label:"Botswana",code:"BW",unicode:"&#x1F1E7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg",label:"+267"},{country_label:"Belarus",code:"BY",unicode:"&#x1F1E7;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg",label:"+375"},{country_label:"Belize",code:"BZ",unicode:"&#x1F1E7;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg",label:"+501"},{country_label:"Canada",code:"CA",unicode:"&#x1F1E8;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg",label:"+1"},{country_label:"Cocos (Keeling) Islands",code:"CC",unicode:"&#x1F1E8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg",label:"+61"},{country_label:"Congo - Kinshasa",code:"CD",unicode:"&#x1F1E8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg",label:"+243"},{country_label:"Central African Republic",code:"CF",unicode:"&#x1F1E8;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg",label:"+236"},{country_label:"Congo - Brazzaville",code:"CG",unicode:"&#x1F1E8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg",label:"+242"},{country_label:"Switzerland",code:"CH",unicode:"&#x1F1E8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg",label:"+41"},{country_label:"Côte d’Ivoire",code:"CI",unicode:"&#x1F1E8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg",label:"+225"},{country_label:"Cook Islands",code:"CK",unicode:"&#x1F1E8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg",label:"+682"},{country_label:"Chile",code:"CL",unicode:"&#x1F1E8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg",label:"+56"},{country_label:"Cameroon",code:"CM",unicode:"&#x1F1E8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg",label:"+237"},{country_label:"China",code:"CN",unicode:"&#x1F1E8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg",label:"+86"},{country_label:"Colombia",code:"CO",unicode:"&#x1F1E8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg",label:"+57"},{country_label:"Costa Rica",code:"CR",unicode:"&#x1F1E8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg",label:"+506"},{country_label:"Cuba",code:"CU",unicode:"&#x1F1E8;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg",label:"+53"},{country_label:"Cape Verde",code:"CV",unicode:"&#x1F1E8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg",label:"+238"},{country_label:"Christmas Island",code:"CX",unicode:"&#x1F1E8;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg",label:"+61"},{country_label:"Cyprus",code:"CY",unicode:"&#x1F1E8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg",label:"+357"},{country_label:"Czechia",code:"CZ",unicode:"&#x1F1E8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg",label:"+420"},{country_label:"Germany",code:"DE",unicode:"&#x1F1E9;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg",label:"+49"},{country_label:"Djibouti",code:"DJ",unicode:"&#x1F1E9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg",label:"+253"},{country_label:"Denmark",code:"DK",unicode:"&#x1F1E9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg",label:"+45"},{country_label:"Dominica",code:"DM",unicode:"&#x1F1E9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg",label:"+1767"},{country_label:"Dominican Republic",code:"DO",unicode:"&#x1F1E9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg",label:"+1849"},{country_label:"Algeria",code:"DZ",unicode:"&#x1F1E9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg",label:"+213"},{country_label:"Ecuador",code:"EC",unicode:"&#x1F1EA;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg",label:"+593"},{country_label:"Estonia",code:"EE",unicode:"&#x1F1EA;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg",label:"+372"},{country_label:"Egypt",code:"EG",unicode:"&#x1F1EA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg",label:"+20"},{country_label:"Eritrea",code:"ER",unicode:"&#x1F1EA;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg",label:"+291"},{country_label:"Spain",code:"ES",unicode:"&#x1F1EA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg",label:"+34"},{country_label:"Ethiopia",code:"ET",unicode:"&#x1F1EA;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg",label:"+251"},{country_label:"Finland",code:"FI",unicode:"&#x1F1EB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg",label:"+358"},{country_label:"Fiji",code:"FJ",unicode:"&#x1F1EB;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg",label:"+679"},{country_label:"Falkland Islands",code:"FK",unicode:"&#x1F1EB;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg",label:"+500"},{country_label:"Micronesia",code:"FM",unicode:"&#x1F1EB;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg",label:"+691"},{country_label:"Faroe Islands",code:"FO",unicode:"&#x1F1EB;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg",label:"+298"},{country_label:"France",code:"FR",unicode:"&#x1F1EB;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg",label:"+33"},{country_label:"Gabon",code:"GA",unicode:"&#x1F1EC;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg",label:"+241"},{country_label:"United Kingdom",code:"GB",unicode:"&#x1F1EC;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg",label:"+44"},{country_label:"Grenada",code:"GD",unicode:"&#x1F1EC;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg",label:"+1473"},{country_label:"Georgia",code:"GE",unicode:"&#x1F1EC;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg",label:"+995"},{country_label:"French Guiana",code:"GF",unicode:"&#x1F1EC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg",label:"+594"},{country_label:"Guernsey",code:"GG",unicode:"&#x1F1EC;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg",label:"+44"},{country_label:"Ghana",code:"GH",unicode:"&#x1F1EC;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg",label:"+233"},{country_label:"Gibraltar",code:"GI",unicode:"&#x1F1EC;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg",label:"+350"},{country_label:"Greenland",code:"GL",unicode:"&#x1F1EC;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg",label:"+299"},{country_label:"Gambia",code:"GM",unicode:"&#x1F1EC;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg",label:"+220"},{country_label:"Guinea",code:"GN",unicode:"&#x1F1EC;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg",label:"+224"},{country_label:"Guadeloupe",code:"GP",unicode:"&#x1F1EC;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg",label:"+590"},{country_label:"Equatorial Guinea",code:"GQ",unicode:"&#x1F1EC;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg",label:"+240"},{country_label:"Greece",code:"GR",unicode:"&#x1F1EC;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg",label:"+30"},{country_label:"South Georgia & South Sandwich Islands",code:"GS",unicode:"&#x1F1EC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg",label:"+500"},{country_label:"Guatemala",code:"GT",unicode:"&#x1F1EC;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg",label:"+502"},{country_label:"Guam",code:"GU",unicode:"&#x1F1EC;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg",label:"+1671"},{country_label:"Guinea-Bissau",code:"GW",unicode:"&#x1F1EC;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg",label:"+245"},{country_label:"Guyana",code:"GY",unicode:"&#x1F1EC;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg",label:"+595"},{country_label:"Hong Kong SAR China",code:"HK",unicode:"&#x1F1ED;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg",label:"+852"},{country_label:"Honduras",code:"HN",unicode:"&#x1F1ED;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg",label:"+504"},{country_label:"Croatia",code:"HR",unicode:"&#x1F1ED;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg",label:"+385"},{country_label:"Haiti",code:"HT",unicode:"&#x1F1ED;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg",label:"+509"},{country_label:"Hungary",code:"HU",unicode:"&#x1F1ED;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg",label:"+36"},{country_label:"Indonesia",code:"ID",unicode:"&#x1F1EE;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg",label:"+62"},{country_label:"Ireland",code:"IE",unicode:"&#x1F1EE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg",label:"+353"},{country_label:"Israel",code:"IL",unicode:"&#x1F1EE;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg",label:"+972"},{country_label:"Isle of Man",code:"IM",unicode:"&#x1F1EE;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg",label:"+44"},{country_label:"India",code:"IN",unicode:"&#x1F1EE;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg",label:"+91"},{country_label:"British Indian Ocean Territory",code:"IO",unicode:"&#x1F1EE;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg",label:"+246"},{country_label:"Iraq",code:"IQ",unicode:"&#x1F1EE;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg",label:"+964"},{country_label:"Iran",code:"IR",unicode:"&#x1F1EE;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg",label:"+98"},{country_label:"Iceland",code:"IS",unicode:"&#x1F1EE;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg",label:"+354"},{country_label:"Italy",code:"IT",unicode:"&#x1F1EE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg",label:"+39"},{country_label:"Jersey",code:"JE",unicode:"&#x1F1EF;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg",label:"+44"},{country_label:"Jamaica",code:"JM",unicode:"&#x1F1EF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg",label:"+1876"},{country_label:"Jordan",code:"JO",unicode:"&#x1F1EF;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg",label:"+962"},{country_label:"Japan",code:"JP",unicode:"&#x1F1EF;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg",label:"+81"},{country_label:"Kenya",code:"KE",unicode:"&#x1F1F0;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg",label:"+254"},{country_label:"Kyrgyzstan",code:"KG",unicode:"&#x1F1F0;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg",label:"+996"},{country_label:"Cambodia",code:"KH",unicode:"&#x1F1F0;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg",label:"+855"},{country_label:"Kiribati",code:"KI",unicode:"&#x1F1F0;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg",label:"+686"},{country_label:"Comoros",code:"KM",unicode:"&#x1F1F0;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg",label:"+269"},{country_label:"St. Kitts & Nevis",code:"KN",unicode:"&#x1F1F0;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg",label:"+1869"},{country_label:"North Korea",code:"KP",unicode:"&#x1F1F0;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg",label:"+850"},{country_label:"South Korea",code:"KR",unicode:"&#x1F1F0;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg",label:"+82"},{country_label:"Cayman Islands",code:"KY",unicode:"&#x1F1F0;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg",label:"+ 345"},{country_label:"Kazakhstan",code:"KZ",unicode:"&#x1F1F0;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg",label:"+77"},{country_label:"Laos",code:"LA",unicode:"&#x1F1F1;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg",label:"+856"},{country_label:"Lebanon",code:"LB",unicode:"&#x1F1F1;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg",label:"+961"},{country_label:"St. Lucia",code:"LC",unicode:"&#x1F1F1;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg",label:"+1758"},{country_label:"Liechtenstein",code:"LI",unicode:"&#x1F1F1;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg",label:"+423"},{country_label:"Sri Lanka",code:"LK",unicode:"&#x1F1F1;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg",label:"+94"},{country_label:"Liberia",code:"LR",unicode:"&#x1F1F1;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg",label:"+231"},{country_label:"Lesotho",code:"LS",unicode:"&#x1F1F1;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg",label:"+266"},{country_label:"Lithuania",code:"LT",unicode:"&#x1F1F1;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg",label:"+370"},{country_label:"Luxembourg",code:"LU",unicode:"&#x1F1F1;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg",label:"+352"},{country_label:"Latvia",code:"LV",unicode:"&#x1F1F1;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg",label:"+371"},{country_label:"Libya",code:"LY",unicode:"&#x1F1F1;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg",label:"+218"},{country_label:"Morocco",code:"MA",unicode:"&#x1F1F2;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg",label:"+212"},{country_label:"Monaco",code:"MC",unicode:"&#x1F1F2;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg",label:"+377"},{country_label:"Moldova",code:"MD",unicode:"&#x1F1F2;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg",label:"+373"},{country_label:"Montenegro",code:"ME",unicode:"&#x1F1F2;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg",label:"+382"},{country_label:"St. Martin",code:"MF",unicode:"&#x1F1F2;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg",label:"+590"},{country_label:"Madagascar",code:"MG",unicode:"&#x1F1F2;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg",label:"+261"},{country_label:"Marshall Islands",code:"MH",unicode:"&#x1F1F2;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg",label:"+692"},{country_label:"North Macedonia",code:"MK",unicode:"&#x1F1F2;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg",label:"+389"},{country_label:"Mali",code:"ML",unicode:"&#x1F1F2;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg",label:"+223"},{country_label:"Myanmar (Burma)",code:"MM",unicode:"&#x1F1F2;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg",label:"+95"},{country_label:"Mongolia",code:"MN",unicode:"&#x1F1F2;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg",label:"+976"},{country_label:"Macao SAR China",code:"MO",unicode:"&#x1F1F2;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg",label:"+853"},{country_label:"Northern Mariana Islands",code:"MP",unicode:"&#x1F1F2;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg",label:"+1670"},{country_label:"Martinique",code:"MQ",unicode:"&#x1F1F2;&#x1F1F6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg",label:"+596"},{country_label:"Mauritania",code:"MR",unicode:"&#x1F1F2;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg",label:"+222"},{country_label:"Montserrat",code:"MS",unicode:"&#x1F1F2;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg",label:"+1664"},{country_label:"Malta",code:"MT",unicode:"&#x1F1F2;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg",label:"+356"},{country_label:"Mauritius",code:"MU",unicode:"&#x1F1F2;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg",label:"+230"},{country_label:"Maldives",code:"MV",unicode:"&#x1F1F2;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg",label:"+960"},{country_label:"Malawi",code:"MW",unicode:"&#x1F1F2;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg",label:"+265"},{country_label:"Mexico",code:"MX",unicode:"&#x1F1F2;&#x1F1FD;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg",label:"+52"},{country_label:"Malaysia",code:"MY",unicode:"&#x1F1F2;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg",label:"+60"},{country_label:"Mozambique",code:"MZ",unicode:"&#x1F1F2;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg",label:"+258"},{country_label:"Namibia",code:"NA",unicode:"&#x1F1F3;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg",label:"+264"},{country_label:"New Caledonia",code:"NC",unicode:"&#x1F1F3;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg",label:"+687"},{country_label:"Niger",code:"NE",unicode:"&#x1F1F3;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg",label:"+227"},{country_label:"Norfolk Island",code:"NF",unicode:"&#x1F1F3;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg",label:"+672"},{country_label:"Nigeria",code:"NG",unicode:"&#x1F1F3;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg",label:"+234"},{country_label:"Nicaragua",code:"NI",unicode:"&#x1F1F3;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg",label:"+505"},{country_label:"Netherlands",code:"NL",unicode:"&#x1F1F3;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg",label:"+31"},{country_label:"Norway",code:"NO",unicode:"&#x1F1F3;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg",label:"+47"},{country_label:"Nepal",code:"NP",unicode:"&#x1F1F3;&#x1F1F5;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg",label:"+977"},{country_label:"Nauru",code:"NR",unicode:"&#x1F1F3;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg",label:"+674"},{country_label:"Niue",code:"NU",unicode:"&#x1F1F3;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg",label:"+683"},{country_label:"New Zealand",code:"NZ",unicode:"&#x1F1F3;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg",label:"+64"},{country_label:"Panama",code:"PA",unicode:"&#x1F1F5;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg",label:"+507"},{country_label:"Peru",code:"PE",unicode:"&#x1F1F5;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg",label:"+51"},{country_label:"French Polynesia",code:"PF",unicode:"&#x1F1F5;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg",label:"+689"},{country_label:"Papua New Guinea",code:"PG",unicode:"&#x1F1F5;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg",label:"+675"},{country_label:"Philippines",code:"PH",unicode:"&#x1F1F5;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg",label:"+63"},{country_label:"Pakistan",code:"PK",unicode:"&#x1F1F5;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg",label:"+92"},{country_label:"Poland",code:"PL",unicode:"&#x1F1F5;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg",label:"+48"},{country_label:"St. Pierre & Miquelon",code:"PM",unicode:"&#x1F1F5;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg",label:"+508"},{country_label:"Pitcairn Islands",code:"PN",unicode:"&#x1F1F5;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg",label:"+872"},{country_label:"Puerto Rico",code:"PR",unicode:"&#x1F1F5;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg",label:"+1939"},{country_label:"Palestinian Territories",code:"PS",unicode:"&#x1F1F5;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg",label:"+970"},{country_label:"Portugal",code:"PT",unicode:"&#x1F1F5;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg",label:"+351"},{country_label:"Palau",code:"PW",unicode:"&#x1F1F5;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg",label:"+680"},{country_label:"Paraguay",code:"PY",unicode:"&#x1F1F5;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg",label:"+595"},{country_label:"Réunion",code:"RE",unicode:"&#x1F1F7;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg",label:"+262"},{country_label:"Romania",code:"RO",unicode:"&#x1F1F7;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg",label:"+40"},{country_label:"Serbia",code:"RS",unicode:"&#x1F1F7;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg",label:"+381"},{country_label:"Russia",code:"RU",unicode:"&#x1F1F7;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg",label:"+7"},{country_label:"Rwanda",code:"RW",unicode:"&#x1F1F7;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg",label:"+250"},{country_label:"Solomon Islands",code:"SB",unicode:"&#x1F1F8;&#x1F1E7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg",label:"+677"},{country_label:"Seychelles",code:"SC",unicode:"&#x1F1F8;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg",label:"+248"},{country_label:"Sudan",code:"SD",unicode:"&#x1F1F8;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg",label:"+249"},{country_label:"Sweden",code:"SE",unicode:"&#x1F1F8;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg",label:"+46"},{country_label:"Singapore",code:"SG",unicode:"&#x1F1F8;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg",label:"+65"},{country_label:"St. Helena",code:"SH",unicode:"&#x1F1F8;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg",label:"+290"},{country_label:"Slovenia",code:"SI",unicode:"&#x1F1F8;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg",label:"+386"},{country_label:"Svalbard & Jan Mayen",code:"SJ",unicode:"&#x1F1F8;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg",label:"+47"},{country_label:"Slovakia",code:"SK",unicode:"&#x1F1F8;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg",label:"+421"},{country_label:"Sierra Leone",code:"SL",unicode:"&#x1F1F8;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg",label:"+232"},{country_label:"San Marino",code:"SM",unicode:"&#x1F1F8;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg",label:"+378"},{country_label:"Senegal",code:"SN",unicode:"&#x1F1F8;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg",label:"+221"},{country_label:"Somalia",code:"SO",unicode:"&#x1F1F8;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg",label:"+252"},{country_label:"Suriname",code:"SR",unicode:"&#x1F1F8;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg",label:"+597"},{country_label:"South Sudan",code:"SS",unicode:"&#x1F1F8;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg",label:"+211"},{country_label:"São Tomé & Príncipe",code:"ST",unicode:"&#x1F1F8;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg",label:"+239"},{country_label:"El Salvador",code:"SV",unicode:"&#x1F1F8;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg",label:"+503"},{country_label:"Syria",code:"SY",unicode:"&#x1F1F8;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg",label:"+963"},{country_label:"Eswatini",code:"SZ",unicode:"&#x1F1F8;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg",label:"+268"},{country_label:"Turks & Caicos Islands",code:"TC",unicode:"&#x1F1F9;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg",label:"+1649"},{country_label:"Chad",code:"TD",unicode:"&#x1F1F9;&#x1F1E9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg",label:"+235"},{country_label:"Togo",code:"TG",unicode:"&#x1F1F9;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg",label:"+228"},{country_label:"Thailand",code:"TH",unicode:"&#x1F1F9;&#x1F1ED;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg",label:"+66"},{country_label:"Tajikistan",code:"TJ",unicode:"&#x1F1F9;&#x1F1EF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg",label:"+992"},{country_label:"Tokelau",code:"TK",unicode:"&#x1F1F9;&#x1F1F0;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg",label:"+690"},{country_label:"Timor-Leste",code:"TL",unicode:"&#x1F1F9;&#x1F1F1;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg",label:"+670"},{country_label:"Turkmenistan",code:"TM",unicode:"&#x1F1F9;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg",label:"+993"},{country_label:"Tunisia",code:"TN",unicode:"&#x1F1F9;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg",label:"+216"},{country_label:"Tonga",code:"TO",unicode:"&#x1F1F9;&#x1F1F4;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg",label:"+676"},{country_label:"Turkey",code:"TR",unicode:"&#x1F1F9;&#x1F1F7;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg",label:"+90"},{country_label:"Trinidad & Tobago",code:"TT",unicode:"&#x1F1F9;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg",label:"+1868"},{country_label:"Tuvalu",code:"TV",unicode:"&#x1F1F9;&#x1F1FB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg",label:"+688"},{country_label:"Taiwan",code:"TW",unicode:"&#x1F1F9;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg",label:"+886"},{country_label:"Tanzania",code:"TZ",unicode:"&#x1F1F9;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg",label:"+255"},{country_label:"Ukraine",code:"UA",unicode:"&#x1F1FA;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg",label:"+380"},{country_label:"Uganda",code:"UG",unicode:"&#x1F1FA;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg",label:"+256"},{country_label:"United States",code:"US",unicode:"&#x1F1FA;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg",label:"+1"},{country_label:"Uruguay",code:"UY",unicode:"&#x1F1FA;&#x1F1FE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg",label:"+598"},{country_label:"Uzbekistan",code:"UZ",unicode:"&#x1F1FA;&#x1F1FF;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg",label:"+998"},{country_label:"Vatican City",code:"VA",unicode:"&#x1F1FB;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg",label:"+379"},{country_label:"St. Vincent & Grenadines",code:"VC",unicode:"&#x1F1FB;&#x1F1E8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg",label:"+1784"},{country_label:"Venezuela",code:"VE",unicode:"&#x1F1FB;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg",label:"+58"},{country_label:"British Virgin Islands",code:"VG",unicode:"&#x1F1FB;&#x1F1EC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg",label:"+1284"},{country_label:"U.S. Virgin Islands",code:"VI",unicode:"&#x1F1FB;&#x1F1EE;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg",label:"+1340"},{country_label:"Vietnam",code:"VN",unicode:"&#x1F1FB;&#x1F1F3;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg",label:"+84"},{country_label:"Vanuatu",code:"VU",unicode:"&#x1F1FB;&#x1F1FA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg",label:"+678"},{country_label:"Wallis & Futuna",code:"WF",unicode:"&#x1F1FC;&#x1F1EB;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg",label:"+681"},{country_label:"Samoa",code:"WS",unicode:"&#x1F1FC;&#x1F1F8;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg",label:"+685"},{country_label:"Yemen",code:"YE",unicode:"&#x1F1FE;&#x1F1EA;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg",label:"+967"},{country_label:"Mayotte",code:"YT",unicode:"&#x1F1FE;&#x1F1F9;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg",label:"+262"},{country_label:"South Africa",code:"ZA",unicode:"&#x1F1FF;&#x1F1E6;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg",label:"+27"},{country_label:"Zambia",code:"ZM",unicode:"&#x1F1FF;&#x1F1F2;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg",label:"+260"},{country_label:"Zimbabwe",code:"ZW",unicode:"&#x1F1FF;&#x1F1FC;",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg",label:"+263"}];function It(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=function(t){t.cx;var n=t.children;t.getStyles;var r=t.innerProps,a=t.innerRef,o=A(t,["cx","children","getStyles","innerProps","innerRef"]);return e.createElement("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){It(e,t,n[t])}))}return e}({ref:a,className:"m-2 flex flex-row items-center justify-between rounded p-1 px-2 hover:bg-blue-200"},r),e.createElement("div",{className:"flex flex-row items-center justify-center gap-1"},e.createElement("img",{className:"h-8 w-8",src:o.data.image}),e.createElement("span",{className:"text-[10px]"},o.data.country_label)),n)},qt=function(n){var r=t("+966"),a=r[0],o=r[1];return e.createElement("div",{className:"mb-3 flex flex-col"},n.label&&e.createElement("label",{className:"mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300"},n.label),e.createElement("div",{dir:"ltr",className:"flex flex-row"},e.createElement(v,{styles:{input:function(e){return j(j({},e),{fontSize:"0.875rem","input:focus":{boxShadow:"none"},lineHeight:"1.25rem",padding:"0.37rem"})},singleValue:function(e){return j(j({},e),{fontSize:"0.875rem",textAlign:"right"})},control:function(e){return j(j({},e),{width:64,borderRadius:"0.5rem",borderTopRightRadius:0,borderBottomRightRadius:0})},menu:function(e){return j(j({},e),{width:190,borderRadius:"0.5rem"})}},components:{Option:Wt,DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:zt,isMulti:!1,isSearchable:!0,isClearable:!1,placeholder:"+966",defaultValue:n.preferredCountry,value:a,onChange:function(e,t){return o(e)}}),e.createElement("input",{onChange:n.handleChange,type:"number",className:"block w-full appearance-none rounded rounded-l-none border border-l-0 border-gray-300 bg-gray-50 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"}),n.helperText&&e.createElement("p",{className:"mb-1 mt-1 text-xs text-red-600 dark:text-red-500"},n.helperText)))},Vt=function(n){var r,a,o=n.orientation,i=void 0===o?"horizontal":o,l=n.direction,u=void 0===l?"ltr":l,c=n.width,s=void 0===c?"normal":c,d=n.marginBetween,f=void 0===d?0:d,m=n.pill,p=void 0!==m&&m,v=A(n,["orientation","direction","width","marginBetween","pill"]),g=t(null===(r=v.options[0])||void 0===r?void 0:r.value),h=g[0],b=g[1],y={vertical:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",horizontal:"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active"},x={vertical:"inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white",horizontal:"bg-gray-100 inline-block py-2 px-4 hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-800 dark:hover:text-white"};return e.createElement("div",{dir:u,className:B({vertical:"flex flex-row",horizontal:"flex flex-col"}[i],v.options[h]?"border-b-2":"border-b-0")},e.createElement("ul",{className:B(f?"vertical"===i?"mb-0":"mb-"+f:"",f&&"rtl"===u?"ml-"+f:"mr-"+f,{vertical:"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",horizontal:"flex w-fit flex-wrap border-b-buttonPrimary-500 text-center text-sm font-medium text-gray-500 dark:text-gray-400"}[i],"border-buttonPrimary-500",{full:"w-full min-w-full",normal:"w-fit"}[s],p?"gap-0.5 rounded border-none bg-gray-100 p-0.5":"vertical"===i?"rtl"===u?"rounded-none rounded-r border-l-2":"rounded-none rounded-l border-r-2":"border-b-2")},null===(a=v.options)||void 0===a?void 0:a.map((function(t,n){return e.createElement("li",{key:n},e.createElement("button",{"aria-current":"page",onClick:function(){b(t.value),null==v||v.onChangeTab(t)},className:B(t.value===h?[y[i],"rtl"===u?"rounded-r":"rounded-l"]:x[i],"w-full transition-all",p?"rounded":"vertical"===i?"rounded rounded-tl-none rounded-bl-none":"rounded rounded-br-none rounded-bl-none")},t.label))}))),e.createElement("div",{className:"flex-1 transition-all"},v.options.map((function(t,n){return e.createElement("div",{key:n,className:B(h===t.value?"":"hidden")},t.content)}))))},Ut=function(t){var n=t.open,a=t.title,o=t.onClose,i=t.closeOnClickOutside,l=void 0===i||i,u=A(t,["open","title","onClose","closeOnClickOutside"]);return r((function(){return l&&n&&(window.onclick=function(e){e.stopPropagation(),o()}),function(){return window.onclick=null}}),[n]),e.createElement("div",{className:B("absolute top-1/2 left-1/2 w-full h-screen flex flex-col justify-center items-center -translate-x-1/2 -translate-y-1/2 transition-all",n?"z-10 opacity-100 ":"invisible -z-10 opacity-0")},e.createElement("div",{className:B("absolute h-screen w-full bg-gray-500 opacity-50",n?"opacity-50":"opacity-0")}),e.createElement("div",{className:"relative w-1/2 max-w-md rounded bg-white p-1 shadow-lg dark:bg-gray-700"},e.createElement("div",{className:"flex items-start justify-between rounded-t p-3 dark:border-gray-600"},e.createElement("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white"},a),e.createElement("button",{type:"button",className:"inline-flex items-center rounded bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",onClick:function(e){o()}},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),e.createElement("span",{className:"sr-only"},"Close modal"))),e.createElement("div",{className:"space-y-6 p-3"},u.children),e.createElement("div",{className:"mx-2 flex items-center justify-end space-x-1 p-0 dark:border-gray-600"},u.actions)))},Gt=function(t){return e.createElement("div",{className:"my-2 flex flex-col items-center justify-center gap-1 text-xs text-gray-400"},t.withLogo?e.createElement("a",{href:t.onLogoClicked},e.createElement("div",{className:"cursor-pointer"},e.createElement("image",{href:t.logoURL,width:100,height:50}))):null,e.createElement("div",null,t.version),t.credits?t.credits:null)},Ht=function(t){var n=t.orientation,r=void 0===n?"horizontal":n,a=A(t,["orientation"]);return e.createElement("div",{className:B({vertical:"flex flex-col items-start w-fit",horizontal:"flex flex-row"}[r]," flex-wrap justify-start gap-4")},a.steps.map((function(t,n){return e.createElement("div",{key:n,className:"my-2 flex w-auto flex-row flex-wrap justify-start "},e.createElement("div",{className:"vertical"===r?"flex w-full flex-row items-center":n+1===a.steps.length?"flex w-full flex-row items-center justify-start gap-2":"flex flex-row items-center justify-start gap-2 after:mx-2 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"},e.createElement("div",{className:"flex flex-row gap-2 "},e.createElement("div",{className:B("ring-buttonPrimary-200 flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-offset-2",n+1<=a.currentStep?"bg-buttonPrimary-500 text-white":"bg-buttonPrimary-200")},n+1<=a.currentStep?e.createElement(be,{fontSize:11}):n+1),e.createElement("div",{className:"whitespace-nowrap"},t))))})))},Kt=function(t){return e.createElement("div",{onClick:t.handleClick,className:B("flex flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit",{full:"w-full",min:"w-fit",normal:"w-full max-w-[200px]"}[t.width],{plain:"",contained:"bg-layoutPrimary-500",outlined:"ring-2 w-fit",neobrutalism:"shadow-neobrutalism border-4 border-black bg-white",dropshadow:"bg-white drop-shadow-md"}[t.variant]),style:{backgroundColor:t.color?t.color:"contained"===t.variant?"var(--layout-primary-500)":""}},e.createElement("div",null,t.label),t.isLoading?e.createElement(S,null):e.createElement("div",{className:"text-2xl font-bold"},t.number)," ",t.helperText&&e.createElement("div",{className:"text-xs"},t.helperText)," ")},Zt=function(t){var n=t.open,r=t.setOpen,a=t.position;t.heading,t.children;var o=A(t,["open","setOpen","position","heading","children"]);return e.createElement("div",{className:B("left"==a?"w-60 z-50 h-full absolute overflow-x-clip top-0 left-0 border-r bg-white":"w-60 z-50 h-full absolute overflow-x-clip top-0 right-0 border-l bg-white","left"==a?"flex-row-reverse":"flex-row","overflow-x-clip transition-all",n?"w-60":"w-0")},o.drawerHeader&&e.createElement(Yt,{direction:a,setOpen:r},o.drawerHeader),o.drawerBody&&e.createElement($t,{direction:a},o.drawerBody),o.drawerFooter&&e.createElement(Jt,{direction:a},o.drawerFooter))},Yt=function(t){return e.createElement("div",{className:B("flex w-full flex-row items-center justify-between border-b p-4","left"==t.direction?"flex-row":"flex-row-reverse")},t.children,e.createElement("div",{className:"justify-self-end rounded border p-1 hover:cursor-pointer",onClick:function(){return t.setOpen(!1)}},"left"==t.direction?e.createElement(ye,{size:20,strokeWidth:2}):e.createElement(xe,{size:20,strokeWidth:2})))},$t=function(t){return e.createElement("div",{className:B("overflow-clip whitespace-nowrap p-4","left"==t.direction?"flex-row":"flex-row-reverse text-right")},t.children)},Jt=function(t){return e.createElement("div",{className:B("absolute bottom-0 w-full whitespace-nowrap border-t p-4","left"==t.direction?"flex-row":"flex-row-reverse text-right")},t.children)},Xt=function(n){var r=n.subsections,a=t(null),o=a[0],i=a[1];return e.createElement("div",{className:"w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 "},r.map((function(t,n){return e.createElement("div",{key:n,className:"my-0"},t.title&&e.createElement("div",{className:"my-4 font-bold"},t.title),t.sections.map((function(t,n){return e.createElement(Qt,{key:n,onItemClick:function(){return i(t.value)},selected:o,value:t.value,icon:t.icon,title:t.label,chip:"Upgrade"})})))})))},Qt=function(t){var n=t.title,r=t.value,a=t.icon,o=t.chip,i=t.selected,l=t.onItemClick;return e.createElement("div",{onClick:l,className:B("flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",i===r?"bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500":"hover:bg-layoutPrimary-300")},e.createElement("div",{className:"flex w-full flex-row items-center justify-start gap-2"},a," ",e.createElement("span",null,n)),o&&e.createElement(q,{label:"Upgrade",size:"normal"})," ")},en=function(t){var n;return e.createElement("div",{className:"flex w-full flex-col gap-0 border p-4"},e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("span",{className:"bg-white-200"},t.title),t.tooltip&&e.createElement(T,{content:t.tooltip,position:"right-top"},e.createElement(Be,null))),e.createElement("div",{className:"bg-white-100 flex flex-row"},e.createElement("div",null,t.currentUsage),e.createElement("div",null," (",t.percent,"%)")),e.createElement("div",{className:"mt-2 h-2.5 w-full rounded-full bg-gray-200 dark:bg-gray-700"},e.createElement("div",{className:"h-2.5 rounded-full bg-buttonPrimary-500",style:{width:"".concat(null!==(n=t.percent)&&void 0!==n?n:0,"%")}})))};function tn(e){return fe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{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"}}]})(e)}function nn(e){return fe({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}var rn=function(n){var r,a=n.direction,o=void 0===a?"ltr":a,i=n.texts,l=void 0===i?{total:"Total",plan:"Plan",usage:"Usage",amount:"Amount",price:"Price"}:i,u=A(n,["direction","texts"]),c=function(t){return e.createElement("div",{className:B(t.start?"items-start":"items-end","flex w-full flex-col")},e.createElement("div",{className:" text-sm text-gray-500"},t.label),e.createElement("div",{className:" whitespace-nowrap"},t.text))},s=t(!1),d=s[0],f=s[1];return e.createElement("div",{className:"flex w-full flex-col"},e.createElement("div",{className:"flex w-full flex-row items-center gap-2 border p-4 "},u.invoiceActions&&e.createElement("div",{className:B("transition-all hover:cursor-pointer ","rtl"===o?"rotate-180":"",d?"rotate-90":""),onClick:function(){return f(!d)}},e.createElement(tn,{fontSize:30})),e.createElement("div",{className:"flex w-full cursor-pointer flex-col gap-0",onClick:function(){return f(!d)}},e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("span",{className:"bg-white-200"},u.invoiceTitle),u.status&&e.createElement(q,{size:"small",label:u.status})),e.createElement("div",{className:"font-sm text-gray-400"},u.invoiceSubtitle)),e.createElement("div",{className:"flex flex-row items-center gap-2"},e.createElement("div",{className:"whitespace-nowrap"},u.total),e.createElement(oe,{direction:o,position:"rtl"===o?"bottom-right":"bottom-left",menuItems:u.invoiceActions},e.createElement("div",{className:" p-2"},e.createElement(Oe,null))))),d&&e.createElement("div",{className:B(d?"h-full":"h-0 border-none p-0 px-4","flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all")},e.createElement("div",{className:"border-b pb-2"},u.invoiceDescription),null===(r=u.products)||void 0===r?void 0:r.map((function(t,n){return e.createElement("div",{key:n,className:"flex flex-row border-b pb-4"},e.createElement("div",{className:"w-full"},e.createElement(c,{start:!0,label:l.plan,text:t.plan})),e.createElement("div",{className:"flex w-full flex-row gap-20 "},e.createElement(c,{label:l.usage,text:"".concat(t.usage," SAR")}),e.createElement(c,{label:l.price,text:"".concat(t.price," SAR")}),e.createElement(c,{label:l.amount,text:"".concat(t.amount," SAR")})))})),e.createElement("div",{className:"flex flex-row justify-between"},e.createElement("div",null,l.total)," ",e.createElement("div",null,u.total))))},an=function(){var n=t(""),r=n[0],a=n[1];return e.createElement("div",{className:"relative inline-block text-left"},e.createElement("span",{className:"rounded-md shadow-sm"},e.createElement("input",{type:"date",value:r,onChange:function(e){a(e.target.value)},className:"block w-full rounded border border-gray-300 bg-white p-2 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"})))},on=function(t){var n=A(t,[]);return e.createElement("div",{className:"relative flex w-full max-w-sm flex-col gap-2 rounded bg-white p-4 shadow-md"},e.createElement("div",{className:"absolute left-2 top-2 p-1.5 text-sm"},n.title),e.createElement("button",{type:"button",className:"absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white","data-dismiss-target":"#toast-default","aria-label":"Close"},e.createElement("svg",{"aria-hidden":"true",className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))),e.createElement("div",{className:"mt-8"},n.question),e.createElement("div",{className:"flex w-full flex-row gap-1 rounded"},n.options.map((function(t){return e.createElement("span",{onClick:function(){return n.onOptionClicked(t)},className:"w-full cursor-pointer rounded border bg-white p-4 text-center transition-all hover:bg-gray-100"},t)}))),n.texts&&e.createElement("div",{className:" flex flex-row justify-between text-xs"},e.createElement("span",null,n.texts.least),e.createElement("span",null,n.texts.most)))},ln=function(t){return e.createElement(t.icon,{className:t.disabled?"text-gray-300":"hover:text-gray-500",size:t.size,onClick:t.onClick||function(){}})},un=function(t){var n=e.useState(t.index||0),r=n[0],a=n[1];e.useEffect((function(){console.log("INDEX CHANGED TO: ".concat(r))}),[r]);var o={small:["",-8],medium:["2",-11],big:["3",-16]};return e.createElement("div",{className:"align-center box-boorder relative flex h-min w-min flex-row items-center justify-center rounded bg-white p-4 py-6 shadow-md"},e.createElement(ln,{icon:ge,size:t.arrowSize||48,disabled:0==r,onClick:function(){0!=r&&a(r-1)}}),e.createElement("div",{className:"relative box-border flex h-min flex-col items-center justify-center p-5"},e.createElement("div",null,t.items[r].icon),e.createElement("div",{className:"absolute bottom-0 text-".concat(o[t.labelSize||"small"][0],"xl "),style:{marginBottom:o[t.labelSize||"small"][1]}},t.items[r].label)),e.createElement(ln,{icon:he,size:t.arrowSize||48,disabled:r==t.items.length-1,onClick:function(){r!=t.items.length-1&&a(r+1)}}))},cn=function(t){return e.createElement("div",{className:"border-box mr-[10px] flex h-[32px] w-[32px] items-center justify-center rounded bg-gray-300 p-2",onMouseDown:t.onMouseDown},t.name)},sn={bold:{css:"font-bold",content:"B"},italic:{id:"italic",css:"italic",content:"I"},under:{id:"under",css:"underline",content:"U"},strike:{id:"strike",css:"line-through",content:"S"}},dn=function(a){var o=t({content:"",stylings:[],revert:[0,0],lastCopy:[],pasted:{status:!1,length:0},dropped:{status:!1,text:"",previous:[0,0]}}),i=o[0],l=o[1],u=n(null),c=n(i),s=function(e){c.current=e,l(e)},d=function(e){for(var t=0;e=e.previousSibling;t++);return t},f=function(e){var t=window.getSelection(),n=Array.from(u.current.childNodes);n=n.filter((function(e){return!["#text","BR"].includes(e.nodeName)}));var r=t[e].parentNode,a=0;if(!Array.from(r.parentNode.classList).includes("selection-ignore")){r=r.parentNode;var o=d(t[e].parentNode);a=Array.from(r.childNodes).slice(0,o).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0)}var i=r==u.current?n.length:d(r),l=n.slice(0,i).map((function(e){return e.textContent.length})).reduce((function(e,t){return e+t}),0)+a;return l},m=function(){if(document.activeElement!=u.current)return[0,0];var e=window.getSelection(),t=f("anchorNode"),n=f("focusNode");return console.log([t,n]),[t+e.anchorOffset,n+e.focusOffset].sort((function(e,t){return e-t}))};r((function(){setTimeout((function(){var e=c.current.revert,t=e[0],n=e[1];if(0!=t||0!=n){for(var r=null,a=null,o=0,i=Array.from(u.current.childNodes),l=0;l<i.length;l++){var s=i[l],d=s.textContent.length+o;null==r&&t>=o&&t<=d&&(r=i[l],t-=o),null==a&&n>o&&n<=d&&(a=i[l],n-=o),o+=s.textContent.length}var f=document.createRange(),m=window.getSelection();f.setStart(r.firstChild,t),f.setEnd(a.firstChild,n),m.removeAllRanges(),m.addRange(f)}}),1)}),[i.revert]);var p=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},v=function(e){return e.sort((function(e,t){return e-t}))[0]},g=function(e){return e.sort((function(e,t){return t-e}))[0]},h=function(e,t){return e.type!=t.type?-1:t.start<=e.start&&t.finish>=e.finish?0:0==function(e,t){for(var n=new Set,r=0,a=t;r<a.length;r++){var o=a[r];e.has(o)&&n.add(o)}return n}(new Set(p(e.start-1,e.finish-1)),new Set(p(t.start-1,t.finish-1))).size?2:1},b=function(e){var t=c.current.stylings.slice(),n=m(),r=n[0],a=n[1];if(r!=a){for(var o,l={type:e,start:r,finish:a},u=[],d=0;d<t.length;d++){var f=t[d],p=h(l,f);-1!=p&&u.push([p,d,f])}u.find((function(e){var t=e[0];return e[1],e[2],1==t}))?o=function(e,t,n,r){var a=e.filter((function(e){var t=e[0];return e[1],e[2],1==t})).map((function(e){return e[0],[e[1],e[2]]}));a.push([-1,n]);var o=a.map((function(e){return e[0],e[1].start})).sort((function(e,t){return e-t}))[0],i=a.map((function(e){return e[0],e[1].finish})).sort((function(e,t){return t-e}))[0],l=a.map((function(e){return e[0]}));return(t=t.filter((function(e,t){return!l.includes(t)}))).push({type:r,start:o,finish:i}),t}(u,t,l,e):u.find((function(e){var t=e[0];return e[1],e[2],0==t}))?o=function(e,t,n,r){var a=e.find((function(e){var t=e[0];return e[1],e[2],0==t}));a[0];var o=a[1],i=a[2];t=t.filter((function(e,t){return t!=o}));var l=[{type:r,start:v([i.start,n.start]),finish:g([i.start,n.start])},{type:r,start:v([i.finish,n.finish]),finish:g([i.finish,n.finish])}];return l=l.filter((function(e){return e.start!=e.finish})),P(P([],t,!0),l,!0)}(u,t,l,e):(u.find((function(e){var t=e[0];return e[1],e[2],2==t}))||0==u.length)&&(o=P(P([],t,!0),[l],!1)),s(j(j({},i),{stylings:o,revert:[r,a]}))}},y=function(e,t){return e.type==t.type&&e.start==t.start&&e.finish==t.finish},x=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=i.stylings.filter((function(r){var a=r.start,o=r.finish;return e>=a+t&&e<o+n}));return r},E=function(e){return i.stylings.findIndex((function(t){return t.start==e.start&&t.finish==e.finish&&t.type==e.type}))},D=function(e,t){var n=e.filter((function(e){var n=e.start,r=e.finish;return t(n,r)})),r=[];return e.map((function(e,t){n.find((function(t){return y(e,t)}))&&r.push({index:t,type:e.type,start:e.start,finish:e.finish})})),r},w=function(e){setTimeout((function(){if(c.current.dropped.status)e.length==c.current.content.length&&function(e){var t=m(),n=t[0],r=t[1],a=c.current.stylings.slice(),o=c.current.dropped.text,i=[],l=c.current.dropped.previous,u=l[0],d=l[1];console.log("Drag: ".concat([u,d])),console.log("Drop: ".concat([n,r])),console.log(a);var f=a.filter((function(e){var t=e.start,n=e.finish;return!(t<u&&n<=u||t>=d&&n>d)}));a.filter((function(e){var t=e.start,n=e.finish;return t>=d&&n>d})).map((function(e){i.push({original:e,changed:j(j({},e),{start:e.start-o.length,finish:e.finish-o.length})})})),a.filter((function(e){var t=e.start,n=e.finish;return u<=t&&d>=n})).map((function(e){i.push({original:e,changed:j(j({},e),{start:e.start,finish:e.start})})})),a.filter((function(e){var t=e.start,n=e.finish;return u>t&&d<=n||u>=t&&d<n})).map((function(e){i.push({original:e,changed:j(j({},e),{start:e.start,finish:e.finish-o.length})})}));var p=a.filter((function(e){var t=e.start,n=e.finish;return n>u&&t>u&&t<d&&n>d||t<d&&n<d&&n>u&&t<u}));p.map((function(e){var t=e.start<d&&e.finish<d&&e.finish>u&&e.start<u;i.push({original:e,changed:j(j({},e),{start:t?e.start:g([d,e.start])-o.length,finish:t?v([u,e.finish]):e.finish-o.length})})})),i.map((function(e){var t=e.original,n=e.changed,r=a.findIndex((function(e){return y(t,e)}));a[r]=n})),i=[],a.filter((function(e){var t=e.start,r=e.finish;return t>=n&&r>n})).map((function(e){i.push({original:e,changed:j(j({},e),{start:e.start+o.length,finish:e.finish+o.length})})})),a.filter((function(e){var t=e.start,r=e.finish;return t<n&&r>n})).map((function(e){i.push({original:e,changed:j(j({},e),{start:e.start,finish:n})}),i.push({original:null,changed:j(j({},e),{start:r,finish:e.finish+o.length})})})),i.map((function(e){var t=e.original,n=e.changed;if(null!=t){var r=a.findIndex((function(e){return y(t,e)}));a[r]=n}else a.push(n)})),a=a.filter((function(e){return e.start!=e.finish})),f=f.map((function(e){return j(j({},e),{start:g([e.start,u])-u+n,finish:v([e.finish,d])-u+n})})),a=a.concat(f),s(j(j({},c.current),{content:e,stylings:a,revert:[n,r],pasted:{status:!1,length:0},dropped:{status:!1,text:"",previous:[0,0]}}))}(e);else{for(var t=m(),n=t[0],r=t[1],a=e.length-c.current.content.length,o=n-a,l=c.current.stylings.slice(),u=function(e){var t=i.stylings.filter((function(t){var n=t.start;return t.finish,n>=e}));return t}(o),d=[],f=0,p=u;f<p.length;f++){var h=p[f],b=E(h),x=l[b];d.push([b,x.start+a,x.finish+a])}if(a<0&&(l=function(e,t,n){var r=c.current.stylings.slice(),a=[],o=r.filter((function(e){var r=e.start;return t<r&&n<=r}));r.map((function(t,n){o.find((function(e){return y(t,e)}))&&a.push({index:n,start:t.start-e,finish:t.finish-e})}));var i=r.filter((function(e){var r=e.start,a=e.finish;return t<=r&&n>=a}));r.map((function(e,t){i.find((function(t){return y(e,t)}))&&a.push({index:t,start:e.start,finish:e.start})}));var l=r.filter((function(e){var r=e.start,a=e.finish;return t>r&&n<=a||t>=r&&n<a}));r.map((function(t,n){l.find((function(e){return y(t,e)}))&&a.push({index:n,start:t.start,finish:t.finish-e})}));var u=r.filter((function(e){var r=e.start,a=e.finish;return n<a&&n>r&&t<r}));r.map((function(t,r){u.find((function(e){return y(t,e)}))&&a.push({index:r,start:g([n,t.start])-e,finish:t.finish-e})}));var s=r.filter((function(e){var r=e.start,a=e.finish;return t>r&&t<a&&n>a}));return r.map((function(e,n){s.find((function(t){return y(e,t)}))&&a.push({index:n,start:e.start,finish:v([t,e.finish])})})),a.map((function(e){var t=e.index,n=e.start,a=e.finish;r[t]=j(j({},r[t]),{start:n,finish:a})})),r}(Math.abs(a),n,r+Math.abs(a))),a>0&&(l=function(e,t,n){t-=e+1,n-=e+1;var r=c.current.stylings.slice(),a=[],o=D(r,(function(e,r){return e>t&&e+1>=n})).map((function(t){return j(j({},t),{start:t.start+e,finish:t.finish+e})}));a.push(o);var i=D(r,(function(n,r){return t+1==r&&1==e})).map((function(t){return j(j({},t),{start:t.start,finish:t.finish+e})}));a.push(i);var l=D(r,(function(e,r){return t>=e&&n+1<r})).map((function(t){return j(j({},t),{finish:t.finish+e})}));return a.push(l),a.flat().map((function(e){var t=e.index,n=e.start,a=e.finish;r[t]=j(j({},r[t]),{start:n,finish:a})})),r}(Math.abs(a),n,r)),l=l.filter((function(t){return!(t.start==t.finish||t.start>=e.length&&t.finish>=e.length)})),c.current.pasted.status){l=function(e,t,n,r){var a=[],o=D(e,(function(e,t){return n<=e&&r>=t})).map((function(e){return j(j({},e),{start:e.start,finish:e.start})}));a.push(o);var i=D(e,(function(e,t){return e<n&&t>r})).map((function(e){return a.push(j(j({},e),{index:-1,start:r,finish:e.finish})),a.push(j(j({},e),{index:-1,start:e.start,finish:n})),j(j({},e),{start:e.start,finish:e.start})}));a.push(i);var l=D(e,(function(e,a){return a>n&&a<=r-t+1&&e<n})).map((function(e){return j(j({},e),{finish:n})}));a.push(l);var u=D(e,(function(e,a){return a>r-t&&e>=n&&e<r-t})).map((function(e){return j(j({},e),{start:r})}));return a.push(u),(a=a.flat()).map((function(t){var n=t.index,r=t.start,a=t.finish;-1!=n?e[n]=j(j({},e[n]),{start:r,finish:a}):e.push({type:t.type,start:r,finish:a})})),e}(l,a,n-c.current.pasted.length,n);for(var w=0,C=c.current.lastCopy;w<C.length;w++){x=C[w];x=j(j({},x),{start:x.start+n-c.current.pasted.length,finish:x.finish+n-c.current.pasted.length}),l.push(x)}}l=l.filter((function(t){return!(t.start==t.finish||t.start>=e.length&&t.finish>=e.length)})),s(j(j({},c.current),{content:e,stylings:l,revert:[n,r],pasted:{status:!1,length:0},dropped:{status:!1,text:"",previous:[0,0]}}))}}),0)};r((function(){var e=function(){var e=c.current.content,t=c.current.stylings.map((function(e){return[e.start,e.finish]})).flat();t=t.sort((function(e,t){return e-t})),0!=(t=t.filter((function(e,n){return t.indexOf(e)==n})))[0]&&t.unshift(0);var n=e.length;t[t.length-1]!=n&&t.push(n);for(var r=[],a=0;a<t.length-1;a++)r.push([t[a],e.substring(t[a],t[a+1])]);return r}().map((function(e,t){var n=e[0],r=e[1],a=x(n);return'<span class="'.concat(a.map((function(e){return sn[e.type].css})).join(" "),'" data-child-index="').concat(t,'">').concat(r,"</span>")})).join("");u.current.innerHTML=e}),[i.content,i.stylings,i.revert]);return e.createElement("div",{className:"align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md"},e.createElement("div",{className:B("flex w-full flex-row justify-start p-2")},Object.entries(sn).map((function(t){var n=t[0],r=t[1];return e.createElement(cn,{name:r.content,key:"property-".concat(n),onMouseDown:function(e){e.preventDefault(),b(n)}})}))),e.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),e.createElement("div",{className:"selection-ignore box-border w-full p-2"},e.createElement("div",{ref:u,contentEditable:"true",className:"selection-ignore rtl h-[150px] w-full resize-none overflow-auto overflow-x-hidden border-none font-['Arial'] text-[16px] outline-none",style:{direction:function(){switch(a.rtl||"disabled"){case"enabled":return"rtl";case"disabled":case"auto":return"ltr"}}()},onPaste:function(e){e.preventDefault();var t=e.clipboardData.getData("text/plain");document.execCommand("insertHTML",!1,t),console.log(t),s(j(j({},c.current),{pasted:{status:!0,length:t.length}}))},onInput:function(e){w(e.target.textContent)},onCopy:function(e){var t=m(),n=function(e,t){for(var n=[],r=e;r<t;r++)n.push(x(r));return n=(n=(n=n.flat().filter((function(e){return e}))).filter((function(e,t){return n.findIndex((function(t){return t.start==e.start&&t.finish==e.finish&&t.type==e.type}))==t}))).map((function(n){return j(j({},n),{start:g([n.start,e])-e,finish:v([n.finish,t])-e})}))}(t[0],t[1]);s(j(j({},i),{lastCopy:n}))},onDrop:function(e){var t=e.dataTransfer.getData("text");""!=t.trim()&&s(j(j({},c.current),{dropped:{status:!0,text:t,previous:m()}}))}})),e.createElement("div",{className:"h-[1px] w-full bg-slate-600"}," "),e.createElement("button",{className:"my-1 rounded bg-cyan-800 p-2 py-1 text-white",onClick:function(){(a.onSubmit||function(){})(i.content,i.stylings)}},"Submit"))};
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *