zaions-react-ui-kit
Version:
Zaions React ui Kit, this is react projects tool kit created by Zaions Dev Team (https://zaions.com). We hope you will love this and all other packages we have developed for you, please do react out if you face any issue in packages we deliver. Once again
1 lines • 110 kB
JavaScript
'use strict';var zaionsToolKit=require('zaions-tool-kit'),themes=require('@radix-ui/themes'),zaionsReactToolKit=require('zaions-react-tool-kit'),$=require('react'),recoil=require('recoil'),jsxRuntime=require('react/jsx-runtime'),$t=require('@radix-ui/react-accordion'),reactIcons=require('@radix-ui/react-icons'),Y2=require('dayjs'),mh=require('react-countdown'),yh=require('react-dropzone'),formik=require('formik'),pd=require('react-select'),network=require('@capacitor/network'),zod=require('zod');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var $__default=/*#__PURE__*/_interopDefault($);var $t__namespace=/*#__PURE__*/_interopNamespace($t);var Y2__default=/*#__PURE__*/_interopDefault(Y2);var mh__default=/*#__PURE__*/_interopDefault(mh);var yh__default=/*#__PURE__*/_interopDefault(yh);var pd__default=/*#__PURE__*/_interopDefault(pd);var Ur=Object.defineProperty,Nr=Object.defineProperties;var Or=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var k2=Object.prototype.hasOwnProperty,f2=Object.prototype.propertyIsEnumerable;var M2=(t,a,r)=>a in t?Ur(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,h=(t,a)=>{for(var r in a||(a={}))k2.call(a,r)&&M2(t,r,a[r]);if(bt)for(var r of bt(a))f2.call(a,r)&&M2(t,r,a[r]);return t},d=(t,a)=>Nr(t,Or(a));var T0=(t,a)=>{var r={};for(var o in t)k2.call(t,o)&&a.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))a.indexOf(o)<0&&f2.call(t,o)&&(r[o]=t[o]);return r};var I0=(l=>(l.name="name",l.email="email",l.password="password",l.passwordConfirmation="passwordConfirmation",l))(I0||{}),Z0=(r=>(r.email="email",r.password="password",r))(Z0||{}),P0=(a=>(a.name="name",a))(P0||{}),U0=(r=>(r.edit="edit",r.add="add",r))(U0||{});zaionsToolKit.checkForDuplicateEnumValues(I0,"Duplicate RegisterFormFieldsEnum value found:");zaionsToolKit.checkForDuplicateEnumValues(Z0,"Duplicate LoginFormFieldsEnum value found:");zaionsToolKit.checkForDuplicateEnumValues(P0,"Duplicate UserAccountDataFormFieldsEnum value found:");zaionsToolKit.checkForDuplicateEnumValues(U0,"Duplicate ZFormModeE value found:");var N0=(r=>(r.every="every",r.any="any",r))(N0||{}),L2=(r=>(r.start="start",r.end="end",r))(L2||{});zaionsToolKit.checkForDuplicateEnumValues(N0,"Duplicate ZPermissionCheckModeEnum value found:");zaionsToolKit.checkForDuplicateEnumValues(L2,"Duplicate ZSideE value found:");var O0=(r=>(r.left="left",r.right="right",r))(O0||{}),wt=(r=>(r.classic="classic",r.surface="surface",r))(wt||{}),Bt=(r=>(r.ghost="ghost",r.surface="surface",r))(Bt||{}),Tt=(r=>(r.auto="auto",r.fixed="fixed",r))(Tt||{}),zt=(o=>(o.surface="surface",o.soft="soft",o.outline="outline",o))(zt||{}),Wt=(o=>(o.classic="classic",o.surface="surface",o.ghost="ghost",o))(Wt||{}),z0=(r=>(r.soft="soft",r.solid="solid",r))(z0||{}),jt=(o=>(o.classic="classic",o.surface="surface",o.soft="soft",o))(jt||{}),yt=(l=>(l.solid="solid",l.soft="soft",l.surface="surface",l.outline="outline",l))(yt||{}),W0=(e=>(e.classic="classic",e.solid="solid",e.soft="soft",e.surface="surface",e.outline="outline",e.ghost="ghost",e))(W0||{}),F=(T=>(T.gray="gray",T.gold="gold",T.bronze="bronze",T.brown="brown",T.yellow="yellow",T.amber="amber",T.orange="orange",T.tomato="tomato",T.red="red",T.ruby="ruby",T.crimson="crimson",T.pink="pink",T.plum="plum",T.purple="purple",T.violet="violet",T.iris="iris",T.indigo="indigo",T.blue="blue",T.cyan="cyan",T.teal="teal",T.jade="jade",T.green="green",T.grass="grass",T.lime="lime",T.mint="mint",T.sky="sky",T))(F||{}),E0=(i=>(i.none="none",i.small="small",i.medium="medium",i.large="large",i.full="full",i))(E0||{}),v0=(c=>(c.number="number",c.search="search",c.time="time",c.text="text",c.hidden="hidden",c.date="date",c.datetimeLocal="datetime-local",c.email="email",c.month="month",c.password="password",c.tel="tel",c.url="url",c.week="week",c))(v0||{}),At=(o=>(o.vertical="vertical",o.horizontal="horizontal",o.both="both",o))(At||{}),H0=(r=>(r.vertical="vertical",r.horizontal="horizontal",r))(H0||{}),Rt=(l=>(l.auto="auto",l.always="always",l.scroll="scroll",l.hover="hover",l))(Rt||{}),q0=(r=>(r.div="div",r.span="span",r))(q0||{}),U=(l=>(l.div="div",l.span="span",l.label="label",l.p="p",l))(U||{}),M0=(e=>(e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e))(M0||{}),o0=(l=>(l.row="row",l.column="column",l.rowRevers="row-reverse",l.columnRevers="column-reverse",l))(o0||{}),St=(i=>(i.static="static",i.relative="relative",i.absolute="absolute",i.fixed="fixed",i.sticky="sticky",i))(St||{}),Ft=(o=>(o.none="none",o.inlineFlex="inline-flex",o.flex="flex",o))(Ft||{}),Dt=(r=>(r.none="none",r.initial="initial",r))(Dt||{}),It=(l=>(l.none="none",l.inline="inline",l.inlineBlock="inline-block",l.block="block",l))(It||{}),Zt=(l=>(l.start="start",l.center="center",l.end="end",l.baseline="baseline",l))(Zt||{}),Z=(i=>(i.start="start",i.center="center",i.end="end",i.baseline="baseline",i.stretch="stretch",i))(Z||{}),j0=(o=>(o.left="left",o.center="center",o.right="right",o))(j0||{}),Pt=(l=>(l.normal="normal",l.start="start",l.end="end",l.both="both",l))(Pt||{}),V=(l=>(l.start="start",l.center="center",l.end="end",l.between="between",l))(V||{}),Ut=(o=>(o.start="start",o.center="center",o.end="end",o))(Ut||{}),Nt=(o=>(o.nowrap="nowrap",o.wrap="wrap",o.wrapReverse="wrap-reverse",o))(Nt||{}),Ot=(l=>(l.nowrap="nowrap",l.wrap="wrap",l.pretty="pretty",l.balance="balance",l))(Ot||{}),Et=(i=>(i.visible="visible",i.hidden="hidden",i.clip="clip",i.scroll="scroll",i.auto="auto",i))(Et||{}),Ht=(l=>(l.light="light",l.regular="regular",l.medium="medium",l.bold="bold",l))(Ht||{}),_0=(r=>(r.itemAligned="item-aligned",r.popper="popper",r))(_0||{}),qt=(r=>(r.single="single",r.multiple="multiple",r))(qt||{}),_t=(l=>(l.auto="auto",l.always="always",l.hover="hover",l.none="none",l))(_t||{}),Gt=(l=>(l.wrap="wrap",l.nowrap="nowrap",l.pretty="pretty",l.balance="balance",l))(Gt||{}),Vt=(l=>(l.light="light",l.regular="regular",l.medium="medium",l.bold="bold",l))(Vt||{});zaionsToolKit.checkForDuplicateEnumValues(O0,"Duplicate ZRUSideE value found:");zaionsToolKit.checkForDuplicateEnumValues(wt,"Duplicate ZRUCommonVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(Bt,"Duplicate ZRUTableVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(Tt,"Duplicate ZRUTableLayoutE value found:");zaionsToolKit.checkForDuplicateEnumValues(zt,"Duplicate ZRUCalloutVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(Wt,"Duplicate ZRUBasicVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(z0,"Duplicate ZRUAvatarVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(jt,"Duplicate ZRUTriggerVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(yt,"Duplicate ZRUBadgeVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(W0,"Duplicate ZRUVariantE value found:");zaionsToolKit.checkForDuplicateEnumValues(F,"Duplicate ZRUColorE value found:");zaionsToolKit.checkForDuplicateEnumValues(E0,"Duplicate ZRURadiusE value found:");zaionsToolKit.checkForDuplicateEnumValues(v0,"Duplicate ZRUInputTypeE value found:");zaionsToolKit.checkForDuplicateEnumValues(At,"Duplicate ZRUScrollbarsE value found:");zaionsToolKit.checkForDuplicateEnumValues(H0,"Duplicate ZRUOrientationE value found:");zaionsToolKit.checkForDuplicateEnumValues(Rt,"Duplicate ZRUScrollbarTypeE value found:");zaionsToolKit.checkForDuplicateEnumValues(q0,"Duplicate ZRUAsE value found:");zaionsToolKit.checkForDuplicateEnumValues(U,"Duplicate ZRUTextAsE value found:");zaionsToolKit.checkForDuplicateEnumValues(M0,"Duplicate ZRUHeadingAsE value found:");zaionsToolKit.checkForDuplicateEnumValues(o0,"Duplicate ZRUDirectionE value found:");zaionsToolKit.checkForDuplicateEnumValues(St,"Duplicate ZRUPositionE value found:");zaionsToolKit.checkForDuplicateEnumValues(Ft,"Duplicate ZRUDisplayE value found:");zaionsToolKit.checkForDuplicateEnumValues(Dt,"Duplicate ZRUContainerDisplayE value found:");zaionsToolKit.checkForDuplicateEnumValues(It,"Duplicate ZRUBoxDisplayE value found:");zaionsToolKit.checkForDuplicateEnumValues(Zt,"Duplicate ZRUTableRowAlignE value found:");zaionsToolKit.checkForDuplicateEnumValues(Z,"Duplicate ZRUAlignE value found:");zaionsToolKit.checkForDuplicateEnumValues(j0,"Duplicate ZRUGeneralAlignE value found:");zaionsToolKit.checkForDuplicateEnumValues(Pt,"Duplicate ZRUTrimE value found:");zaionsToolKit.checkForDuplicateEnumValues(V,"Duplicate ZRUJustifyE value found:");zaionsToolKit.checkForDuplicateEnumValues(Ut,"Duplicate ZRUCellJustifyE value found:");zaionsToolKit.checkForDuplicateEnumValues(Nt,"Duplicate ZRUWrapFlexE value found:");zaionsToolKit.checkForDuplicateEnumValues(Ot,"Duplicate ZRUWrapE value found:");zaionsToolKit.checkForDuplicateEnumValues(Et,"Duplicate ZRUOverflowE value found:");zaionsToolKit.checkForDuplicateEnumValues(Ht,"Duplicate ZRUWeightE value found:");zaionsToolKit.checkForDuplicateEnumValues(_0,"Duplicate ZRUSelectContentPositionE value found:");zaionsToolKit.checkForDuplicateEnumValues(qt,"Duplicate ZRUAccordingTypeE value found:");zaionsToolKit.checkForDuplicateEnumValues(_t,"Duplicate ZRUUnderlineLinkE value found:");zaionsToolKit.checkForDuplicateEnumValues(Gt,"Duplicate ZRUWrapLinkE value found:");zaionsToolKit.checkForDuplicateEnumValues(Vt,"Duplicate ZRULinkWeightE value found:");var y0=(i=>(i.info="info",i.success="success",i.warning="warning",i.error="error",i.default="default",i))(y0||{});zaionsToolKit.checkForDuplicateEnumValues(y0,"Duplicate ReactToastifyTypeEnum value found:");var Xt=recoil.atom({key:"ZUserRolesPermissionsRStateAtom_key",default:{permissions:null,roles:null}});var _r=({children:t,roles:a=[],permissions:r=[],checkMode:o="every",returnPermissionDeniedView:l=!1})=>{let{permissions:i,roles:e}=recoil.useRecoilValue(Xt),n=$.useCallback(s=>i==null?void 0:i.includes(s),[i]),g=$.useCallback(()=>(a==null?void 0:a.length)===0||(a==null?void 0:a.every(s=>e==null?void 0:e.includes(s))),[a,e]);return $.useCallback(()=>!r||(r==null?void 0:r.length)===0?!0:o==="every"?r.every(n):r.some(n),[r,o,n])()&&g()?jsxRuntime.jsx(jsxRuntime.Fragment,{children:t}):null},l0=_r;var Kr=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(l0,{roles:t==null?void 0:t.roles,permissions:t==null?void 0:t.permissions,checkMode:t==null?void 0:t.checkMode,returnPermissionDeniedView:t==null?void 0:t.returnPermissionDeniedView,children:jsxRuntime.jsx(themes.Box,{asChild:t.asChild,className:t.className,style:t.style,as:t.as,display:t.display,onClick:t.onClick,p:t.p,px:t.px,py:t.py,pt:t.pt,pr:t.pr,pb:t.pb,pl:t.pl,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,minHeight:t.minHeight,maxHeight:t.maxHeight,position:t.position,inset:t.inset,top:t.top,right:t.right,bottom:t.bottom,left:t.left,overflow:t.overflow,overflowX:t.overflowX,overflowY:t.overflowY,flexBasis:t.flexBasis,flexShrink:t.flexShrink,flexGrow:t.flexGrow,gridColumn:t.gridColumn,gridColumnStart:t.gridColumnStart,gridColumnEnd:t.gridColumnEnd,gridRow:t.gridRow,gridRowStart:t.gridRowStart,gridRowEnd:t.gridRowEnd,children:t==null?void 0:t.children})}),B=Kr;var Yr=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Container,d(h({},t),{children:t==null?void 0:t.children})),m1=Yr;var ao=({p:t,px:a,py:r,pt:o,pr:l,pb:i,pl:e,width:n,minWidth:g,maxWidth:p,height:s,minHeight:k,maxHeight:m,position:c,overflow:u,overflowX:w,overflowY:L,flexBasis:b,flexShrink:M,flexGrow:f,gridColumn:C,gridColumnStart:j,gridColumnEnd:A,gridRow:x,gridRowStart:y,gridRowEnd:D,children:T,asChild:I,className:O,style:G,as:d0="div",direction:a0,display:X,align:r0,justify:Q,wrap:w0,gap:B0,gapX:Dr,gapY:Ir,show:Zr=!0,onClick:Pr})=>Zr===!1?null:jsxRuntime.jsx(themes.Flex,{onClick:Pr,p:t,px:a,py:r,pt:o,pr:l,pb:i,pl:e,width:n,minWidth:g,maxWidth:p,height:s,minHeight:k,maxHeight:m,position:c,overflow:u,overflowX:w,overflowY:L,flexBasis:b,flexShrink:M,flexGrow:f,gridColumn:C,gridColumnStart:j,gridColumnEnd:A,gridRow:x,gridRowStart:y,gridRowEnd:D,className:zaionsReactToolKit.ZClassNames(O),style:G,as:d0,asChild:I,direction:a0,display:X,align:r0,justify:Q,wrap:w0,gap:B0,gapX:Dr,gapY:Ir,children:T}),z=ao;var lo=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Heading,d(h({},t),{children:t==null?void 0:t.children})),H=lo;var ho=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(l0,{roles:t==null?void 0:t.roles,permissions:t==null?void 0:t.permissions,checkMode:t==null?void 0:t.checkMode,returnPermissionDeniedView:t==null?void 0:t.returnPermissionDeniedView,children:jsxRuntime.jsx(themes.Text,{asChild:t.asChild,className:t.className,style:t.style,as:t.as,size:t.size,weight:t.weight,align:t.align,trim:t.trim,truncate:t.truncate,wrap:t.wrap,color:t.color,highContrast:t.highContrast,onClick:t.onClick,children:t==null?void 0:t.children})}),v=ho;var po=$__default.default.forwardRef((i,l)=>{var e=i,{children:t,className:a,show:r=!0}=e,o=T0(e,["children","className","show"]);return r===!1?null:jsxRuntime.jsx($t__namespace.Content,d(h({},o),{className:zaionsReactToolKit.ZClassNames("z-ru-accordion-content",a),ref:l,children:jsxRuntime.jsx("div",{className:"z-ru-accordion-content-text",children:t})}))}),b1=po;var so=t=>jsxRuntime.jsx($t__namespace.Root,d(h({},t),{className:zaionsReactToolKit.ZClassNames("z-ru-accordion-root",t==null?void 0:t.className),children:t==null?void 0:t.children})),C1=so;var Mo=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx($t__namespace.Item,d(h({},t),{className:zaionsReactToolKit.ZClassNames("z-ru-accordion-item",t==null?void 0:t.className),children:t==null?void 0:t.children})),w1=Mo;var fo=({color:t="currentColor",className:a,onClick:r})=>jsxRuntime.jsxs("svg",{fill:t,className:a,onClick:r,height:"200px",width:"200px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",children:[jsxRuntime.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),jsxRuntime.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("g",{id:"SVGRepo_iconCarrier",children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M9,39h6v8c0,0.552,0.448,1,1,1s1-0.448,1-1v-8h3c0.552,0,1-0.448,1-1s-0.448-1-1-1h-3v-2c0-0.552-0.448-1-1-1s-1,0.448-1,1 v2h-5V27c0-0.552-0.448-1-1-1s-1,0.448-1,1v11C8,38.552,8.448,39,9,39z"}),jsxRuntime.jsx("path",{d:"M40,39h6v8c0,0.552,0.448,1,1,1s1-0.448,1-1v-8h3c0.552,0,1-0.448,1-1s-0.448-1-1-1h-3v-2c0-0.552-0.448-1-1-1 s-1,0.448-1,1v2h-5V27c0-0.552-0.448-1-1-1s-1,0.448-1,1v11C39,38.552,39.448,39,40,39z"}),jsxRuntime.jsx("path",{d:"M29.5,48c3.584,0,6.5-2.916,6.5-6.5v-9c0-3.584-2.916-6.5-6.5-6.5S23,28.916,23,32.5v9C23,45.084,25.916,48,29.5,48z M25,32.5c0-2.481,2.019-4.5,4.5-4.5s4.5,2.019,4.5,4.5v9c0,2.481-2.019,4.5-4.5,4.5S25,43.981,25,41.5V32.5z"}),jsxRuntime.jsx("path",{d:"M0,0v14v46h60V14V0H0z M2,2h56v10H2V2z M58,58H2V14h56V58z"}),jsxRuntime.jsx("polygon",{points:"54.293,3.293 52,5.586 49.707,3.293 48.293,4.707 50.586,7 48.293,9.293 49.707,10.707 52,8.414 54.293,10.707 55.707,9.293 53.414,7 55.707,4.707 "}),jsxRuntime.jsx("path",{d:"M3,11h39V3H3V11z M5,5h35v4H5V5z"})]})})]}),B1=fo;var Lo=({color:t="currentColor",className:a,onClick:r})=>jsxRuntime.jsx("svg",{onClick:r,className:zaionsReactToolKit.ZClassNames(a,{"w-5 h-5":!0}),xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:jsxRuntime.jsx("path",{d:"M6.125 10.0574L14 17.9324L21.875 10.0574",stroke:t,strokeWidth:"2.625",strokeLinecap:"round",strokeLinejoin:"round"})}),T1=Lo;var mo=({color:t="currentColor",className:a,onClick:r})=>jsxRuntime.jsxs("svg",{className:a,onClick:r,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{strokeWidth:"0"}),jsxRuntime.jsx("g",{strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("g",{children:jsxRuntime.jsx("g",{children:jsxRuntime.jsx("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),z1=mo;var Co=({color:t="currentColor",className:a,onClick:r})=>jsxRuntime.jsxs("svg",{className:a,onClick:r,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{strokeWidth:"0"}),jsxRuntime.jsx("g",{strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("path",{d:"M6.5 11C7.32843 11 8 11.6716 8 12.5C8 13.3284 7.32843 14 6.5 14C5.67157 14 5 13.3284 5 12.5C5 11.6716 5.67157 11 6.5 11Z",fill:t}),jsxRuntime.jsx("path",{d:"M12.5 11C13.3284 11 14 11.6716 14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11Z",fill:t}),jsxRuntime.jsx("path",{d:"M18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5C17 11.6716 17.6716 11 18.5 11Z",fill:t})]})]}),W1=Co;var j1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},y1=$__default.default.createContext&&$__default.default.createContext(j1);var wo=["attr","size","title"];function Bo(t,a){if(t==null)return {};var r=To(t,a),o,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(l=0;l<i.length;l++)o=i[l],!(a.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o]);}return r}function To(t,a){if(t==null)return {};var r={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(a.indexOf(o)>=0)continue;r[o]=t[o];}return r}function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},Kt.apply(this,arguments)}function A2(t,a){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);a&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),r.push.apply(r,o);}return r}function Qt(t){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?A2(Object(r),!0).forEach(function(o){zo(t,o,r[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A2(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o));});}return t}function zo(t,a,r){return a=Wo(a),a in t?Object.defineProperty(t,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[a]=r,t}function Wo(t){var a=jo(t,"string");return typeof a=="symbol"?a:a+""}function jo(t,a){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,a||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (a==="string"?String:Number)(t)}function R2(t){return t&&t.map((a,r)=>$__default.default.createElement(a.tag,Qt({key:r},a.attr),R2(a.child)))}function Yt(t){return a=>$__default.default.createElement(yo,Kt({attr:Qt({},t.attr)},a),R2(t.child))}function yo(t){var a=r=>{var{attr:o,size:l,title:i}=t,e=Bo(t,wo),n=l||r.size||"1em",g;return r.className&&(g=r.className),t.className&&(g=(g?g+" ":"")+t.className),$__default.default.createElement("svg",Kt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,e,{className:g,style:Qt(Qt({color:t.color||r.color},r.style),t.style),height:n,width:n,xmlns:"http://www.w3.org/2000/svg"}),i&&$__default.default.createElement("title",null,i),t.children)};return y1!==void 0?$__default.default.createElement(y1.Consumer,null,r=>a(r)):a(j1)}function K0(t){return Yt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.5 1c-4.142 0-7.5 3.358-7.5 7.5s3.358 7.5 7.5 7.5c4.142 0 7.5-3.358 7.5-7.5s-3.358-7.5-7.5-7.5zM7.5 14.5c-3.314 0-6-2.686-6-6s2.686-6 6-6c3.314 0 6 2.686 6 6s-2.686 6-6 6zM8 8v-2h2v-1h-2v-1h-1v1h-2v4h2v2h-2v1h2v1h1v-1h2l-0-4h-2zM7 8h-1v-2h1v2zM9 11h-1v-2h1v2z"},child:[]}]})(t)}function A1(t){return Yt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 7v4a1 1 0 0 0 1 1h3"},child:[]},{tag:"path",attr:{d:"M7 7v10"},child:[]},{tag:"path",attr:{d:"M10 8v8a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-8a1 1 0 0 0 -1 -1h-2a1 1 0 0 0 -1 1z"},child:[]},{tag:"path",attr:{d:"M17 7v4a1 1 0 0 0 1 1h3"},child:[]},{tag:"path",attr:{d:"M21 7v10"},child:[]}]})(t)}var So=$__default.default.forwardRef((e,i)=>{var n=e,{showIcon:t=!0,show:a=!0,children:r,className:o}=n,l=T0(n,["showIcon","show","children","className"]);return a===!1?null:jsxRuntime.jsx($t__namespace.Header,{className:"z-ru-accordion-header",children:jsxRuntime.jsxs($t__namespace.Trigger,d(h({className:zaionsReactToolKit.ZClassNames("z-ru-accordion-trigger flex items-center justify-between w-full",o)},l),{ref:i,children:[r,t?jsxRuntime.jsx(T1,{className:"z-ru-accordion-content-chevron","aria-hidden":!0}):null]}))})}),R1=So;var Io=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.AspectRatio,d(h({},t),{children:t.children})),k0=Io;var Uo=({className:t,src:a,style:r,asChild:o,color:l="gray",highContrast:i,radius:e="full",variant:n="solid",fallback:g,size:p,loading:s,show:k=!0})=>k===!1?null:jsxRuntime.jsx(themes.Avatar,{className:t,src:a,style:r,asChild:o,highContrast:i,fallback:s?jsxRuntime.jsx(q,{size:"3"}):g,size:p,variant:n,radius:e,color:l}),Q0=Uo;var Oo=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Badge,d(h({},t),{children:t==null?void 0:t.children})),Y0=Oo;var _o=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(l0,{roles:t==null?void 0:t.roles,permissions:t==null?void 0:t.permissions,checkMode:t==null?void 0:t.checkMode,returnPermissionDeniedView:t==null?void 0:t.returnPermissionDeniedView,children:jsxRuntime.jsx(themes.Button,{m:t.m,mx:t.mx,my:t.my,mt:t.mt,mr:t.mr,mb:t.mb,ml:t.ml,style:t.style,asChild:t.asChild,size:t.size,variant:t.variant,color:t.color,highContrast:t.highContrast,radius:t.radius,loading:t.loading,type:t.type,onClick:t.onClick,disabled:(t==null?void 0:t.disabled)||(t==null?void 0:t.loading),className:zaionsReactToolKit.ZClassNames(t==null?void 0:t.className,{"!cursor-pointer":!(t!=null&&t.disabled),"!cursor-not-allowed":t==null?void 0:t.disabled}),children:t==null?void 0:t.children})}),R=_o;var Vo=({asChild:t,size:a,variant:r,color:o,highContrast:l,icon:i,content:e,className:n,showIcon:g=!0,contentClassName:p,iconClassName:s,show:k=!0})=>k===!1?null:jsxRuntime.jsxs(themes.Callout.Root,{className:n,asChild:t,size:a,variant:r,color:o,highContrast:l,children:[g?jsxRuntime.jsx(themes.Callout.Icon,{className:s,children:i!=null?i:jsxRuntime.jsx(reactIcons.InfoCircledIcon,{})}):null,jsxRuntime.jsx(themes.Callout.Text,{className:p,children:e})]}),D1=Vo;var Qo=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Card,d(h({},t),{children:t==null?void 0:t.children})),K=Qo;var Jo=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Checkbox,h({},t)),I1=Jo;var rl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.CheckboxCards.Root,d(h({},t),{children:t==null?void 0:t.children})),Z1=rl;var il=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.CheckboxCards.Item,d(h({},t),{children:t==null?void 0:t.children})),P1=il;var dl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.CheckboxGroup.Root,d(h({},t),{children:t==null?void 0:t.children})),U1=dl;var pl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.CheckboxGroup.Item,d(h({},t),{children:t==null?void 0:t.children})),N1=pl;var sl=({dataList:t,orientation:a,size:r,trim:o,className:l,show:i=!0})=>i===!1?null:jsxRuntime.jsx(themes.DataList.Root,{orientation:a,size:r,trim:o,className:l,children:t==null?void 0:t.map((e,n)=>(e==null?void 0:e.show)===!1?null:jsxRuntime.jsxs(themes.DataList.Item,{align:e==null?void 0:e.align,className:e==null?void 0:e.className,children:[jsxRuntime.jsx(themes.DataList.Label,d(h({},e==null?void 0:e.labelProps),{children:e==null?void 0:e.label})),jsxRuntime.jsx(themes.DataList.Value,d(h({},e==null?void 0:e.valueProps),{children:e==null?void 0:e.value}))]},n))}),E1=sl;var Ml=({children:t,disabled:a,show:r=!0})=>r===!1?null:jsxRuntime.jsx(themes.Dialog.Close,{disabled:a,children:t}),H1=Ml;var fl=({children:t,asChild:a,size:r,width:o,maxWidth:l="28.125rem",minWidth:i,height:e,maxHeight:n,minHeight:g,open:p,className:s,defaultOpen:k,onOpenChange:m,show:c=!0,trigger:u={children:null}})=>c===!1?null:jsxRuntime.jsxs(themes.Dialog.Root,{open:p,onOpenChange:m,defaultOpen:k,children:[(u==null?void 0:u.children)!==null&&(u==null?void 0:u.children)!==void 0&&(u==null?void 0:u.children)!==!1?jsxRuntime.jsx(themes.Dialog.Trigger,{children:jsxRuntime.jsx("button",{className:"focus:outline-none",children:u==null?void 0:u.children})}):null,jsxRuntime.jsx(themes.Dialog.Content,{maxWidth:l,size:r,width:o,maxHeight:n,minHeight:g,minWidth:i,height:e,asChild:a,className:s,onInteractOutside:w=>{w.preventDefault();},children:t})]}),$0=fl;var Ll=({children:t,style:a,className:r,size:o,color:l,highContrast:i,show:e=!0,trigger:n={children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Options",jsxRuntime.jsx(themes.DropdownMenu.TriggerIcon,{})]})}})=>e===!1?null:jsxRuntime.jsxs(themes.DropdownMenu.Root,{children:[jsxRuntime.jsx(themes.DropdownMenu.Trigger,{children:jsxRuntime.jsx("button",{className:"focus:outline-none",children:n==null?void 0:n.children})}),jsxRuntime.jsx(themes.DropdownMenu.Content,{style:a,className:r,color:l,size:o,highContrast:i,children:t})]}),G1=Ll;var Cl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.DropdownMenu.Item,d(h({},t),{children:t==null?void 0:t.children})),V1=Cl;var Tl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.IconButton,d(h({type:"button"},t),{children:t==null?void 0:t.children})),J0=Tl;var jl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.TextField.Slot,d(h({},t),{children:t==null?void 0:t.children})),e0=jl;var Dl=({children:t,className:a,inputClassName:r,labelClassName:o,style:l,value:i,disabled:e,required:n,placeholder:g,size:p="3",color:s,radius:k,isTouched:m,errorMessage:c,infoText:u,label:w,name:L,type:b,show:M=!0,onChange:f,onBlur:C})=>{if(M===!1)return null;let[j,A]=$.useState(!1),x=$.useMemo(()=>b==="password"&&j?"text":b,[b,j]),y=$.useMemo(()=>Array.isArray(c)?(c==null?void 0:c.length)>0:typeof c=="string"?zaionsToolKit.isZNonEmptyString(c):!1,[c]);return jsxRuntime.jsxs(B,{className:a,children:[zaionsToolKit.isZNonEmptyString(w)?jsxRuntime.jsxs(v,{as:"label",className:zaionsReactToolKit.ZClassNames(o),children:[w,n?jsxRuntime.jsx(v,{as:"span",className:"ms-1",color:"tomato",children:"*"}):null]}):null,jsxRuntime.jsxs(themes.TextField.Root,{className:zaionsReactToolKit.ZClassNames(r,{"z-date-input":b==="date"}),style:l,value:i,disabled:e,placeholder:g,size:p,color:s,radius:k,onChange:f,onBlur:C,name:L,type:x,children:[t,b==="password"?jsxRuntime.jsx(e0,{side:"right",children:jsxRuntime.jsx(J0,{variant:"ghost",onClick:()=>{A(D=>!D);},children:j?jsxRuntime.jsx(reactIcons.EyeOpenIcon,{}):jsxRuntime.jsx(reactIcons.EyeClosedIcon,{})})}):null]}),m&&y?jsxRuntime.jsx(v,{as:"span",size:"1",color:"tomato",className:"font-medium",children:Array.isArray(c)?c[0]:c}):null,!m&&zaionsToolKit.isZNonEmptyString(u)?jsxRuntime.jsx(v,{as:"span",size:"1",color:"gold",className:"font-medium",children:u}):null]})},E=Dl;var Zl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Link,d(h({},t),{children:t==null?void 0:t.children})),Q1=Zl;var Ul=({children:t,asChild:a,className:r,size:o,width:l,maxWidth:i="28.125rem",minWidth:e,height:n,maxHeight:g,minHeight:p,open:s,defaultOpen:k,onOpenChange:m,show:c=!0,trigger:u={children:null}})=>c===!1?null:jsxRuntime.jsxs(themes.Popover.Root,{open:s,onOpenChange:m,defaultOpen:k,children:[(u==null?void 0:u.children)!==null&&(u==null?void 0:u.children)!==void 0&&(u==null?void 0:u.children)!==!1?jsxRuntime.jsx(themes.Popover.Trigger,{children:jsxRuntime.jsx("button",{className:"focus:outline-none",children:u==null?void 0:u.children})}):null,jsxRuntime.jsx(themes.Popover.Content,{maxWidth:i,className:r,size:o,width:l,maxHeight:g,minHeight:p,minWidth:e,height:n,asChild:a,children:t})]}),x0=Ul;var El=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Progress,h({},t)),J1=El;var _l=t=>{var a;return (t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.RadioCards.Root,d(h({},t),{value:(a=t==null?void 0:t.value)!=null?a:"",children:t==null?void 0:t.children}))},tt=_l;var Xl=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.RadioCards.Item,d(h({},t),{children:t==null?void 0:t.children})),at=Xl;var Yl=({className:t,style:a,asChild:r,size:o,variant:l,color:i,highContrast:e,columns:n,gap:g,defaultValue:p,value:s,items:k,isTouched:m,errorMessage:c,infoText:u,label:w,labelClassName:L,required:b,show:M=!0,onChange:f,onValueChange:C})=>{let j=$.useMemo(()=>Array.isArray(c)?(c==null?void 0:c.length)>0:typeof c=="string"?zaionsToolKit.isZNonEmptyString(c):!1,[c]);return jsxRuntime.jsxs(B,{show:M,children:[zaionsToolKit.isZNonEmptyString(w)?jsxRuntime.jsxs(v,{as:"label",className:zaionsReactToolKit.ZClassNames(L),children:[w,b?jsxRuntime.jsx(v,{as:"span",className:"ms-1",color:"tomato",children:"*"}):null]}):null,jsxRuntime.jsx(tt,{className:zaionsReactToolKit.ZClassNames("*:w-max justify-start flex *:h-8 flex-wrap",t),style:a,asChild:r,size:o,variant:l,color:i,highContrast:e,columns:n,gap:g,defaultValue:p,value:s,onChange:f,onValueChange:C,children:k==null?void 0:k.map((A,x)=>jsxRuntime.jsx(at,d(h({},A),{children:A==null?void 0:A.label}),x))}),m&&j?jsxRuntime.jsx(v,{as:"span",size:"1",color:"tomato",className:"font-medium",children:Array.isArray(c)?c[0]:c}):null,!m&&zaionsToolKit.isZNonEmptyString(u)?jsxRuntime.jsx(v,{as:"span",size:"1",color:"gold",className:"font-medium",children:u}):null]})},aa=Yl;var Jl=t=>jsxRuntime.jsx(themes.RadioGroup.Root,d(h({},t),{children:t==null?void 0:t.children})),ra=Jl;var ri=t=>jsxRuntime.jsx(themes.RadioGroup.Item,d(h({},t),{children:t==null?void 0:t.children})),oa=ri;var ii=t=>jsxRuntime.jsx(themes.ScrollArea,d(h({},t),{children:t==null?void 0:t.children})),la=ii;var di=t=>jsxRuntime.jsx(themes.SegmentedControl.Root,d(h({},t),{children:t==null?void 0:t.children})),ia=di;var pi=t=>jsxRuntime.jsx(themes.SegmentedControl.Item,d(h({},t),{children:t==null?void 0:t.children})),ea=pi;var ui=t=>{var r,o,l,i,e,n,g;let a=$.useMemo(()=>{var p;return Array.isArray(t==null?void 0:t.errorMessage)?((p=t==null?void 0:t.errorMessage)==null?void 0:p.length)>0:typeof(t==null?void 0:t.errorMessage)=="string"?zaionsToolKit.isZNonEmptyString(t==null?void 0:t.errorMessage):!1},[t==null?void 0:t.errorMessage]);return jsxRuntime.jsxs(B,{show:t==null?void 0:t.show,className:zaionsReactToolKit.ZClassNames(t==null?void 0:t.className,{"flex items-center gap-1":(t==null?void 0:t.labelOrientation)==="horizontal"}),children:[jsxRuntime.jsxs(z,{align:"center",justify:"between",children:[zaionsToolKit.isZNonEmptyString(t==null?void 0:t.label)?jsxRuntime.jsxs(v,{as:"label",size:"1",className:zaionsReactToolKit.ZClassNames("text-base block",t==null?void 0:t.labelClassName),children:[t==null?void 0:t.label,t!=null&&t.required?jsxRuntime.jsx(v,{as:"span",className:"ms-1",color:"tomato",children:"*"}):null]}):null,t!=null&&t.showLabelBtn?jsxRuntime.jsx(R,d(h({},t==null?void 0:t.labelBtnProps),{size:(o=(r=t==null?void 0:t.labelBtnProps)==null?void 0:r.size)!=null?o:"1",className:zaionsReactToolKit.ZClassNames("mb-1 me-2",(l=t==null?void 0:t.labelBtnProps)==null?void 0:l.className),children:(i=t==null?void 0:t.labelBtnProps)==null?void 0:i.children})):null]}),jsxRuntime.jsxs(themes.Select.Root,{size:(e=t.size)!=null?e:"3",name:t.name,open:t.open,value:t.value,disabled:t.disabled,defaultOpen:t.defaultOpen,defaultValue:t.defaultValue,autoComplete:t.autoComplete,onOpenChange:t.onOpenChange,onValueChange:t.onValueChange,children:[jsxRuntime.jsx(themes.Select.Trigger,d(h({},t==null?void 0:t.trigger),{className:t.triggerClassName})),jsxRuntime.jsx(themes.Select.Content,d(h({},t==null?void 0:t.content),{position:(n=t==null?void 0:t.position)!=null?n:"popper",children:(g=t==null?void 0:t.options)==null?void 0:g.map((p,s)=>jsxRuntime.jsx(themes.Select.Item,{value:String(p==null?void 0:p.value),children:p==null?void 0:p.label},s))}))]}),t!=null&&t.isTouched&&a?jsxRuntime.jsx(v,{as:"span",size:"1",color:"tomato",className:"font-medium",children:Array.isArray(t==null?void 0:t.errorMessage)?t==null?void 0:t.errorMessage[0]:t==null?void 0:t.errorMessage}):null,!(t!=null&&t.isTouched)&&zaionsToolKit.isZNonEmptyString(t==null?void 0:t.infoText)?jsxRuntime.jsx(v,{as:"span",size:"1",color:"gold",className:"font-medium",children:t==null?void 0:t.infoText}):null]})},m0=ui;var Mi=t=>jsxRuntime.jsx(themes.Separator,h({},t)),na=Mi;var xi=({children:t,className:a,loading:r,width:o,minWidth:l,maxWidth:i,height:e,minHeight:n,maxHeight:g})=>jsxRuntime.jsx(themes.Skeleton,{className:a,loading:r,width:o,minWidth:l,maxWidth:i,height:e,minHeight:n,maxHeight:g,children:t}),ot=xi;var wi=({size:t,variant:a,color:r,highContrast:o,radius:l,className:i,style:e,value:n,defaultValue:g,name:p,label:s,required:k,labelClassName:m,onValueChange:c,onBlur:u})=>jsxRuntime.jsxs(B,{children:[zaionsToolKit.isZNonEmptyString(s)?jsxRuntime.jsxs(v,{as:"label",className:zaionsReactToolKit.ZClassNames(m),children:[s,k?jsxRuntime.jsx(v,{as:"span",className:"ms-1",color:"tomato",children:"*"}):null]}):null,jsxRuntime.jsx(themes.Slider,{size:t,variant:a,color:r,highContrast:o,radius:l,className:i,style:e,value:n,defaultValue:g,name:p,onValueChange:c,onBlur:u})]}),ca=wi;var Ti=t=>jsxRuntime.jsx(themes.Spinner,h({},t)),q=Ti;var ji=t=>jsxRuntime.jsx(themes.Switch,h({},t)),pa=ji;var Ri=({size:t,variant:a,layout:r,lang:o,className:l,style:i,children:e,show:n=!0})=>n===!1?null:jsxRuntime.jsx(themes.Table.Root,{size:t,variant:a,layout:r,lang:o,className:l,style:i,children:e}),ga=Ri;var Di=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Table.Body,d(h({},t),{children:t==null?void 0:t.children})),sa=Di;var Pi=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Table.Cell,d(h({},t),{children:t==null?void 0:t.children})),ua=Pi;var Oi=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Table.ColumnHeaderCell,d(h({},t),{children:t==null?void 0:t.children})),va=Oi;var qi=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Table.Header,d(h({},t),{children:t==null?void 0:t.children})),Ma=qi;var Vi=({className:t,style:a,align:r,children:o,show:l=!0})=>l===!1?null:jsxRuntime.jsx(themes.Table.Row,{className:t,style:a,align:r,children:o}),ka=Vi;var Qi=t=>(t==null?void 0:t.show)===!1?null:jsxRuntime.jsx(themes.Table.RowHeaderCell,d(h({},t),{children:t==null?void 0:t.children})),fa=Qi;var te=({className:t,textAriaClassName:a,labelClassName:r,textAriaStyle:o,style:l,value:i,size:e,variant:n,color:g,name:p,radius:s,required:k,label:m,placeholder:c,rows:u,isTouched:w,errorMessage:L,infoText:b,onChange:M,onBlur:f})=>{let C=$.useMemo(()=>Array.isArray(L)?(L==null?void 0:L.length)>0:typeof L=="string"?zaionsToolKit.isZNonEmptyString(L):!1,[L]);return jsxRuntime.jsxs(B,{className:t,style:l,children:[zaionsToolKit.isZNonEmptyString(m)?jsxRuntime.jsxs(v,{as:"label",className:r,children:[m,k?jsxRuntime.jsx(v,{as:"span",className:"ms-1",color:"tomato",children:"*"}):null]}):null,jsxRuntime.jsx(themes.TextArea,{placeholder:c,className:a,style:o,value:i,size:e,variant:n,color:g,name:p,radius:s,onChange:M,onBlur:f,rows:u}),w&&C?jsxRuntime.jsx(v,{as:"span",size:"1",color:"tomato",className:"font-medium",children:Array.isArray(L)?L[0]:L}):null,!w&&zaionsToolKit.isZNonEmptyString(b)?jsxRuntime.jsx(v,{as:"span",size:"1",color:"gold",className:"font-medium",children:b}):null]})},La=te;var oe=({className:t,avatarClassName:a,variant:r="soft",color:o="violet",src:l,fallback:i,textClassName:e,text:n,arrowDownClassName:g,show:p,onClick:s,logoutBtnClickHandler:k})=>p===!1?null:jsxRuntime.jsx(x0,{trigger:{children:jsxRuntime.jsxs(z,{gap:"2",className:zaionsReactToolKit.ZClassNames(t,"gap-3 cursor-pointer"),align:"center",onClick:s,children:[jsxRuntime.jsx(Q0,{className:zaionsReactToolKit.ZClassNames(a),variant:r,color:o,src:l,fallback:i}),zaionsToolKit.isZNonEmptyString(n)?jsxRuntime.jsxs(z,{align:"center",className:"gap-2 hover:text-gray8",children:[jsxRuntime.jsx(v,{className:zaionsReactToolKit.ZClassNames(e),children:n}),jsxRuntime.jsx(themes.ChevronDownIcon,{className:zaionsReactToolKit.ZClassNames(g,"w-3 h-3")})]}):null]})},children:jsxRuntime.jsx(B,{className:"space-y-2",children:jsxRuntime.jsx(R,{onClick:k,className:"w-full",color:"purple",children:"Logout"})})}),ma=oe;var le=({message:t="Something went wrong",showGoToHomeButton:a=!0,btnText:r="Go Back Home",onClick:o,show:l})=>l===!1?null:jsxRuntime.jsxs(z,{minHeight:"68vh",justify:"center",align:"center",direction:"column",children:[jsxRuntime.jsx(H,{align:"center",children:t}),a?jsxRuntime.jsx(R,{onClick:o,mt:"4",children:r}):null]}),lt=le;var de=()=>{let t=themes.useThemeContext(),a=$.useMemo(()=>t.appearance==="dark",[t.appearance]);return jsxRuntime.jsxs(B,{className:"absolute top-0 left-0 z-50 flex justify-center w-full h-full pt-16",children:[jsxRuntime.jsx(B,{className:zaionsReactToolKit.ZClassNames("absolute top-0 left-0 w-full h-full",{"bg-indigo5/20":a,"bg-gray12/30":!a})}),jsxRuntime.jsx(q,{className:zaionsReactToolKit.ZClassNames("w-8 h-8",{"text-indigo12":!a})})]})},it=de;var ce=({children:t,show:a})=>jsxRuntime.jsxs(z,{align:"center",gap:"1",show:a,children:[jsxRuntime.jsx(v,{color:"amber",children:jsxRuntime.jsx(K0,{className:"w-5 h-5"})}),t]}),ba=ce;var ge=t=>{var a;return jsxRuntime.jsx(E,d(h({},t),{label:(a=t==null?void 0:t.label)!=null?a:"Amount",type:"number",children:jsxRuntime.jsx(e0,{color:"amber",children:jsxRuntime.jsx(K0,{className:"w-5 h-5"})})}))},wa=ge;var ve=({showAppLoader:t=!1})=>{let a=themes.useThemeContext(),r=$.useMemo(()=>a.appearance==="dark",[a.appearance]);return t?jsxRuntime.jsxs(B,{className:"absolute top-0 left-0 z-50 flex justify-center w-full h-full pt-16",children:[jsxRuntime.jsx(B,{className:zaionsReactToolKit.ZClassNames("absolute top-0 left-0 w-full h-full",{"bg-indigo5/20":r,"bg-gray12/30":!r})}),jsxRuntime.jsx(q,{className:zaionsReactToolKit.ZClassNames("w-8 h-8",{"text-indigo12":!r})})]}):null},Ba=ve;var et=t=>{let a=Y2__default.default(),o=Y2__default.default(t).diff(a,"millisecond");return o>=0?o:-1};function $2(t){var a,r,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(a=0;a<l;a++)t[a]&&(r=$2(t[a]))&&(o&&(o+=" "),o+=r);}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function ke(){for(var t,a,r=0,o="",l=arguments.length;r<l;r++)(t=arguments[r])&&(a=$2(t))&&(o&&(o+=" "),o+=a);return o}var Y=ke;function fe(t){if(typeof document=="undefined")return;let a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t));}fe(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__