@sikka/hawa 0.0.64 → 0.0.65
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/countries.js +1934 -0
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +3 -11
- package/src/elements/HawaPhoneInput.js +85 -53
- package/src/elements/HawaSelectInput.js +43 -6
- package/src/elements/HawaTextField.js +13 -4
- package/src/elements/index.js +0 -1
- package/src/styles.css +2 -2
- package/src/tailwind.css +19 -5
- package/storybook-static/0.1104ca18.iframe.bundle.js +3 -0
- package/storybook-static/{0.58b40425.iframe.bundle.js.LICENSE.txt → 0.1104ca18.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.1104ca18.iframe.bundle.js.map +1 -0
- package/storybook-static/0.cf71f8aa82edef0a7186.manager.bundle.js +2 -0
- package/storybook-static/{10.265ea9add491253ee249.manager.bundle.js.LICENSE.txt → 0.cf71f8aa82edef0a7186.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/1.7e6ec5c45ae5b70c5149.manager.bundle.js +1 -0
- package/storybook-static/1.e3eafd38.iframe.bundle.js +1 -0
- package/storybook-static/2.3841b1a5.iframe.bundle.js +1 -0
- package/storybook-static/5.5b799f3fbf64cec8e51a.manager.bundle.js +2 -0
- package/storybook-static/{12.145180cacdb73a1c41fa.manager.bundle.js.LICENSE.txt → 5.5b799f3fbf64cec8e51a.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/6.6023eba1.iframe.bundle.js +3 -0
- package/storybook-static/{6.0a3ea46a.iframe.bundle.js.LICENSE.txt → 6.6023eba1.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/6.6023eba1.iframe.bundle.js.map +1 -0
- package/storybook-static/6.b34ce31193a7fa1dd965.manager.bundle.js +1 -0
- package/storybook-static/7.632f8551.iframe.bundle.js +1 -0
- package/storybook-static/7.72879af713f755a7aa7e.manager.bundle.js +1 -0
- package/storybook-static/8.9a8f8b69.iframe.bundle.js +1 -0
- package/storybook-static/8.f9b98ef3e089be1a16d6.manager.bundle.js +2 -0
- package/storybook-static/{15.f91ba9c8a1383d676abf.manager.bundle.js.LICENSE.txt → 8.f9b98ef3e089be1a16d6.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/9.1e1335092fade49cc986.manager.bundle.js +1 -0
- package/storybook-static/9.63a5cf7a.iframe.bundle.js +3 -0
- package/storybook-static/{9.6bf309ed.iframe.bundle.js.LICENSE.txt → 9.63a5cf7a.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/9.63a5cf7a.iframe.bundle.js.map +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/{main.20ee7e8a2af7ee58cc1f.manager.bundle.js → main.4bd27e4e7faa098302d1.manager.bundle.js} +1 -1
- package/storybook-static/main.8587302b.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.6b765954.iframe.bundle.js → runtime~main.67ec6e92.iframe.bundle.js} +1 -1
- package/storybook-static/runtime~main.a58df7ba92d01c5088d3.manager.bundle.js +1 -0
- package/storybook-static/vendors~main.d13ba71108048897ea4a.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.bf986892b9b6ed78a230.manager.bundle.js.LICENSE.txt → vendors~main.d13ba71108048897ea4a.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.d5e21618.iframe.bundle.js +3 -0
- package/storybook-static/{vendors~main.e7c4fe25.iframe.bundle.js.LICENSE.txt → vendors~main.d5e21618.iframe.bundle.js.LICENSE.txt} +0 -6
- package/storybook-static/vendors~main.d5e21618.iframe.bundle.js.map +1 -0
- package/countries.json +0 -1
- package/src/elements/HawaPhoneInput2.js +0 -78
- package/storybook-static/0.58b40425.iframe.bundle.js +0 -3
- package/storybook-static/0.58b40425.iframe.bundle.js.map +0 -1
- package/storybook-static/1.8a994862.iframe.bundle.js +0 -1
- package/storybook-static/10.265ea9add491253ee249.manager.bundle.js +0 -2
- package/storybook-static/11.849df77e390cb885446a.manager.bundle.js +0 -1
- package/storybook-static/12.145180cacdb73a1c41fa.manager.bundle.js +0 -2
- package/storybook-static/13.575f17b8db12e674bbfd.manager.bundle.js +0 -1
- package/storybook-static/14.46316235b334885ad26e.manager.bundle.js +0 -1
- package/storybook-static/15.f91ba9c8a1383d676abf.manager.bundle.js +0 -2
- package/storybook-static/16.126410c9b7b02fbc5c26.manager.bundle.js +0 -1
- package/storybook-static/2.427819b2.iframe.bundle.js +0 -1
- package/storybook-static/6.0a3ea46a.iframe.bundle.js +0 -3
- package/storybook-static/6.0a3ea46a.iframe.bundle.js.map +0 -1
- package/storybook-static/7.9cd3bcaf.iframe.bundle.js +0 -1
- package/storybook-static/8.52752021.iframe.bundle.js +0 -1
- package/storybook-static/9.6bf309ed.iframe.bundle.js +0 -3
- package/storybook-static/9.6bf309ed.iframe.bundle.js.map +0 -1
- package/storybook-static/main.d86b3f87.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.84749e9163e4b198514f.manager.bundle.js +0 -1
- package/storybook-static/vendors~main.bf986892b9b6ed78a230.manager.bundle.js +0 -2
- package/storybook-static/vendors~main.e7c4fe25.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.e7c4fe25.iframe.bundle.js.map +0 -1
package/es/index.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useMemo as r,useRef as n,useReducer as a,useEffect as l,useCallback as i,forwardRef as o,useImperativeHandle as s,Fragment as d}from"react";import"flowbite";import{jsxs as c,jsx as u,Fragment as g}from"react/jsx-runtime";import p from"prop-types";import{useForm as f,FormProvider as h,Controller as m}from"react-hook-form";function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(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 k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var T=function(e){return c("div",{id:"toast-default",role:"alert",className:{info:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-blue-700 bg-blue-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",warning:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-yellow-700 bg-yellow-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",error:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-red-700 bg-red-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",success:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-green-700 bg-green-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",none:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"}[e.severity],children:[c("div",{children:[u("div",{class:"ml-3 text-sm font-bold",children:e.title}),u("div",{class:"ml-3 text-sm font-normal",children:e.text})]}),c("button",{type:"button",class:"ml-auto -mx-1.5 -my-1.5 text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-default","aria-label":"Close",children:[u("span",{class:"sr-only",children:"Close"}),u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})]})},P=function(e){return c("label",{for:"default-toggle",class:"inline-flex relative items-center cursor-pointer",children:[u("input",{type:"checkbox",value:"",id:"default-toggle",class:"sr-only peer"}),u("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"}),u("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.text})]})},L=function(e){return c("div",{className:"flex items-center h-full p-2",children:[u("input",{type:"checkbox",value:"",className:"w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"}),e.label&&u("label",{className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})},C=function(e){var r=w(t(e.defaultValue),2);return r[0],r[1],c("div",{children:[u("div",{class:"mb-4 border-b border-gray-200 dark:border-gray-700",children:u("ul",{class:"flex flex-wrap -mb-px text-sm font-medium text-center",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist",children:e.options.map((function(e){return u("li",{class:"mr-2",role:"presentation",children:u("button",{class:"inline-block p-4 rounded-t-lg border-b-2 text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",id:"".concat(e.value,"-tab"),"data-tabs-target":"#".concat(e.value),type:"button",role:"tab","aria-controls":e.value,"aria-selected":"true",children:e.label})})}))})}),u("div",{id:"myTabContent",children:e.options.map((function(e){return u("div",{class:"p-4 bg-gray-50 rounded-lg dark:bg-gray-800",id:e.value,role:"tabpanel","aria-labelledby":"".concat(e.value,"-tab"),children:e.content})}))})]})};C.propTypes={lang:p.string,options:p.arrayOf(p.shape({label:p.string,value:p.string})),defaultValue:p.string,handleChange:p.func,location:p.string};var S=function(e){return u("span",{class:"bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800",children:e.label})},N=function(e){return c("div",{class:"block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 ",children:[e.headerActions&&c("div",{class:"flex justify-end pr-6",children:[c("button",{id:"dropdownButton","data-dropdown-toggle":"dropdown",class:"inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-4 focus:outline-none focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm",type:"button",children:[u("span",{class:"sr-only",children:"Open dropdown"}),u("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})]}),u("div",{id:"dropdown",class:"hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700",children:u("ul",{class:"py-1","aria-labelledby":"dropdownButton",children:e.headerActions.map((function(e){return u("li",{children:u("a",{href:"#",class:"block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white",children:e.label})})}))})})]}),c("div",{class:"px-6",children:[c("h5",{class:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:[e.header," "]}),u("p",{class:"font-normal text-gray-700 dark:text-gray-400",children:e.content})]}),u("div",{className:"p-3 mt-6 rounded-b-lg flex justify-end",children:e.actions})]})};N.propTypes={lang:p.string,onCardClick:p.func};var D=function(e){var t,r="ar"===e.lang,n={usd:r?"دولار":"$",sar:r?"ريال":"SAR"},a=r?e.features_ar:e.features;return c("div",{class:"mx-1 p-4 w-full max-w-sm bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700",children:[u("h5",{class:"mb-4 text-xl font-medium text-gray-500 dark:text-gray-400",children:r?e.title_ar:e.title}),c("div",{class:"flex items-baseline text-gray-900 dark:text-white",children:[c("span",{class:"font-semibold text-sm",children:[" ",n[null===(t=e.currency)||void 0===t?void 0:t.toLowerCase()]]}),u("span",{class:"text-5xl font-extrabold tracking-tight",children:e.price}),c("span",{class:"ml-1 text-xl font-normal text-gray-500 dark:text-gray-400",children:["/"," ",r?{monthly:"شهرياً","3-months":"كل 3 أشهر","6-months":"كل 6 أشهر",annually:"سنوياً"}[e.cycleText]:{monthly:"Monthly","3-months":"3 Months","6-months":"6 Months",annually:"Annually"}[e.cycleText]]})]}),u("ul",{role:"list",class:"my-7 space-y-5",children:null==a?void 0:a.map((function(e){return c("li",{class:"flex space-x-3",children:[c("svg",{"aria-hidden":"true",class:"flex-shrink-0 w-5 h-5 text-blue-600 dark:text-blue-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[u("title",{children:"Check icon"}),u("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})]}),u("span",{class:"text-base font-normal leading-tight text-gray-500 dark:text-gray-400",children:e})]})}))}),u("button",{type:"button",class:"text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-200 dark:focus:ring-blue-900 font-medium rounded-lg text-sm px-5 py-2.5 inline-flex justify-center w-full text-center",children:e.buttonText})]})};D.propTypes={lang:p.string,buttonText:p.string,selectedPlan:p.string,title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,features:p.array,features_ar:p.array,currency:p.oneOf(["sar","usd"]),cycleText:p.oneOf(["monthly","3-months","6-months","annually"])};var O=function(e){return u("div",v(v({},e),{},{children:e.children}))},j=function(e){return c("div",{children:[u("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),u("input",v(v({},e),{},{className:"mb-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"})),e.helperText&&u("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]})},A=function(e){return u("div",{style:{display:"flex",flexDirection:"row"}})};A.propTypes={color:p.string,handleChange:p.func};var z=function(e){return c("div",{children:[e.label&&u("label",{for:"default-range",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),c("div",{className:"flex flex-row justify-center items-center w-fit",children:[u("div",{className:"mr-2",children:e.startElement})," ",u("input",{id:"default-range",type:"range",value:"50",class:"w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),u("div",{className:"ml-2",children:e.endElement})," "]})]})};z.propTypes={startElement:p.element,endElement:p.element,handleChange:p.func};var F=function(e){var r=w(t(e.defaultValue),2),n=r[0],a=r[1];return u("div",{children:u("ul",{className:"bg-gray-100 w-fit rounded-lg flex flex-wrap text-sm font-medium text-center text-gray-500 dark:text-gray-400",children:e.options.map((function(t){return u("li",{className:"mr-2",children:u("button",{"aria-current":"page",onClick:function(){a(t.value),e.onChangeTab(t.value)},className:n===t.value?"inline-block py-2 px-4 text-white bg-blue-600 rounded-lg active":"inline-block py-2 px-4 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white",children:t.label})})}))})})},q=function(e){return c("div",{className:"flex flex-row bg-white justify-between align-middle items-center p-2 rounded-xl my-2 h-14",children:[u(O,{children:e.settingsLabel}),"checkbox"===e.settingsType&&u(L,v({},e)),"text"===e.settingsType&&u(j,v({},e)),"boolean"===e.settingsType&&u(P,v({},e)),"range"===e.settingsType&&u(z,v({},e)),"color"===e.settingsType&&u(A,v({},e)),"radio"===e.settingsType&&u(F,v({},e))]})};q.propTypes={settingsLabel:p.string,settingsType:p.oneOf(["checkbox","text","radio","boolean","color"])};var E=function(e){var t,r="ar"===e.lang,n="";switch(null===(t=e.logo)||void 0===t?void 0:t.toLowerCase()){case"google":n=u("img",{src:"https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg"});break;case"github":n=u("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:"w-7 h-7",children:u("path",{d:"M16 0.396c-8.839 0-16 7.167-16 16 0 7.073 4.584 13.068 10.937 15.183 0.803 0.151 1.093-0.344 1.093-0.772 0-0.38-0.009-1.385-0.015-2.719-4.453 0.964-5.391-2.151-5.391-2.151-0.729-1.844-1.781-2.339-1.781-2.339-1.448-0.989 0.115-0.968 0.115-0.968 1.604 0.109 2.448 1.645 2.448 1.645 1.427 2.448 3.744 1.74 4.661 1.328 0.14-1.031 0.557-1.74 1.011-2.135-3.552-0.401-7.287-1.776-7.287-7.907 0-1.751 0.62-3.177 1.645-4.297-0.177-0.401-0.719-2.031 0.141-4.235 0 0 1.339-0.427 4.4 1.641 1.281-0.355 2.641-0.532 4-0.541 1.36 0.009 2.719 0.187 4 0.541 3.043-2.068 4.381-1.641 4.381-1.641 0.859 2.204 0.317 3.833 0.161 4.235 1.015 1.12 1.635 2.547 1.635 4.297 0 6.145-3.74 7.5-7.296 7.891 0.556 0.479 1.077 1.464 1.077 2.959 0 2.14-0.020 3.864-0.020 4.385 0 0.416 0.28 0.916 1.104 0.755 6.4-2.093 10.979-8.093 10.979-15.156 0-8.833-7.161-16-16-16z"})});break;case"twitter":n=u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",className:"w-5 h-5",viewBox:"0 0 512.002 512.002",children:u("path",{d:"M500.398,94.784c-8.043,3.567-16.313,6.578-24.763,9.023c10.004-11.314,17.631-24.626,22.287-39.193 c1.044-3.265-0.038-6.839-2.722-8.975c-2.681-2.137-6.405-2.393-9.356-0.644c-17.945,10.643-37.305,18.292-57.605,22.764 c-20.449-19.981-48.222-31.353-76.934-31.353c-60.606,0-109.913,49.306-109.913,109.91c0,4.773,0.302,9.52,0.9,14.201 c-75.206-6.603-145.124-43.568-193.136-102.463c-1.711-2.099-4.347-3.231-7.046-3.014c-2.7,0.211-5.127,1.734-6.491,4.075 c-9.738,16.709-14.886,35.82-14.886,55.265c0,26.484,9.455,51.611,26.158,71.246c-5.079-1.759-10.007-3.957-14.711-6.568 c-2.525-1.406-5.607-1.384-8.116,0.054c-2.51,1.439-4.084,4.084-4.151,6.976c-0.012,0.487-0.012,0.974-0.012,1.468 c0,39.531,21.276,75.122,53.805,94.52c-2.795-0.279-5.587-0.684-8.362-1.214c-2.861-0.547-5.802,0.456-7.731,2.638 c-1.932,2.18-2.572,5.219-1.681,7.994c12.04,37.591,43.039,65.24,80.514,73.67c-31.082,19.468-66.626,29.665-103.939,29.665 c-7.786,0-15.616-0.457-23.279-1.364c-3.807-0.453-7.447,1.795-8.744,5.416c-1.297,3.622,0.078,7.66,3.316,9.736 c47.935,30.735,103.361,46.98,160.284,46.98c111.903,0,181.907-52.769,220.926-97.037c48.657-55.199,76.562-128.261,76.562-200.451 c0-3.016-0.046-6.061-0.139-9.097c19.197-14.463,35.724-31.967,49.173-52.085c2.043-3.055,1.822-7.094-0.545-9.906 C507.7,94.204,503.76,93.294,500.398,94.784z"})});break;case"mada":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"});break;case"stcpay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"});break;case"visa/master":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"});break;case"paypal":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"});break;case"googlepay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"});break;case"applepay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"});break;case"wallet":n=u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 223 223",className:"h-6 w-6",children:c("g",{children:[u("path",{d:"M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823 C182.338,118.225,176.597,123.967,169.515,123.967z"}),u("path",{d:"M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175 c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z"})]})})}return c("button",v(v({style:{direction:r?"rtl":"ltr"}},e),{},{className:"bg-white rounded-xl my-2 h-11 flex max-w-sm w-full flex-row justify-center align-middle",children:[u("div",{className:"h-full flex flex-row justify-end items-center",children:n}),u("div",{style:{width:10}}),u("div",{className:"h-full flex flex-col justify-center items-start",children:e.buttonText})]}))};E.propTypes={lang:p.string,logo:p.oneOf(["google","github","twitter","wallet","googlepay","applepay","stcpay","visa/master","paypal","mada"]),buttonText:p.string};var R=function(e){return c("div",{id:e.tooltipID,role:"tooltip",class:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700",children:[e.content,u("div",{class:"tooltip-arrow","data-popper-arrow":!0})]})},I=function(e){var t="pr-2 flex flex-col justify-center items-center",r="m-1 px-2.5 py-2.5 text-center text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";return e.fullWidth&&(r="my-1 w-full flex justify-center text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"),e.iconOnly&&(t="flex flex-col justify-center items-center"),c("button",v(v({"data-tooltip-target":e.tooltip,type:"button",className:r},e),{},{children:[e.tooltip&&u(R,{tooltipID:e.tooltip,content:e.tooltip}),e.icon?u("div",{className:t,children:e.icon}):null,!e.iconOnly&&e.text]}))},M=function(e){return c("div",{style:{width:"100%"},children:[u("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),u("select",{id:"countries",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:e.children})]})},W=function(e){return c("div",{class:"flex flex-col p-4 mb-4 text-sm rounded-lg "+{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"}[e.severity],role:"alert",children:[u("span",{class:"font-medium",children:e.title}),u("span",{children:" "+e.text})]})};W.propTypes={severity:p.oneOf(["error","info","success","warning"]),title:p.string,text:p.string,hideIcon:p.bool};var B=function(e){var t="ar"===e.lang;return u(g,{children:u("div",{children:u("div",{class:"overflow-x-auto relative rounded-xl",children:c("table",{class:"w-full text-sm text-left text-gray-500 dark:text-gray-400",children:[u("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:c("tr",{children:[e.columns.map((function(e,t){return u("th",{scope:"col",class:"py-3 px-6",children:e},t)})),e.actions&&u("th",{scope:"col",class:"py-3 px-6",children:"actions"})]})}),u("tbody",{children:e.rows?e.rows.map((function(r,n){return c("tr",{class:"bg-white border-b dark:bg-gray-800 dark:border-gray-700",children:[r.map((function(e,t){return 0===t?c("th",{scope:"row",class:"py-4 px-6 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:[e," "]}):u("td",{class:"py-4 px-6",children:e})})),e.actions&&u("td",{align:t?"right":"left",style:{fontWeight:700},variant:t?"borderedRight":"borderedLeft",children:e.actions.map((function(t){return u(I,{onClick:function(){return e.handleActionClick(r)},text:t})}))})]},n)})):u("tr",{children:u("td",{colspan:e.columns.length,children:u("div",{className:"w-full p-5 text-center bg-white",children:e.noDataText})})})})]})})})})};B.propTypes={handleActionClick:p.func,noDataText:p.string,lang:p.string,columns:p.array,rows:p.array,end:p.array};var U=function(e){return u(j,v({},e))},G=function(e){return c("div",{children:[u("h2",{id:"accordion-collapse-heading-"+e.count,children:c("button",{type:"button",className:0===e.count?"rounded-t-xl border-b-0 flex items-center justify-between w-full p-5 font-medium text-left border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white":"flex items-center justify-between w-full p-5 font-medium text-left border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white","data-accordion-target":"#accordion-collapse-body-"+e.count,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.count,children:[u("span",{children:"What is Flowbite?"}),u("svg",{"data-accordion-icon":"",className:"w-6 h-6 rotate-180 shrink-0",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})}),u("div",{id:"accordion-collapse-body-"+e.count,className:"","aria-labelledby":"accordion-collapse-heading-"+e.count,children:c("div",{className:-1===e.count?"p-5 font-light border border-b-xl rounded-b-xl border-gray-200 dark:border-gray-700 dark:bg-gray-900":"p-5 font-light border border-b-xl border-gray-200 dark:border-gray-700 dark:bg-gray-900",children:[u("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:"Flowbite is an open-source library of interactive components built on top of Tailwind CSS including buttons, dropdowns, modals, navbars, and more."}),c("p",{className:"text-gray-500 dark:text-gray-400",children:["Check out this guide to learn how to"," ",u("a",{href:"/docs/getting-started/introduction/",class:"text-blue-600 dark:text-blue-500 hover:underline",children:"get started"})," ","and start developing websites even faster with components on top of Tailwind CSS."]})]})})]})},_=function(e){var t=[{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"}];return u("div",{id:"accordion-collapse","data-accordion":"collapse",children:t.map((function(e,r){return u(G,{title:e.title,content:e.content,count:t.length-1===r?-1:r})}))})};function H(e,t,r,n){return new(r||(r=Promise))((function(a,l){function i(e){try{s(n.next(e))}catch(e){l(e)}}function o(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,o)}s((n=n.apply(e,t||[])).next())}))}function V(e,t){var r,n,a,l,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(l){return function(o){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,o])}}}function K(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,l=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=l.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=l.return)&&r.call(l)}finally{if(a)throw a.error}}return i}_.propTypes={title:p.string,content:p.string};var Z=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 $(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=Z.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var Y=[".DS_Store","Thumbs.db"];function J(e){return"object"==typeof e&&null!==e}function Q(e){return re(e.target.files).map((function(e){return $(e)}))}function X(e){return H(this,void 0,void 0,(function(){return V(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 $(e)}))]}}))}))}function ee(e,t){return H(this,void 0,void 0,(function(){var r;return V(this,(function(n){switch(n.label){case 0:return null===e?[2,[]]:e.items?(r=re(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(ne))]):[3,2];case 1:return[2,te(ae(n.sent()))];case 2:return[2,te(re(e.files).map((function(e){return $(e)})))]}}))}))}function te(e){return e.filter((function(e){return-1===Y.indexOf(e.name)}))}function re(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function ne(e){if("function"!=typeof e.webkitGetAsEntry)return le(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?oe(t):le(e)}function ae(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(K(arguments[t]));return e}(e,Array.isArray(t)?ae(t):[t])}),[])}function le(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=$(t);return Promise.resolve(r)}function ie(e){return H(this,void 0,void 0,(function(){return V(this,(function(t){return[2,e.isDirectory?oe(e):se(e)]}))}))}function oe(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function a(){var l=this;t.readEntries((function(t){return H(l,void 0,void 0,(function(){var l,i,o;return V(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return l=s.sent(),e(l),[3,4];case 3:return i=s.sent(),r(i),[3,4];case 4:return[3,6];case 5:o=Promise.all(t.map(ie)),n.push(o),a(),s.label=6;case 6:return[2]}}))}))}),(function(e){r(e)}))}()}))}function se(e){return H(this,void 0,void 0,(function(){return V(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=$(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?de(Object(r),!0).forEach((function(t){ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):de(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pe(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 pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fe=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)}},he=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},me=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},be={code:"too-many-files",message:"Too many files"};function ve(e,t){var r="application/x-moz-file"===e.type||function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),l=a.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?l===t.replace(/\/.*$/,""):a===t}))}return!0}(e,t);return[r,r?null:fe(t)]}function xe(e,t,r){if(ye(e.size))if(ye(t)&&ye(r)){if(e.size>r)return[!1,he(r)];if(e.size<t)return[!1,me(t)]}else{if(ye(t)&&e.size<t)return[!1,me(t)];if(ye(r)&&e.size>r)return[!1,he(r)]}return[!0,null]}function ye(e){return null!=e}function we(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,l=e.multiple,i=e.maxFiles;return!(!l&&t.length>1||l&&i>=1&&t.length>i)&&t.every((function(e){var t=ge(ve(e,r),1)[0],l=ge(xe(e,n,a),1)[0];return t&&l}))}function ke(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Te(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 Pe(e){e.preventDefault()}function Le(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Ce(e){return-1!==e.indexOf("Edge/")}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Le(e)||Ce(e)}function Ne(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return t.some((function(t){return!ke(e)&&t&&t.apply(void 0,[e].concat(n)),ke(e)}))}}function De(){return"showOpenFilePicker"in window}function Oe(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 ce(ce({},e),{},ue({},t,[]))}),{}):{}}]}function je(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Ae(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}var ze=["children"],Fe=["open"],qe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ee=["refKey","onChange","onClick"];function Re(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(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 Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||Me(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 Me(e,t){if(e){if("string"==typeof e)return We(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var He=o((function(t,r){var n=t.children,a=Ze(_e(t,ze)),l=a.open,i=_e(a,Fe);return s(r,(function(){return{open:l}}),[l]),e.createElement(d,null,n(Ue(Ue({},i),{},{open:l})))}));He.displayName="Dropzone";var Ve={disabled:!1,getFilesFromEvent:function(e){return H(this,void 0,void 0,(function(){return V(this,(function(t){return J(e)&&J(e.dataTransfer)?[2,ee(e.dataTransfer,e.type)]:function(e){return J(e)&&J(e.target)}(e)?[2,Q(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,X(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};He.defaultProps=Ve,He.propTypes={children:p.func,accept:p.oneOfType([p.string,p.arrayOf(p.string)]),multiple:p.bool,preventDropOnDocument:p.bool,noClick:p.bool,noKeyboard:p.bool,noDrag:p.bool,noDragEventsBubbling:p.bool,minSize:p.number,maxSize:p.number,maxFiles:p.number,disabled:p.bool,getFilesFromEvent:p.func,onFileDialogCancel:p.func,onFileDialogOpen:p.func,useFsAccessApi:p.bool,onDragEnter:p.func,onDragLeave:p.func,onDragOver:p.func,onDrop:p.func,onDropAccepted:p.func,onDropRejected:p.func,validator:p.func};var Ke={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ue(Ue({},Ve),e),o=t.accept,s=t.disabled,d=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,g=t.multiple,p=t.maxFiles,f=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,b=t.onDrop,v=t.onDropAccepted,x=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,k=t.useFsAccessApi,T=t.preventDropOnDocument,P=t.noClick,L=t.noKeyboard,C=t.noDrag,S=t.noDragEventsBubbling,N=t.validator,D=r((function(){return"function"==typeof w?w:Ye}),[w]),O=r((function(){return"function"==typeof y?y:Ye}),[y]),j=n(null),A=n(null),z=a($e,Ke),F=Ie(z,2),q=F[0],E=F[1],R=q.isFocused,I=q.isFileDialogActive,M=q.draggedFiles,W=n("undefined"!=typeof window&&window.isSecureContext&&k&&De()),B=function(){!W.current&&I&&setTimeout((function(){A.current&&(A.current.files.length||(E({type:"closeDialog"}),O()))}),300)};l((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[A,I,O,W]);var U=n([]),G=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),U.current=[])};l((function(){return T&&(document.addEventListener("dragover",Pe,!1),document.addEventListener("drop",G,!1)),function(){T&&(document.removeEventListener("dragover",Pe),document.removeEventListener("drop",G))}}),[j,T]);var _=i((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(Re(U.current),[e.target]),Te(e)&&Promise.resolve(d(e)).then((function(t){ke(e)&&!S||(E({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),f&&f(e))}))}),[d,f,S]),H=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=Te(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&m&&m(e),!1}),[m,S]),V=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return j.current&&j.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),U.current=t,t.length>0||(E({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Te(e)&&h&&h(e))}),[j,h,S]),K=i((function(e,t){var r=[],n=[];e.forEach((function(e){var t=Ie(ve(e,o),2),a=t[0],l=t[1],i=Ie(xe(e,u,c),2),s=i[0],d=i[1],g=N?N(e):null;if(a&&s&&!g)r.push(e);else{var p=[l,d];g&&(p=p.concat(g)),n.push({file:e,errors:p.filter((function(e){return e}))})}})),(!g&&r.length>1||g&&p>=1&&r.length>p)&&(r.forEach((function(e){n.push({file:e,errors:[be]})})),r.splice(0)),E({acceptedFiles:r,fileRejections:n,type:"setFiles"}),b&&b(r,n,t),n.length>0&&x&&x(n,t),r.length>0&&v&&v(r,t)}),[E,g,o,u,c,p,b,v,x,N]),Z=i((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Te(e)&&Promise.resolve(d(e)).then((function(t){ke(e)&&!S||K(t,e)})),E({type:"reset"})}),[d,K,S]),$=i((function(){if(W.current){E({type:"openDialog"}),D();var e={multiple:g,types:Oe(o)};window.showOpenFilePicker(e).then((function(e){return d(e)})).then((function(e){K(e,null),E({type:"closeDialog"})})).catch((function(e){je(e)?(O(e),E({type:"closeDialog"})):Ae(e)&&(W.current=!1,A.current&&(A.current.value=null,A.current.click()))}))}else A.current&&(E({type:"openDialog"}),D(),A.current.value=null,A.current.click())}),[E,D,O,k,K,o,g]),Y=i((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),$()))}),[j,$]),J=i((function(){E({type:"focus"})}),[]),Q=i((function(){E({type:"blur"})}),[]),X=i((function(){P||(Se()?setTimeout($,0):$())}),[P,$]),ee=function(e){return s?null:e},te=function(e){return L?null:ee(e)},re=function(e){return C?null:ee(e)},ne=function(e){S&&e.stopPropagation()},ae=r((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.role,a=e.onKeyDown,l=e.onFocus,i=e.onBlur,o=e.onClick,d=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,g=e.onDrop,p=_e(e,qe);return Ue(Ue(Ge({onKeyDown:te(Ne(a,Y)),onFocus:te(Ne(l,J)),onBlur:te(Ne(i,Q)),onClick:ee(Ne(o,X)),onDragEnter:re(Ne(d,_)),onDragOver:re(Ne(c,H)),onDragLeave:re(Ne(u,V)),onDrop:re(Ne(g,Z)),role:"string"==typeof n&&""!==n?n:"button"},r,j),s||L?{}:{tabIndex:0}),p)}}),[j,Y,J,Q,X,_,H,V,Z,L,C,s]),le=i((function(e){e.stopPropagation()}),[]),ie=r((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,a=e.onClick,l=_e(e,Ee),i=Ge({accept:o,multiple:g,type:"file",style:{display:"none"},onChange:ee(Ne(n,Z)),onClick:ee(Ne(a,le)),tabIndex:-1},r,A);return Ue(Ue({},i),l)}}),[A,o,g,Z,s]),oe=M.length,se=oe>0&&we({files:M,accept:o,minSize:u,maxSize:c,multiple:g,maxFiles:p}),de=oe>0&&!se;return Ue(Ue({},q),{},{isDragAccept:se,isDragReject:de,isFocused:R&&!s,getRootProps:ae,getInputProps:ie,rootRef:j,inputRef:A,open:ee($)})}function $e(e,t){switch(t.type){case"focus":return Ue(Ue({},e),{},{isFocused:!0});case"blur":return Ue(Ue({},e),{},{isFocused:!1});case"openDialog":return Ue(Ue({},Ke),{},{isFileDialogActive:!0});case"closeDialog":return Ue(Ue({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return Ue(Ue({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return Ue(Ue({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ue({},Ke);default:return e}}function Ye(){}var Je={display:"flex",flexDirection:"row",flexWrap:"wrap",marginTop:10},Qe=function(e){var r,n,a,i,o=e.texts,s=e.files,d=e.setFiles;e.setDeletedFiles;var g=e.maxFiles,p=e.accept;e.onAcceptedFiles;var f=e.showPreview,h=e.onDeleteFile,m=e.onClearFiles,b=e.maxSize;e.errorMessages;var x=w(t(0),2),y=x[0],k=x[1],T=w(t(0),2),P=T[0],L=T[1],C=Ze({multiple:!0,accept:p,maxSize:b,maxFiles:g,onDrop:function(e){d(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),S=C.getRootProps,N=C.getInputProps,D=C.fileRejections,O=C.acceptedFiles,j=C.isDragActive;l((function(){return function(){null==s||s.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[s]),l((function(){d(O)}),[O,y]),m=function(){O.length=0,O.splice(0,O.length),d([])},l((function(){if(b>0){var e=Math.floor(Math.log(b)/Math.log(1024));L(parseFloat((b/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[b]);var A=D.map((function(e,t){return c("div",{children:[u("div",{children:e.file.name}),u("div",{children:e.errors[0].code})]},t)})),z=null==s?void 0:s.map((function(e,t){return c("div",{style:{position:"relative",margin:10},children:[c("button",{onClick:function(t){t.stopPropagation(),O.splice(O.indexOf(e),1),k(Math.random),h(e)},type:"button",class:"text-gray-400 absolute left-0 bg-gray-900 hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})}),u("span",{class:"sr-only",children:"Close modal"})]}),u("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(e.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"}},e.name)]})}));return console.log("error",D),c("div",v(v({},S({style:{backgroundColor:j&&"white"}})),{},{className:"border-black border border-dashed rounded-xl flex flex-col justify-center",children:[u("input",v({},N())),u("div",{className:"text-center p-1",children:"Click here or drop files here to upload"}),c("div",{className:"text-center p-1",children:["Max file size is ",P]}),O.length>0&&u(I,{style:{color:"black"},onClick:function(e){e.stopPropagation(),m()},text:"Clear All"}),z&&f?u("aside",{style:Je,children:z}):null,"too-many-files"===(null===(r=D[0])||void 0===r||null===(n=r.errors[0])||void 0===n?void 0:n.code)?u(W,{text:o.tooManyFiles,severity:"error"}):"file-too-large"===(null===(a=D[0])||void 0===a||null===(i=a.errors[0])||void 0===i?void 0:i.code)?u(W,{text:o.fileTooLarge,severity:"error"}):A]}))},Xe=function(e){return c("div",{className:"flex flex-row bg-blue-300 rounded-xl p-4",children:[u("button",{class:"inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:u("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})}),u("div",{className:"p-4",children:e.children})]})},et=["country","onChange","value","onlyContries","preferredCountries","inputProps","required","placeholder","name","label"];function tt(e){return e.country,e.onChange,e.value,e.onlyContries,e.preferredCountries,e.inputProps,e.required,e.placeholder,e.name,e.label,y(e,et),c("div",{children:[u("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),u("input",v(v({},e),{},{className:"mb-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"}))]})}var rt=function(e){return u("li",{onClick:e.action,children:u("div",{className:(e.icon,"flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"),children:u("span",{class:"ml-3",children:e.text})})})},nt=function(e){return u("div",{id:e.modalID,tabindex:"-1","aria-hidden":"true",class:"hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 w-full md:inset-0 h-modal md:h-full justify-center items-center",children:u("div",{class:"relative p-4 w-full max-w-2xl h-full md:h-auto",children:c("div",{class:"relative bg-white rounded-lg shadow dark:bg-gray-700",children:[c("div",{class:"flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600",children:[u("h3",{class:"text-xl font-semibold text-gray-900 dark:text-white",children:"Terms of Service"}),c("button",{type:"button",class:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})}),u("span",{class:"sr-only",children:"Close modal"})]})]}),c("div",{class:"p-6 space-y-6",children:[u("p",{class:"text-base leading-relaxed text-gray-500 dark:text-gray-400",children:"With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply."}),u("p",{class:"text-base leading-relaxed text-gray-500 dark:text-gray-400",children:"The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them."})]}),c("div",{class:"flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600",children:[u("button",{"data-modal-toggle":"defaultModal",type:"button",class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",children:"I accept"}),u("button",{"data-modal-toggle":"defaultModal",type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600",children:"Decline"})]})]})})})},at=function(e){return u("div",{children:e.children})},lt=function(){return c("button",{"data-drawer-target":"drawer-navigation","data-drawer-show":"drawer-navigation","aria-controls":"drawer-navigation",type:"button",class:"inline-flex items-center p-2 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600",children:[u("span",{class:"sr-only",children:"Open main menu"}),u("svg",{"aria-hidden":"true",class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})},it=function(e){return c("div",{id:"userDropdown",class:"hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600","data-popper-reference-hidden":"","data-popper-escaped":"","data-popper-placement":"bottom-start",children:[c("div",{class:"py-3 px-4 text-sm text-gray-900 dark:text-white",children:[u("div",{children:e.username}),u("div",{class:"font-medium truncate",children:e.userEmail})]}),u("ul",{class:"py-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"avatarButton",children:e.profileItems.map((function(e){return u(st,{text:e.text,link:e.slug})}))}),u("div",{class:"py-1",children:u("a",{href:"#",class:"block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white",children:"Sign out"})})]})},ot=function(e){return c("div",{id:"drawer-navigation",class:"fixed z-40 h-screen p-4 overflow-y-auto bg-white w-80 dark:bg-gray-800",tabindex:"-1","aria-labelledby":"drawer-navigation-label",children:[u("div",{href:e.logoHref,class:"flex items-center",children:u("img",{src:"https://my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75",class:"h-9",alt:"Flowbite Logo"})}),u(dt,{}),u("div",{class:"py-4 overflow-y-auto",children:u("ul",{class:"space-y-2",children:e.drawerItems.map((function(e,t){return u(rt,{action:e.action,text:e.text},t)}))})})]})},st=function(e){return u("li",{children:u("a",{href:e.link,className:"block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:e.text})})},dt=function(){return u("button",{type:"button","data-drawer-dismiss":"drawer-navigation","aria-controls":"drawer-navigation",className:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white",children:u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})})},ct=function(e){var t;return c("div",{className:"font-plex",children:[u("div",{children:u("nav",{class:"border-gray-200 rounded dark:bg-gray-900",children:c("div",{class:"flex p-3 flex-row-reverse items-center justify-between w-full",children:[u("div",{"data-dropdown-toggle":"userDropdown","data-dropdown-placement":"bottom-start",class:"overflow-hidden mr-2 relative w-10 h-10 bg-gray-100 rounded-full dark:bg-gray-600",children:u("svg",{class:"absolute -left-1 w-12 h-12 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"})})}),u("div",{children:null!==(t=e.pageTitle)&&void 0!==t?t:"Home"}),u("div",{className:"flex flex-row-reverse",children:u(lt,{})})]})})}),u(it,{profileItems:e.profileItems}),u(ot,{logoHref:e.logoHref,appTitle:e.appTitle,drawerItems:e.drawerItems}),u("div",{className:"p-3",children:e.children})]})};ct.propTypes={logoLink:p.string,username:p.string,userEmail:p.string,drawerItems:p.objectOf({text:p.string,slug:p.string,action:p.func})};var ut=function(e){var t="";return t=e.withDividers?"w-full max-w-sm flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4":"w-full max-w-sm flex flex-col bg-blue-300 rounded-xl p-4",u("div",{className:t,children:e.children})},gt=function(e){var t=f(),r=e.inputs,n=t.formState.errors,a=t.handleSubmit,l=t.control;return c(ut,{children:[" ",u(h,v(v({},t),{},{children:c("form",{onSubmit:a(e.handleUpdateProfile),children:[u(m,{control:l,name:"fullName",render:function(t){var r,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(a=n.fullName)||void 0===a?void 0:a.message},l))}}),u(m,{control:l,name:"phoneNumber",render:function(e){var t=e.field;return u(j,v({fullWidth:!0,type:"tel",label:"Phone Number",placeholder:"+966"},t))}}),u(m,{control:l,name:"email",render:function(t){var r,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.emailLabel,helperText:null===(a=n.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(m,{control:l,name:"password",render:function(t){var r,a,l=t.field;return u(j,v({fullWidth:!0,type:"password",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(a=n.password)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.passwordRequiredText}}),u(m,{control:l,name:"confirmPassword",render:function(t){var r,a,l=t.field;return u(j,v({fullWidth:!0,type:"password",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(a=n.confirmPassword)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.confirmPasswordRequiredText}}),r.length>0&&r.map((function(e){return"textArea"===e.type?u(m,{control:l,name:e.name,render:function(t){var r,n,a,l;return t.field,u(j,{fullWidth:!0,type:"text",defaultValue:null!==(r=e.defaultValue)&&void 0!==r?r:null,label:null!==(n=e.label)&&void 0!==n?n:null,placeholder:null!==(a=e.placeHolder)&&void 0!==a?a:null,rules:null!==(l=e.rules)&&void 0!==l?l:null})}}):u(m,{control:l,name:e.name,render:function(t){var r,n,a,l;return t.field,u(j,{fullWidth:!0,type:e.type,defaultValue:null!==(r=e.defaultValue)&&void 0!==r?r:null,label:null!==(n=e.label)&&void 0!==n?n:null,placeholder:null!==(a=e.placeHolder)&&void 0!==a?a:null,rules:null!==(l=e.rules)&&void 0!==l?l:null})}})})),u(I,{fullWidth:!0,type:"submit",text:e.texts.updateProfile})]})}))]})},pt=function(e){return c(ut,{children:[" ",e.children,u(I,{text:e.saveSettingsText,type:"submit",fullWidth:!0,onClick:e.handleSaveSettings})]})},ft=function(e){var r=w(t(!1),2),n=r[0],a=r[1],l=f(),i=l.formState.errors,o=l.handleSubmit,s=l.control;return c(ut,{children:[" ",n&&u(W,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?u("div",{className:"text-center",children:e.texts.passwordChanged}):u(h,v(v({},l),{},{children:c("form",{onSubmit:o((function(t){console.log("handling subb",t),t.password===t.confirmPassword?e.handleNewPassword():a(!0)})),children:[u(m,{control:s,name:"password",render:function(t){var r,n,a=t.field;return u(j,v({fullWidth:!0,type:"password",value:null!==(r=a.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(n=i.password)||void 0===n?void 0:n.message},a))},rules:{required:e.texts.passwordRequiredText}}),u(m,{control:s,name:"confirmPassword",render:function(t){var r,n,a=t.field;return u(j,v({fullWidth:!0,type:"password",value:null!==(r=a.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(n=i.confirmPassword)||void 0===n?void 0:n.message},a))},rules:{required:e.texts.confirmPasswordRequiredText}}),u(I,{type:"submit",fullWidth:!0,text:e.texts.updatePassword})]})}))]})};ft.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,passwordPlaceholder:p.string,updatePassword:p.string,passwordRequiredText:p.string,passwordLabel:p.string,confirmPasswordPlaceholder:p.string,confirmPasswordLabel:p.string,confirmPasswordRequiredText:p.string,passwordMatchError:p.string,forgotPasswordText:p.string,passwordChanged:p.string}),passwordChanged:p.bool,handleNewPassword:p.func};var ht=function(e){var t=f(),r=t.formState.errors,n=t.handleSubmit;t.register;var a=t.control;return c(ut,{children:[" ",e.sent?u("div",{className:"text-center",children:e.texts.emailSentText}):c("form",{onSubmit:n(e.handleResetPassword),children:[u(m,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(I,{fullWidth:!0,type:"submit",text:e.texts.resetPassword})," "]})]})};ht.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,emailSentText:p.string,resetPassword:p.string}),sent:p.bool,handleResetPassword:p.func};var mt=function(e){var t=f(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ut,{withDividers:!0,children:[e.showError&&u(W,{title:e.errorTitle,text:e.errorText,severity:"error"}),u(h,v(v({},t),{},{children:c("form",{onSubmit:n(e.handleSignUp),children:[u(m,{control:a,name:"fullName",render:function(t){var n,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(a=r.fullName)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.fullNameRequiredText}}),u(m,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(m,{control:a,name:"password",render:function(t){var n,a,l,i=t.field;return u(j,v({fullWidth:!0,type:"password",defaultValue:null!==(n=i.value)&&void 0!==n?n:"",value:null!==(a=i.value)&&void 0!==a?a:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(l=r.password)||void 0===l?void 0:l.message},i))},rules:{required:e.texts.passwordRequiredText}}),u(I,{fullWidth:!0,type:"submit",text:e.texts.signUpText})," "]})})),c("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.existingUserText," ",u("span",{onClick:e.handleRouteToSignIn,className:"text-blue-600 cursor-pointer",children:e.texts.signInText})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?c("div",{style:{display:"flex",flexDirection:"column"},children:[e.viaGoogle&&u(E,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignUp}),e.viaGithub&&u(E,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignUp}),e.viaTwitter&&u(E,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignUp})]}):null]})};mt.propTypes={texts:p.shape({fullNameLabel:p.string,fullNamePlaceholder:p.string,fullNameRequiredText:p.string,emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,passwordTooShortText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,signInText:p.string,existingUserText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignUp:p.func,handleRouteToSignIn:p.func,handleGoogleSignUp:p.func,handleGithubSignUp:p.func,handleTwitterSignUp:p.func};var bt=function(e){var t=f(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ut,{withDividers:!0,children:[c("form",{onSubmit:n(e.handleSignIn),children:[e.showError&&u(W,{title:e.errorTitle,text:e.errorText,severity:"error"}),u(m,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(j,v({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(m,{control:a,name:"password",render:function(t){var n,a,l,i=t.field;return u(j,v({fullWidth:!0,type:"password",defaultValue:null!==(n=i.value)&&void 0!==n?n:"",value:null!==(a=i.value)&&void 0!==a?a:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(l=r.password)||void 0===l?void 0:l.message},i))},rules:{required:e.texts.passwordRequiredText}}),u("div",{className:"text-xs cursor-pointer w-fit mb-3",onClick:e.handleForgotPassword,children:e.texts.forgotPasswordText}),u(I,{fullWidth:!0,type:"submit",text:e.texts.signInText})," ",c("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.newUserText," ",u("span",{onClick:e.handleRouteToSignUp,className:"text-blue-600 cursor-pointer",children:e.texts.signUpText})]})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?c("div",{className:"flex flex-col ",children:[e.viaGoogle&&u(E,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignIn}),e.viaGithub&&u(E,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignIn}),e.viaTwitter&&u(E,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignIn})]}):null]})};bt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,signInText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignIn:p.func,handleRouteToSignUp:p.func,handleGoogleSignIn:p.func,handleGithubSignIn:p.func,handleTwitterSignIn:p.func};var vt=function(e){var t=f(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ut,{children:[" ",e.showError&&u(W,{title:e.errorTitle,text:e.errorText,severity:"error"}),c("form",{onSubmit:n(e.handleSignIn),children:[u(m,{control:a,name:"code",render:function(t){var n,a,l=t.field;return u(j,v({fullWidth:!0,type:"number",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.codeLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.codePlaceholder},l))},rules:{required:e.texts.codeRequiredText}}),u(I,{type:"submit",fullWidth:!0,text:e.texts.confirmText})]})]})};vt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,confirmText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignIn:p.func,handleRouteToSignUp:p.func,handleGoogleSignIn:p.func,handleGithubSignIn:p.func,handleTwitterSignIn:p.func};var xt=function(e){var r=w(t(""),2);r[0];var n=r[1],a=f();a.formState.errors;var l=a.handleSubmit,i=a.control;return u(ut,{children:c("form",{onSubmit:l(e.onSubmit),children:[u(m,{control:i,name:"phone",render:function(t){var r,a,l,i=t.field;return u(tt,v({country:null!==(r=e.country)&&void 0!==r?r:"",label:null!==(a=e.label)&&void 0!==a?a:"",onChange:function(t){e.onChange(t),n(t)},value:null!==(l=e.value)&&void 0!==l?l:e.value},i))}}),u(I,{fullWidth:!0,type:"submit",text:e.SignInButtonText})]})})},yt=function(e){return c(ut,{children:[u(O,{align:"center",children:"Choose Payment Method"}),e.viaWallet&&u(E,{logo:"wallet",buttonText:e.walletLabel,onClick:e.handleWallet}),e.viaCreditCard&&u(E,{logo:"visa/master",buttonText:e.visaMasterLabel,onClick:e.handleCreditCard}),e.viaMada&&u(E,{logo:"mada",buttonText:e.madaLabel,onClick:e.handleMada}),e.viaSTCPay&&u(E,{logo:"stcpay",buttonText:e.stcPayLabel,onClick:e.handleSTCPay}),e.viaPayPal&&u(E,{logo:"paypal",buttonText:e.paypalLabel,onClick:e.handlePayPal}),e.viaGooglePay&&u(E,{logo:"googlepay",buttonText:e.googlePayLabel,onClick:e.handleGooglePay}),e.viaApplePay&&u(E,{logo:"applepay",buttonText:e.applePayLabel,onClick:e.handleApplePay})]})};yt.propTypes={viaMada:p.bool,viaWallet:p.bool,viaSTCPay:p.bool,viaPayPal:p.bool,viaApplePay:p.bool,viaCreditCard:p.bool,madaLabel:p.string,stcPayLabel:p.string,paypalLabel:p.string,walletLabel:p.string,applePayLabel:p.string,visaMasterLabel:p.string,handleMada:p.func,handleWallet:p.func,handleSTCPay:p.func,handlePayPal:p.func,handleApplePay:p.func,handleCreditCard:p.func};var wt=function(e){var t,r=f(),n=r.formState.errors,a=r.handleSubmit,l=r.control;return c(ut,{children:[" ",c("form",{onSubmit:a(e.handle),children:[u(j,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"tel",label:"Card Number",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message}),u(m,{control:l,name:"cardName",render:function(e){var t;return e.field,u(j,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"Name On Card",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(m,{control:l,name:"cardName",render:function(e){var t;return e.field,u(j,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"Expiry Date",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(m,{control:l,name:"cardName",render:function(e){var t;return e.field,u(j,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"CCV",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(I,{type:"submit",fullWidth:!0,onClick:e.handlePayWithCreditCard,text:"Pay with Credit Card"})," "]})]})},kt=function(e){var r=w(t(0),2),n=r[0],a=r[1],l=f(),i=l.formState.errors,o=l.handleSubmit,s=l.control;return c(ut,{children:[" ",c("div",{className:"text-5xl font-extrabold text-center",children:[Number(n).toLocaleString("en")||"0",u("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),u(h,v(v({},l),{},{children:c("form",{onSubmit:o(e.handleChargeWallet),children:[u(m,{control:s,name:"amount",render:function(t){var r,n,l=t.field;return u(j,v(v({fullWidth:!0,placeholder:e.texts.amountLabel,type:"number",value:null!==(r=l.value)&&void 0!==r?r:""},l),{},{inputProps:{inputMode:"numeric",min:"1",max:"9999999",step:"0.01"},onChange:function(e){l.onChange(parseFloat(e.target.value)),a(e.target.value)},helperText:null===(n=i.amount)||void 0===n?void 0:n.message}))},rules:{required:e.texts.amountRequired}}),u(I,{type:"submit",fullWidth:!0,text:e.texts.chargeWallet})]})}))]})};kt.propTypes={texts:p.shape({amountLabel:p.string,chargeWallet:p.string,amountRequired:p.string}),handleChargeWallet:p.func,currency:p.string};var Tt=function(e){return c(ut,{children:[c("div",{className:"text-5xl font-extrabold text-center",children:[e.walletBalance||"0",u("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),u(I,{type:"submit",fullWidth:!0,onClick:e.handlePayWithWallet,text:"Pay Now"})]})},Pt=function(e){var t,r,n,a,l,i,o,s,d,g;e.lang;var p=f(),b=p.formState.errors,x=p.handleSubmit;p.register;var y=p.control,w={display:"flex",padding:0,paddingRight:"0px !important",paddingLeft:"0px !important",flexDirection:{xs:"column",sm:"row",md:"row",lg:"row",xl:"row"}};return c(ut,{withDividers:!0,children:[" ",c("div",{children:[u("div",{className:"text-xl text-center font-semibold mb-2",children:e.texts.orderDetails}),u(B,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),c("div",{children:[u("div",{className:"text-xl text-center font-semibold my-2",children:e.texts.billingAddress}),u(h,v(v({},p),{},{children:c("form",{onSubmit:x(e.handlePayNow),children:[c("div",{children:[u(m,{control:y,name:"firstName",rules:{required:null===(t=e.texts)||void 0===t?void 0:t.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.firstNameLabel)+" *",helperText:null===(a=b.firstName)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(m,{control:y,name:"lastName",rules:{required:null===(r=e.texts)||void 0===r?void 0:r.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.lastNameLabel)+" *",helperText:null===(a=b.lastName)||void 0===a?void 0:a.message},l))}})]}),u(m,{control:y,name:"email",render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.emailLabel)+" *",helperText:null===(a=b.email)||void 0===a?void 0:a.message},l))},rules:{required:null===(n=e.texts)||void 0===n?void 0:n.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:null===(a=e.texts)||void 0===a?void 0:a.emailInvalidText}}}),c("div",{sx:w,children:[u(m,{control:y,name:"streetAddress",rules:{required:null===(l=e.texts)||void 0===l?void 0:l.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.streetAddressLabel)+" *",helperText:null===(a=b.streetAddress)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(m,{control:y,name:"buildingNumber",rules:{required:null===(i=e.texts)||void 0===i?void 0:i.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.buildingNumberLabel)+" *",helperText:null===(a=b.buildingNumber)||void 0===a?void 0:a.message},l))}})]}),c("div",{sx:w,children:[u(m,{control:y,name:"province",rules:{required:null===(o=e.texts)||void 0===o?void 0:o.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.stateLabel)+" *",helperText:null===(a=b.province)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(m,{control:y,name:"city",rules:{required:null===(s=e.texts)||void 0===s?void 0:s.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.cityLabel)+" *",helperText:null===(a=b.city)||void 0===a?void 0:a.message},l))}})]}),c("div",{className:"mb-3",children:[u(m,{control:y,name:"zipCode",rules:{required:null===(d=e.texts)||void 0===d?void 0:d.required},render:function(t){var r,n,a,l=t.field;return u(j,v({inForm:!0,fullWidth:!0,type:"number",variant:"unscrollable",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.zipCodeLabel)+" *",helperText:null===(a=b.zipCode)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(m,{control:y,name:"country",rules:{required:null===(g=e.texts)||void 0===g?void 0:g.required},render:function(t){var r,n,a,l=t.field;return c(M,v(v({fullWidth:!0,native:!0,label:(null===(r=e.texts)||void 0===r?void 0:r.countryLabel)+" *",variant:"standard",value:null!==(n=l.value)&&void 0!==n?n:"",helperText:null===(a=b.country)||void 0===a?void 0:a.message,displayEmpty:!0,disableUnderline:!0,validators:["required"]},l),{},{children:[u("option",{}),e.countriesList.map((function(e,t){return u("option",{children:e},t)}))]}))}})]}),u(I,{type:"submit",fullWidth:!0,text:e.texts.payNow})," "]})}))]})]})};Pt.propTypes={texts:p.shape({orderDetails:p.string,billingAddress:p.string,payNow:p.string,emailLabel:p.string,emailRequiredText:p.string,emailInvalidText:p.string,firstNameLabel:p.string,required:p.string,lastNameLabel:p.string,streetAddressLabel:p.string,buildingNumberLabel:p.string,cityLabel:p.string,stateLabel:p.string,countryLabel:p.string,zipCodeLabel:p.string}),lang:p.string,countriesList:p.array,products:p.array,total:p.string,handlePayNow:p.func};var Lt=function(e){return e.lang,c(ut,{withDividers:!0,children:[" ",u("div",{className:"text-3xl font-bold text-center py-5",children:e.confirmationTitle}),c("div",{className:"py-5",children:[c("div",{className:"text-center mb-2",children:[e.texts.successMessage," ",u("strong",{children:e.userEmail})]}),u("div",{className:"text-center",children:e.texts.yourOrderNumber}),u("div",{className:"font-bold text-center",children:e.orderNumber})]}),c("div",{className:"py-5",children:[u("div",{className:"text-xl font-semibold mb-3 text-center",children:e.texts.orderDetails}),e.products&&u(B,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),c("div",{className:"flex flex-col py-5 justify-center items-center",children:[u(I,{fullWidth:!0,onClick:e.handlePrint,text:e.texts.print})," ",u(I,{fullWidth:!0,onClick:e.handleHistory,text:e.texts.history})," ",u(I,{fullWidth:!0,onClick:e.handleHome,text:e.texts.homePage})," ",u("div",{className:"mt-5 mb-5 text-center text-sm",children:e.texts.fasterPaymentNote}),u("a",{className:"w-fit text-center cursor-pointer text-xs font-normal",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})};Lt.propTypes={texts:p.shape({print:p.string,history:p.string,homePage:p.string,successMessage:p.string,orderDetails:p.string,fasterPaymentNote:p.string,billingAddress:p.string,payNow:p.string,yourOrderNumber:p.string,emailLabel:p.string,emailRequiredText:p.string,emailInvalidText:p.string,firstNameLabel:p.string,required:p.string,lastNameLabel:p.string,streetAddressLabel:p.string,buildingNumberLabel:p.string,cityLabel:p.string,stateLabel:p.string,countryLabel:p.string,zipCodeLabel:p.string,refundPolicy:p.string}),products:p.array,countriesList:p.array,lang:p.string,total:p.string,userEmail:p.string,orderNumber:p.string,confirmationTitle:p.string,handleHome:p.func,handlePrint:p.func,handleHistory:p.func,handleRefundPolicyLink:p.func};var Ct=function(e){var r=w(t("sar"),2),n=r[0],a=r[1],l=w(t("monthly"),2),i=l[0],o=l[1];return c("div",{children:[c("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:10},children:[u(F,{defaultValue:i,options:[{label:"Monthly",value:"monthly"},{label:"3 Months",value:"3-months"},{label:"6 Months",value:"6-months"},{label:"Annually",value:"annually"}],onChangeTab:function(e){return o(e)}}),u(F,{defaultValue:n,options:[{label:"USD",value:"usd"},{label:"SAR",value:"sar"}],onChangeTab:function(e){return a(e)}})]}),u("div",{className:"flex flex-row",children:e.plans.map((function(t){return u(D,v(v({lang:e.lang},t),{},{currency:n,cycleText:i}))}))})]})};Ct.propTypes={plans:p.arrayOf(p.shape({title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,price:p.number,currency:p.string,cycleText:p.string,buttonText:p.string,features:p.array,features_ar:p.array,selectedPlan:p.bool})),lang:p.string};var St=function(){return u("svg",{class:"w-5 h-5 text-green-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})})},Nt=function(){return u("svg",{class:"w-5 h-5 text-red-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})},Dt=function(e){var r=w(t("sar"),2);r[0],r[1];var n=w(t("monthly"),2);return n[0],n[1],u("div",{id:"detailed-pricing",class:"overflow-x-auto w-full",children:c("div",{class:"overflow-hidden min-w-max",children:[c("div",{class:"grid grid-cols-4 gap-x-16 p-4 text-sm font-medium text-gray-900 bg-gray-100 border-t border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700 dark:text-white",children:[u("div",{class:"flex items-center"}),e.plans.map((function(e){return u("div",{children:e.title})}))]}),e.plans.map((function(e){return c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[c("div",{class:"text-gray-500 dark:text-gray-400",children:["Basic components (",u("a",{href:"#",class:"text-blue-600 hover:underline",children:"view all"}),")"]}),u(St,{}),u(St,{}),u(St,{})]})})),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[c("div",{class:"text-gray-500 dark:text-gray-400",children:["Application UI (",u("a",{href:"#",class:"text-blue-600 hover:underline",children:"view demo"}),")"]}),u(Nt,{}),u(St,{}),u(Nt,{})]}),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[u("div",{class:"text-gray-500 dark:text-gray-400",children:"Marketing UI pre-order"}),u(Nt,{}),u(St,{}),u(Nt,{})]}),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[u("div",{class:"text-gray-500 dark:text-gray-400"}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})})]})]})})};Dt.propTypes={plans:p.arrayOf(p.shape({title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,price:p.number,currency:p.string,cycleText:p.string,buttonText:p.string,features:p.array,features_ar:p.array,selectedPlan:p.bool})),lang:p.string};export{at as Box,kt as ChargeWalletForm,Pt as CheckoutForm,vt as CodeConfirmation,Dt as ComparingPlans,Lt as ConfirmationPage,wt as CreditCardForm,Qe as DragDropImages,Xe as DraggableCard,_ as HawaAccordian,W as HawaAlert,I as HawaButton,L as HawaCheckbox,S as HawaChip,A as HawaColorPicker,ut as HawaContainer,N as HawaItemCard,ct as HawaLayout,E as HawaLogoButton,nt as HawaModal,C as HawaPanelTabs,D as HawaPricingCard,z as HawaRange,U as HawaSearchBar,M as HawaSelect,q as HawaSettingsRow,T as HawaSnackbar,P as HawaSwitch,B as HawaTable,F as HawaTabs,j as HawaTextField,R as HawaTooltip,O as HawaTypography,ft as NewPasswordForm,Tt as PayWithWallet,Ct as PricingPlans,ht as ResetPasswordForm,yt as SelectPayment,bt as SignInForm,xt as SignInPhone,mt as SignUpForm,gt as UserProfileForm,pt as UserSettingsForm};
|
|
1
|
+
import e,{useState as t,useMemo as r,useRef as n,useReducer as a,useEffect as l,useCallback as i,forwardRef as o,useImperativeHandle as s,Fragment as d}from"react";import"flowbite";import{jsxs as c,jsx as u,Fragment as g}from"react/jsx-runtime";import p from"prop-types";import f from"react-select";import{useForm as h,FormProvider as m,Controller as b}from"react-hook-form";function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(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 T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var P=function(e){return c("div",{id:"toast-default",role:"alert",className:{info:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-blue-700 bg-blue-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",warning:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-yellow-700 bg-yellow-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",error:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-red-700 bg-red-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",success:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-green-700 bg-green-100 rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",none:"bottom-4 fixed flex items-center p-4 w-full max-w-xs text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800"}[e.severity],children:[c("div",{children:[u("div",{class:"ml-3 text-sm font-bold",children:e.title}),u("div",{class:"ml-3 text-sm font-normal",children:e.text})]}),c("button",{type:"button",class:"ml-auto -mx-1.5 -my-1.5 text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700","data-dismiss-target":"#toast-default","aria-label":"Close",children:[u("span",{class:"sr-only",children:"Close"}),u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})]})},L=function(e){return c("label",{for:"default-toggle",class:"inline-flex relative items-center cursor-pointer",children:[u("input",{type:"checkbox",value:"",id:"default-toggle",class:"sr-only peer"}),u("div",{class:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"}),u("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.text})]})},S=function(e){return c("div",{className:"flex items-center h-full p-2",children:[u("input",{type:"checkbox",value:"",className:"w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"}),e.label&&u("label",{className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})},C=function(e){var r=k(t(e.defaultValue),2);return r[0],r[1],c("div",{children:[u("div",{class:"mb-4 border-b border-gray-200 dark:border-gray-700",children:u("ul",{class:"flex flex-wrap -mb-px text-sm font-medium text-center",id:"myTab","data-tabs-toggle":"#myTabContent",role:"tablist",children:e.options.map((function(e){return u("li",{class:"mr-2",role:"presentation",children:u("button",{class:"inline-block p-4 rounded-t-lg border-b-2 text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",id:"".concat(e.value,"-tab"),"data-tabs-target":"#".concat(e.value),type:"button",role:"tab","aria-controls":e.value,"aria-selected":"true",children:e.label})})}))})}),u("div",{id:"myTabContent",children:e.options.map((function(e){return u("div",{class:"p-4 bg-gray-50 rounded-lg dark:bg-gray-800",id:e.value,role:"tabpanel","aria-labelledby":"".concat(e.value,"-tab"),children:e.content})}))})]})};C.propTypes={lang:p.string,options:p.arrayOf(p.shape({label:p.string,value:p.string})),defaultValue:p.string,handleChange:p.func,location:p.string};var N=function(e){return u("span",{class:"bg-blue-100 text-blue-800 text-xs font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-blue-200 dark:text-blue-800",children:e.label})},D=function(e){return c("div",{class:"block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 ",children:[e.headerActions&&c("div",{class:"flex justify-end pr-6",children:[c("button",{id:"dropdownButton","data-dropdown-toggle":"dropdown",class:"inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-4 focus:outline-none focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm",type:"button",children:[u("span",{class:"sr-only",children:"Open dropdown"}),u("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})]}),u("div",{id:"dropdown",class:"hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700",children:u("ul",{class:"py-1","aria-labelledby":"dropdownButton",children:e.headerActions.map((function(e){return u("li",{children:u("a",{href:"#",class:"block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white",children:e.label})})}))})})]}),c("div",{class:"px-6",children:[c("h5",{class:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:[e.header," "]}),u("p",{class:"font-normal text-gray-700 dark:text-gray-400",children:e.content})]}),u("div",{className:"p-3 mt-6 rounded-b-lg flex justify-end",children:e.actions})]})};D.propTypes={lang:p.string,onCardClick:p.func};var O=function(e){var t,r="ar"===e.lang,n={usd:r?"دولار":"$",sar:r?"ريال":"SAR"},a=r?e.features_ar:e.features;return c("div",{class:"mx-1 p-4 w-full max-w-sm bg-white rounded-lg border shadow-md sm:p-8 dark:bg-gray-800 dark:border-gray-700",children:[u("h5",{class:"mb-4 text-xl font-medium text-gray-500 dark:text-gray-400",children:r?e.title_ar:e.title}),c("div",{class:"flex items-baseline text-gray-900 dark:text-white",children:[c("span",{class:"font-semibold text-sm",children:[" ",n[null===(t=e.currency)||void 0===t?void 0:t.toLowerCase()]]}),u("span",{class:"text-5xl font-extrabold tracking-tight",children:e.price}),c("span",{class:"ml-1 text-xl font-normal text-gray-500 dark:text-gray-400",children:["/"," ",r?{monthly:"شهرياً","3-months":"كل 3 أشهر","6-months":"كل 6 أشهر",annually:"سنوياً"}[e.cycleText]:{monthly:"Monthly","3-months":"3 Months","6-months":"6 Months",annually:"Annually"}[e.cycleText]]})]}),u("ul",{role:"list",class:"my-7 space-y-5",children:null==a?void 0:a.map((function(e){return c("li",{class:"flex space-x-3",children:[c("svg",{"aria-hidden":"true",class:"flex-shrink-0 w-5 h-5 text-blue-600 dark:text-blue-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[u("title",{children:"Check icon"}),u("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})]}),u("span",{class:"text-base font-normal leading-tight text-gray-500 dark:text-gray-400",children:e})]})}))}),u("button",{type:"button",class:"text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-200 dark:focus:ring-blue-900 font-medium rounded-lg text-sm px-5 py-2.5 inline-flex justify-center w-full text-center",children:e.buttonText})]})};O.propTypes={lang:p.string,buttonText:p.string,selectedPlan:p.string,title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,features:p.array,features_ar:p.array,currency:p.oneOf(["sar","usd"]),cycleText:p.oneOf(["monthly","3-months","6-months","annually"])};var j=function(e){return u("div",x(x({},e),{},{children:e.children}))},A=function(e){return c("div",{children:[u("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),e.multiline?u("textarea",{id:"message",rows:"4",class:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Your message..."}):u("input",x(x({},e),{},{className:"mb-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"})),e.helperText&&u("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]})},z=function(e){return u("div",{style:{display:"flex",flexDirection:"row"}})};z.propTypes={color:p.string,handleChange:p.func};var F=function(e){return c("div",{children:[e.label&&u("label",{for:"default-range",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),c("div",{className:"flex flex-row justify-center items-center w-fit",children:[u("div",{className:"mr-2",children:e.startElement})," ",u("input",{id:"default-range",type:"range",value:"50",class:"w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),u("div",{className:"ml-2",children:e.endElement})," "]})]})};F.propTypes={startElement:p.element,endElement:p.element,handleChange:p.func};var R=function(e){var r=k(t(e.defaultValue),2),n=r[0],a=r[1];return u("div",{children:u("ul",{className:"bg-gray-100 w-fit rounded-lg flex flex-wrap text-sm font-medium text-center text-gray-500 dark:text-gray-400",children:e.options.map((function(t){return u("li",{className:"mr-2",children:u("button",{"aria-current":"page",onClick:function(){a(t.value),e.onChangeTab(t.value)},className:n===t.value?"inline-block py-2 px-4 text-white bg-blue-600 rounded-lg active":"inline-block py-2 px-4 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white",children:t.label})})}))})})},q=function(e){return c("div",{className:"flex flex-row bg-white justify-between align-middle items-center p-2 rounded-xl my-2 h-14",children:[u(j,{children:e.settingsLabel}),"checkbox"===e.settingsType&&u(S,x({},e)),"text"===e.settingsType&&u(A,x({},e)),"boolean"===e.settingsType&&u(L,x({},e)),"range"===e.settingsType&&u(F,x({},e)),"color"===e.settingsType&&u(z,x({},e)),"radio"===e.settingsType&&u(R,x({},e))]})};q.propTypes={settingsLabel:p.string,settingsType:p.oneOf(["checkbox","text","radio","boolean","color"])};var E=function(e){var t,r="ar"===e.lang,n="";switch(null===(t=e.logo)||void 0===t?void 0:t.toLowerCase()){case"google":n=u("img",{src:"https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg"});break;case"github":n=u("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:"w-7 h-7",children:u("path",{d:"M16 0.396c-8.839 0-16 7.167-16 16 0 7.073 4.584 13.068 10.937 15.183 0.803 0.151 1.093-0.344 1.093-0.772 0-0.38-0.009-1.385-0.015-2.719-4.453 0.964-5.391-2.151-5.391-2.151-0.729-1.844-1.781-2.339-1.781-2.339-1.448-0.989 0.115-0.968 0.115-0.968 1.604 0.109 2.448 1.645 2.448 1.645 1.427 2.448 3.744 1.74 4.661 1.328 0.14-1.031 0.557-1.74 1.011-2.135-3.552-0.401-7.287-1.776-7.287-7.907 0-1.751 0.62-3.177 1.645-4.297-0.177-0.401-0.719-2.031 0.141-4.235 0 0 1.339-0.427 4.4 1.641 1.281-0.355 2.641-0.532 4-0.541 1.36 0.009 2.719 0.187 4 0.541 3.043-2.068 4.381-1.641 4.381-1.641 0.859 2.204 0.317 3.833 0.161 4.235 1.015 1.12 1.635 2.547 1.635 4.297 0 6.145-3.74 7.5-7.296 7.891 0.556 0.479 1.077 1.464 1.077 2.959 0 2.14-0.020 3.864-0.020 4.385 0 0.416 0.28 0.916 1.104 0.755 6.4-2.093 10.979-8.093 10.979-15.156 0-8.833-7.161-16-16-16z"})});break;case"twitter":n=u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",className:"w-5 h-5",viewBox:"0 0 512.002 512.002",children:u("path",{d:"M500.398,94.784c-8.043,3.567-16.313,6.578-24.763,9.023c10.004-11.314,17.631-24.626,22.287-39.193 c1.044-3.265-0.038-6.839-2.722-8.975c-2.681-2.137-6.405-2.393-9.356-0.644c-17.945,10.643-37.305,18.292-57.605,22.764 c-20.449-19.981-48.222-31.353-76.934-31.353c-60.606,0-109.913,49.306-109.913,109.91c0,4.773,0.302,9.52,0.9,14.201 c-75.206-6.603-145.124-43.568-193.136-102.463c-1.711-2.099-4.347-3.231-7.046-3.014c-2.7,0.211-5.127,1.734-6.491,4.075 c-9.738,16.709-14.886,35.82-14.886,55.265c0,26.484,9.455,51.611,26.158,71.246c-5.079-1.759-10.007-3.957-14.711-6.568 c-2.525-1.406-5.607-1.384-8.116,0.054c-2.51,1.439-4.084,4.084-4.151,6.976c-0.012,0.487-0.012,0.974-0.012,1.468 c0,39.531,21.276,75.122,53.805,94.52c-2.795-0.279-5.587-0.684-8.362-1.214c-2.861-0.547-5.802,0.456-7.731,2.638 c-1.932,2.18-2.572,5.219-1.681,7.994c12.04,37.591,43.039,65.24,80.514,73.67c-31.082,19.468-66.626,29.665-103.939,29.665 c-7.786,0-15.616-0.457-23.279-1.364c-3.807-0.453-7.447,1.795-8.744,5.416c-1.297,3.622,0.078,7.66,3.316,9.736 c47.935,30.735,103.361,46.98,160.284,46.98c111.903,0,181.907-52.769,220.926-97.037c48.657-55.199,76.562-128.261,76.562-200.451 c0-3.016-0.046-6.061-0.139-9.097c19.197-14.463,35.724-31.967,49.173-52.085c2.043-3.055,1.822-7.094-0.545-9.906 C507.7,94.204,503.76,93.294,500.398,94.784z"})});break;case"mada":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"});break;case"stcpay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"});break;case"visa/master":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"});break;case"paypal":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"});break;case"googlepay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"});break;case"applepay":n=u("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"});break;case"wallet":n=u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 223 223",className:"h-6 w-6",children:c("g",{children:[u("path",{d:"M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823 C182.338,118.225,176.597,123.967,169.515,123.967z"}),u("path",{d:"M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175 c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z"})]})})}return c("button",x(x({style:{direction:r?"rtl":"ltr"}},e),{},{className:"bg-white rounded-xl my-2 h-11 flex max-w-sm w-full flex-row justify-center align-middle",children:[u("div",{className:"h-full flex flex-row justify-end items-center",children:n}),u("div",{style:{width:10}}),u("div",{className:"h-full flex flex-col justify-center items-start",children:e.buttonText})]}))};E.propTypes={lang:p.string,logo:p.oneOf(["google","github","twitter","wallet","googlepay","applepay","stcpay","visa/master","paypal","mada"]),buttonText:p.string};var I=function(e){return c("div",{id:e.tooltipID,role:"tooltip",class:"inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700",children:[e.content,u("div",{class:"tooltip-arrow","data-popper-arrow":!0})]})},M=function(e){var t="pr-2 flex flex-col justify-center items-center",r="m-1 px-2.5 py-2.5 text-center text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";return e.fullWidth&&(r="my-1 w-full flex justify-center text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"),e.iconOnly&&(t="flex flex-col justify-center items-center"),c("button",x(x({"data-tooltip-target":e.tooltip,type:"button",className:r},e),{},{children:[e.tooltip&&u(I,{tooltipID:e.tooltip,content:e.tooltip}),e.icon?u("div",{className:t,children:e.icon}):null,!e.iconOnly&&e.text]}))},W=function(e){return c("div",{style:{width:"100%"},children:[u("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),u("select",{id:"countries",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:e.children})]})},B=function(e){return c("div",{class:"flex flex-col p-4 mb-4 text-sm rounded-lg "+{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"}[e.severity],role:"alert",children:[u("span",{class:"font-medium",children:e.title}),u("span",{children:" "+e.text})]})};B.propTypes={severity:p.oneOf(["error","info","success","warning"]),title:p.string,text:p.string,hideIcon:p.bool};var U=function(e){var t="ar"===e.lang;return u(g,{children:u("div",{children:u("div",{class:"overflow-x-auto relative rounded-xl",children:c("table",{class:"w-full text-sm text-left text-gray-500 dark:text-gray-400",children:[u("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:c("tr",{children:[e.columns.map((function(e,t){return u("th",{scope:"col",class:"py-3 px-6",children:e},t)})),e.actions&&u("th",{scope:"col",class:"py-3 px-6",children:"actions"})]})}),u("tbody",{children:e.rows?e.rows.map((function(r,n){return c("tr",{class:"bg-white border-b dark:bg-gray-800 dark:border-gray-700",children:[r.map((function(e,t){return 0===t?c("th",{scope:"row",class:"py-4 px-6 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:[e," "]}):u("td",{class:"py-4 px-6",children:e})})),e.actions&&u("td",{align:t?"right":"left",style:{fontWeight:700},variant:t?"borderedRight":"borderedLeft",children:e.actions.map((function(t){return u(M,{onClick:function(){return e.handleActionClick(r)},text:t})}))})]},n)})):u("tr",{children:u("td",{colspan:e.columns.length,children:u("div",{className:"w-full p-5 text-center bg-white",children:e.noDataText})})})})]})})})})};U.propTypes={handleActionClick:p.func,noDataText:p.string,lang:p.string,columns:p.array,rows:p.array,end:p.array};var G=function(e){return u(A,x({},e))},_=function(e){return c("div",{children:[u("h2",{id:"accordion-collapse-heading-"+e.count,children:c("button",{type:"button",className:0===e.count?"rounded-t-xl border-b-0 flex items-center justify-between w-full p-5 font-medium text-left border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white":"flex items-center justify-between w-full p-5 font-medium text-left border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white","data-accordion-target":"#accordion-collapse-body-"+e.count,"aria-expanded":"true","aria-controls":"accordion-collapse-body-"+e.count,children:[u("span",{children:"What is Flowbite?"}),u("svg",{"data-accordion-icon":"",className:"w-6 h-6 rotate-180 shrink-0",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})}),u("div",{id:"accordion-collapse-body-"+e.count,className:"","aria-labelledby":"accordion-collapse-heading-"+e.count,children:c("div",{className:-1===e.count?"p-5 font-light border border-b-xl rounded-b-xl border-gray-200 dark:border-gray-700 dark:bg-gray-900":"p-5 font-light border border-b-xl border-gray-200 dark:border-gray-700 dark:bg-gray-900",children:[u("p",{className:"mb-2 text-gray-500 dark:text-gray-400",children:"Flowbite is an open-source library of interactive components built on top of Tailwind CSS including buttons, dropdowns, modals, navbars, and more."}),c("p",{className:"text-gray-500 dark:text-gray-400",children:["Check out this guide to learn how to"," ",u("a",{href:"/docs/getting-started/introduction/",class:"text-blue-600 dark:text-blue-500 hover:underline",children:"get started"})," ","and start developing websites even faster with components on top of Tailwind CSS."]})]})})]})},H=function(e){var t=[{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"}];return u("div",{id:"accordion-collapse","data-accordion":"collapse",children:t.map((function(e,r){return u(_,{title:e.title,content:e.content,count:t.length-1===r?-1:r})}))})};function V(e,t,r,n){return new(r||(r=Promise))((function(a,l){function i(e){try{s(n.next(e))}catch(e){l(e)}}function o(e){try{s(n.throw(e))}catch(e){l(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,o)}s((n=n.apply(e,t||[])).next())}))}function K(e,t){var r,n,a,l,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function o(l){return function(o){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&l[0]?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]<a[3])){i.label=l[1];break}if(6===l[0]&&i.label<a[1]){i.label=a[1],a=l;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(l);break}a[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],n=0}finally{r=a=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,o])}}}function Z(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,l=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=l.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=l.return)&&r.call(l)}finally{if(a)throw a.error}}return i}H.propTypes={title:p.string,content:p.string};var $=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 Y(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=$.get(r);n&&Object.defineProperty(e,"type",{value:n,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof r.path){var n=e.webkitRelativePath;Object.defineProperty(r,"path",{value:"string"==typeof t?t:"string"==typeof n&&n.length>0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}var J=[".DS_Store","Thumbs.db"];function Q(e){return"object"==typeof e&&null!==e}function X(e){return ne(e.target.files).map((function(e){return Y(e)}))}function ee(e){return V(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 Y(e)}))]}}))}))}function te(e,t){return V(this,void 0,void 0,(function(){var r;return K(this,(function(n){switch(n.label){case 0:return null===e?[2,[]]:e.items?(r=ne(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(ae))]):[3,2];case 1:return[2,re(le(n.sent()))];case 2:return[2,re(ne(e.files).map((function(e){return Y(e)})))]}}))}))}function re(e){return e.filter((function(e){return-1===J.indexOf(e.name)}))}function ne(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function ae(e){if("function"!=typeof e.webkitGetAsEntry)return ie(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?se(t):ie(e)}function le(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Z(arguments[t]));return e}(e,Array.isArray(t)?le(t):[t])}),[])}function ie(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=Y(t);return Promise.resolve(r)}function oe(e){return V(this,void 0,void 0,(function(){return K(this,(function(t){return[2,e.isDirectory?se(e):de(e)]}))}))}function se(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function a(){var l=this;t.readEntries((function(t){return V(l,void 0,void 0,(function(){var l,i,o;return K(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(n)];case 2:return l=s.sent(),e(l),[3,4];case 3:return i=s.sent(),r(i),[3,4];case 4:return[3,6];case 5:o=Promise.all(t.map(oe)),n.push(o),a(),s.label=6;case 6:return[2]}}))}))}),(function(e){r(e)}))}()}))}function de(e){return V(this,void 0,void 0,(function(){return K(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=Y(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ge(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fe(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 fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var he=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)}},me=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},be=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},ve={code:"too-many-files",message:"Too many files"};function xe(e,t){var r="application/x-moz-file"===e.type||function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),l=a.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?l===t.replace(/\/.*$/,""):a===t}))}return!0}(e,t);return[r,r?null:he(t)]}function ye(e,t,r){if(we(e.size))if(we(t)&&we(r)){if(e.size>r)return[!1,me(r)];if(e.size<t)return[!1,be(t)]}else{if(we(t)&&e.size<t)return[!1,be(t)];if(we(r)&&e.size>r)return[!1,me(r)]}return[!0,null]}function we(e){return null!=e}function ke(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,l=e.multiple,i=e.maxFiles;return!(!l&&t.length>1||l&&i>=1&&t.length>i)&&t.every((function(e){var t=pe(xe(e,r),1)[0],l=pe(ye(e,n,a),1)[0];return t&&l}))}function Te(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Pe(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 Le(e){e.preventDefault()}function Se(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Ce(e){return-1!==e.indexOf("Edge/")}function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Se(e)||Ce(e)}function De(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return t.some((function(t){return!Te(e)&&t&&t.apply(void 0,[e].concat(n)),Te(e)}))}}function Oe(){return"showOpenFilePicker"in window}function je(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 ue(ue({},e),{},ge({},t,[]))}),{}):{}}]}function Ae(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function ze(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}var Fe=["children"],Re=["open"],qe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ee=["refKey","onChange","onClick"];function Ie(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(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 Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,a,l=[],i=!0,o=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(o)throw a}}return l}(e,t)||We(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 We(e,t){if(e){if("string"==typeof e)return Be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach((function(t){_e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function He(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Ve=o((function(t,r){var n=t.children,a=$e(He(t,Fe)),l=a.open,i=He(a,Re);return s(r,(function(){return{open:l}}),[l]),e.createElement(d,null,n(Ge(Ge({},i),{},{open:l})))}));Ve.displayName="Dropzone";var Ke={disabled:!1,getFilesFromEvent:function(e){return V(this,void 0,void 0,(function(){return K(this,(function(t){return Q(e)&&Q(e.dataTransfer)?[2,te(e.dataTransfer,e.type)]:function(e){return Q(e)&&Q(e.target)}(e)?[2,X(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,ee(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};Ve.defaultProps=Ke,Ve.propTypes={children:p.func,accept:p.oneOfType([p.string,p.arrayOf(p.string)]),multiple:p.bool,preventDropOnDocument:p.bool,noClick:p.bool,noKeyboard:p.bool,noDrag:p.bool,noDragEventsBubbling:p.bool,minSize:p.number,maxSize:p.number,maxFiles:p.number,disabled:p.bool,getFilesFromEvent:p.func,onFileDialogCancel:p.func,onFileDialogOpen:p.func,useFsAccessApi:p.bool,onDragEnter:p.func,onDragLeave:p.func,onDragOver:p.func,onDrop:p.func,onDropAccepted:p.func,onDropRejected:p.func,validator:p.func};var Ze={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ge(Ge({},Ke),e),o=t.accept,s=t.disabled,d=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,g=t.multiple,p=t.maxFiles,f=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,b=t.onDrop,v=t.onDropAccepted,x=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,k=t.useFsAccessApi,T=t.preventDropOnDocument,P=t.noClick,L=t.noKeyboard,S=t.noDrag,C=t.noDragEventsBubbling,N=t.validator,D=r((function(){return"function"==typeof w?w:Je}),[w]),O=r((function(){return"function"==typeof y?y:Je}),[y]),j=n(null),A=n(null),z=a(Ye,Ze),F=Me(z,2),R=F[0],q=F[1],E=R.isFocused,I=R.isFileDialogActive,M=R.draggedFiles,W=n("undefined"!=typeof window&&window.isSecureContext&&k&&Oe()),B=function(){!W.current&&I&&setTimeout((function(){A.current&&(A.current.files.length||(q({type:"closeDialog"}),O()))}),300)};l((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[A,I,O,W]);var U=n([]),G=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),U.current=[])};l((function(){return T&&(document.addEventListener("dragover",Le,!1),document.addEventListener("drop",G,!1)),function(){T&&(document.removeEventListener("dragover",Le),document.removeEventListener("drop",G))}}),[j,T]);var _=i((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(Ie(U.current),[e.target]),Pe(e)&&Promise.resolve(d(e)).then((function(t){Te(e)&&!C||(q({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),f&&f(e))}))}),[d,f,C]),H=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=Pe(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&m&&m(e),!1}),[m,C]),V=i((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return j.current&&j.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),U.current=t,t.length>0||(q({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Pe(e)&&h&&h(e))}),[j,h,C]),K=i((function(e,t){var r=[],n=[];e.forEach((function(e){var t=Me(xe(e,o),2),a=t[0],l=t[1],i=Me(ye(e,u,c),2),s=i[0],d=i[1],g=N?N(e):null;if(a&&s&&!g)r.push(e);else{var p=[l,d];g&&(p=p.concat(g)),n.push({file:e,errors:p.filter((function(e){return e}))})}})),(!g&&r.length>1||g&&p>=1&&r.length>p)&&(r.forEach((function(e){n.push({file:e,errors:[ve]})})),r.splice(0)),q({acceptedFiles:r,fileRejections:n,type:"setFiles"}),b&&b(r,n,t),n.length>0&&x&&x(n,t),r.length>0&&v&&v(r,t)}),[q,g,o,u,c,p,b,v,x,N]),Z=i((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Pe(e)&&Promise.resolve(d(e)).then((function(t){Te(e)&&!C||K(t,e)})),q({type:"reset"})}),[d,K,C]),$=i((function(){if(W.current){q({type:"openDialog"}),D();var e={multiple:g,types:je(o)};window.showOpenFilePicker(e).then((function(e){return d(e)})).then((function(e){K(e,null),q({type:"closeDialog"})})).catch((function(e){Ae(e)?(O(e),q({type:"closeDialog"})):ze(e)&&(W.current=!1,A.current&&(A.current.value=null,A.current.click()))}))}else A.current&&(q({type:"openDialog"}),D(),A.current.value=null,A.current.click())}),[q,D,O,k,K,o,g]),Y=i((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),$()))}),[j,$]),J=i((function(){q({type:"focus"})}),[]),Q=i((function(){q({type:"blur"})}),[]),X=i((function(){P||(Ne()?setTimeout($,0):$())}),[P,$]),ee=function(e){return s?null:e},te=function(e){return L?null:ee(e)},re=function(e){return S?null:ee(e)},ne=function(e){C&&e.stopPropagation()},ae=r((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.role,a=e.onKeyDown,l=e.onFocus,i=e.onBlur,o=e.onClick,d=e.onDragEnter,c=e.onDragOver,u=e.onDragLeave,g=e.onDrop,p=He(e,qe);return Ge(Ge(_e({onKeyDown:te(De(a,Y)),onFocus:te(De(l,J)),onBlur:te(De(i,Q)),onClick:ee(De(o,X)),onDragEnter:re(De(d,_)),onDragOver:re(De(c,H)),onDragLeave:re(De(u,V)),onDrop:re(De(g,Z)),role:"string"==typeof n&&""!==n?n:"button"},r,j),s||L?{}:{tabIndex:0}),p)}}),[j,Y,J,Q,X,_,H,V,Z,L,S,s]),le=i((function(e){e.stopPropagation()}),[]),ie=r((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,n=e.onChange,a=e.onClick,l=He(e,Ee),i=_e({accept:o,multiple:g,type:"file",style:{display:"none"},onChange:ee(De(n,Z)),onClick:ee(De(a,le)),tabIndex:-1},r,A);return Ge(Ge({},i),l)}}),[A,o,g,Z,s]),oe=M.length,se=oe>0&&ke({files:M,accept:o,minSize:u,maxSize:c,multiple:g,maxFiles:p}),de=oe>0&&!se;return Ge(Ge({},R),{},{isDragAccept:se,isDragReject:de,isFocused:E&&!s,getRootProps:ae,getInputProps:ie,rootRef:j,inputRef:A,open:ee($)})}function Ye(e,t){switch(t.type){case"focus":return Ge(Ge({},e),{},{isFocused:!0});case"blur":return Ge(Ge({},e),{},{isFocused:!1});case"openDialog":return Ge(Ge({},Ze),{},{isFileDialogActive:!0});case"closeDialog":return Ge(Ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return Ge(Ge({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return Ge(Ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ge({},Ze);default:return e}}function Je(){}var Qe={display:"flex",flexDirection:"row",flexWrap:"wrap",marginTop:10},Xe=function(e){var r,n,a,i,o=e.texts,s=e.files,d=e.setFiles;e.setDeletedFiles;var g=e.maxFiles,p=e.accept;e.onAcceptedFiles;var f=e.showPreview,h=e.onDeleteFile,m=e.onClearFiles,b=e.maxSize;e.errorMessages;var v=k(t(0),2),y=v[0],w=v[1],T=k(t(0),2),P=T[0],L=T[1],S=$e({multiple:!0,accept:p,maxSize:b,maxFiles:g,onDrop:function(e){d(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),C=S.getRootProps,N=S.getInputProps,D=S.fileRejections,O=S.acceptedFiles,j=S.isDragActive;l((function(){return function(){null==s||s.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[s]),l((function(){d(O)}),[O,y]),m=function(){O.length=0,O.splice(0,O.length),d([])},l((function(){if(b>0){var e=Math.floor(Math.log(b)/Math.log(1024));L(parseFloat((b/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[b]);var A=D.map((function(e,t){return c("div",{children:[u("div",{children:e.file.name}),u("div",{children:e.errors[0].code})]},t)})),z=null==s?void 0:s.map((function(e,t){return c("div",{style:{position:"relative",margin:10},children:[c("button",{onClick:function(t){t.stopPropagation(),O.splice(O.indexOf(e),1),w(Math.random),h(e)},type:"button",class:"text-gray-400 absolute left-0 bg-gray-900 hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})}),u("span",{class:"sr-only",children:"Close modal"})]}),u("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",height:100,width:100,backgroundImage:"url(".concat(e.preview,")"),backgroundSize:"cover",backgroundPosition:"center",border:"1px solid black"}},e.name)]})}));return console.log("error",D),c("div",x(x({},C({style:{backgroundColor:j&&"white"}})),{},{className:"border-black border border-dashed rounded-xl flex flex-col justify-center",children:[u("input",x({},N())),u("div",{className:"text-center p-1",children:"Click here or drop files here to upload"}),c("div",{className:"text-center p-1",children:["Max file size is ",P]}),O.length>0&&u(M,{style:{color:"black"},onClick:function(e){e.stopPropagation(),m()},text:"Clear All"}),z&&f?u("aside",{style:Qe,children:z}):null,"too-many-files"===(null===(r=D[0])||void 0===r||null===(n=r.errors[0])||void 0===n?void 0:n.code)?u(B,{text:o.tooManyFiles,severity:"error"}):"file-too-large"===(null===(a=D[0])||void 0===a||null===(i=a.errors[0])||void 0===i?void 0:i.code)?u(B,{text:o.fileTooLarge,severity:"error"}):A]}))},et=function(e){return c("div",{className:"flex flex-row bg-blue-300 rounded-xl p-4",children:[u("button",{class:"inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",type:"button",children:u("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})}),u("div",{className:"p-4",children:e.children})]})},tt=count,rt=["cx","children","getStyles","innerRef"],nt=function(e){e.cx;var t=e.children;e.getStyles;var r=e.innerRef,n=w(e,rt);return c("div",{ref:r,className:"m-2 p-1 px-3 rounded-lg flex flex-row items-center justify-between hover:bg-blue-200",children:[u("img",{className:"h-8 w-8",src:n.data.image}),t]})};function at(e){var r=e.preferredCountry,n=k(t(null!=r?r:""),2);n[0],n[1];var a=k(t("+966"),2);a[0];var l=a[1],i=k(t(""),2);return i[0],i[1],c("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",height:"100%"},children:[u(f,{styles:{input:function(e){return x(x({},e),{},{fontSize:"0.875rem","input:focus":{boxShadow:"none"},lineHeight:"1.25rem",padding:"0.37rem"})},control:function(e){return x(x({},e),{},{width:80,borderRadius:"0.75rem",borderTopRightRadius:0,borderBottomRightRadius:0})},menu:function(e){return x(x({},e),{},{width:190,borderRadius:"0.75rem"})}},components:{Option:nt,DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:tt,isCreatable:!1,isMulti:!1,isSearchable:!0,isClearable:!0,placeholder:"+966",onChange:function(e,t){console.log("test n",e),l(e)}}),u("div",{children:u("input",{className:"bg-gray-50 border rounded-l-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 border-l-0"})})]})}var lt=function(e){return u("li",{onClick:e.action,children:u("div",{className:(e.icon,"flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"),children:u("span",{class:"ml-3",children:e.text})})})},it=function(e){return u("div",{id:e.modalID,tabindex:"-1","aria-hidden":"true",class:"hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 w-full md:inset-0 h-modal md:h-full justify-center items-center",children:u("div",{class:"relative p-4 w-full max-w-2xl h-full md:h-auto",children:c("div",{class:"relative bg-white rounded-lg shadow dark:bg-gray-700",children:[c("div",{class:"flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600",children:[u("h3",{class:"text-xl font-semibold text-gray-900 dark:text-white",children:"Terms of Service"}),c("button",{type:"button",class:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white","data-modal-toggle":"defaultModal",children:[u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})}),u("span",{class:"sr-only",children:"Close modal"})]})]}),c("div",{class:"p-6 space-y-6",children:[u("p",{class:"text-base leading-relaxed text-gray-500 dark:text-gray-400",children:"With less than a month to go before the European Union enacts new consumer privacy laws for its citizens, companies around the world are updating their terms of service agreements to comply."}),u("p",{class:"text-base leading-relaxed text-gray-500 dark:text-gray-400",children:"The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is meant to ensure a common set of data rights in the European Union. It requires organizations to notify users as soon as possible of high-risk data breaches that could personally affect them."})]}),c("div",{class:"flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600",children:[u("button",{"data-modal-toggle":"defaultModal",type:"button",class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",children:"I accept"}),u("button",{"data-modal-toggle":"defaultModal",type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600",children:"Decline"})]})]})})})},ot=function(e){return u("div",{children:e.children})},st=function(){return c("button",{"data-drawer-target":"drawer-navigation","data-drawer-show":"drawer-navigation","aria-controls":"drawer-navigation",type:"button",class:"inline-flex items-center p-2 text-sm text-gray-500 rounded-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600",children:[u("span",{class:"sr-only",children:"Open main menu"}),u("svg",{"aria-hidden":"true",class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})]})},dt=function(e){return c("div",{id:"userDropdown",class:"hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600","data-popper-reference-hidden":"","data-popper-escaped":"","data-popper-placement":"bottom-start",children:[c("div",{class:"py-3 px-4 text-sm text-gray-900 dark:text-white",children:[u("div",{children:e.username}),u("div",{class:"font-medium truncate",children:e.userEmail})]}),u("ul",{class:"py-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"avatarButton",children:e.profileItems.map((function(e){return u(ut,{text:e.text,link:e.slug})}))}),u("div",{class:"py-1",children:u("a",{href:"#",class:"block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white",children:"Sign out"})})]})},ct=function(e){return c("div",{id:"drawer-navigation",class:"fixed z-40 h-screen p-4 overflow-y-auto bg-white w-80 dark:bg-gray-800",tabindex:"-1","aria-labelledby":"drawer-navigation-label",children:[u("div",{href:e.logoHref,class:"flex items-center",children:u("img",{src:"https://my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75",class:"h-9",alt:"Flowbite Logo"})}),u(gt,{}),u("div",{class:"py-4 overflow-y-auto",children:u("ul",{class:"space-y-2",children:e.drawerItems.map((function(e,t){return u(lt,{action:e.action,text:e.text},t)}))})})]})},ut=function(e){return u("li",{children:u("a",{href:e.link,className:"block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:e.text})})},gt=function(){return u("button",{type:"button","data-drawer-dismiss":"drawer-navigation","aria-controls":"drawer-navigation",className:"text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white",children:u("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})})},pt=function(e){var t;return c("div",{className:"font-plex",children:[u("div",{children:u("nav",{class:"border-gray-200 rounded dark:bg-gray-900",children:c("div",{class:"flex p-3 flex-row-reverse items-center justify-between w-full",children:[u("div",{"data-dropdown-toggle":"userDropdown","data-dropdown-placement":"bottom-start",class:"overflow-hidden mr-2 relative w-10 h-10 bg-gray-100 rounded-full dark:bg-gray-600",children:u("svg",{class:"absolute -left-1 w-12 h-12 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"})})}),u("div",{children:null!==(t=e.pageTitle)&&void 0!==t?t:"Home"}),u("div",{className:"flex flex-row-reverse",children:u(st,{})})]})})}),u(dt,{profileItems:e.profileItems}),u(ct,{logoHref:e.logoHref,appTitle:e.appTitle,drawerItems:e.drawerItems}),u("div",{className:"p-3",children:e.children})]})};pt.propTypes={logoLink:p.string,username:p.string,userEmail:p.string,drawerItems:p.objectOf({text:p.string,slug:p.string,action:p.func})};var ft=function(e){var t="";return t=e.withDividers?"w-full max-w-sm flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4":"w-full max-w-sm flex flex-col bg-blue-300 rounded-xl p-4",u("div",{className:t,children:e.children})},ht=function(e){var t=h(),r=e.inputs,n=t.formState.errors,a=t.handleSubmit,l=t.control;return c(ft,{children:[" ",u(m,x(x({},t),{},{children:c("form",{onSubmit:a(e.handleUpdateProfile),children:[u(b,{control:l,name:"fullName",render:function(t){var r,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(a=n.fullName)||void 0===a?void 0:a.message},l))}}),u(b,{control:l,name:"phoneNumber",render:function(e){var t=e.field;return u(A,x({fullWidth:!0,type:"tel",label:"Phone Number",placeholder:"+966"},t))}}),u(b,{control:l,name:"email",render:function(t){var r,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.emailLabel,helperText:null===(a=n.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(b,{control:l,name:"password",render:function(t){var r,a,l=t.field;return u(A,x({fullWidth:!0,type:"password",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(a=n.password)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.passwordRequiredText}}),u(b,{control:l,name:"confirmPassword",render:function(t){var r,a,l=t.field;return u(A,x({fullWidth:!0,type:"password",value:null!==(r=l.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(a=n.confirmPassword)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.confirmPasswordRequiredText}}),r.length>0&&r.map((function(e){return"textArea"===e.type?u(b,{control:l,name:e.name,render:function(t){var r,n,a,l;return t.field,u(A,{fullWidth:!0,type:"text",defaultValue:null!==(r=e.defaultValue)&&void 0!==r?r:null,label:null!==(n=e.label)&&void 0!==n?n:null,placeholder:null!==(a=e.placeHolder)&&void 0!==a?a:null,rules:null!==(l=e.rules)&&void 0!==l?l:null})}}):u(b,{control:l,name:e.name,render:function(t){var r,n,a,l;return t.field,u(A,{fullWidth:!0,type:e.type,defaultValue:null!==(r=e.defaultValue)&&void 0!==r?r:null,label:null!==(n=e.label)&&void 0!==n?n:null,placeholder:null!==(a=e.placeHolder)&&void 0!==a?a:null,rules:null!==(l=e.rules)&&void 0!==l?l:null})}})})),u(M,{fullWidth:!0,type:"submit",text:e.texts.updateProfile})]})}))]})},mt=function(e){return c(ft,{children:[" ",e.children,u(M,{text:e.saveSettingsText,type:"submit",fullWidth:!0,onClick:e.handleSaveSettings})]})},bt=function(e){var r=k(t(!1),2),n=r[0],a=r[1],l=h(),i=l.formState.errors,o=l.handleSubmit,s=l.control;return c(ft,{children:[" ",n&&u(B,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?u("div",{className:"text-center",children:e.texts.passwordChanged}):u(m,x(x({},l),{},{children:c("form",{onSubmit:o((function(t){console.log("handling subb",t),t.password===t.confirmPassword?e.handleNewPassword():a(!0)})),children:[u(b,{control:s,name:"password",render:function(t){var r,n,a=t.field;return u(A,x({fullWidth:!0,type:"password",value:null!==(r=a.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(n=i.password)||void 0===n?void 0:n.message},a))},rules:{required:e.texts.passwordRequiredText}}),u(b,{control:s,name:"confirmPassword",render:function(t){var r,n,a=t.field;return u(A,x({fullWidth:!0,type:"password",value:null!==(r=a.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(n=i.confirmPassword)||void 0===n?void 0:n.message},a))},rules:{required:e.texts.confirmPasswordRequiredText}}),u(M,{type:"submit",fullWidth:!0,text:e.texts.updatePassword})]})}))]})};bt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,passwordPlaceholder:p.string,updatePassword:p.string,passwordRequiredText:p.string,passwordLabel:p.string,confirmPasswordPlaceholder:p.string,confirmPasswordLabel:p.string,confirmPasswordRequiredText:p.string,passwordMatchError:p.string,forgotPasswordText:p.string,passwordChanged:p.string}),passwordChanged:p.bool,handleNewPassword:p.func};var vt=function(e){var t=h(),r=t.formState.errors,n=t.handleSubmit;t.register;var a=t.control;return c(ft,{children:[" ",e.sent?u("div",{className:"text-center",children:e.texts.emailSentText}):c("form",{onSubmit:n(e.handleResetPassword),children:[u(b,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(M,{fullWidth:!0,type:"submit",text:e.texts.resetPassword})," "]})]})};vt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,emailSentText:p.string,resetPassword:p.string}),sent:p.bool,handleResetPassword:p.func};var xt=function(e){var t=h(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ft,{withDividers:!0,children:[e.showError&&u(B,{title:e.errorTitle,text:e.errorText,severity:"error"}),u(m,x(x({},t),{},{children:c("form",{onSubmit:n(e.handleSignUp),children:[u(b,{control:a,name:"fullName",render:function(t){var n,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(a=r.fullName)||void 0===a?void 0:a.message},l))},rules:{required:e.texts.fullNameRequiredText}}),u(b,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(b,{control:a,name:"password",render:function(t){var n,a,l,i=t.field;return u(A,x({fullWidth:!0,type:"password",defaultValue:null!==(n=i.value)&&void 0!==n?n:"",value:null!==(a=i.value)&&void 0!==a?a:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(l=r.password)||void 0===l?void 0:l.message},i))},rules:{required:e.texts.passwordRequiredText}}),u(M,{fullWidth:!0,type:"submit",text:e.texts.signUpText})," "]})})),c("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.existingUserText," ",u("span",{onClick:e.handleRouteToSignIn,className:"text-blue-600 cursor-pointer",children:e.texts.signInText})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?c("div",{style:{display:"flex",flexDirection:"column"},children:[e.viaGoogle&&u(E,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignUp}),e.viaGithub&&u(E,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignUp}),e.viaTwitter&&u(E,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignUp})]}):null]})};xt.propTypes={texts:p.shape({fullNameLabel:p.string,fullNamePlaceholder:p.string,fullNameRequiredText:p.string,emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,passwordTooShortText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,signInText:p.string,existingUserText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignUp:p.func,handleRouteToSignIn:p.func,handleGoogleSignUp:p.func,handleGithubSignUp:p.func,handleTwitterSignUp:p.func};var yt=function(e){var t=h(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ft,{withDividers:!0,children:[c("form",{onSubmit:n(e.handleSignIn),children:[e.showError&&u(B,{title:e.errorTitle,text:e.errorText,severity:"error"}),u(b,{control:a,name:"email",render:function(t){var n,a,l=t.field;return u(A,x({fullWidth:!0,type:"text",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.emailPlaceholder},l))},rules:{required:e.texts.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:e.texts.emailInvalidText}}}),u(b,{control:a,name:"password",render:function(t){var n,a,l,i=t.field;return u(A,x({fullWidth:!0,type:"password",defaultValue:null!==(n=i.value)&&void 0!==n?n:"",value:null!==(a=i.value)&&void 0!==a?a:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(l=r.password)||void 0===l?void 0:l.message},i))},rules:{required:e.texts.passwordRequiredText}}),u("div",{className:"text-xs cursor-pointer w-fit mb-3",onClick:e.handleForgotPassword,children:e.texts.forgotPasswordText}),u(M,{fullWidth:!0,type:"submit",text:e.texts.signInText})," ",c("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.newUserText," ",u("span",{onClick:e.handleRouteToSignUp,className:"text-blue-600 cursor-pointer",children:e.texts.signUpText})]})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?c("div",{className:"flex flex-col ",children:[e.viaGoogle&&u(E,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignIn}),e.viaGithub&&u(E,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignIn}),e.viaTwitter&&u(E,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignIn})]}):null]})};yt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,signInText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignIn:p.func,handleRouteToSignUp:p.func,handleGoogleSignIn:p.func,handleGithubSignIn:p.func,handleTwitterSignIn:p.func};var wt=function(e){var t=h(),r=t.formState.errors,n=t.handleSubmit,a=t.control;return c(ft,{children:[" ",e.showError&&u(B,{title:e.errorTitle,text:e.errorText,severity:"error"}),c("form",{onSubmit:n(e.handleSignIn),children:[u(b,{control:a,name:"code",render:function(t){var n,a,l=t.field;return u(A,x({fullWidth:!0,type:"number",value:null!==(n=l.value)&&void 0!==n?n:"",label:e.texts.codeLabel,helperText:null===(a=r.email)||void 0===a?void 0:a.message,placeholder:e.texts.codePlaceholder},l))},rules:{required:e.texts.codeRequiredText}}),u(M,{type:"submit",fullWidth:!0,text:e.texts.confirmText})]})]})};wt.propTypes={texts:p.shape({emailLabel:p.string,emailPlaceholder:p.string,emailRequiredText:p.string,emailInvalidText:p.string,passwordLabel:p.string,passwordPlaceholder:p.string,passwordRequiredText:p.string,forgotPasswordText:p.string,newUserText:p.string,signUpText:p.string,confirmText:p.string,googleButtonLabel:p.string,githubButtonLabel:p.string,twitterButtonLabel:p.string}),viaGoogle:p.bool,viaGithub:p.bool,viaTwitter:p.bool,handleSignIn:p.func,handleRouteToSignUp:p.func,handleGoogleSignIn:p.func,handleGithubSignIn:p.func,handleTwitterSignIn:p.func};var kt=function(e){var r=k(t(""),2);r[0];var n=r[1],a=h();a.formState.errors;var l=a.handleSubmit,i=a.control;return u(ft,{children:c("form",{onSubmit:l(e.onSubmit),children:[u(b,{control:i,name:"phone",render:function(t){var r,a,l,i=t.field;return u(at,x({country:null!==(r=e.country)&&void 0!==r?r:"",label:null!==(a=e.label)&&void 0!==a?a:"",onChange:function(t){e.onChange(t),n(t)},value:null!==(l=e.value)&&void 0!==l?l:e.value},i))}}),u(M,{fullWidth:!0,type:"submit",text:e.SignInButtonText})]})})},Tt=function(e){return c(ft,{children:[u(j,{align:"center",children:"Choose Payment Method"}),e.viaWallet&&u(E,{logo:"wallet",buttonText:e.walletLabel,onClick:e.handleWallet}),e.viaCreditCard&&u(E,{logo:"visa/master",buttonText:e.visaMasterLabel,onClick:e.handleCreditCard}),e.viaMada&&u(E,{logo:"mada",buttonText:e.madaLabel,onClick:e.handleMada}),e.viaSTCPay&&u(E,{logo:"stcpay",buttonText:e.stcPayLabel,onClick:e.handleSTCPay}),e.viaPayPal&&u(E,{logo:"paypal",buttonText:e.paypalLabel,onClick:e.handlePayPal}),e.viaGooglePay&&u(E,{logo:"googlepay",buttonText:e.googlePayLabel,onClick:e.handleGooglePay}),e.viaApplePay&&u(E,{logo:"applepay",buttonText:e.applePayLabel,onClick:e.handleApplePay})]})};Tt.propTypes={viaMada:p.bool,viaWallet:p.bool,viaSTCPay:p.bool,viaPayPal:p.bool,viaApplePay:p.bool,viaCreditCard:p.bool,madaLabel:p.string,stcPayLabel:p.string,paypalLabel:p.string,walletLabel:p.string,applePayLabel:p.string,visaMasterLabel:p.string,handleMada:p.func,handleWallet:p.func,handleSTCPay:p.func,handlePayPal:p.func,handleApplePay:p.func,handleCreditCard:p.func};var Pt=function(e){var t,r=h(),n=r.formState.errors,a=r.handleSubmit,l=r.control;return c(ft,{children:[" ",c("form",{onSubmit:a(e.handle),children:[u(A,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"tel",label:"Card Number",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message}),u(b,{control:l,name:"cardName",render:function(e){var t;return e.field,u(A,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"Name On Card",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(b,{control:l,name:"cardName",render:function(e){var t;return e.field,u(A,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"Expiry Date",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(b,{control:l,name:"cardName",render:function(e){var t;return e.field,u(A,{fullWidth:!0,name:"password",placeholder:"Enter password",type:"password",label:"CCV",rules:{required:"Password is rquired"},helperText:null===(t=n.password)||void 0===t?void 0:t.message})}}),u(M,{type:"submit",fullWidth:!0,onClick:e.handlePayWithCreditCard,text:"Pay with Credit Card"})," "]})]})},Lt=function(e){var r=k(t(0),2),n=r[0],a=r[1],l=h(),i=l.formState.errors,o=l.handleSubmit,s=l.control;return c(ft,{children:[" ",c("div",{className:"text-5xl font-extrabold text-center",children:[Number(n).toLocaleString("en")||"0",u("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),u(m,x(x({},l),{},{children:c("form",{onSubmit:o(e.handleChargeWallet),children:[u(b,{control:s,name:"amount",render:function(t){var r,n,l=t.field;return u(A,x(x({fullWidth:!0,placeholder:e.texts.amountLabel,type:"number",value:null!==(r=l.value)&&void 0!==r?r:""},l),{},{inputProps:{inputMode:"numeric",min:"1",max:"9999999",step:"0.01"},onChange:function(e){l.onChange(parseFloat(e.target.value)),a(e.target.value)},helperText:null===(n=i.amount)||void 0===n?void 0:n.message}))},rules:{required:e.texts.amountRequired}}),u(M,{type:"submit",fullWidth:!0,text:e.texts.chargeWallet})]})}))]})};Lt.propTypes={texts:p.shape({amountLabel:p.string,chargeWallet:p.string,amountRequired:p.string}),handleChargeWallet:p.func,currency:p.string};var St=function(e){return c(ft,{children:[c("div",{className:"text-5xl font-extrabold text-center",children:[e.walletBalance||"0",u("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),u(M,{type:"submit",fullWidth:!0,onClick:e.handlePayWithWallet,text:"Pay Now"})]})},Ct=function(e){var t,r,n,a,l,i,o,s,d,g;e.lang;var p=h(),f=p.formState.errors,v=p.handleSubmit;p.register;var y=p.control,w={display:"flex",padding:0,paddingRight:"0px !important",paddingLeft:"0px !important",flexDirection:{xs:"column",sm:"row",md:"row",lg:"row",xl:"row"}};return c(ft,{withDividers:!0,children:[" ",c("div",{children:[u("div",{className:"text-xl text-center font-semibold mb-2",children:e.texts.orderDetails}),u(U,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),c("div",{children:[u("div",{className:"text-xl text-center font-semibold my-2",children:e.texts.billingAddress}),u(m,x(x({},p),{},{children:c("form",{onSubmit:v(e.handlePayNow),children:[c("div",{children:[u(b,{control:y,name:"firstName",rules:{required:null===(t=e.texts)||void 0===t?void 0:t.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.firstNameLabel)+" *",helperText:null===(a=f.firstName)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(b,{control:y,name:"lastName",rules:{required:null===(r=e.texts)||void 0===r?void 0:r.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.lastNameLabel)+" *",helperText:null===(a=f.lastName)||void 0===a?void 0:a.message},l))}})]}),u(b,{control:y,name:"email",render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.emailLabel)+" *",helperText:null===(a=f.email)||void 0===a?void 0:a.message},l))},rules:{required:null===(n=e.texts)||void 0===n?void 0:n.emailRequiredText,pattern:{value:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:null===(a=e.texts)||void 0===a?void 0:a.emailInvalidText}}}),c("div",{sx:w,children:[u(b,{control:y,name:"streetAddress",rules:{required:null===(l=e.texts)||void 0===l?void 0:l.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.streetAddressLabel)+" *",helperText:null===(a=f.streetAddress)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(b,{control:y,name:"buildingNumber",rules:{required:null===(i=e.texts)||void 0===i?void 0:i.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.buildingNumberLabel)+" *",helperText:null===(a=f.buildingNumber)||void 0===a?void 0:a.message},l))}})]}),c("div",{sx:w,children:[u(b,{control:y,name:"province",rules:{required:null===(o=e.texts)||void 0===o?void 0:o.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.stateLabel)+" *",helperText:null===(a=f.province)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(b,{control:y,name:"city",rules:{required:null===(s=e.texts)||void 0===s?void 0:s.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.cityLabel)+" *",helperText:null===(a=f.city)||void 0===a?void 0:a.message},l))}})]}),c("div",{className:"mb-3",children:[u(b,{control:y,name:"zipCode",rules:{required:null===(d=e.texts)||void 0===d?void 0:d.required},render:function(t){var r,n,a,l=t.field;return u(A,x({inForm:!0,fullWidth:!0,type:"number",variant:"unscrollable",value:null!==(r=l.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.zipCodeLabel)+" *",helperText:null===(a=f.zipCode)||void 0===a?void 0:a.message},l))}}),u("div",{style:{width:20}}),u(b,{control:y,name:"country",rules:{required:null===(g=e.texts)||void 0===g?void 0:g.required},render:function(t){var r,n,a,l=t.field;return c(W,x(x({fullWidth:!0,native:!0,label:(null===(r=e.texts)||void 0===r?void 0:r.countryLabel)+" *",variant:"standard",value:null!==(n=l.value)&&void 0!==n?n:"",helperText:null===(a=f.country)||void 0===a?void 0:a.message,displayEmpty:!0,disableUnderline:!0,validators:["required"]},l),{},{children:[u("option",{}),e.countriesList.map((function(e,t){return u("option",{children:e},t)}))]}))}})]}),u(M,{type:"submit",fullWidth:!0,text:e.texts.payNow})," "]})}))]})]})};Ct.propTypes={texts:p.shape({orderDetails:p.string,billingAddress:p.string,payNow:p.string,emailLabel:p.string,emailRequiredText:p.string,emailInvalidText:p.string,firstNameLabel:p.string,required:p.string,lastNameLabel:p.string,streetAddressLabel:p.string,buildingNumberLabel:p.string,cityLabel:p.string,stateLabel:p.string,countryLabel:p.string,zipCodeLabel:p.string}),lang:p.string,countriesList:p.array,products:p.array,total:p.string,handlePayNow:p.func};var Nt=function(e){return e.lang,c(ft,{withDividers:!0,children:[" ",u("div",{className:"text-3xl font-bold text-center py-5",children:e.confirmationTitle}),c("div",{className:"py-5",children:[c("div",{className:"text-center mb-2",children:[e.texts.successMessage," ",u("strong",{children:e.userEmail})]}),u("div",{className:"text-center",children:e.texts.yourOrderNumber}),u("div",{className:"font-bold text-center",children:e.orderNumber})]}),c("div",{className:"py-5",children:[u("div",{className:"text-xl font-semibold mb-3 text-center",children:e.texts.orderDetails}),e.products&&u(U,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),c("div",{className:"flex flex-col py-5 justify-center items-center",children:[u(M,{fullWidth:!0,onClick:e.handlePrint,text:e.texts.print})," ",u(M,{fullWidth:!0,onClick:e.handleHistory,text:e.texts.history})," ",u(M,{fullWidth:!0,onClick:e.handleHome,text:e.texts.homePage})," ",u("div",{className:"mt-5 mb-5 text-center text-sm",children:e.texts.fasterPaymentNote}),u("a",{className:"w-fit text-center cursor-pointer text-xs font-normal",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})};Nt.propTypes={texts:p.shape({print:p.string,history:p.string,homePage:p.string,successMessage:p.string,orderDetails:p.string,fasterPaymentNote:p.string,billingAddress:p.string,payNow:p.string,yourOrderNumber:p.string,emailLabel:p.string,emailRequiredText:p.string,emailInvalidText:p.string,firstNameLabel:p.string,required:p.string,lastNameLabel:p.string,streetAddressLabel:p.string,buildingNumberLabel:p.string,cityLabel:p.string,stateLabel:p.string,countryLabel:p.string,zipCodeLabel:p.string,refundPolicy:p.string}),products:p.array,countriesList:p.array,lang:p.string,total:p.string,userEmail:p.string,orderNumber:p.string,confirmationTitle:p.string,handleHome:p.func,handlePrint:p.func,handleHistory:p.func,handleRefundPolicyLink:p.func};var Dt=function(e){var r=k(t("sar"),2),n=r[0],a=r[1],l=k(t("monthly"),2),i=l[0],o=l[1];return c("div",{children:[c("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:10},children:[u(R,{defaultValue:i,options:[{label:"Monthly",value:"monthly"},{label:"3 Months",value:"3-months"},{label:"6 Months",value:"6-months"},{label:"Annually",value:"annually"}],onChangeTab:function(e){return o(e)}}),u(R,{defaultValue:n,options:[{label:"USD",value:"usd"},{label:"SAR",value:"sar"}],onChangeTab:function(e){return a(e)}})]}),u("div",{className:"flex flex-row",children:e.plans.map((function(t){return u(O,x(x({lang:e.lang},t),{},{currency:n,cycleText:i}))}))})]})};Dt.propTypes={plans:p.arrayOf(p.shape({title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,price:p.number,currency:p.string,cycleText:p.string,buttonText:p.string,features:p.array,features_ar:p.array,selectedPlan:p.bool})),lang:p.string};var Ot=function(){return u("svg",{class:"w-5 h-5 text-green-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})})},jt=function(){return u("svg",{class:"w-5 h-5 text-red-500","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{"fill-rule":"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","clip-rule":"evenodd"})})},At=function(e){var r=k(t("sar"),2);r[0],r[1];var n=k(t("monthly"),2);return n[0],n[1],u("div",{id:"detailed-pricing",class:"overflow-x-auto w-full",children:c("div",{class:"overflow-hidden min-w-max",children:[c("div",{class:"grid grid-cols-4 gap-x-16 p-4 text-sm font-medium text-gray-900 bg-gray-100 border-t border-b border-gray-200 dark:bg-gray-800 dark:border-gray-700 dark:text-white",children:[u("div",{class:"flex items-center"}),e.plans.map((function(e){return u("div",{children:e.title})}))]}),e.plans.map((function(e){return c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[c("div",{class:"text-gray-500 dark:text-gray-400",children:["Basic components (",u("a",{href:"#",class:"text-blue-600 hover:underline",children:"view all"}),")"]}),u(Ot,{}),u(Ot,{}),u(Ot,{})]})})),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[c("div",{class:"text-gray-500 dark:text-gray-400",children:["Application UI (",u("a",{href:"#",class:"text-blue-600 hover:underline",children:"view demo"}),")"]}),u(jt,{}),u(Ot,{}),u(jt,{})]}),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[u("div",{class:"text-gray-500 dark:text-gray-400",children:"Marketing UI pre-order"}),u(jt,{}),u(Ot,{}),u(jt,{})]}),c("div",{class:"grid grid-cols-4 gap-x-16 py-5 px-4 text-sm text-gray-700 border-b border-gray-200 dark:border-gray-700",children:[u("div",{class:"text-gray-500 dark:text-gray-400"}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})}),u("div",{children:u("a",{href:"#",class:"text-white block w-full bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:ring-blue-200 font-medium rounded-lg text-sm px-4 py-2.5 text-center dark:focus:ring-blue-900",children:"Buy now"})})]})]})})};At.propTypes={plans:p.arrayOf(p.shape({title:p.string,title_ar:p.string,subtitle:p.string,subtitle_ar:p.string,price:p.number,currency:p.string,cycleText:p.string,buttonText:p.string,features:p.array,features_ar:p.array,selectedPlan:p.bool})),lang:p.string};export{ot as Box,Lt as ChargeWalletForm,Ct as CheckoutForm,wt as CodeConfirmation,At as ComparingPlans,Nt as ConfirmationPage,Pt as CreditCardForm,Xe as DragDropImages,et as DraggableCard,H as HawaAccordian,B as HawaAlert,M as HawaButton,S as HawaCheckbox,N as HawaChip,z as HawaColorPicker,ft as HawaContainer,D as HawaItemCard,pt as HawaLayout,E as HawaLogoButton,it as HawaModal,C as HawaPanelTabs,O as HawaPricingCard,F as HawaRange,G as HawaSearchBar,W as HawaSelect,q as HawaSettingsRow,P as HawaSnackbar,L as HawaSwitch,U as HawaTable,R as HawaTabs,A as HawaTextField,I as HawaTooltip,j as HawaTypography,bt as NewPasswordForm,St as PayWithWallet,Dt as PricingPlans,vt as ResetPasswordForm,Tt as SelectPayment,yt as SignInForm,kt as SignInPhone,xt as SignUpForm,ht as UserProfileForm,mt as UserSettingsForm};
|