@sikka/hawa 0.0.62 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.es.js CHANGED
@@ -1 +1 @@
1
- import e,{useState as t,useMemo as r,useRef as n,useReducer as i,useEffect as o,useCallback as a,forwardRef as l,useImperativeHandle as s,Fragment as c}from"react";import{jsxs as u,jsx as d,Fragment as f}from"react/jsx-runtime";import p from"prop-types";import{useForm as g,FormProvider as h,Controller as m}from"react-hook-form";import{Container as b,Button as v,Stack as y,AppBar as x,Paper as w,Box as k,IconButton as O,Typography as E}from"@mui/material";import _ from"@mui/icons-material/Menu";function j(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 P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L(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,i,o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(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 S(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 S(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 e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(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 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}function r(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 n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this._items=e,this._options=n(n({},l),r),this._init()}var r,i,s;return r=t,(i=[{key:"_init",value:function(){var e=this;this._items.length&&this._items.map((function(t){t.active&&e.open(t.id),t.triggerEl.addEventListener("click",(function(){e.toggle(t.id)}))}))}},{key:"getItem",value:function(e){return this._items.filter((function(t){return t.id===e}))[0]}},{key:"open",value:function(t){var r,n,i=this,o=this.getItem(t);this._options.alwaysOpen||this._items.map((function(t){var r,n;t!==o&&((r=t.triggerEl.classList).remove.apply(r,e(i._options.activeClasses.split(" "))),(n=t.triggerEl.classList).add.apply(n,e(i._options.inactiveClasses.split(" "))),t.targetEl.classList.add("hidden"),t.triggerEl.setAttribute("aria-expanded",!1),t.active=!1,t.iconEl&&t.iconEl.classList.remove("rotate-180"))})),(r=o.triggerEl.classList).add.apply(r,e(this._options.activeClasses.split(" "))),(n=o.triggerEl.classList).remove.apply(n,e(this._options.inactiveClasses.split(" "))),o.triggerEl.setAttribute("aria-expanded",!0),o.targetEl.classList.remove("hidden"),o.active=!0,o.iconEl&&o.iconEl.classList.add("rotate-180"),this._options.onOpen(this,o)}},{key:"toggle",value:function(e){var t=this.getItem(e);t.active?this.close(e):this.open(e),this._options.onToggle(this,t)}},{key:"close",value:function(t){var r,n,i=this.getItem(t);(r=i.triggerEl.classList).remove.apply(r,e(this._options.activeClasses.split(" "))),(n=i.triggerEl.classList).add.apply(n,e(this._options.inactiveClasses.split(" "))),i.targetEl.classList.add("hidden"),i.triggerEl.setAttribute("aria-expanded",!1),i.active=!1,i.iconEl&&i.iconEl.classList.remove("rotate-180"),this._options.onClose(this,i)}}])&&a(r.prototype,i),s&&a(r,s),Object.defineProperty(r,"prototype",{writable:!1}),t}();function c(){document.querySelectorAll("[data-accordion]").forEach((function(e){var t=e.getAttribute("data-accordion"),r=e.getAttribute("data-active-classes"),n=e.getAttribute("data-inactive-classes"),i=[];e.querySelectorAll("[data-accordion-target]").forEach((function(e){var t={id:e.getAttribute("data-accordion-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-accordion-target")),iconEl:e.querySelector("[data-accordion-icon]"),active:"true"===e.getAttribute("aria-expanded")};i.push(t)})),new s(i,{alwaysOpen:"open"===t,activeClasses:r||l.activeClasses,inactiveClasses:n||l.inactiveClasses})}))}function u(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Accordion=s,"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c);var h={triggerEl:null,onCollapse:function(){},onExpand:function(){},onToggle:function(){}},m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;p(this,e),this._targetEl=t,this._triggerEl=r?r.triggerEl:h.triggerEl,this._options=d(d({},h),r),this._visible=!1,this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible="true"===this._triggerEl.getAttribute("aria-expanded"):this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",(function(){e._visible?e.collapse():e.expand()})))}},{key:"collapse",value:function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)}},{key:"expand",value:function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)}},{key:"toggle",value:function(){this._visible?this.collapse():this.expand()}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(){document.querySelectorAll("[data-collapse-toggle]").forEach((function(e){var t=document.getElementById(e.getAttribute("data-collapse-toggle"));new m(t,{triggerEl:e})}))}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(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 y(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 x(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Collapse=m,"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b);var _={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},j=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(this,e),this._items=t,this._options=w(w(w({},_),r),{},{indicators:w(w({},_.indicators),r.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._interval=null,this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._items.map((function(e){e.el.classList.add("absolute","inset-0","transition-all","transform")})),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map((function(t,r){t.el.addEventListener("click",(function(){e.slideTo(r)}))}))}},{key:"getItem",value:function(e){return this._items[e]}},{key:"slideTo",value:function(e){var t=this._items[e],r={left:0===t.position?this._items[this._items.length-1]:this._items[t.position-1],middle:t,right:t.position===this._items.length-1?this._items[0]:this._items[t.position+1]};this._rotate(r),this._setActiveItem(t.position),this._interval&&(this.pause(),this.cycle()),this._options.onChange(this)}},{key:"next",value:function(){var e=this._getActiveItem(),t=null;t=e.position===this._items.length-1?this._items[0]:this._items[e.position+1],this.slideTo(t.position),this._options.onNext(this)}},{key:"prev",value:function(){var e=this._getActiveItem(),t=null;t=0===e.position?this._items[this._items.length-1]:this._items[e.position-1],this.slideTo(t.position),this._options.onPrev(this)}},{key:"_rotate",value:function(e){this._items.map((function(e){e.el.classList.add("hidden")})),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")}},{key:"cycle",value:function(){var e=this;this._interval=setInterval((function(){e.next()}),this._options.interval)}},{key:"pause",value:function(){clearInterval(this._interval)}},{key:"_getActiveItem",value:function(){return this._activeItem}},{key:"_setActiveItem",value:function(e){var t,r,n=this;this._activeItem=this._items[e],this._indicators.length&&(this._indicators.map((function(e){var t,r;e.el.setAttribute("aria-current","false"),(t=e.el.classList).remove.apply(t,v(n._options.indicators.activeClasses.split(" "))),(r=e.el.classList).add.apply(r,v(n._options.indicators.inactiveClasses.split(" ")))})),(t=this._indicators[e].el.classList).add.apply(t,v(this._options.indicators.activeClasses.split(" "))),(r=this._indicators[e].el.classList).remove.apply(r,v(this._options.indicators.inactiveClasses.split(" "))),this._indicators[e].el.setAttribute("aria-current","true"))}}])&&E(t.prototype,r),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function P(){document.querySelectorAll("[data-carousel]").forEach((function(e){var t=e.getAttribute("data-carousel-interval"),r="slide"===e.getAttribute("data-carousel"),n=[],i=0;e.querySelectorAll("[data-carousel-item]").length&&v(e.querySelectorAll("[data-carousel-item]")).map((function(e,t){n.push({position:t,el:e}),"active"===e.getAttribute("data-carousel-item")&&(i=t)}));var o=[];e.querySelectorAll("[data-carousel-slide-to]").length&&v(e.querySelectorAll("[data-carousel-slide-to]")).map((function(e){o.push({position:e.getAttribute("data-carousel-slide-to"),el:e})}));var a=new j(n,{defaultPosition:i,indicators:{items:o},interval:t||_.interval});r&&a.cycle();var l=e.querySelector("[data-carousel-next]"),s=e.querySelector("[data-carousel-prev]");l&&l.addEventListener("click",(function(){a.next()})),s&&s.addEventListener("click",(function(){a.prev()}))}))}function T(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 A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Carousel=j,"loading"!==document.readyState?P():document.addEventListener("DOMContentLoaded",P);var D={triggerEl:null,transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S(this,e),this._targetEl=t,this._triggerEl=r?r.triggerEl:D.triggerEl,this._options=A(A({},D),r),this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",(function(){e.hide()}))}},{key:"hide",value:function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout((function(){e._targetEl.classList.add("hidden")}),this._options.duration),this._options.onHide(this,this._targetEl)}}])&&C(t.prototype,r),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function N(){document.querySelectorAll("[data-dismiss-target]").forEach((function(e){var t=document.querySelector(e.getAttribute("data-dismiss-target"));new I(t,{triggerEl:e})}))}function q(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function M(e){return e instanceof q(e).Element||e instanceof Element}function z(e){return e instanceof q(e).HTMLElement||e instanceof HTMLElement}function B(e){return"undefined"!=typeof ShadowRoot&&(e instanceof q(e).ShadowRoot||e instanceof ShadowRoot)}window.Dismiss=I,"loading"!==document.readyState?N():document.addEventListener("DOMContentLoaded",N);var F=Math.max,R=Math.min,W=Math.round;function U(e,t){void 0===t&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(z(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(n=W(r.width)/a||1),o>0&&(i=W(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function H(e){var t=q(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(e){return e?(e.nodeName||"").toLowerCase():null}function V(e){return((M(e)?e.ownerDocument:e.document)||window.document).documentElement}function $(e){return U(V(e)).left+H(e).scrollLeft}function K(e){return q(e).getComputedStyle(e)}function Z(e){var t=K(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Y(e,t,r){void 0===r&&(r=!1);var n,i,o=z(t),a=z(t)&&function(e){var t=e.getBoundingClientRect(),r=W(t.width)/e.offsetWidth||1,n=W(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),l=V(t),s=U(e,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!r)&&(("body"!==G(t)||Z(l))&&(c=(n=t)!==q(n)&&z(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:H(n)),z(t)?((u=U(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=$(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function X(e){var t=U(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function J(e){return"html"===G(e)?e:e.assignedSlot||e.parentNode||(B(e)?e.host:null)||V(e)}function Q(e){return["html","body","#document"].indexOf(G(e))>=0?e.ownerDocument.body:z(e)&&Z(e)?e:Q(J(e))}function ee(e,t){var r;void 0===t&&(t=[]);var n=Q(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=q(n),a=i?[o].concat(o.visualViewport||[],Z(n)?n:[]):n,l=t.concat(a);return i?l:l.concat(ee(J(a)))}function te(e){return["table","td","th"].indexOf(G(e))>=0}function re(e){return z(e)&&"fixed"!==K(e).position?e.offsetParent:null}function ne(e){for(var t=q(e),r=re(e);r&&te(r)&&"static"===K(r).position;)r=re(r);return r&&("html"===G(r)||"body"===G(r)&&"static"===K(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&z(e)&&"fixed"===K(e).position)return null;for(var r=J(e);z(r)&&["html","body"].indexOf(G(r))<0;){var n=K(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var ie="top",oe="bottom",ae="right",le="left",se="auto",ce=[ie,oe,ae,le],ue="start",de="end",fe="viewport",pe="popper",ge=ce.reduce((function(e,t){return e.concat([t+"-"+ue,t+"-"+de])}),[]),he=[].concat(ce,[se]).reduce((function(e,t){return e.concat([t,t+"-"+ue,t+"-"+de])}),[]),me=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function be(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||i(e)})),n}var ve={placement:"bottom",modifiers:[],strategy:"absolute"};function ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function xe(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?ve:i;return function(e,t,r){void 0===r&&(r=o);var i,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ve,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(r){var i="function"==typeof r?r(l.options):r;d(),l.options=Object.assign({},o,l.options,i),l.scrollParents={reference:M(e)?ee(e):e.contextElement?ee(e.contextElement):[],popper:ee(t)};var a,c,f=function(e){var t=be(e);return me.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((a=[].concat(n,l.options.modifiers),c=a.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:u,options:n}),a=function(){};s.push(o||a)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,r=e.popper;if(ye(t,r)){l.rects={reference:Y(t,ne(r),"fixed"===l.options.strategy),popper:X(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var i=l.orderedModifiers[n],o=i.fn,a=i.options,s=void 0===a?{}:a,d=i.name;"function"==typeof o&&(l=o({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,n=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),c=!0}};if(!ye(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var we={passive:!0};function ke(e){return e.split("-")[0]}function Oe(e){return e.split("-")[1]}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _e(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?ke(i):null,a=i?Oe(i):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(o){case ie:t={x:l,y:r.y-n.height};break;case oe:t={x:l,y:r.y+r.height};break;case ae:t={x:r.x+r.width,y:s};break;case le:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var c=o?Ee(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ue:t[c]=t[c]-(r[u]/2-n[u]/2);break;case de:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var je={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pe(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,g=a.y,h=void 0===g?0:g,m="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=m.x,h=m.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),y=le,x=ie,w=window;if(c){var k=ne(r),O="clientHeight",E="clientWidth";if(k===q(r)&&"static"!==K(k=V(r)).position&&"absolute"===l&&(O="scrollHeight",E="scrollWidth"),i===ie||(i===le||i===ae)&&o===de)x=oe,h-=(d&&w.visualViewport?w.visualViewport.height:k[O])-n.height,h*=s?1:-1;if(i===le||(i===ie||i===oe)&&o===de)y=ae,p-=(d&&w.visualViewport?w.visualViewport.width:k[E])-n.width,p*=s?1:-1}var _,j=Object.assign({position:l},c&&je),P=!0===u?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:W(t*n)/n||0,y:W(r*n)/n||0}}({x:p,y:h}):{x:p,y:h};return p=P.x,h=P.y,s?Object.assign({},j,((_={})[x]=v?"0":"",_[y]=b?"0":"",_.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",_)):Object.assign({},j,((t={})[x]=v?h+"px":"",t[y]=b?p+"px":"",t.transform="",t))}const Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=he.reduce((function(e,r){return e[r]=function(e,t,r){var n=ke(e),i=[le,ie].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[le,ae].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(r,t.rects,o),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Ae={left:"right",right:"left",bottom:"top",top:"bottom"};function Le(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ae[e]}))}var Se={start:"end",end:"start"};function Ce(e){return e.replace(/start|end/g,(function(e){return Se[e]}))}function De(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&B(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t){return t===fe?Ie(function(e){var t=q(e),r=V(e),n=t.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,l=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,l=n.offsetTop)),{width:i,height:o,x:a+$(e),y:l}}(e)):M(t)?function(e){var t=U(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ie(function(e){var t,r=V(e),n=H(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=F(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=F(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+$(e),s=-n.scrollTop;return"rtl"===K(i||r).direction&&(l+=F(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:s}}(V(e)))}function qe(e,t,r){var n="clippingParents"===t?function(e){var t=ee(J(e)),r=["absolute","fixed"].indexOf(K(e).position)>=0&&z(e)?ne(e):e;return M(r)?t.filter((function(e){return M(e)&&De(e,r)&&"body"!==G(e)})):[]}(e):[].concat(t),i=[].concat(n,[r]),o=i[0],a=i.reduce((function(t,r){var n=Ne(e,r);return t.top=F(n.top,t.top),t.right=R(n.right,t.right),t.bottom=R(n.bottom,t.bottom),t.left=F(n.left,t.left),t}),Ne(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ze(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Be(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.boundary,a=void 0===o?"clippingParents":o,l=r.rootBoundary,s=void 0===l?fe:l,c=r.elementContext,u=void 0===c?pe:c,d=r.altBoundary,f=void 0!==d&&d,p=r.padding,g=void 0===p?0:p,h=Me("number"!=typeof g?g:ze(g,ce)),m=u===pe?"reference":pe,b=e.rects.popper,v=e.elements[f?m:u],y=qe(M(v)?v:v.contextElement||V(e.elements.popper),a,s),x=U(e.elements.reference),w=_e({reference:x,element:b,strategy:"absolute",placement:i}),k=Ie(Object.assign({},b,w)),O=u===pe?k:x,E={top:y.top-O.top+h.top,bottom:O.bottom-y.bottom+h.bottom,left:y.left-O.left+h.left,right:O.right-y.right+h.right},_=e.modifiersData.offset;if(u===pe&&_){var j=_[i];Object.keys(E).forEach((function(e){var t=[ae,oe].indexOf(e)>=0?1:-1,r=[ie,oe].indexOf(e)>=0?"y":"x";E[e]+=j[r]*t}))}return E}function Fe(e,t,r){return F(e,R(t,r))}const Re={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,l=void 0!==a&&a,s=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,g=r.tetherOffset,h=void 0===g?0:g,m=Be(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=ke(t.placement),v=Oe(t.placement),y=!v,x=Ee(b),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,_="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,j="number"==typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(k){if(o){var A,L="y"===x?ie:le,S="y"===x?oe:ae,C="y"===x?"height":"width",D=k[x],I=D+m[L],N=D-m[S],q=p?-E[C]/2:0,M=v===ue?O[C]:E[C],z=v===ue?-E[C]:-O[C],B=t.elements.arrow,W=p&&B?X(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[L],G=U[S],V=Fe(0,O[C],W[C]),$=y?O[C]/2-q-V-H-j.mainAxis:M-V-H-j.mainAxis,K=y?-O[C]/2+q+V+G+j.mainAxis:z+V+G+j.mainAxis,Z=t.elements.arrow&&ne(t.elements.arrow),Y=Z?"y"===x?Z.clientTop||0:Z.clientLeft||0:0,J=null!=(A=null==P?void 0:P[x])?A:0,Q=D+K-J,ee=Fe(p?R(I,D+$-J-Y):I,D,p?F(N,Q):N);k[x]=ee,T[x]=ee-D}if(l){var te,re="x"===x?ie:le,se="x"===x?oe:ae,ce=k[w],de="y"===w?"height":"width",fe=ce+m[re],pe=ce-m[se],ge=-1!==[ie,le].indexOf(b),he=null!=(te=null==P?void 0:P[w])?te:0,me=ge?fe:ce-O[de]-E[de]-he+j.altAxis,be=ge?ce+O[de]+E[de]-he-j.altAxis:pe,ve=p&&ge?function(e,t,r){var n=Fe(e,t,r);return n>r?r:n}(me,ce,be):Fe(p?me:fe,ce,p?be:pe);k[w]=ve,T[w]=ve-ce}t.modifiersData[n]=T}},requiresIfExists:["offset"]};const We={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,l=ke(r.placement),s=Ee(l),c=[le,ae].indexOf(l)>=0?"height":"width";if(o&&a){var u=function(e,t){return Me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ze(e,ce))}(i.padding,r),d=X(o),f="y"===s?ie:le,p="y"===s?oe:ae,g=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],h=a[s]-r.rects.reference[s],m=ne(o),b=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,v=g/2-h/2,y=u[f],x=b-d[c]-u[p],w=b/2-d[c]/2+v,k=Fe(y,w,x),O=s;r.modifiersData[n]=((t={})[O]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&De(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ue(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function He(e){return[ie,ae,oe,le].some((function(t){return e[t]>=0}))}var Ge=xe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,l=void 0===a||a,s=q(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",r.update,we)})),l&&s.addEventListener("resize",r.update,we),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",r.update,we)})),l&&s.removeEventListener("resize",r.update,we)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=_e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,l=r.roundOffsets,s=void 0===l||l,c={placement:ke(t.placement),variation:Oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Pe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];z(i)&&G(i)&&(Object.assign(i.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});z(n)&&G(n)&&(Object.assign(n.style,o),Object.keys(i).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},Te,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,g=void 0===p||p,h=r.allowedAutoPlacements,m=t.options.placement,b=ke(m),v=s||(b===m||!g?[Le(m)]:function(e){if(ke(e)===se)return[];var t=Le(e);return[Ce(e),t,Ce(t)]}(m)),y=[m].concat(v).reduce((function(e,r){return e.concat(ke(r)===se?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?he:s,u=Oe(n),d=u?l?ge:ge.filter((function(e){return Oe(e)===u})):ce,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=Be(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[ke(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:h}):r)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,O=!0,E=y[0],_=0;_<y.length;_++){var j=y[_],P=ke(j),T=Oe(j)===ue,A=[ie,oe].indexOf(P)>=0,L=A?"width":"height",S=Be(t,{placement:j,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),C=A?T?ae:le:T?oe:ie;x[L]>w[L]&&(C=Le(C));var D=Le(C),I=[];if(o&&I.push(S[P]<=0),l&&I.push(S[C]<=0,S[D]<=0),I.every((function(e){return e}))){E=j,O=!1;break}k.set(j,I)}if(O)for(var N=function(e){var t=y.find((function(t){var r=k.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},q=g?3:1;q>0;q--){if("break"===N(q))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Re,We,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Be(t,{elementContext:"reference"}),l=Be(t,{altBoundary:!0}),s=Ue(a,n),c=Ue(l,i,o),u=He(s),d=He(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Ve(e){return function(e){if(Array.isArray(e))return $e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $e(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 $e(e,t)}(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 $e(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 Ke(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 Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Qe={placement:"bottom",triggerType:"click",onShow:function(){},onHide:function(){}},et=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Xe(this,e),this._targetEl=t,this._triggerEl=r,this._options=Ze(Ze({},Qe),n),this._popperInstance=this._createPopperInstace(),this._visible=!1,this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",(function(){e.toggle()}))}},{key:"_createPopperInstace",value:function(){return Ge(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,10]}}]})}},{key:"_handleClickOutside",value:function(e,t){var r=e.target;r===t||t.contains(r)||this._triggerEl.contains(r)||!this._visible||this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)}},{key:"toggle",value:function(){this._visible?(this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)):this.show()}},{key:"show",value:function(){var e=this;this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions((function(e){return Ze(Ze({},e),{},{modifiers:[].concat(Ve(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),document.body.addEventListener("click",(function(t){e._handleClickOutside(t,e._targetEl)}),!0),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions((function(e){return Ze(Ze({},e),{},{modifiers:[].concat(Ve(e.modifiers),[{name:"eventListeners",enabled:!1}])})})),this._visible=!1,this._options.onHide(this)}}])&&Je(t.prototype,r),n&&Je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tt(){document.querySelectorAll("[data-dropdown-toggle]").forEach((function(e){var t=document.getElementById(e.getAttribute("data-dropdown-toggle")),r=e.getAttribute("data-dropdown-placement");new et(t,e,{placement:r||Qe.placement})}))}function rt(e){return function(e){if(Array.isArray(e))return nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nt(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 nt(e,t)}(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 nt(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 it(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 ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?it(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Dropdown=et,"loading"!==document.readyState?tt():document.addEventListener("DOMContentLoaded",tt);var ct={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",onHide:function(){},onShow:function(){},onToggle:function(){}},ut=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lt(this,e),this._targetEl=t,this._options=ot(ot({},ct),r),this._isHidden=!0,this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._getPlacementClasses().map((function(t){e._targetEl.classList.add(t)}))}},{key:"_createBackdrop",value:function(){if(this._isHidden){var e,t=document.createElement("div");t.setAttribute("modal-backdrop",""),(e=t.classList).add.apply(e,rt(this._options.backdropClasses.split(" "))),document.querySelector("body").append(t)}}},{key:"_destroyBackdropEl",value:function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()}},{key:"_getPlacementClasses",value:function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":default:return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"]}}},{key:"toggle",value:function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)}},{key:"show",value:function(){this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,this._options.onHide(this)}}])&&st(t.prototype,r),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.Modal=ut;var dt=function(e,t){return!!t.some((function(t){return t.id===e}))&&t.find((function(t){return t.id===e}))};function ft(){var e=[];document.querySelectorAll("[data-modal-toggle]").forEach((function(t){var r=t.getAttribute("data-modal-toggle"),n=document.getElementById(r),i=n.getAttribute("data-modal-placement");n&&(n.hasAttribute("aria-hidden")||n.hasAttribute("aria-modal")||n.setAttribute("aria-hidden","true"));var o=null;dt(r,e)?o=(o=dt(r,e)).object:(o=new ut(n,{placement:i||ct.placement}),e.push({id:r,object:o})),n.hasAttribute("data-modal-show")&&"true"===n.getAttribute("data-modal-show")&&o.show(),t.addEventListener("click",(function(){o.toggle()}))}))}function pt(e){return function(e){if(Array.isArray(e))return gt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gt(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 gt(e,t)}(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 gt(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 ht(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 mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}"loading"!==document.readyState?ft():document.addEventListener("DOMContentLoaded",ft);var xt={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},wt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;vt(this,e),this._targetEl=t,this._options=mt(mt({},xt),r),this._visible=!1,this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map((function(t){e._targetEl.classList.add(t)})),this.hide()}},{key:"isVisible",value:function(){return this._visible}},{key:"hide",value:function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map((function(t){e._targetEl.classList.remove(t)})),this._getPlacementClasses(this._options.placement+"-edge").inactive.map((function(t){e._targetEl.classList.add(t)}))):(this._getPlacementClasses(this._options.placement).active.map((function(t){e._targetEl.classList.remove(t)})),this._getPlacementClasses(this._options.placement).inactive.map((function(t){e._targetEl.classList.add(t)}))),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)}},{key:"show",value:function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map((function(t){e._targetEl.classList.add(t)})),this._getPlacementClasses(this._options.placement+"-edge").inactive.map((function(t){e._targetEl.classList.remove(t)}))):(this._getPlacementClasses(this._options.placement).active.map((function(t){e._targetEl.classList.add(t)})),this._getPlacementClasses(this._options.placement).inactive.map((function(t){e._targetEl.classList.remove(t)}))),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)}},{key:"toggle",value:function(){this.isVisible()?this.hide():this.show()}},{key:"_createBackdrop",value:function(){var e=this;if(!this._visible){var t,r=document.createElement("div");r.setAttribute("drawer-backdrop",""),(t=r.classList).add.apply(t,pt(this._options.backdropClasses.split(" "))),document.querySelector("body").append(r),r.addEventListener("click",(function(){e.hide()}))}}},{key:"_destroyBackdropEl",value:function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()}},{key:"_getPlacementClasses",value:function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]}}}}])&&yt(t.prototype,r),n&&yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();window.Drawer=wt;var kt=function(e,t){return!!t.some((function(t){return t.id===e}))&&t.find((function(t){return t.id===e}))};function Ot(){var e=[];document.querySelectorAll("[data-drawer-target]").forEach((function(t){var r=document.getElementById(t.getAttribute("data-drawer-target")),n=r.id,i=t.getAttribute("data-drawer-placement"),o=t.getAttribute("data-drawer-body-scrolling"),a=t.getAttribute("data-drawer-backdrop"),l=t.getAttribute("data-drawer-edge"),s=t.getAttribute("data-drawer-edge-offset"),c=null;kt(n,e)?c=(c=kt(n,e)).object:(c=new wt(r,{placement:i||xt.placement,bodyScrolling:o?"true"===o:xt.bodyScrolling,backdrop:a?"true"===a:xt.backdrop,edge:l?"true"===l:xt.edge,edgeOffset:s||xt.edgeOffset}),e.push({id:n,object:c}))})),document.querySelectorAll("[data-drawer-toggle]").forEach((function(t){var r=document.getElementById(t.getAttribute("data-drawer-toggle")).id,n=kt(r,e);t.addEventListener("click",(function(){n.object.isVisible()?n.object.hide():n.object.show()}))})),document.querySelectorAll("[data-drawer-dismiss]").forEach((function(t){var r=document.getElementById(t.getAttribute("data-drawer-dismiss")).id,n=kt(r,e);t.addEventListener("click",(function(){n.object.hide()}))})),document.querySelectorAll("[data-drawer-show]").forEach((function(t){var r=document.getElementById(t.getAttribute("data-drawer-show")).id,n=kt(r,e);t.addEventListener("click",(function(){n.object.show()}))}))}function Et(e){return function(e){if(Array.isArray(e))return _t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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)||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 _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}function jt(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){Tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}"loading"!==document.readyState?Ot():document.addEventListener("DOMContentLoaded",Ot);var St={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},Ct=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};At(this,e),this._items=t,this._activeTab=r?this.getTab(r.defaultTabId):null,this._options=Pt(Pt({},St),r),this._init()}var t,r,n;return t=e,r=[{key:"_init",value:function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map((function(t){t.triggerEl.addEventListener("click",(function(){e.show(t.id)}))})))}},{key:"getActiveTab",value:function(){return this._activeTab}},{key:"_setActiveTab",value:function(e){this._activeTab=e}},{key:"getTab",value:function(e){return this._items.filter((function(t){return t.id===e}))[0]}},{key:"show",value:function(e){var t,r,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.getTab(e);(o!==this._activeTab||i)&&(this._items.map((function(e){var t,r;e!==o&&((t=e.triggerEl.classList).remove.apply(t,Et(n._options.activeClasses.split(" "))),(r=e.triggerEl.classList).add.apply(r,Et(n._options.inactiveClasses.split(" "))),e.targetEl.classList.add("hidden"),e.triggerEl.setAttribute("aria-selected",!1))})),(t=o.triggerEl.classList).add.apply(t,Et(this._options.activeClasses.split(" "))),(r=o.triggerEl.classList).remove.apply(r,Et(this._options.inactiveClasses.split(" "))),o.triggerEl.setAttribute("aria-selected",!0),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))}}],r&&Lt(t.prototype,r),n&&Lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dt(){document.querySelectorAll("[data-tabs-toggle]").forEach((function(e){var t=[],r=null;e.querySelectorAll('[role="tab"]').forEach((function(e){var n="true"===e.getAttribute("aria-selected"),i={id:e.getAttribute("data-tabs-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-tabs-target"))};t.push(i),n&&(r=i.id)})),new Ct(t,{defaultTabId:r})}))}function It(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(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 Nt(e,t)}(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 Nt(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 qt(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 Mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Tabs=Ct,"loading"!==document.readyState?Dt():document.addEventListener("DOMContentLoaded",Dt);var Rt={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){}},Wt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Bt(this,e),this._targetEl=t,this._triggerEl=r,this._options=Mt(Mt({},Rt),n),this._popperInstance=this._createPopperInstace(),this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;if(this._triggerEl){var t=this._getTriggerEvents();t.showEvents.forEach((function(t){e._triggerEl.addEventListener(t,(function(){e.show()}))})),t.hideEvents.forEach((function(t){e._triggerEl.addEventListener(t,(function(){e.hide()}))}))}}},{key:"_createPopperInstace",value:function(){return Ge(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}},{key:"_getTriggerEvents",value:function(){switch(this._options.triggerType){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]}}}},{key:"show",value:function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions((function(e){return Mt(Mt({},e),{},{modifiers:[].concat(It(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),this._popperInstance.update(),this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions((function(e){return Mt(Mt({},e),{},{modifiers:[].concat(It(e.modifiers),[{name:"eventListeners",enabled:!1}])})})),this._options.onHide(this)}}])&&Ft(t.prototype,r),n&&Ft(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ut(){document.querySelectorAll("[data-tooltip-target]").forEach((function(e){var t=document.getElementById(e.getAttribute("data-tooltip-target")),r=e.getAttribute("data-tooltip-trigger"),n=e.getAttribute("data-tooltip-placement");new Wt(t,e,{placement:n||Rt.placement,triggerType:r||Rt.triggerType})}))}function Ht(e){return function(e){if(Array.isArray(e))return Gt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gt(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 Gt(e,t)}(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 Gt(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 Vt(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 $t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(r),!0).forEach((function(t){Kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Tooltip=Wt,"loading"!==document.readyState?Ut():document.addEventListener("DOMContentLoaded",Ut);var Xt={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){}},Jt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Zt(this,e),this._targetEl=t,this._triggerEl=r,this._options=$t($t({},Xt),n),this._popperInstance=this._createPopperInstace(),this._init()}var t,r,n;return t=e,(r=[{key:"_init",value:function(){var e=this;if(this._triggerEl){var t=this._getTriggerEvents();t.showEvents.forEach((function(t){e._triggerEl.addEventListener(t,(function(){e.show()})),e._targetEl.addEventListener(t,(function(){e.show()}))})),t.hideEvents.forEach((function(t){e._triggerEl.addEventListener(t,(function(){setTimeout((function(){e._targetEl.matches(":hover")||e.hide()}),100)})),e._targetEl.addEventListener(t,(function(){setTimeout((function(){e._triggerEl.matches(":hover")||e.hide()}),100)}))}))}}},{key:"_createPopperInstace",value:function(){return Ge(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})}},{key:"_getTriggerEvents",value:function(){switch(this._options.triggerType){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]}}}},{key:"show",value:function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions((function(e){return $t($t({},e),{},{modifiers:[].concat(Ht(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),this._popperInstance.update(),this._options.onShow(this)}},{key:"hide",value:function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions((function(e){return $t($t({},e),{},{modifiers:[].concat(Ht(e.modifiers),[{name:"eventListeners",enabled:!1}])})})),this._options.onHide(this)}}])&&Yt(t.prototype,r),n&&Yt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qt(){document.querySelectorAll("[data-popover-target]").forEach((function(e){var t=document.getElementById(e.getAttribute("data-popover-target")),r=e.getAttribute("data-popover-trigger"),n=e.getAttribute("data-popover-placement"),i=e.getAttribute("data-popover-offset");new Jt(t,e,{placement:n||Xt.placement,offset:i?parseInt(i):Xt.offset,triggerType:r||Xt.triggerType})}))}window.Popover=Jt,"loading"!==document.readyState?Qt():document.addEventListener("DOMContentLoaded",Qt)})();var C=function(e){return u("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:[u("div",{children:[d("div",{class:"ml-3 text-sm font-bold",children:e.title}),d("div",{class:"ml-3 text-sm font-normal",children:e.text})]}),u("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:[d("span",{class:"sr-only",children:"Close"}),d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})})]})]})},D=function(e){return u("label",{for:"default-toggle",class:"inline-flex relative items-center cursor-pointer",children:[d("input",{type:"checkbox",value:"",id:"default-toggle",class:"sr-only peer"}),d("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"}),d("span",{class:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.text})]})},I=function(e){return u("div",{className:"flex items-center h-full p-2",children:[d("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&&d("label",{className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label})]})},N=function(e){var r=L(t(e.defaultValue),2);return r[0],r[1],u("div",{children:[d("div",{class:"mb-4 border-b border-gray-200 dark:border-gray-700",children:d("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 d("li",{class:"mr-2",role:"presentation",children:d("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})})}))})}),d("div",{id:"myTabContent",children:e.options.map((function(e){return d("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})}))})]})};N.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 q=function(e){return d("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})},M=function(e){return u("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&&u("div",{class:"flex justify-end pr-6",children:[u("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:[d("span",{class:"sr-only",children:"Open dropdown"}),d("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})})]}),d("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:d("ul",{class:"py-1","aria-labelledby":"dropdownButton",children:e.headerActions.map((function(e){return d("li",{children:d("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})})}))})})]}),u("div",{class:"px-6",children:[u("h5",{class:"mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white",children:[e.header," "]}),d("p",{class:"font-normal text-gray-700 dark:text-gray-400",children:e.content})]}),d("div",{className:"p-3 mt-6 rounded-b-lg flex justify-end",children:e.actions})]})};M.propTypes={lang:p.string,onCardClick:p.func};var z=function(e){var t,r="ar"===e.lang,n={usd:r?"دولار":"$",sar:r?"ريال":"SAR"},i=r?e.features_ar:e.features;return u("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:[d("h5",{class:"mb-4 text-xl font-medium text-gray-500 dark:text-gray-400",children:r?e.title_ar:e.title}),u("div",{class:"flex items-baseline text-gray-900 dark:text-white",children:[u("span",{class:"font-semibold text-sm",children:[" ",n[null===(t=e.currency)||void 0===t?void 0:t.toLowerCase()]]}),d("span",{class:"text-5xl font-extrabold tracking-tight",children:e.price}),u("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]]})]}),d("ul",{role:"list",class:"my-7 space-y-5",children:null==i?void 0:i.map((function(e){return u("li",{class:"flex space-x-3",children:[u("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:[d("title",{children:"Check icon"}),d("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"})]}),d("span",{class:"text-base font-normal leading-tight text-gray-500 dark:text-gray-400",children:e})]})}))}),d("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})]})};z.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 B=function(e){return d("div",P(P({},e),{},{children:e.children}))},F=function(e){return u("div",{children:[d("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),d("input",P(P({},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&&d("p",{className:"mt-2 text-sm text-red-600 dark:text-red-500",children:e.helperText})]})},R=function(e){return d("div",{style:{display:"flex",flexDirection:"row"}})};R.propTypes={color:p.string,handleChange:p.func};var W=function(e){return u("div",{children:[e.label&&d("label",{for:"default-range",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),u("div",{className:"flex flex-row justify-center items-center w-fit",children:[d("div",{className:"mr-2",children:e.startElement})," ",d("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"}),d("div",{className:"ml-2",children:e.endElement})," "]})]})};W.propTypes={startElement:p.element,endElement:p.element,handleChange:p.func};var U=function(e){var r=L(t(e.defaultValue),2),n=r[0],i=r[1];return d("div",{children:d("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 d("li",{className:"mr-2",children:d("button",{"aria-current":"page",onClick:function(){i(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})})}))})})},H=function(e){return u("div",{className:"flex flex-row bg-white justify-between align-middle items-center p-2 rounded-xl my-2 h-14",children:[d(B,{children:e.settingsLabel}),"checkbox"===e.settingsType&&d(I,P({},e)),"text"===e.settingsType&&d(F,P({},e)),"boolean"===e.settingsType&&d(D,P({},e)),"range"===e.settingsType&&d(W,P({},e)),"color"===e.settingsType&&d(R,P({},e)),"radio"===e.settingsType&&d(U,P({},e))]})};H.propTypes={settingsLabel:p.string,settingsType:p.oneOf(["checkbox","text","radio","boolean","color"])};var G=function(e){var t,r="ar"===e.lang,n="";switch(null===(t=e.logo)||void 0===t?void 0:t.toLowerCase()){case"google":n=d("img",{src:"https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg"});break;case"github":n=d("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:"w-7 h-7",children:d("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=d("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:d("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=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",className:"h-6"});break;case"stcpay":n=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",className:"h-6"});break;case"visa/master":n=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",className:"h-6"});break;case"paypal":n=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",className:"h-6"});break;case"googlepay":n=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",className:"h-6"});break;case"applepay":n=d("img",{src:"https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",className:"h-11"});break;case"wallet":n=d("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 223 223",className:"h-6 w-6",children:u("g",{children:[d("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"}),d("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 u("button",P(P({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:[d("div",{className:"h-full flex flex-row justify-end items-center",children:n}),d("div",{style:{width:10}}),d("div",{className:"h-full flex flex-col justify-center items-start",children:e.buttonText})]}))};G.propTypes={lang:p.string,logo:p.oneOf(["google","github","twitter","wallet","googlepay","applepay","stcpay","visa/master","paypal","mada"]),buttonText:p.string};var V=function(e){return u("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,d("div",{class:"tooltip-arrow","data-popper-arrow":!0})]})},$=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"),u("button",P(P({"data-tooltip-target":e.tooltip,type:"button",className:r},e),{},{children:[e.tooltip&&d(V,{tooltipID:e.tooltip,content:e.tooltip}),e.icon?d("div",{className:t,children:e.icon}):null,!e.iconOnly&&e.text]}))},K=function(e){return u("div",{style:{width:"100%"},children:[d("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),d("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})]})},Z=function(e){return u("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:[d("span",{class:"font-medium",children:e.title}),d("span",{children:" "+e.text})]})};Z.propTypes={severity:p.oneOf(["error","info","success","warning"]),title:p.string,text:p.string,hideIcon:p.bool};var Y=function(e){var t="ar"===e.lang;return d(f,{children:d("div",{children:d("div",{class:"overflow-x-auto relative rounded-xl",children:u("table",{class:"w-full text-sm text-left text-gray-500 dark:text-gray-400",children:[d("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",children:u("tr",{children:[e.columns.map((function(e,t){return d("th",{scope:"col",class:"py-3 px-6",children:e},t)})),e.actions&&d("th",{scope:"col",class:"py-3 px-6",children:"actions"})]})}),d("tbody",{children:e.rows?e.rows.map((function(r,n){return u("tr",{class:"bg-white border-b dark:bg-gray-800 dark:border-gray-700",children:[r.map((function(e,t){return 0===t?u("th",{scope:"row",class:"py-4 px-6 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:[e," "]}):d("td",{class:"py-4 px-6",children:e})})),e.actions&&d("td",{align:t?"right":"left",style:{fontWeight:700},variant:t?"borderedRight":"borderedLeft",children:e.actions.map((function(t){return d($,{onClick:function(){return e.handleActionClick(r)},text:t})}))})]},n)})):d("tr",{children:d("td",{colspan:e.columns.length,children:d("div",{className:"w-full p-5 text-center bg-white",children:e.noDataText})})})})]})})})})};Y.propTypes={handleActionClick:p.func,noDataText:p.string,lang:p.string,columns:p.array,rows:p.array,end:p.array};var X=function(e){return d(F,P({},e))},J=function(e){return u("div",{children:[d("h2",{id:"accordion-collapse-heading-"+e.count,children:u("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:[d("span",{children:"What is Flowbite?"}),d("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:d("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"})})]})}),d("div",{id:"accordion-collapse-body-"+e.count,className:"","aria-labelledby":"accordion-collapse-heading-"+e.count,children:u("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:[d("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."}),u("p",{className:"text-gray-500 dark:text-gray-400",children:["Check out this guide to learn how to"," ",d("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."]})]})})]})},Q=function(e){var t=[{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"},{title:"etete",content:"teoite"}];return d("div",{id:"accordion-collapse","data-accordion":"collapse",children:t.map((function(e,r){return d(J,{title:e.title,content:e.content,count:t.length-1===r?-1:r})}))})};function ee(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function l(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}s((n=n.apply(e,t||[])).next())}))}function te(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function re(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}Q.propTypes={title:p.string,content:p.string};var ne=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 ie(e,t){var r=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var r=t.split(".").pop().toLowerCase(),n=ne.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 oe=[".DS_Store","Thumbs.db"];function ae(e){return"object"==typeof e&&null!==e}function le(e){return de(e.target.files).map((function(e){return ie(e)}))}function se(e){return ee(this,void 0,void 0,(function(){return te(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 ie(e)}))]}}))}))}function ce(e,t){return ee(this,void 0,void 0,(function(){var r;return te(this,(function(n){switch(n.label){case 0:return null===e?[2,[]]:e.items?(r=de(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,r]:[4,Promise.all(r.map(fe))]):[3,2];case 1:return[2,ue(pe(n.sent()))];case 2:return[2,ue(de(e.files).map((function(e){return ie(e)})))]}}))}))}function ue(e){return e.filter((function(e){return-1===oe.indexOf(e.name)}))}function de(e){if(null===e)return[];for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(n)}return t}function fe(e){if("function"!=typeof e.webkitGetAsEntry)return ge(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?me(t):ge(e)}function pe(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(re(arguments[t]));return e}(e,Array.isArray(t)?pe(t):[t])}),[])}function ge(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var r=ie(t);return Promise.resolve(r)}function he(e){return ee(this,void 0,void 0,(function(){return te(this,(function(t){return[2,e.isDirectory?me(e):be(e)]}))}))}function me(e){var t=e.createReader();return new Promise((function(e,r){var n=[];!function i(){var o=this;t.readEntries((function(t){return ee(o,void 0,void 0,(function(){var o,a,l;return te(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 o=s.sent(),e(o),[3,4];case 3:return a=s.sent(),r(a),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(he)),n.push(l),i(),s.label=6;case 6:return[2]}}))}))}),(function(e){r(e)}))}()}))}function be(e){return ee(this,void 0,void 0,(function(){return te(this,(function(t){return[2,new Promise((function(t,r){e.file((function(r){var n=ie(r,e.fullPath);t(n)}),(function(e){r(e)}))}))]}))}))}function ve(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 ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function we(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,i,o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ke(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 ke(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 ke(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 Oe=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)}},Ee=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},_e=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},je={code:"too-many-files",message:"Too many files"};function Pe(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||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}(e,t);return[r,r?null:Oe(t)]}function Te(e,t,r){if(Ae(e.size))if(Ae(t)&&Ae(r)){if(e.size>r)return[!1,Ee(r)];if(e.size<t)return[!1,_e(t)]}else{if(Ae(t)&&e.size<t)return[!1,_e(t)];if(Ae(r)&&e.size>r)return[!1,Ee(r)]}return[!0,null]}function Ae(e){return null!=e}function Le(e){var t=e.files,r=e.accept,n=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=we(Pe(e,r),1)[0],o=we(Te(e,n,i),1)[0];return t&&o}))}function Se(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Ce(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 De(e){e.preventDefault()}function Ie(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Ne(e){return-1!==e.indexOf("Edge/")}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Ie(e)||Ne(e)}function Me(){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),i=1;i<r;i++)n[i-1]=arguments[i];return t.some((function(t){return!Se(e)&&t&&t.apply(void 0,[e].concat(n)),Se(e)}))}}function ze(){return"showOpenFilePicker"in window}function Be(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 ye(ye({},e),{},xe({},t,[]))}),{}):{}}]}function Fe(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Re(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}var We=["children"],Ue=["open"],He=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ge=["refKey","onChange","onClick"];function Ve(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ke(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 $e(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,i,o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}(e,t)||Ke(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 Ke(e,t){if(e){if("string"==typeof e)return Ze(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)?Ze(e,t):void 0}}function Ze(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 Ye(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var et=l((function(t,r){var n=t.children,i=nt(Qe(t,We)),o=i.open,a=Qe(i,Ue);return s(r,(function(){return{open:o}}),[o]),e.createElement(c,null,n(Xe(Xe({},a),{},{open:o})))}));et.displayName="Dropzone";var tt={disabled:!1,getFilesFromEvent:function(e){return ee(this,void 0,void 0,(function(){return te(this,(function(t){return ae(e)&&ae(e.dataTransfer)?[2,ce(e.dataTransfer,e.type)]:function(e){return ae(e)&&ae(e.target)}(e)?[2,le(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,se(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};et.defaultProps=tt,et.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 rt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Xe(Xe({},tt),e),l=t.accept,s=t.disabled,c=t.getFilesFromEvent,u=t.maxSize,d=t.minSize,f=t.multiple,p=t.maxFiles,g=t.onDragEnter,h=t.onDragLeave,m=t.onDragOver,b=t.onDrop,v=t.onDropAccepted,y=t.onDropRejected,x=t.onFileDialogCancel,w=t.onFileDialogOpen,k=t.useFsAccessApi,O=t.preventDropOnDocument,E=t.noClick,_=t.noKeyboard,j=t.noDrag,P=t.noDragEventsBubbling,T=t.validator,A=r((function(){return"function"==typeof w?w:ot}),[w]),L=r((function(){return"function"==typeof x?x:ot}),[x]),S=n(null),C=n(null),D=i(it,rt),I=$e(D,2),N=I[0],q=I[1],M=N.isFocused,z=N.isFileDialogActive,B=N.draggedFiles,F=n("undefined"!=typeof window&&window.isSecureContext&&k&&ze()),R=function(){!F.current&&z&&setTimeout((function(){C.current&&(C.current.files.length||(q({type:"closeDialog"}),L()))}),300)};o((function(){return window.addEventListener("focus",R,!1),function(){window.removeEventListener("focus",R,!1)}}),[C,z,L,F]);var W=n([]),U=function(e){S.current&&S.current.contains(e.target)||(e.preventDefault(),W.current=[])};o((function(){return O&&(document.addEventListener("dragover",De,!1),document.addEventListener("drop",U,!1)),function(){O&&(document.removeEventListener("dragover",De),document.removeEventListener("drop",U))}}),[S,O]);var H=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[].concat(Ve(W.current),[e.target]),Ce(e)&&Promise.resolve(c(e)).then((function(t){Se(e)&&!P||(q({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),g&&g(e))}))}),[c,g,P]),G=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=Ce(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&m&&m(e),!1}),[m,P]),V=a((function(e){e.preventDefault(),e.persist(),ne(e);var t=W.current.filter((function(e){return S.current&&S.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),W.current=t,t.length>0||(q({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Ce(e)&&h&&h(e))}),[S,h,P]),$=a((function(e,t){var r=[],n=[];e.forEach((function(e){var t=$e(Pe(e,l),2),i=t[0],o=t[1],a=$e(Te(e,d,u),2),s=a[0],c=a[1],f=T?T(e):null;if(i&&s&&!f)r.push(e);else{var p=[o,c];f&&(p=p.concat(f)),n.push({file:e,errors:p.filter((function(e){return e}))})}})),(!f&&r.length>1||f&&p>=1&&r.length>p)&&(r.forEach((function(e){n.push({file:e,errors:[je]})})),r.splice(0)),q({acceptedFiles:r,fileRejections:n,type:"setFiles"}),b&&b(r,n,t),n.length>0&&y&&y(n,t),r.length>0&&v&&v(r,t)}),[q,f,l,d,u,p,b,v,y,T]),K=a((function(e){e.preventDefault(),e.persist(),ne(e),W.current=[],Ce(e)&&Promise.resolve(c(e)).then((function(t){Se(e)&&!P||$(t,e)})),q({type:"reset"})}),[c,$,P]),Z=a((function(){if(F.current){q({type:"openDialog"}),A();var e={multiple:f,types:Be(l)};window.showOpenFilePicker(e).then((function(e){return c(e)})).then((function(e){$(e,null),q({type:"closeDialog"})})).catch((function(e){Fe(e)?(L(e),q({type:"closeDialog"})):Re(e)&&(F.current=!1,C.current&&(C.current.value=null,C.current.click()))}))}else C.current&&(q({type:"openDialog"}),A(),C.current.value=null,C.current.click())}),[q,A,L,k,$,l,f]),Y=a((function(e){S.current&&S.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Z()))}),[S,Z]),X=a((function(){q({type:"focus"})}),[]),J=a((function(){q({type:"blur"})}),[]),Q=a((function(){E||(qe()?setTimeout(Z,0):Z())}),[E,Z]),ee=function(e){return s?null:e},te=function(e){return _?null:ee(e)},re=function(e){return j?null:ee(e)},ne=function(e){P&&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.role,i=e.onKeyDown,o=e.onFocus,a=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,f=e.onDrop,p=Qe(e,He);return Xe(Xe(Je({onKeyDown:te(Me(i,Y)),onFocus:te(Me(o,X)),onBlur:te(Me(a,J)),onClick:ee(Me(l,Q)),onDragEnter:re(Me(c,H)),onDragOver:re(Me(u,G)),onDragLeave:re(Me(d,V)),onDrop:re(Me(f,K)),role:"string"==typeof n&&""!==n?n:"button"},r,S),s||_?{}:{tabIndex:0}),p)}}),[S,Y,X,J,Q,H,G,V,K,_,j,s]),oe=a((function(e){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.onChange,i=e.onClick,o=Qe(e,Ge),a=Je({accept:l,multiple:f,type:"file",style:{display:"none"},onChange:ee(Me(n,K)),onClick:ee(Me(i,oe)),tabIndex:-1},r,C);return Xe(Xe({},a),o)}}),[C,l,f,K,s]),le=B.length,se=le>0&&Le({files:B,accept:l,minSize:d,maxSize:u,multiple:f,maxFiles:p}),ce=le>0&&!se;return Xe(Xe({},N),{},{isDragAccept:se,isDragReject:ce,isFocused:M&&!s,getRootProps:ie,getInputProps:ae,rootRef:S,inputRef:C,open:ee(Z)})}function it(e,t){switch(t.type){case"focus":return Xe(Xe({},e),{},{isFocused:!0});case"blur":return Xe(Xe({},e),{},{isFocused:!1});case"openDialog":return Xe(Xe({},rt),{},{isFileDialogActive:!0});case"closeDialog":return Xe(Xe({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return Xe(Xe({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return Xe(Xe({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Xe({},rt);default:return e}}function ot(){}var at={display:"flex",flexDirection:"row",flexWrap:"wrap",marginTop:10},lt=function(e){var r,n,i,a,l=e.texts,s=e.files,c=e.setFiles;e.setDeletedFiles;var f=e.maxFiles,p=e.accept;e.onAcceptedFiles;var g=e.showPreview,h=e.onDeleteFile,m=e.onClearFiles,b=e.maxSize;e.errorMessages;var v=L(t(0),2),y=v[0],x=v[1],w=L(t(0),2),k=w[0],O=w[1],E=nt({multiple:!0,accept:p,maxSize:b,maxFiles:f,onDrop:function(e){c(e.map((function(e,t){return Object.assign(e,{preview:URL.createObjectURL(e)})})))}}),_=E.getRootProps,j=E.getInputProps,T=E.fileRejections,A=E.acceptedFiles,S=E.isDragActive;o((function(){return function(){null==s||s.forEach((function(e){URL.revokeObjectURL(e.preview)}))}}),[s]),o((function(){c(A)}),[A,y]),m=function(){A.length=0,A.splice(0,A.length),c([])},o((function(){if(b>0){var e=Math.floor(Math.log(b)/Math.log(1024));O(parseFloat((b/Math.pow(1024,e)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e])}}),[b]);var C=T.map((function(e,t){return u("div",{children:[d("div",{children:e.file.name}),d("div",{children:e.errors[0].code})]},t)})),D=null==s?void 0:s.map((function(e,t){return u("div",{style:{position:"relative",margin:10},children:[u("button",{onClick:function(t){t.stopPropagation(),A.splice(A.indexOf(e),1),x(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:[d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})}),d("span",{class:"sr-only",children:"Close modal"})]}),d("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",T),u("div",P(P({},_({style:{backgroundColor:S&&"white"}})),{},{className:"border-black border border-dashed rounded-xl flex flex-col justify-center",children:[d("input",P({},j())),d("div",{className:"text-center p-1",children:"Click here or drop files here to upload"}),u("div",{className:"text-center p-1",children:["Max file size is ",k]}),A.length>0&&d($,{style:{color:"black"},onClick:function(e){e.stopPropagation(),m()},text:"Clear All"}),D&&g?d("aside",{style:at,children:D}):null,"too-many-files"===(null===(r=T[0])||void 0===r||null===(n=r.errors[0])||void 0===n?void 0:n.code)?d(Z,{text:l.tooManyFiles,severity:"error"}):"file-too-large"===(null===(i=T[0])||void 0===i||null===(a=i.errors[0])||void 0===a?void 0:a.code)?d(Z,{text:l.fileTooLarge,severity:"error"}):C]}))},st=function(e){return u("div",{className:"flex flex-row bg-blue-300 rounded-xl p-4",children:[d("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:d("svg",{class:"w-6 h-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})})}),d("div",{className:"p-4",children:e.children})]})},ct=["country","onChange","value","onlyContries","preferredCountries","inputProps","required","placeholder","name","label"];function ut(e){return e.country,e.onChange,e.value,e.onlyContries,e.preferredCountries,e.inputProps,e.required,e.placeholder,e.name,e.label,A(e,ct),u("div",{children:[d("label",{for:"first_name",className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300",children:e.label}),d("input",P(P({},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 dt=function(e){return d("li",{onClick:e.action,children:d("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:d("span",{class:"ml-3",children:e.text})})})},ft=function(e){return d("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:d("div",{class:"relative p-4 w-full max-w-2xl h-full md:h-auto",children:u("div",{class:"relative bg-white rounded-lg shadow dark:bg-gray-700",children:[u("div",{class:"flex justify-between items-start p-4 rounded-t border-b dark:border-gray-600",children:[d("h3",{class:"text-xl font-semibold text-gray-900 dark:text-white",children:"Terms of Service"}),u("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:[d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})}),d("span",{class:"sr-only",children:"Close modal"})]})]}),u("div",{class:"p-6 space-y-6",children:[d("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."}),d("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."})]}),u("div",{class:"flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600",children:[d("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"}),d("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"})]})]})})})},pt=function(e){return d("div",{children:e.children})},gt=function(e){return d("div",{children:d("div",{id:e.popMenuID,class:"hidden z-10 w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700","data-popper-reference-hidden":"","data-popper-escaped":"","data-popper-placement":"bottom",children:d("ul",{class:"py-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"dropdownDefault",children:e.menuItems.map((function(e){return d("li",{children:d("a",{href:"#",class:"block py-2 px-4 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",children:e.label})})}))})})})};gt.propTypes={anchor:p.any,handleClose:p.func,menuItems:p.arrayOf(p.shape({icon:p.element,label:p.string,action:p.func}))};var ht=function(t){var r=L(e.useState(null),2),n=r[0],i=r[1];return u(b,P(P({variant:"page-controls"},t),{},{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[d(v,{variant:"layout",onClick:t.backAction,children:t.backText}),d(y,{direction:"row",spacing:1,sx:{display:{xs:"none",md:"flex"}},children:t.actionButtons.map((function(e){return d(v,{variant:"layout",children:e.label})}))}),u(y,{direction:"row",spacing:1,sx:{display:{xs:"flex",md:"none"}},children:[d(v,{variant:"layout",onClick:function(e){return i(e.currentTarget)},children:d(_,{})}),d(gt,{handleClose:function(e){return i(null)},anchor:n,menuItems:t.actionButtons})]})]}))};function mt(e){var t=e.args;return d(x,{position:"fixed",sx:t.sx,style:{bottom:0,top:"auto",padding:10,flexDirection:"row",alignItems:"center",justifyContent:"space-evenly"},color:t.color,children:d(bt,{appBarContent:t.appBarContent})})}function bt(e){return d(w,{elevation:3,style:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-evenly",borderRadius:10,alignContent:"center",padding:10},variant:"outlined",children:e.appBarContent.map((function(e){var t=e.label,r=e.icon,n=e.action;return d(vt,{label:t,icon:r,action:n})}))})}function vt(e){return u(k,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",sx:{"&:hover":{cursor:"pointer",color:"blue"}},onClick:e.action,children:[d(O,{sx:{ml:1,"&.MuiButtonBase-root:hover":{color:"blue",bgcolor:"transparent"}},children:e.icon}),d(E,{sx:{display:{xs:"none",sm:"none",md:"block"}},children:e.label})]})}ht.propTypes={backText:p.string,backAction:p.func,actionButtons:p.arrayOf(p.shape({label:p.string,action:p.func}))};var yt=function(){return u("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:[d("span",{class:"sr-only",children:"Open main menu"}),d("svg",{"aria-hidden":"true",class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})})]})},xt=function(e){return u("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:[u("div",{class:"py-3 px-4 text-sm text-gray-900 dark:text-white",children:[d("div",{children:e.username}),d("div",{class:"font-medium truncate",children:e.userEmail})]}),d("ul",{class:"py-1 text-sm text-gray-700 dark:text-gray-200","aria-labelledby":"avatarButton",children:e.profileItems.map((function(e){return d(kt,{text:e.text,link:e.slug})}))}),d("div",{class:"py-1",children:d("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"})})]})},wt=function(e){return u("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:[d("div",{href:e.logoHref,class:"flex items-center",children:d("img",{src:"https://my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75",class:"h-9",alt:"Flowbite Logo"})}),d(Ot,{}),d("div",{class:"py-4 overflow-y-auto",children:d("ul",{class:"space-y-2",children:e.drawerItems.map((function(e,t){return d(dt,{action:e.action,text:e.text},t)}))})})]})},kt=function(e){return d("li",{children:d("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})})},Ot=function(){return d("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:d("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:d("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"})})})},Et=function(e){var t;return u("div",{className:"font-plex",children:[d("div",{children:d("nav",{class:"border-gray-200 rounded dark:bg-gray-900",children:u("div",{class:"flex p-3 flex-row-reverse items-center justify-between w-full",children:[d("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:d("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:d("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"})})}),d("div",{children:null!==(t=e.pageTitle)&&void 0!==t?t:"Home"}),d("div",{className:"flex flex-row-reverse",children:d(yt,{})})]})})}),d(xt,{profileItems:e.profileItems}),d(wt,{logoHref:e.logoHref,appTitle:e.appTitle,drawerItems:e.drawerItems}),d("div",{className:"p-3",children:e.children})]})};Et.propTypes={logoLink:p.string,username:p.string,userEmail:p.string,drawerItems:p.objectOf({text:p.string,slug:p.string,action:p.func})};var _t=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",d("div",{className:t,children:e.children})},jt=function(e){var t=g(),r=e.inputs,n=t.formState.errors,i=t.handleSubmit,o=t.control;return u(_t,{children:[" ",d(h,P(P({},t),{},{children:u("form",{onSubmit:i(e.handleUpdateProfile),children:[d(m,{control:o,name:"fullName",render:function(t){var r,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(i=n.fullName)||void 0===i?void 0:i.message},o))}}),d(m,{control:o,name:"phoneNumber",render:function(e){var t=e.field;return d(F,P({fullWidth:!0,type:"tel",label:"Phone Number",placeholder:"+966"},t))}}),d(m,{control:o,name:"email",render:function(t){var r,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:e.texts.emailLabel,helperText:null===(i=n.email)||void 0===i?void 0:i.message,placeholder:e.texts.emailPlaceholder},o))},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}}}),d(m,{control:o,name:"password",render:function(t){var r,i,o=t.field;return d(F,P({fullWidth:!0,type:"password",value:null!==(r=o.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(i=n.password)||void 0===i?void 0:i.message},o))},rules:{required:e.texts.passwordRequiredText}}),d(m,{control:o,name:"confirmPassword",render:function(t){var r,i,o=t.field;return d(F,P({fullWidth:!0,type:"password",value:null!==(r=o.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(i=n.confirmPassword)||void 0===i?void 0:i.message},o))},rules:{required:e.texts.confirmPasswordRequiredText}}),r.length>0&&r.map((function(e){return"textArea"===e.type?d(m,{control:o,name:e.name,render:function(t){var r,n,i,o;return t.field,d(F,{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!==(i=e.placeHolder)&&void 0!==i?i:null,rules:null!==(o=e.rules)&&void 0!==o?o:null})}}):d(m,{control:o,name:e.name,render:function(t){var r,n,i,o;return t.field,d(F,{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!==(i=e.placeHolder)&&void 0!==i?i:null,rules:null!==(o=e.rules)&&void 0!==o?o:null})}})})),d($,{fullWidth:!0,type:"submit",text:e.texts.updateProfile})]})}))]})},Pt=function(e){return u(_t,{children:[" ",e.children,d($,{text:e.saveSettingsText,type:"submit",fullWidth:!0,onClick:e.handleSaveSettings})]})},Tt=function(e){var r=L(t(!1),2),n=r[0],i=r[1],o=g(),a=o.formState.errors,l=o.handleSubmit,s=o.control;return u(_t,{children:[" ",n&&d(Z,{text:e.texts.passwordMatchError,severity:"error"}),e.passwordChanged?d("div",{className:"text-center",children:e.texts.passwordChanged}):d(h,P(P({},o),{},{children:u("form",{onSubmit:l((function(t){console.log("handling subb",t),t.password===t.confirmPassword?e.handleNewPassword():i(!0)})),children:[d(m,{control:s,name:"password",render:function(t){var r,n,i=t.field;return d(F,P({fullWidth:!0,type:"password",value:null!==(r=i.value)&&void 0!==r?r:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(n=a.password)||void 0===n?void 0:n.message},i))},rules:{required:e.texts.passwordRequiredText}}),d(m,{control:s,name:"confirmPassword",render:function(t){var r,n,i=t.field;return d(F,P({fullWidth:!0,type:"password",value:null!==(r=i.value)&&void 0!==r?r:"",label:e.texts.confirmPasswordLabel,placeholder:e.texts.confirmPasswordPlaceholder,helperText:null===(n=a.confirmPassword)||void 0===n?void 0:n.message},i))},rules:{required:e.texts.confirmPasswordRequiredText}}),d($,{type:"submit",fullWidth:!0,text:e.texts.updatePassword})]})}))]})};Tt.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 At=function(e){var t=g(),r=t.formState.errors,n=t.handleSubmit;t.register;var i=t.control;return u(_t,{children:[" ",e.sent?d("div",{className:"text-center",children:e.texts.emailSentText}):u("form",{onSubmit:n(e.handleResetPassword),children:[d(m,{control:i,name:"email",render:function(t){var n,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(n=o.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(i=r.email)||void 0===i?void 0:i.message,placeholder:e.texts.emailPlaceholder},o))},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}}}),d($,{fullWidth:!0,type:"submit",text:e.texts.resetPassword})," "]})]})};At.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 Lt=function(e){var t=g(),r=t.formState.errors,n=t.handleSubmit,i=t.control;return u(_t,{withDividers:!0,children:[e.showError&&d(Z,{title:e.errorTitle,text:e.errorText,severity:"error"}),d(h,P(P({},t),{},{children:u("form",{onSubmit:n(e.handleSignUp),children:[d(m,{control:i,name:"fullName",render:function(t){var n,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(n=o.value)&&void 0!==n?n:"",label:e.texts.fullNameLabel,placeholder:e.texts.fullNamePlaceholder,helperText:null===(i=r.fullName)||void 0===i?void 0:i.message},o))},rules:{required:e.texts.fullNameRequiredText}}),d(m,{control:i,name:"email",render:function(t){var n,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(n=o.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(i=r.email)||void 0===i?void 0:i.message,placeholder:e.texts.emailPlaceholder},o))},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}}}),d(m,{control:i,name:"password",render:function(t){var n,i,o,a=t.field;return d(F,P({fullWidth:!0,type:"password",defaultValue:null!==(n=a.value)&&void 0!==n?n:"",value:null!==(i=a.value)&&void 0!==i?i:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(o=r.password)||void 0===o?void 0:o.message},a))},rules:{required:e.texts.passwordRequiredText}}),d($,{fullWidth:!0,type:"submit",text:e.texts.signUpText})," "]})})),u("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.existingUserText," ",d("span",{onClick:e.handleRouteToSignIn,className:"text-blue-600 cursor-pointer",children:e.texts.signInText})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?u("div",{style:{display:"flex",flexDirection:"column"},children:[e.viaGoogle&&d(G,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignUp}),e.viaGithub&&d(G,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignUp}),e.viaTwitter&&d(G,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignUp})]}):null]})};Lt.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 St=function(e){var t=g(),r=t.formState.errors,n=t.handleSubmit,i=t.control;return u(_t,{withDividers:!0,children:[u("form",{onSubmit:n(e.handleSignIn),children:[e.showError&&d(Z,{title:e.errorTitle,text:e.errorText,severity:"error"}),d(m,{control:i,name:"email",render:function(t){var n,i,o=t.field;return d(F,P({fullWidth:!0,type:"text",value:null!==(n=o.value)&&void 0!==n?n:"",label:e.texts.emailLabel,helperText:null===(i=r.email)||void 0===i?void 0:i.message,placeholder:e.texts.emailPlaceholder},o))},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}}}),d(m,{control:i,name:"password",render:function(t){var n,i,o,a=t.field;return d(F,P({fullWidth:!0,type:"password",defaultValue:null!==(n=a.value)&&void 0!==n?n:"",value:null!==(i=a.value)&&void 0!==i?i:"",label:e.texts.passwordLabel,placeholder:e.texts.passwordPlaceholder,helperText:null===(o=r.password)||void 0===o?void 0:o.message},a))},rules:{required:e.texts.passwordRequiredText}}),d("div",{className:"text-xs cursor-pointer w-fit mb-3",onClick:e.handleForgotPassword,children:e.texts.forgotPasswordText}),d($,{fullWidth:!0,type:"submit",text:e.texts.signInText})," ",u("div",{className:"font-semibold p-3 text-center text-sm",children:[e.texts.newUserText," ",d("span",{onClick:e.handleRouteToSignUp,className:"text-blue-600 cursor-pointer",children:e.texts.signUpText})]})]}),e.viaGithub||e.viaGoogle||e.viaTwitter?u("div",{className:"flex flex-col ",children:[e.viaGoogle&&d(G,{logo:"google",buttonText:e.texts.googleButtonLabel,onClick:e.handleGoogleSignIn}),e.viaGithub&&d(G,{logo:"github",buttonText:e.texts.githubButtonLabel,onClick:e.handleGithubSignIn}),e.viaTwitter&&d(G,{logo:"twitter",buttonText:e.texts.twitterButtonLabel,onClick:e.handleTwitterSignIn})]}):null]})};St.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 Ct=function(e){var t=g(),r=t.formState.errors,n=t.handleSubmit,i=t.control;return u(_t,{children:[" ",e.showError&&d(Z,{title:e.errorTitle,text:e.errorText,severity:"error"}),u("form",{onSubmit:n(e.handleSignIn),children:[d(m,{control:i,name:"code",render:function(t){var n,i,o=t.field;return d(F,P({fullWidth:!0,type:"number",value:null!==(n=o.value)&&void 0!==n?n:"",label:e.texts.codeLabel,helperText:null===(i=r.email)||void 0===i?void 0:i.message,placeholder:e.texts.codePlaceholder},o))},rules:{required:e.texts.codeRequiredText}}),d($,{type:"submit",fullWidth:!0,text:e.texts.confirmText})]})]})};Ct.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 Dt=function(e){var r=L(t(""),2);r[0];var n=r[1],i=g();i.formState.errors;var o=i.handleSubmit,a=i.control;return d(_t,{children:u("form",{onSubmit:o(e.onSubmit),children:[d(m,{control:a,name:"phone",render:function(t){var r,i,o,a=t.field;return d(ut,P({country:null!==(r=e.country)&&void 0!==r?r:"",label:null!==(i=e.label)&&void 0!==i?i:"",onChange:function(t){e.onChange(t),n(t)},value:null!==(o=e.value)&&void 0!==o?o:e.value},a))}}),d($,{fullWidth:!0,type:"submit",text:e.SignInButtonText})]})})},It=function(e){return u(_t,{children:[d(B,{align:"center",children:"Choose Payment Method"}),e.viaWallet&&d(G,{logo:"wallet",buttonText:e.walletLabel,onClick:e.handleWallet}),e.viaCreditCard&&d(G,{logo:"visa/master",buttonText:e.visaMasterLabel,onClick:e.handleCreditCard}),e.viaMada&&d(G,{logo:"mada",buttonText:e.madaLabel,onClick:e.handleMada}),e.viaSTCPay&&d(G,{logo:"stcpay",buttonText:e.stcPayLabel,onClick:e.handleSTCPay}),e.viaPayPal&&d(G,{logo:"paypal",buttonText:e.paypalLabel,onClick:e.handlePayPal}),e.viaGooglePay&&d(G,{logo:"googlepay",buttonText:e.googlePayLabel,onClick:e.handleGooglePay}),e.viaApplePay&&d(G,{logo:"applepay",buttonText:e.applePayLabel,onClick:e.handleApplePay})]})};It.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 Nt=function(e){var t,r=g(),n=r.formState.errors,i=r.handleSubmit,o=r.control;return u(_t,{children:[" ",u("form",{onSubmit:i(e.handle),children:[d(F,{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}),d(m,{control:o,name:"cardName",render:function(e){var t;return e.field,d(F,{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})}}),d(m,{control:o,name:"cardName",render:function(e){var t;return e.field,d(F,{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})}}),d(m,{control:o,name:"cardName",render:function(e){var t;return e.field,d(F,{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})}}),d($,{type:"submit",fullWidth:!0,onClick:e.handlePayWithCreditCard,text:"Pay with Credit Card"})," "]})]})},qt=function(e){var r=L(t(0),2),n=r[0],i=r[1],o=g(),a=o.formState.errors,l=o.handleSubmit,s=o.control;return u(_t,{children:[" ",u("div",{className:"text-5xl font-extrabold text-center",children:[Number(n).toLocaleString("en")||"0",d("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),d(h,P(P({},o),{},{children:u("form",{onSubmit:l(e.handleChargeWallet),children:[d(m,{control:s,name:"amount",render:function(t){var r,n,o=t.field;return d(F,P(P({fullWidth:!0,placeholder:e.texts.amountLabel,type:"number",value:null!==(r=o.value)&&void 0!==r?r:""},o),{},{inputProps:{inputMode:"numeric",min:"1",max:"9999999",step:"0.01"},onChange:function(e){o.onChange(parseFloat(e.target.value)),i(e.target.value)},helperText:null===(n=a.amount)||void 0===n?void 0:n.message}))},rules:{required:e.texts.amountRequired}}),d($,{type:"submit",fullWidth:!0,text:e.texts.chargeWallet})]})}))]})};qt.propTypes={texts:p.shape({amountLabel:p.string,chargeWallet:p.string,amountRequired:p.string}),handleChargeWallet:p.func,currency:p.string};var Mt=function(e){return u(_t,{children:[u("div",{className:"text-5xl font-extrabold text-center",children:[e.walletBalance||"0",d("div",{className:"text-sm font-normal",children:e.currency||"SAR"})]}),d($,{type:"submit",fullWidth:!0,onClick:e.handlePayWithWallet,text:"Pay Now"})]})},zt=function(e){var t,r,n,i,o,a,l,s,c,f;e.lang;var p=g(),b=p.formState.errors,v=p.handleSubmit;p.register;var y=p.control,x={display:"flex",padding:0,paddingRight:"0px !important",paddingLeft:"0px !important",flexDirection:{xs:"column",sm:"row",md:"row",lg:"row",xl:"row"}};return u(_t,{withDividers:!0,children:[" ",u("div",{children:[d("div",{className:"text-xl text-center font-semibold mb-2",children:e.texts.orderDetails}),d(Y,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),u("div",{children:[d("div",{className:"text-xl text-center font-semibold my-2",children:e.texts.billingAddress}),d(h,P(P({},p),{},{children:u("form",{onSubmit:v(e.handlePayNow),children:[u("div",{children:[d(m,{control:y,name:"firstName",rules:{required:null===(t=e.texts)||void 0===t?void 0:t.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.firstNameLabel)+" *",helperText:null===(i=b.firstName)||void 0===i?void 0:i.message},o))}}),d("div",{style:{width:20}}),d(m,{control:y,name:"lastName",rules:{required:null===(r=e.texts)||void 0===r?void 0:r.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.lastNameLabel)+" *",helperText:null===(i=b.lastName)||void 0===i?void 0:i.message},o))}})]}),d(m,{control:y,name:"email",render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.emailLabel)+" *",helperText:null===(i=b.email)||void 0===i?void 0:i.message},o))},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===(i=e.texts)||void 0===i?void 0:i.emailInvalidText}}}),u("div",{sx:x,children:[d(m,{control:y,name:"streetAddress",rules:{required:null===(o=e.texts)||void 0===o?void 0:o.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.streetAddressLabel)+" *",helperText:null===(i=b.streetAddress)||void 0===i?void 0:i.message},o))}}),d("div",{style:{width:20}}),d(m,{control:y,name:"buildingNumber",rules:{required:null===(a=e.texts)||void 0===a?void 0:a.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.buildingNumberLabel)+" *",helperText:null===(i=b.buildingNumber)||void 0===i?void 0:i.message},o))}})]}),u("div",{sx:x,children:[d(m,{control:y,name:"province",rules:{required:null===(l=e.texts)||void 0===l?void 0:l.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.stateLabel)+" *",helperText:null===(i=b.province)||void 0===i?void 0:i.message},o))}}),d("div",{style:{width:20}}),d(m,{control:y,name:"city",rules:{required:null===(s=e.texts)||void 0===s?void 0:s.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"text",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.cityLabel)+" *",helperText:null===(i=b.city)||void 0===i?void 0:i.message},o))}})]}),u("div",{className:"mb-3",children:[d(m,{control:y,name:"zipCode",rules:{required:null===(c=e.texts)||void 0===c?void 0:c.required},render:function(t){var r,n,i,o=t.field;return d(F,P({inForm:!0,fullWidth:!0,type:"number",variant:"unscrollable",value:null!==(r=o.value)&&void 0!==r?r:"",label:(null===(n=e.texts)||void 0===n?void 0:n.zipCodeLabel)+" *",helperText:null===(i=b.zipCode)||void 0===i?void 0:i.message},o))}}),d("div",{style:{width:20}}),d(m,{control:y,name:"country",rules:{required:null===(f=e.texts)||void 0===f?void 0:f.required},render:function(t){var r,n,i,o=t.field;return u(K,P(P({fullWidth:!0,native:!0,label:(null===(r=e.texts)||void 0===r?void 0:r.countryLabel)+" *",variant:"standard",value:null!==(n=o.value)&&void 0!==n?n:"",helperText:null===(i=b.country)||void 0===i?void 0:i.message,displayEmpty:!0,disableUnderline:!0,validators:["required"]},o),{},{children:[d("option",{}),e.countriesList.map((function(e,t){return d("option",{children:e},t)}))]}))}})]}),d($,{type:"submit",fullWidth:!0,text:e.texts.payNow})," "]})}))]})]})};zt.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 Bt=function(e){return e.lang,u(_t,{withDividers:!0,children:[" ",d("div",{className:"text-3xl font-bold text-center py-5",children:e.confirmationTitle}),u("div",{className:"py-5",children:[u("div",{className:"text-center mb-2",children:[e.texts.successMessage," ",d("strong",{children:e.userEmail})]}),d("div",{className:"text-center",children:e.texts.yourOrderNumber}),d("div",{className:"font-bold text-center",children:e.orderNumber})]}),u("div",{className:"py-5",children:[d("div",{className:"text-xl font-semibold mb-3 text-center",children:e.texts.orderDetails}),e.products&&d(Y,{lang:e.lang,columns:["Product","Price"],rows:e.products,end:["Total",e.total]})]}),u("div",{className:"flex flex-col py-5 justify-center items-center",children:[d($,{fullWidth:!0,onClick:e.handlePrint,text:e.texts.print})," ",d($,{fullWidth:!0,onClick:e.handleHistory,text:e.texts.history})," ",d($,{fullWidth:!0,onClick:e.handleHome,text:e.texts.homePage})," ",d("div",{className:"mt-5 mb-5 text-center text-sm",children:e.texts.fasterPaymentNote}),d("a",{className:"w-fit text-center cursor-pointer text-xs font-normal",onClick:e.handleRefundPolicyLink,children:e.texts.refundPolicy})]})]})};Bt.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 Ft=function(e){var r=L(t("sar"),2),n=r[0],i=r[1],o=L(t("monthly"),2),a=o[0],l=o[1];return u("div",{children:[u("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:10},children:[d(U,{defaultValue:a,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 l(e)}}),d(U,{defaultValue:n,options:[{label:"USD",value:"usd"},{label:"SAR",value:"sar"}],onChangeTab:function(e){return i(e)}})]}),d("div",{className:"flex flex-row",children:e.plans.map((function(t){return d(z,P(P({lang:e.lang},t),{},{currency:n,cycleText:a}))}))})]})};Ft.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 Rt=function(){return d("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:d("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"})})},Wt=function(){return d("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:d("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"})})},Ut=function(e){var r=L(t("sar"),2);r[0],r[1];var n=L(t("monthly"),2);return n[0],n[1],d("div",{id:"detailed-pricing",class:"overflow-x-auto w-full",children:u("div",{class:"overflow-hidden min-w-max",children:[u("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:[d("div",{class:"flex items-center"}),e.plans.map((function(e){return d("div",{children:e.title})}))]}),e.plans.map((function(e){return u("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:["Basic components (",d("a",{href:"#",class:"text-blue-600 hover:underline",children:"view all"}),")"]}),d(Rt,{}),d(Rt,{}),d(Rt,{})]})})),u("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:["Application UI (",d("a",{href:"#",class:"text-blue-600 hover:underline",children:"view demo"}),")"]}),d(Wt,{}),d(Rt,{}),d(Wt,{})]}),u("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:[d("div",{class:"text-gray-500 dark:text-gray-400",children:"Marketing UI pre-order"}),d(Wt,{}),d(Rt,{}),d(Wt,{})]}),u("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:[d("div",{class:"text-gray-500 dark:text-gray-400"}),d("div",{children:d("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"})}),d("div",{children:d("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"})}),d("div",{children:d("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"})})]})]})})};Ut.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{bt as BottomAppBar,pt as Box,qt as ChargeWalletForm,zt as CheckoutForm,Ct as CodeConfirmation,Ut as ComparingPlans,Bt as ConfirmationPage,Nt as CreditCardForm,lt as DragDropImages,st as DraggableCard,Q as HawaAccordian,Z as HawaAlert,mt as HawaBottomAppBar,$ as HawaButton,I as HawaCheckbox,q as HawaChip,R as HawaColorPicker,_t as HawaContainer,M as HawaItemCard,Et as HawaLayout,G as HawaLogoButton,ft as HawaModal,ht as HawaPageControls,N as HawaPanelTabs,z as HawaPricingCard,W as HawaRange,X as HawaSearchBar,K as HawaSelect,H as HawaSettingsRow,C as HawaSnackbar,D as HawaSwitch,Y as HawaTable,U as HawaTabs,F as HawaTextField,V as HawaTooltip,B as HawaTypography,Tt as NewPasswordForm,Mt as PayWithWallet,Ft as PricingPlans,At as ResetPasswordForm,It as SelectPayment,St as SignInForm,Dt as SignInPhone,Lt as SignUpForm,jt 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{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};