dst-rg 1.0.0 → 1.0.2
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/dist/assets/{index-CCq7hmG3.js → index-3jvN1gZ8.js} +14 -14
- package/dist/index.d.ts +505 -0
- package/dist/index.html +1 -1
- package/dist/index.js +27 -0
- package/dist/index.mjs +27 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/src/components/PriceSlider/_.stories.tsx +11 -0
- package/src/components/PriceSlider/_.type.tsx +1 -0
- package/src/components/PriceSlider/index.tsx +21 -11
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("react-dom");function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var o=n(t),s=n(r);function a(t,r=[]){let n=[];const s=()=>{const e=n.map(e=>o.createContext(e));return function(r){const n=r?.[t]||e;return o.useMemo(()=>({[`__scope${t}`]:{...r,[t]:n}}),[r,n])}};return s.scopeName=t,[function(r,s){const a=o.createContext(s),i=n.length;n=[...n,s];const l=r=>{const{scope:n,children:s,...l}=r,d=n?.[t]?.[i]||a,c=o.useMemo(()=>l,Object.values(l));return e.jsx(d.Provider,{value:c,children:s})};return l.displayName=r+"Provider",[l,function(e,n){const l=n?.[t]?.[i]||a,d=o.useContext(l);if(d)return d;if(void 0!==s)return s;throw new Error(`\`${e}\` must be used within \`${r}\``)}]},i(s,...r)]}function i(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let r=!1;const n=e.map(e=>{const n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():l(e[t],null)}}}}function c(...e){return o.useCallback(d(...e),e)}function u(t){const r=f(t),n=o.forwardRef((t,n)=>{const{children:s,...a}=t,i=o.Children.toArray(s),l=i.find(h);if(l){const t=l.props.children,s=i.map(e=>e===l?o.Children.count(t)>1?o.Children.only(null):o.isValidElement(t)?t.props.children:null:e);return e.jsx(r,{...a,ref:n,children:o.isValidElement(t)?o.cloneElement(t,void 0,s):null})}return e.jsx(r,{...a,ref:n,children:s})});return n.displayName=`${t}.Slot`,n}var m=u("Slot");function f(e){const t=o.forwardRef((e,t)=>{const{children:r,...n}=e;if(o.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),s=function(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...e)=>{const t=s(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...s}:"className"===n&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?d(t,e):e),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p=Symbol("radix.slottable");function h(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}function x(r){const n=r+"CollectionProvider",[o,s]=a(n),[i,l]=o(n,{collectionRef:{current:null},itemMap:new Map}),d=r=>{const{scope:n,children:o}=r,s=t.useRef(null),a=t.useRef(new Map).current;return e.jsx(i,{scope:n,itemMap:a,collectionRef:s,children:o})};d.displayName=n;const m=r+"CollectionSlot",f=u(m),p=t.forwardRef((t,r)=>{const{scope:n,children:o}=t,s=c(r,l(m,n).collectionRef);return e.jsx(f,{ref:s,children:o})});p.displayName=m;const h=r+"CollectionItemSlot",x="data-radix-collection-item",g=u(h),b=t.forwardRef((r,n)=>{const{scope:o,children:s,...a}=r,i=t.useRef(null),d=c(n,i),u=l(h,o);return t.useEffect(()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)})),e.jsx(g,{[x]:"",ref:d,children:s})});return b.displayName=h,[{Provider:d,Slot:p,ItemSlot:b},function(e){const n=l(r+"CollectionConsumer",e);return t.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}function g(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var b=globalThis?.document?o.useLayoutEffect:()=>{},y=o[" useInsertionEffect ".trim().toString()]||b;function v({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[s,a,i]=function({defaultProp:e,onChange:t}){const[r,n]=o.useState(e),s=o.useRef(r),a=o.useRef(t);return y(()=>{a.current=t},[t]),o.useEffect(()=>{s.current!==r&&(a.current?.(r),s.current=r)},[r,s]),[r,n,a]}({defaultProp:t,onChange:r}),l=void 0!==e,d=l?e:s;{const t=o.useRef(void 0!==e);o.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${t} to ${r}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}const c=o.useCallback(t=>{if(l){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&i.current?.(r)}else a(t)},[l,e,a,i]);return[d,c]}var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{const n=u(`Primitive.${r}`),s=o.forwardRef((t,o)=>{const{asChild:s,...a}=t,i=s?n:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e.jsx(i,{...a,ref:o})});return s.displayName=`Primitive.${r}`,{...t,[r]:s}},{});var j=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=o.useState(),n=o.useRef(null),s=o.useRef(e),a=o.useRef("none"),i=e?"mounted":"unmounted",[l,d]=function(e,t){return o.useReducer((e,r)=>t[e][r]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o.useEffect(()=>{const e=k(n.current);a.current="mounted"===l?e:"none"},[l]),b(()=>{const t=n.current,r=s.current;if(r!==e){const n=a.current,o=k(t);if(e)d("MOUNT");else if("none"===o||"none"===t?.display)d("UNMOUNT");else{d(r&&n!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,d]),b(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,o=o=>{const a=k(n.current).includes(CSS.escape(o.animationName));if(o.target===t&&a&&(d("ANIMATION_END"),!s.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},i=e=>{e.target===t&&(a.current=k(n.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:o.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),s="function"==typeof r?r({present:n.isPresent}):o.Children.only(r),a=c(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(s));return"function"==typeof r||n.isPresent?o.cloneElement(s,{ref:a}):null};function k(e){return e?.animationName||"none"}j.displayName="Presence";var N=o[" useId ".trim().toString()]||(()=>{}),C=0;function z(e){const[t,r]=o.useState(N());return b(()=>{r(e=>e??String(C++))},[e]),e||(t?`radix-${t}`:"")}var P="Collapsible",[S,E]=a(P),[R,T]=S(P),L=o.forwardRef((t,r)=>{const{__scopeCollapsible:n,open:s,defaultOpen:a,disabled:i,onOpenChange:l,...d}=t,[c,u]=v({prop:s,defaultProp:a??!1,onChange:l,caller:P});return e.jsx(R,{scope:n,disabled:i,contentId:z(),open:c,onOpenToggle:o.useCallback(()=>u(e=>!e),[u]),children:e.jsx(w.div,{"data-state":O(c),"data-disabled":i?"":void 0,...d,ref:r})})});L.displayName=P;var M="CollapsibleTrigger",D=o.forwardRef((t,r)=>{const{__scopeCollapsible:n,...o}=t,s=T(M,n);return e.jsx(w.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":O(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...o,ref:r,onClick:g(t.onClick,s.onOpenToggle)})});D.displayName=M;var I="CollapsibleContent",A=o.forwardRef((t,r)=>{const{forceMount:n,...o}=t,s=T(I,t.__scopeCollapsible);return e.jsx(j,{present:n||s.open,children:({present:t})=>e.jsx(_,{...o,ref:r,present:t})})});A.displayName=I;var _=o.forwardRef((t,r)=>{const{__scopeCollapsible:n,present:s,children:a,...i}=t,l=T(I,n),[d,u]=o.useState(s),m=o.useRef(null),f=c(r,m),p=o.useRef(0),h=p.current,x=o.useRef(0),g=x.current,y=l.open||d,v=o.useRef(y),j=o.useRef(void 0);return o.useEffect(()=>{const e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),b(()=>{const e=m.current;if(e){j.current=j.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,x.current=t.width,v.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),u(s)}},[l.open,s]),e.jsx(w.div,{"data-state":O(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!y,...i,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:y&&a})});function O(e){return e?"open":"closed"}var $=L,F=D,V=A,B=o.createContext(void 0);function W(e){const t=o.useContext(B);return e||t||"ltr"}var H="Accordion",G=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[q,K,U]=x(H),[X]=a(H,[U,E]),Y=E(),Z=t.forwardRef((t,r)=>{const{type:n,...o}=t,s=o,a=o;return e.jsx(q.Provider,{scope:t.__scopeAccordion,children:"multiple"===n?e.jsx(ne,{...a,ref:r}):e.jsx(re,{...s,ref:r})})});Z.displayName=H;var[J,Q]=X(H),[ee,te]=X(H,{collapsible:!1}),re=t.forwardRef((r,n)=>{const{value:o,defaultValue:s,onValueChange:a=()=>{},collapsible:i=!1,...l}=r,[d,c]=v({prop:o,defaultProp:s??"",onChange:a,caller:H});return e.jsx(J,{scope:r.__scopeAccordion,value:t.useMemo(()=>d?[d]:[],[d]),onItemOpen:c,onItemClose:t.useCallback(()=>i&&c(""),[i,c]),children:e.jsx(ee,{scope:r.__scopeAccordion,collapsible:i,children:e.jsx(ae,{...l,ref:n})})})}),ne=t.forwardRef((r,n)=>{const{value:o,defaultValue:s,onValueChange:a=()=>{},...i}=r,[l,d]=v({prop:o,defaultProp:s??[],onChange:a,caller:H}),c=t.useCallback(e=>d((t=[])=>[...t,e]),[d]),u=t.useCallback(e=>d((t=[])=>t.filter(t=>t!==e)),[d]);return e.jsx(J,{scope:r.__scopeAccordion,value:l,onItemOpen:c,onItemClose:u,children:e.jsx(ee,{scope:r.__scopeAccordion,collapsible:!0,children:e.jsx(ae,{...i,ref:n})})})}),[oe,se]=X(H),ae=t.forwardRef((r,n)=>{const{__scopeAccordion:o,disabled:s,dir:a,orientation:i="vertical",...l}=r,d=c(t.useRef(null),n),u=K(o),m="ltr"===W(a),f=g(r.onKeyDown,e=>{if(!G.includes(e.key))return;const t=e.target,r=u().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===n)return;e.preventDefault();let s=n;const a=o-1,l=()=>{s=n+1,s>a&&(s=0)},d=()=>{s=n-1,s<0&&(s=a)};switch(e.key){case"Home":s=0;break;case"End":s=a;break;case"ArrowRight":"horizontal"===i&&(m?l():d());break;case"ArrowDown":"vertical"===i&&l();break;case"ArrowLeft":"horizontal"===i&&(m?d():l());break;case"ArrowUp":"vertical"===i&&d()}const c=s%o;r[c].ref.current?.focus()});return e.jsx(oe,{scope:o,disabled:s,direction:a,orientation:i,children:e.jsx(q.Slot,{scope:o,children:e.jsx(w.div,{...l,"data-orientation":i,ref:d,onKeyDown:s?void 0:f})})})}),ie="AccordionItem",[le,de]=X(ie),ce=t.forwardRef((t,r)=>{const{__scopeAccordion:n,value:o,...s}=t,a=se(ie,n),i=Q(ie,n),l=Y(n),d=z(),c=o&&i.value.includes(o)||!1,u=a.disabled||t.disabled;return e.jsx(le,{scope:n,open:c,disabled:u,triggerId:d,children:e.jsx($,{"data-orientation":a.orientation,"data-state":ge(c),...l,...s,ref:r,disabled:u,open:c,onOpenChange:e=>{e?i.onItemOpen(o):i.onItemClose(o)}})})});ce.displayName=ie;var ue="AccordionHeader",me=t.forwardRef((t,r)=>{const{__scopeAccordion:n,...o}=t,s=se(H,n),a=de(ue,n);return e.jsx(w.h3,{"data-orientation":s.orientation,"data-state":ge(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:r})});me.displayName=ue;var fe="AccordionTrigger",pe=t.forwardRef((t,r)=>{const{__scopeAccordion:n,...o}=t,s=se(H,n),a=de(fe,n),i=te(fe,n),l=Y(n);return e.jsx(q.ItemSlot,{scope:n,children:e.jsx(F,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":s.orientation,id:a.triggerId,...l,...o,ref:r})})});pe.displayName=fe;var he="AccordionContent",xe=t.forwardRef((t,r)=>{const{__scopeAccordion:n,...o}=t,s=se(H,n),a=de(he,n),i=Y(n);return e.jsx(V,{role:"region","aria-labelledby":a.triggerId,"data-orientation":s.orientation,...i,...o,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function ge(e){return e?"open":"closed"}xe.displayName=he;var be=Z,ye=ce,ve=me,we=pe,je=xe;
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.487.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const ke=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ne=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v0.487.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var Ce={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v0.487.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const ze=t.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:s="",children:a,iconNode:i,...l},d)=>t.createElement("svg",{ref:d,...Ce,width:r,height:r,stroke:e,strokeWidth:o?24*Number(n)/Number(r):n,className:Ne("lucide",s),...l},[...i.map(([e,r])=>t.createElement(e,r)),...Array.isArray(a)?a:[a]])),Pe=(e,r)=>{const n=t.forwardRef(({className:n,...o},s)=>{return t.createElement(ze,{ref:s,iconNode:r,className:Ne(`lucide-${a=ke(e),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...o});var a});return n.displayName=ke(e),n},Se=Pe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ee=Pe("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Re=Pe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Te=Pe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Le=Pe("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),Me=Pe("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),De=Pe("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Ie=Pe("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),Ae=Pe("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),_e=Pe("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Oe=Pe("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),$e=Pe("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Fe=Pe("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Ve=Pe("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Be=Pe("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),We=Pe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
22
|
+
/**
|
|
23
|
+
* @license lucide-react v0.487.0 - ISC
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the ISC license.
|
|
26
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/function He(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=He(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ge(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=He(e))&&(n&&(n+=" "),n+=t);return n}const qe=e=>{const t=Ye(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),Ke(r,t)||Xe(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},Ke=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ke(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},Ue=/^\[(.+)\]$/,Xe=e=>{if(Ue.test(e)){const t=Ue.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ye=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)Ze(r[e],n,e,t);return n},Ze=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Je(t,e)).classGroupId=r)}if("function"==typeof e)return Qe(e)?void Ze(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{Ze(o,Je(t,e),r,n)})})},Je=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},Qe=e=>e.isThemeGetter,et=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},tt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,s=0;for(let a=0;a<e.length;a++){let i=e[a];if(0===n&&0===o){if(":"===i){t.push(e.slice(s,a)),s=a+1;continue}if("/"===i){r=a;continue}}"["===i?n++:"]"===i?n--:"("===i?o++:")"===i&&o--}const a=0===t.length?e:e.substring(s),i=rt(a);return{modifiers:t,hasImportantModifier:i!==a,baseClassName:i,maybePostfixModifierPosition:r&&r>s?r-s:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},rt=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,nt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}},ot=/\s+/;function st(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=at(e))&&(n&&(n+=" "),n+=t);return n}const at=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=at(e[n]))&&(r&&(r+=" "),r+=t);return r};function it(e,...t){let r,n,o,s=function(i){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:et(e.cacheSize),parseClassName:tt(e),sortModifiers:nt(e),...qe(e)}))(l),n=r.cache.get,o=r.cache.set,s=a,a(i)};function a(e){const t=n(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ot);let l="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{isExternal:d,modifiers:c,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:f}=r(t);if(d){l=t+(l.length>0?" "+l:l);continue}let p=!!f,h=n(p?m.substring(0,f):m);if(!h){if(!p){l=t+(l.length>0?" "+l:l);continue}if(h=n(m),!h){l=t+(l.length>0?" "+l:l);continue}p=!1}const x=s(c).join(":"),g=u?x+"!":x,b=g+h;if(a.includes(b))continue;a.push(b);const y=o(h,p);for(let e=0;e<y.length;++e){const t=y[e];a.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return o(e,s),s}return function(){return s(st.apply(null,arguments))}}const lt=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},dt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ct=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ut=/^\d+\/\d+$/,mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gt=e=>ut.test(e),bt=e=>!!e&&!Number.isNaN(Number(e)),yt=e=>!!e&&Number.isInteger(Number(e)),vt=e=>e.endsWith("%")&&bt(e.slice(0,-1)),wt=e=>mt.test(e),jt=()=>!0,kt=e=>ft.test(e)&&!pt.test(e),Nt=()=>!1,Ct=e=>ht.test(e),zt=e=>xt.test(e),Pt=e=>!Et(e)&&!It(e),St=e=>Bt(e,qt,Nt),Et=e=>dt.test(e),Rt=e=>Bt(e,Kt,kt),Tt=e=>Bt(e,Ut,bt),Lt=e=>Bt(e,Ht,Nt),Mt=e=>Bt(e,Gt,zt),Dt=e=>Bt(e,Yt,Ct),It=e=>ct.test(e),At=e=>Wt(e,Kt),_t=e=>Wt(e,Xt),Ot=e=>Wt(e,Ht),$t=e=>Wt(e,qt),Ft=e=>Wt(e,Gt),Vt=e=>Wt(e,Yt,!0),Bt=(e,t,r)=>{const n=dt.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Wt=(e,t,r=!1)=>{const n=ct.exec(e);return!!n&&(n[1]?t(n[1]):r)},Ht=e=>"position"===e||"percentage"===e,Gt=e=>"image"===e||"url"===e,qt=e=>"length"===e||"size"===e||"bg-size"===e,Kt=e=>"length"===e,Ut=e=>"number"===e,Xt=e=>"family-name"===e,Yt=e=>"shadow"===e,Zt=it(()=>{const e=lt("color"),t=lt("font"),r=lt("text"),n=lt("font-weight"),o=lt("tracking"),s=lt("leading"),a=lt("breakpoint"),i=lt("container"),l=lt("spacing"),d=lt("radius"),c=lt("shadow"),u=lt("inset-shadow"),m=lt("text-shadow"),f=lt("drop-shadow"),p=lt("blur"),h=lt("perspective"),x=lt("aspect"),g=lt("ease"),b=lt("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",It,Et],v=()=>[It,Et,l],w=()=>[gt,"full","auto",...v()],j=()=>[yt,"none","subgrid",It,Et],k=()=>["auto",{span:["full",yt,It,Et]},yt,It,Et],N=()=>[yt,"auto",It,Et],C=()=>["auto","min","max","fr",It,Et],z=()=>["auto",...v()],P=()=>[gt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],S=()=>[e,It,Et],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Ot,Lt,{position:[It,Et]}],R=()=>["auto","cover","contain",$t,St,{size:[It,Et]}],T=()=>[vt,At,Rt],L=()=>["","none","full",d,It,Et],M=()=>["",bt,At,Rt],D=()=>[bt,vt,Ot,Lt],I=()=>["","none",p,It,Et],A=()=>["none",bt,It,Et],_=()=>["none",bt,It,Et],O=()=>[bt,It,Et],$=()=>[gt,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wt],breakpoint:[wt],color:[jt],container:[wt],"drop-shadow":[wt],ease:["in","out","in-out"],font:[Pt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wt],shadow:[wt],spacing:["px",bt],text:[wt],"text-shadow":[wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gt,Et,It,x]}],container:["container"],columns:[{columns:[bt,Et,It,i]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[yt,"auto",It,Et]}],basis:[{basis:[gt,"full","auto",i,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[bt,gt,"auto","initial","none",Et]}],grow:[{grow:["",bt,It,Et]}],shrink:[{shrink:["",bt,It,Et]}],order:[{order:[yt,"first","last","none",It,Et]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[i,"screen",...P()]}],"min-w":[{"min-w":[i,"screen","none",...P()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,At,Rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,It,Tt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vt,Et]}],"font-family":[{font:[_t,Et,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,It,Et]}],"line-clamp":[{"line-clamp":[bt,"none",It,Tt]}],leading:[{leading:[s,...v()]}],"list-image":[{"list-image":["none",It,Et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",It,Et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[bt,"from-font","auto",It,Rt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[bt,"auto",It,Et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",It,Et]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",It,Et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yt,It,Et],radial:["",It,Et],conic:[yt,It,Et]},Ft,Mt]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[bt,It,Et]}],"outline-w":[{outline:["",bt,At,Rt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",c,Vt,Dt]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",u,Vt,Dt]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[bt,Rt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Vt,Dt]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[bt,It,Et]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[bt]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[It,Et]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[bt]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",It,Et]}],filter:[{filter:["","none",It,Et]}],blur:[{blur:I()}],brightness:[{brightness:[bt,It,Et]}],contrast:[{contrast:[bt,It,Et]}],"drop-shadow":[{"drop-shadow":["","none",f,Vt,Dt]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",bt,It,Et]}],"hue-rotate":[{"hue-rotate":[bt,It,Et]}],invert:[{invert:["",bt,It,Et]}],saturate:[{saturate:[bt,It,Et]}],sepia:[{sepia:["",bt,It,Et]}],"backdrop-filter":[{"backdrop-filter":["","none",It,Et]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[bt,It,Et]}],"backdrop-contrast":[{"backdrop-contrast":[bt,It,Et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",bt,It,Et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[bt,It,Et]}],"backdrop-invert":[{"backdrop-invert":["",bt,It,Et]}],"backdrop-opacity":[{"backdrop-opacity":[bt,It,Et]}],"backdrop-saturate":[{"backdrop-saturate":[bt,It,Et]}],"backdrop-sepia":[{"backdrop-sepia":["",bt,It,Et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",It,Et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[bt,"initial",It,Et]}],ease:[{ease:["linear","initial",g,It,Et]}],delay:[{delay:[bt,It,Et]}],animate:[{animate:["none",b,It,Et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,It,Et]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:A()}],"rotate-x":[{"rotate-x":A()}],"rotate-y":[{"rotate-y":A()}],"rotate-z":[{"rotate-z":A()}],scale:[{scale:_()}],"scale-x":[{"scale-x":_()}],"scale-y":[{"scale-y":_()}],"scale-z":[{"scale-z":_()}],"scale-3d":["scale-3d"],skew:[{skew:O()}],"skew-x":[{"skew-x":O()}],"skew-y":[{"skew-y":O()}],transform:[{transform:[It,Et,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",It,Et]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",It,Et]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[bt,At,Rt,Tt]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Jt(...e){return Zt(Ge(e))}function Qt({type:r="single",collapsible:n=!1,className:o,children:s,...a}){const[i,l]=t.useState("multiple"===r?[]:"");return"multiple"===r?e.jsx(be,{type:"multiple",className:o,value:i,onValueChange:e=>l(e),"data-slot":"accordion",...a,children:t.Children.map(s,e=>t.isValidElement(e)?t.cloneElement(e,{openValue:i}):e)}):e.jsx(be,{type:"single",collapsible:n,className:o,value:i,onValueChange:e=>l(e),"data-slot":"accordion",...a,children:t.Children.map(s,e=>t.isValidElement(e)?t.cloneElement(e,{...e.props??{},openValue:i}):e)})}function er({className:r,openValue:n,value:o,children:s,...a}){return e.jsx(ye,{"data-slot":"accordion-item",className:Jt("border-b last:border-b-0",r),value:o,...a,children:t.Children.map(s,e=>t.isValidElement(e)?t.cloneElement(e,{itemValue:o,openValue:n}):e)})}function tr({className:t,children:r,iconOpen:n=Te,iconClosed:o=Se,itemValue:s,openValue:a,...i}){const l=Array.isArray(a)&&s?a.includes(s):a===s;return e.jsx(ve,{className:"flex w-full",children:e.jsxs(we,{"data-slot":"accordion-trigger",className:Jt("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",t,l?"rounded-t-md":"rounded-md"),...i,children:[r,l?e.jsx(n,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}):e.jsx(o,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function rr({className:t,children:r,...n}){return e.jsx(je,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:e.jsx("div",{className:Jt("pt-0 pb-4",t),children:r})})}const nr={xs:"w-6 h-6",sm:"w-8 h-8 ",md:"w-10 h-10 ",lg:"w-12 h-12 ",xl:"w-14 h-14 ","2xl":"w-16 h-16 "},or={xs:"w-1.5 h-1.5",sm:"w-2 h-2 ",md:"w-2.5 h-2.5 ",lg:"w-3 h-3 ",xl:"w-3.5 h-3.5 ","2xl":"w-4 h-4 "},sr={xs:"w-2.5 h-2.5",sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4",xl:"w-4.5 h-4.5 ","2xl":"w-5 h-5 "},ar={xs:"gap-2",sm:"gap-2.5",md:"gap-3",lg:"gap-3.5",xl:"gap-4","2xl":"gap-4.5"},ir={xs:"text-sm",sm:"text-sm",md:"text-sm",lg:"text-md",xl:"text-lg","2xl":"text-lg"},lr=({title:t,description:r,size:n})=>e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:Jt("text-rtext-secondary-700 font-semibold",ir[n]),children:t}),e.jsx("span",{className:Jt("font-normal text-rtext-tertiary-600",ir[n]),children:r})]});function dr(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var cr,ur="dismissableLayer.update",mr="dismissableLayer.pointerDownOutside",fr="dismissableLayer.focusOutside",pr=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hr=o.forwardRef((t,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:d,...u}=t,m=o.useContext(pr),[f,p]=o.useState(null),h=f?.ownerDocument??globalThis?.document,[,x]=o.useState({}),b=c(r,e=>p(e)),y=Array.from(m.layers),[v]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),j=y.indexOf(v),k=f?y.indexOf(f):-1,N=m.layersWithOutsidePointerEventsDisabled.size>0,C=k>=j,z=function(e,t=globalThis?.document){const r=dr(e),n=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){gr(mr,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",s.current),s.current=n,t.addEventListener("click",s.current,{once:!0})):n()}else t.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...m.branches].some(e=>e.contains(t));C&&!r&&(a?.(e),l?.(e),e.defaultPrevented||d?.())},h),P=function(e,t=globalThis?.document){const r=dr(e),n=o.useRef(!1);return o.useEffect(()=>{const e=e=>{if(e.target&&!n.current){gr(fr,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...m.branches].some(e=>e.contains(t))||(i?.(e),l?.(e),e.defaultPrevented||d?.())},h);return function(e,t=globalThis?.document){const r=dr(e);o.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{k===m.layers.size-1&&(s?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},h),o.useEffect(()=>{if(f)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(cr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(f)),m.layers.add(f),xr(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=cr)}},[f,h,n,m]),o.useEffect(()=>()=>{f&&(m.layers.delete(f),m.layersWithOutsidePointerEventsDisabled.delete(f),xr())},[f,m]),o.useEffect(()=>{const e=()=>x({});return document.addEventListener(ur,e),()=>document.removeEventListener(ur,e)},[]),e.jsx(w.div,{...u,ref:b,style:{pointerEvents:N?C?"auto":"none":void 0,...t.style},onFocusCapture:g(t.onFocusCapture,P.onFocusCapture),onBlurCapture:g(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:g(t.onPointerDownCapture,z.onPointerDownCapture)})});hr.displayName="DismissableLayer";function xr(){const e=new CustomEvent(ur);document.dispatchEvent(e)}function gr(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}o.forwardRef((t,r)=>{const n=o.useContext(pr),s=o.useRef(null),a=c(r,s);return o.useEffect(()=>{const e=s.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),e.jsx(w.div,{...t,ref:a})}).displayName="DismissableLayerBranch";const br=["top","right","bottom","left"],yr=Math.min,vr=Math.max,wr=Math.round,jr=Math.floor,kr=e=>({x:e,y:e}),Nr={left:"right",right:"left",bottom:"top",top:"bottom"},Cr={start:"end",end:"start"};function zr(e,t,r){return vr(e,yr(t,r))}function Pr(e,t){return"function"==typeof e?e(t):e}function Sr(e){return e.split("-")[0]}function Er(e){return e.split("-")[1]}function Rr(e){return"x"===e?"y":"x"}function Tr(e){return"y"===e?"height":"width"}const Lr=new Set(["top","bottom"]);function Mr(e){return Lr.has(Sr(e))?"y":"x"}function Dr(e){return Rr(Mr(e))}function Ir(e){return e.replace(/start|end/g,e=>Cr[e])}const Ar=["left","right"],_r=["right","left"],Or=["top","bottom"],$r=["bottom","top"];function Fr(e,t,r,n){const o=Er(e);let s=function(e,t,r){switch(e){case"top":case"bottom":return r?t?_r:Ar:t?Ar:_r;case"left":case"right":return t?Or:$r;default:return[]}}(Sr(e),"start"===r,n);return o&&(s=s.map(e=>e+"-"+o),t&&(s=s.concat(s.map(Ir)))),s}function Vr(e){return e.replace(/left|right|bottom|top/g,e=>Nr[e])}function Br(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Wr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Hr(e,t,r){let{reference:n,floating:o}=e;const s=Mr(t),a=Dr(t),i=Tr(a),l=Sr(t),d="y"===s,c=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,m=n[i]/2-o[i]/2;let f;switch(l){case"top":f={x:c,y:n.y-o.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-o.width,y:u};break;default:f={x:n.x,y:n.y}}switch(Er(t)){case"start":f[a]-=m*(r&&d?-1:1);break;case"end":f[a]+=m*(r&&d?-1:1)}return f}async function Gr(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=Pr(t,e),p=Br(f),h=i[m?"floating"===u?"reference":"floating":u],x=Wr(await s.getClippingRect({element:null==(r=await(null==s.isElement?void 0:s.isElement(h)))||r?h:h.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:c,strategy:l})),g="floating"===u?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),y=await(null==s.isElement?void 0:s.isElement(b))&&await(null==s.getScale?void 0:s.getScale(b))||{x:1,y:1},v=Wr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:b,strategy:l}):g);return{top:(x.top-v.top+p.top)/y.y,bottom:(v.bottom-x.bottom+p.bottom)/y.y,left:(x.left-v.left+p.left)/y.x,right:(v.right-x.right+p.right)/y.x}}function qr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kr(e){return br.some(t=>e[t]>=0)}const Ur=new Set(["left","top"]);function Xr(){return"undefined"!=typeof window}function Yr(e){return Qr(e)?(e.nodeName||"").toLowerCase():"#document"}function Zr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Jr(e){var t;return null==(t=(Qr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Qr(e){return!!Xr()&&(e instanceof Node||e instanceof Zr(e).Node)}function en(e){return!!Xr()&&(e instanceof Element||e instanceof Zr(e).Element)}function tn(e){return!!Xr()&&(e instanceof HTMLElement||e instanceof Zr(e).HTMLElement)}function rn(e){return!(!Xr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Zr(e).ShadowRoot)}const nn=new Set(["inline","contents"]);function on(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=gn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!nn.has(o)}const sn=new Set(["table","td","th"]);function an(e){return sn.has(Yr(e))}const ln=[":popover-open",":modal"];function dn(e){return ln.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const cn=["transform","translate","scale","rotate","perspective"],un=["transform","translate","scale","rotate","perspective","filter"],mn=["paint","layout","strict","content"];function fn(e){const t=pn(),r=en(e)?gn(e):e;return cn.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||un.some(e=>(r.willChange||"").includes(e))||mn.some(e=>(r.contain||"").includes(e))}function pn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const hn=new Set(["html","body","#document"]);function xn(e){return hn.has(Yr(e))}function gn(e){return Zr(e).getComputedStyle(e)}function bn(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yn(e){if("html"===Yr(e))return e;const t=e.assignedSlot||e.parentNode||rn(e)&&e.host||Jr(e);return rn(t)?t.host:t}function vn(e){const t=yn(e);return xn(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&on(t)?t:vn(t)}function wn(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=vn(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Zr(o);if(s){const e=jn(a);return t.concat(a,a.visualViewport||[],on(o)?o:[],e&&r?wn(e):[])}return t.concat(o,wn(o,[],r))}function jn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kn(e){const t=gn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=tn(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=wr(r)!==s||wr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function Nn(e){return en(e)?e:e.contextElement}function Cn(e){const t=Nn(e);if(!tn(t))return kr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=kn(t);let a=(s?wr(r.width):r.width)/n,i=(s?wr(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const zn=kr(0);function Pn(e){const t=Zr(e);return pn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:zn}function Sn(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),s=Nn(e);let a=kr(1);t&&(n?en(n)&&(a=Cn(n)):a=Cn(e));const i=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Zr(e))&&t}(s,r,n)?Pn(s):kr(0);let l=(o.left+i.x)/a.x,d=(o.top+i.y)/a.y,c=o.width/a.x,u=o.height/a.y;if(s){const e=Zr(s),t=n&&en(n)?Zr(n):n;let r=e,o=jn(r);for(;o&&n&&t!==r;){const e=Cn(o),t=o.getBoundingClientRect(),n=gn(o),s=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,u*=e.y,l+=s,d+=a,r=Zr(o),o=jn(r)}}return Wr({width:c,height:u,x:l,y:d})}function En(e,t){const r=bn(e).scrollLeft;return t?t.left+r:Sn(Jr(e)).left+r}function Rn(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-En(e,r),y:r.top+t.scrollTop}}const Tn=new Set(["absolute","fixed"]);function Ln(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Zr(e),n=Jr(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const e=pn();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,l=o.offsetTop)}const d=En(n);if(d<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-o);a<=25&&(s-=a)}else d<=25&&(s+=d);return{width:s,height:a,x:i,y:l}}(e,r);else if("document"===t)n=function(e){const t=Jr(e),r=bn(e),n=e.ownerDocument.body,o=vr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=vr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+En(e);const i=-r.scrollTop;return"rtl"===gn(n).direction&&(a+=vr(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}(Jr(e));else if(en(t))n=function(e,t){const r=Sn(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=tn(e)?Cn(e):kr(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:n*s.y}}(t,r);else{const r=Pn(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Wr(n)}function Mn(e,t){const r=yn(e);return!(r===t||!en(r)||xn(r))&&("fixed"===gn(r).position||Mn(r,t))}function Dn(e,t,r){const n=tn(t),o=Jr(t),s="fixed"===r,a=Sn(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=kr(0);function d(){l.x=En(o)}if(n||!n&&!s)if(("body"!==Yr(t)||on(o))&&(i=bn(t)),n){const e=Sn(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&d();s&&!n&&o&&d();const c=!o||n||s?kr(0):Rn(o,i);return{x:a.left+i.scrollLeft-l.x-c.x,y:a.top+i.scrollTop-l.y-c.y,width:a.width,height:a.height}}function In(e){return"static"===gn(e).position}function An(e,t){if(!tn(e)||"fixed"===gn(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Jr(e)===r&&(r=r.ownerDocument.body),r}function _n(e,t){const r=Zr(e);if(dn(e))return r;if(!tn(e)){let t=yn(e);for(;t&&!xn(t);){if(en(t)&&!In(t))return t;t=yn(t)}return r}let n=An(e,t);for(;n&&an(n)&&In(n);)n=An(n,t);return n&&xn(n)&&In(n)&&!fn(n)?r:n||function(e){let t=yn(e);for(;tn(t)&&!xn(t);){if(fn(t))return t;if(dn(t))return null;t=yn(t)}return null}(e)||r}const On={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s="fixed"===o,a=Jr(n),i=!!t&&dn(t.floating);if(n===a||i&&s)return r;let l={scrollLeft:0,scrollTop:0},d=kr(1);const c=kr(0),u=tn(n);if((u||!u&&!s)&&(("body"!==Yr(n)||on(a))&&(l=bn(n)),tn(n))){const e=Sn(n);d=Cn(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}const m=!a||u||s?kr(0):Rn(a,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+m.x,y:r.y*d.y-l.scrollTop*d.y+c.y+m.y}},getDocumentElement:Jr,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[..."clippingAncestors"===r?dn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=wn(e,[],!1).filter(e=>en(e)&&"body"!==Yr(e)),o=null;const s="fixed"===gn(e).position;let a=s?yn(e):e;for(;en(a)&&!xn(a);){const t=gn(a),r=fn(a);r||"fixed"!==t.position||(o=null),(s?!r&&!o:!r&&"static"===t.position&&o&&Tn.has(o.position)||on(a)&&!r&&Mn(e,a))?n=n.filter(e=>e!==a):o=t,a=yn(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=s[0],i=s.reduce((e,r)=>{const n=Ln(t,r,o);return e.top=vr(n.top,e.top),e.right=yr(n.right,e.right),e.bottom=yr(n.bottom,e.bottom),e.left=vr(n.left,e.left),e},Ln(t,a,o));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:_n,getElementRects:async function(e){const t=this.getOffsetParent||_n,r=this.getDimensions,n=await r(e.floating);return{reference:Dn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=kn(e);return{width:t,height:r}},getScale:Cn,isElement:en,isRTL:function(e){return"rtl"===gn(e).direction}};function $n(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fn(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,d=Nn(e),c=o||s?[...d?wn(d):[],...wn(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});const u=d&&i?function(e,t){let r,n=null;const o=Jr(e);function s(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),s();const d=e.getBoundingClientRect(),{left:c,top:u,width:m,height:f}=d;if(i||t(),!m||!f)return;const p={rootMargin:-jr(u)+"px "+-jr(o.clientWidth-(c+m))+"px "+-jr(o.clientHeight-(u+f))+"px "+-jr(c)+"px",threshold:vr(0,yr(1,l))||1};let h=!0;function x(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||$n(d,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(x,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(x,p)}n.observe(e)}(!0),s}(d,r):null;let m,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),d&&!l&&p.observe(d),p.observe(t));let h=l?Sn(e):null;return l&&function t(){const n=Sn(e);h&&!$n(h,n)&&r();h=n,m=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==u||u(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Vn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,s=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=Sr(r),i=Er(r),l="y"===Mr(r),d=Ur.has(a)?-1:1,c=s&&l?-1:1,u=Pr(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof p&&(f="end"===i?-1*p:p),l?{x:f*c,y:m*d}:{x:m*d,y:f*c}}(t,e);return a===(null==(r=i.offset)?void 0:r.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Bn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Pr(e,t),d={x:r,y:n},c=await Gr(t,l),u=Mr(Sr(o)),m=Rr(u);let f=d[m],p=d[u];if(s){const e="y"===m?"bottom":"right";f=zr(f+c["y"===m?"top":"left"],f,f-c[e])}if(a){const e="y"===u?"bottom":"right";p=zr(p+c["y"===u?"top":"left"],p,p-c[e])}const h=i.fn({...t,[m]:f,[u]:p});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[m]:s,[u]:a}}}}}},Wn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=Pr(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};const g=Sr(o),b=Mr(i),y=Sr(i)===i,v=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=m||(y||!h?[Vr(i)]:function(e){const t=Vr(e);return[Ir(e),t,Ir(t)]}(i)),j="none"!==p;!m&&j&&w.push(...Fr(i,h,p,v));const k=[i,...w],N=await Gr(t,x),C=[];let z=(null==(n=s.flip)?void 0:n.overflows)||[];if(c&&C.push(N[g]),u){const e=function(e,t,r){void 0===r&&(r=!1);const n=Er(e),o=Dr(e),s=Tr(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Vr(a)),[a,Vr(a)]}(o,a,v);C.push(N[e[0]],N[e[1]])}if(z=[...z,{placement:o,overflows:C}],!C.every(e=>e<=0)){var P,S;const e=((null==(P=s.flip)?void 0:P.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&b!==Mr(t))||z.every(e=>Mr(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:z},reset:{placement:t}}}let r=null==(S=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:S.placement;if(!r)switch(f){case"bestFit":{var E;const e=null==(E=z.filter(e=>{if(j){const t=Mr(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(r=e);break}case"initialPlacement":r=i}if(o!==r)return{reset:{placement:r}}}return{}}}},Hn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...d}=Pr(e,t),c=await Gr(t,d),u=Sr(o),m=Er(o),f="y"===Mr(o),{width:p,height:h}=s.floating;let x,g;"top"===u||"bottom"===u?(x=u,g=m===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,x="end"===m?"top":"bottom");const b=h-c.top-c.bottom,y=p-c.left-c.right,v=yr(h-c[x],b),w=yr(p-c[g],y),j=!t.middlewareData.shift;let k=v,N=w;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(N=y),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=b),j&&!m){const e=vr(c.left,0),t=vr(c.right,0),r=vr(c.top,0),n=vr(c.bottom,0);f?N=p-2*(0!==e||0!==t?e+t:vr(c.left,c.right)):k=h-2*(0!==r||0!==n?r+n:vr(c.top,c.bottom))}await l({...t,availableWidth:N,availableHeight:k});const C=await a.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},Gn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pr(e,t);switch(n){case"referenceHidden":{const e=qr(await Gr(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Kr(e)}}}case"escaped":{const e=qr(await Gr(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Kr(e)}}}default:return{}}}}},qn=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:d,padding:c=0}=Pr(e,t)||{};if(null==d)return{};const u=Br(c),m={x:r,y:n},f=Dr(o),p=Tr(f),h=await a.getDimensions(d),x="y"===f,g=x?"top":"left",b=x?"bottom":"right",y=x?"clientHeight":"clientWidth",v=s.reference[p]+s.reference[f]-m[f]-s.floating[p],w=m[f]-s.reference[f],j=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let k=j?j[y]:0;k&&await(null==a.isElement?void 0:a.isElement(j))||(k=i.floating[y]||s.floating[p]);const N=v/2-w/2,C=k/2-h[p]/2-1,z=yr(u[g],C),P=yr(u[b],C),S=z,E=k-h[p]-P,R=k/2-h[p]/2+N,T=zr(S,R,E),L=!l.arrow&&null!=Er(o)&&R!==T&&s.reference[p]/2-(R<S?z:P)-h[p]/2<0,M=L?R<S?R-S:R-E:0;return{[f]:m[f]+M,data:{[f]:T,centerOffset:R-T-M,...L&&{alignmentOffset:M}},reset:L}}}),Kn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=Pr(e,t),c={x:r,y:n},u=Mr(o),m=Rr(u);let f=c[m],p=c[u];const h=Pr(i,t),x="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===m?"height":"width",t=s.reference[m]-s.floating[e]+x.mainAxis,r=s.reference[m]+s.reference[e]-x.mainAxis;f<t?f=t:f>r&&(f=r)}if(d){var g,b;const e="y"===m?"width":"height",t=Ur.has(Sr(o)),r=s.reference[u]-s.floating[e]+(t&&(null==(g=a.offset)?void 0:g[u])||0)+(t?0:x.crossAxis),n=s.reference[u]+s.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?x.crossAxis:0);p<r?p=r:p>n&&(p=n)}return{[m]:f,[u]:p}}}},Un=(e,t,r)=>{const n=new Map,o={platform:On,...r},s={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Hr(d,n,l),m=n,f={},p=0;for(let r=0;r<i.length;r++){const{name:s,fn:h}=i[r],{x:x,y:g,data:b,reset:y}=await h({x:c,y:u,initialPlacement:n,placement:m,strategy:o,middlewareData:f,rects:d,platform:a,elements:{reference:e,floating:t}});c=null!=x?x:c,u=null!=g?g:u,f={...f,[s]:{...f[s],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(m=y.placement),y.rects&&(d=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=Hr(d,m,l))),r=-1)}return{x:c,y:u,placement:m,strategy:o,middlewareData:f}})(e,t,{...o,platform:s})};var Xn="undefined"!=typeof document?t.useLayoutEffect:function(){};function Yn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Yn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Yn(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function Zn(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jn(e,t){const r=Zn(e);return Math.round(t*r)/r}function Qn(e){const t=o.useRef(e);return Xn(()=>{t.current=e}),t}const eo=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?qn({element:r.current,padding:n}).fn(t):{}:r?qn({element:r,padding:n}).fn(t):{};var o}}),to=(e,t)=>({...Bn(e),options:[e,t]}),ro=(e,t)=>({...Kn(e),options:[e,t]}),no=(e,t)=>({...Wn(e),options:[e,t]}),oo=(e,t)=>({...Hn(e),options:[e,t]}),so=(e,t)=>({...Gn(e),options:[e,t]}),ao=(e,t)=>({...eo(e),options:[e,t]});var io=o.forwardRef((t,r)=>{const{children:n,width:o=10,height:s=5,...a}=t;return e.jsx(w.svg,{...a,ref:r,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});io.displayName="Arrow";var lo=io;function co(e){const[t,r]=o.useState(void 0);return b(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,s;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,s=t.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}var uo="Popper",[mo,fo]=a(uo),[po,ho]=mo(uo),xo=t=>{const{__scopePopper:r,children:n}=t,[s,a]=o.useState(null);return e.jsx(po,{scope:r,anchor:s,onAnchorChange:a,children:n})};xo.displayName=uo;var go="PopperAnchor",bo=o.forwardRef((t,r)=>{const{__scopePopper:n,virtualRef:s,...a}=t,i=ho(go,n),l=o.useRef(null),d=c(r,l),u=o.useRef(null);return o.useEffect(()=>{const e=u.current;u.current=s?.current||l.current,e!==u.current&&i.onAnchorChange(u.current)}),s?null:e.jsx(w.div,{...a,ref:d})});bo.displayName=go;var yo="PopperContent",[vo,wo]=mo(yo),jo=o.forwardRef((t,r)=>{const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:l="center",alignOffset:d=0,arrowPadding:u=0,avoidCollisions:m=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:h="partial",hideWhenDetached:x=!1,updatePositionStrategy:g="optimized",onPlaced:y,...v}=t,j=ho(yo,n),[k,N]=o.useState(null),C=c(r,e=>N(e)),[z,P]=o.useState(null),S=co(z),E=S?.width??0,R=S?.height??0,T=a+("center"!==l?"-"+l:""),L="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},M=Array.isArray(f)?f:[f],D=M.length>0,I={padding:L,boundary:M.filter(zo),altBoundary:D},{refs:A,floatingStyles:_,placement:O,isPositioned:$,middlewareData:F}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:l}={},transform:d=!0,whileElementsMounted:c,open:u}=e,[m,f]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(n);Yn(p,n)||h(n);const[x,g]=o.useState(null),[b,y]=o.useState(null),v=o.useCallback(e=>{e!==N.current&&(N.current=e,g(e))},[]),w=o.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),j=i||x,k=l||b,N=o.useRef(null),C=o.useRef(null),z=o.useRef(m),P=null!=c,S=Qn(c),E=Qn(a),R=Qn(u),T=o.useCallback(()=>{if(!N.current||!C.current)return;const e={placement:t,strategy:r,middleware:p};E.current&&(e.platform=E.current),Un(N.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==R.current};L.current&&!Yn(z.current,t)&&(z.current=t,s.flushSync(()=>{f(t)}))})},[p,t,r,E,R]);Xn(()=>{!1===u&&z.current.isPositioned&&(z.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const L=o.useRef(!1);Xn(()=>(L.current=!0,()=>{L.current=!1}),[]),Xn(()=>{if(j&&(N.current=j),k&&(C.current=k),j&&k){if(S.current)return S.current(j,k,T);T()}},[j,k,T,S,P]);const M=o.useMemo(()=>({reference:N,floating:C,setReference:v,setFloating:w}),[v,w]),D=o.useMemo(()=>({reference:j,floating:k}),[j,k]),I=o.useMemo(()=>{const e={position:r,left:0,top:0};if(!D.floating)return e;const t=Jn(D.floating,m.x),n=Jn(D.floating,m.y);return d?{...e,transform:"translate("+t+"px, "+n+"px)",...Zn(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,d,D.floating,m.x,m.y]);return o.useMemo(()=>({...m,update:T,refs:M,elements:D,floatingStyles:I}),[m,T,M,D,I])}({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>Fn(...e,{animationFrame:"always"===g}),elements:{reference:j.anchor},middleware:[(V={mainAxis:i+R,alignmentAxis:d},{...Vn(V),options:[V,B]}),m&&to({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?ro():void 0,...I}),m&&no({...I}),oo({...I,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:s}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${s}px`)}}),z&&ao({element:z,padding:u}),Po({arrowWidth:E,arrowHeight:R}),x&&so({strategy:"referenceHidden",...I})]});var V,B;const[W,H]=So(O),G=dr(y);b(()=>{$&&G?.()},[$,G]);const q=F.arrow?.x,K=F.arrow?.y,U=0!==F.arrow?.centerOffset,[X,Y]=o.useState();return b(()=>{k&&Y(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:$?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(vo,{scope:n,placedSide:W,onArrowChange:P,arrowX:q,arrowY:K,shouldHideArrow:U,children:e.jsx(w.div,{"data-side":W,"data-align":H,...v,ref:C,style:{...v.style,animation:$?void 0:"none"}})})})});jo.displayName=yo;var ko="PopperArrow",No={top:"bottom",right:"left",bottom:"top",left:"right"},Co=o.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=wo(ko,n),a=No[s.placedSide];return e.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:e.jsx(lo,{...o,ref:r,style:{...o.style,display:"block"}})})});function zo(e){return null!==e}Co.displayName=ko;var Po=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,s=0!==o.arrow?.centerOffset,a=s?0:e.arrowWidth,i=s?0:e.arrowHeight,[l,d]=So(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+i/2;let f="",p="";return"bottom"===l?(f=s?c:`${u}px`,p=-i+"px"):"top"===l?(f=s?c:`${u}px`,p=`${n.floating.height+i}px`):"right"===l?(f=-i+"px",p=s?c:`${m}px`):"left"===l&&(f=`${n.floating.width+i}px`,p=s?c:`${m}px`),{data:{x:f,y:p}}}});function So(e){const[t,r="center"]=e.split("-");return[t,r]}var Eo=xo,Ro=bo,To=jo,Lo=Co,Mo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Do=o.forwardRef((t,r)=>e.jsx(w.span,{...t,ref:r,style:{...Mo,...t.style}}));Do.displayName="VisuallyHidden";var Io=Do,[Ao]=a("Tooltip",[fo]),_o=fo(),Oo="TooltipProvider",$o=700,Fo="tooltip.open",[Vo,Bo]=Ao(Oo),Wo=t=>{const{__scopeTooltip:r,delayDuration:n=$o,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:i}=t,l=o.useRef(!0),d=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),e.jsx(Vo,{scope:r,isOpenDelayedRef:l,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:o.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,s)},[s]),isPointerInTransitRef:d,onPointerInTransitChange:o.useCallback(e=>{d.current=e},[]),disableHoverableContent:a,children:i})};Wo.displayName=Oo;var Ho="Tooltip",[Go,qo]=Ao(Ho),Ko=t=>{const{__scopeTooltip:r,children:n,open:s,defaultOpen:a,onOpenChange:i,disableHoverableContent:l,delayDuration:d}=t,c=Bo(Ho,t.__scopeTooltip),u=_o(r),[m,f]=o.useState(null),p=z(),h=o.useRef(0),x=l??c.disableHoverableContent,g=d??c.delayDuration,b=o.useRef(!1),[y,w]=v({prop:s,defaultProp:a??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Fo))):c.onClose(),i?.(e)},caller:Ho}),j=o.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),k=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),N=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),C=o.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},g)},[g,w]);return o.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),e.jsx(Eo,{...u,children:e.jsx(Go,{scope:r,contentId:p,open:y,stateAttribute:j,trigger:m,onTriggerChange:f,onTriggerEnter:o.useCallback(()=>{c.isOpenDelayedRef.current?C():k()},[c.isOpenDelayedRef,C,k]),onTriggerLeave:o.useCallback(()=>{x?N():(window.clearTimeout(h.current),h.current=0)},[N,x]),onOpen:k,onClose:N,disableHoverableContent:x,children:n})})};Ko.displayName=Ho;var Uo="TooltipTrigger",Xo=o.forwardRef((t,r)=>{const{__scopeTooltip:n,...s}=t,a=qo(Uo,n),i=Bo(Uo,n),l=_o(n),d=c(r,o.useRef(null),a.onTriggerChange),u=o.useRef(!1),m=o.useRef(!1),f=o.useCallback(()=>u.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),e.jsx(Ro,{asChild:!0,...l,children:e.jsx(w.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:d,onPointerMove:g(t.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||i.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0))}),onPointerLeave:g(t.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:g(t.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:g(t.onFocus,()=>{u.current||a.onOpen()}),onBlur:g(t.onBlur,a.onClose),onClick:g(t.onClick,a.onClose)})})});Xo.displayName=Uo;var[Yo,Zo]=Ao("TooltipPortal",{forceMount:void 0}),Jo="TooltipContent",Qo=o.forwardRef((t,r)=>{const n=Zo(Jo,t.__scopeTooltip),{forceMount:o=n.forceMount,side:s="top",...a}=t,i=qo(Jo,t.__scopeTooltip);return e.jsx(j,{present:o||i.open,children:i.disableHoverableContent?e.jsx(os,{side:s,...a,ref:r}):e.jsx(es,{side:s,...a,ref:r})})}),es=o.forwardRef((t,r)=>{const n=qo(Jo,t.__scopeTooltip),s=Bo(Jo,t.__scopeTooltip),a=o.useRef(null),i=c(r,a),[l,d]=o.useState(null),{trigger:u,onClose:m}=n,f=a.current,{onPointerInTransitChange:p}=s,h=o.useCallback(()=>{d(null),p(!1)},[p]),x=o.useCallback((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),s=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...o,...function(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())]);d(s),p(!0)},[p]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(u&&f){const e=e=>x(e,f),t=e=>x(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,x,h]),o.useEffect(()=>{if(l){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:r,y:n}=e;let o=!1;for(let e=0,s=t.length-1;e<t.length;s=e++){const a=t[e],i=t[s],l=a.x,d=a.y,c=i.x,u=i.y;d>n!=u>n&&r<(c-l)*(n-d)/(u-d)+l&&(o=!o)}return o}(r,l);n?h():o&&(h(),m())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,l,m,h]),e.jsx(os,{...t,ref:i})}),[ts,rs]=Ao(Ho,{isInside:!1}),ns=function(t){const r=({children:t})=>e.jsx(e.Fragment,{children:t});return r.displayName=`${t}.Slottable`,r.__radixId=p,r}("TooltipContent"),os=o.forwardRef((t,r)=>{const{__scopeTooltip:n,children:s,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...d}=t,c=qo(Jo,n),u=_o(n),{onClose:m}=c;return o.useEffect(()=>(document.addEventListener(Fo,m),()=>document.removeEventListener(Fo,m)),[m]),o.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,m]),e.jsx(hr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:e.jsxs(To,{"data-state":c.stateAttribute,...u,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[e.jsx(ns,{children:s}),e.jsx(ts,{scope:n,isInside:!0,children:e.jsx(Io,{id:c.contentId,role:"tooltip",children:a||s})})]})})});Qo.displayName=Jo;var ss="TooltipArrow",as=o.forwardRef((t,r)=>{const{__scopeTooltip:n,...o}=t,s=_o(n);return rs(ss,n).isInside?null:e.jsx(Lo,{...s,...o,ref:r})});as.displayName=ss;var is=Wo,ls=Ko,ds=Xo,cs=Qo,us=as;const ms={none:{side:"top",align:"center"},top:{side:"top",align:"center"},topstart:{side:"top",align:"start"},topcenter:{side:"top",align:"center"},topend:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomstart:{side:"bottom",align:"start"},bottomcenter:{side:"bottom",align:"center"},bottomend:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftstart:{side:"left",align:"start"},leftcenter:{side:"left",align:"center"},leftend:{side:"left",align:"end"},right:{side:"right",align:"center"},rightstart:{side:"right",align:"start"},rightcenter:{side:"right",align:"center"},rightend:{side:"right",align:"end"}},fs=o.forwardRef(({className:t,sideOffset:r=4,...n},o)=>e.jsx(cs,{ref:o,sideOffset:r,className:Jt("z-50 overflow-hidden rounded-md border bg-black px-3 py-1.5 text-sm text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",t),...n,children:n.children}));fs.displayName=cs.displayName;const ps=({children:t,content:r,description:n,className:o,contentClassName:s,descriptionClassName:a,sideOffset:i=4,position:l="none",dir:d="rtl"})=>{const c="ltr"===d,u=ms[l]||{side:"top",align:c?"start":"end"},m="none"!==l;return e.jsx(is,{children:e.jsxs(ls,{delayDuration:50,children:[e.jsx(ds,{asChild:!0,children:t}),e.jsxs(fs,{className:Jt(o),sideOffset:i,side:u.side,align:u.align,dir:d,children:[e.jsxs("div",{className:"flex flex-col",dir:d,children:[e.jsx("span",{className:Jt("text-base font-medium",s),children:r}),n&&e.jsx("span",{className:Jt("text-xs opacity-70 mt-1",c?"text-start":"text-end",a),children:n})]}),m&&e.jsx(us,{className:"fill-black",width:16,height:6})]})]})})},hs=t.memo(({stroke:t="",fill:r="none",width:n="12",height:o="12"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:o,viewBox:"0 0 12 12",fill:r,children:e.jsx("path",{d:"M6 2.5V9.5M2.5 6H9.5",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),xs=({imgList:t,size:r,showAmount:n=5,showAddBtn:o=!1,tooltip:s,addBtnAction:a})=>{const i=t.slice(0,n),l=t.length-n;return e.jsxs("div",{className:"flex -space-x-1 w-full",children:[i.map((t,n)=>e.jsx("img",{alt:"",className:Jt("inline-block rounded-full ring-2 ring-white",nr[r]),style:{zIndex:n},...t},n)),l>0&&e.jsx("div",{className:Jt("inline-flex items-center justify-center rounded-full bg-gray-100 border-2 border-white font-medium text-gray-700 shadow-2xs align-middle hover:bg-gray-200 focus:outline-hidden focus:bg-gray-300 text-sm dark:bg-neutral-700 dark:text-white dark:hover:bg-neutral-600 dark:focus:bg-neutral-600 dark:border-neutral-800",nr[r]),style:{zIndex:n},children:e.jsxs("span",{className:"font-medium text-xs",children:["+",l]})}),o&&s?e.jsx(ps,{...s,children:e.jsx("button",{className:Jt("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",nr[r]),onClick:a,children:e.jsx(hs,{})})}):e.jsx("button",{className:Jt("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",nr[r]),onClick:a,children:e.jsx(hs,{})})]})},gs=({img:t,size:r,notifyColor:n="",notifyIcon:o="",iconBorder:s})=>e.jsxs("div",{className:Jt("relative inline-block",nr[r]),children:[e.jsx("img",{alt:"",...t,className:Jt("rounded-full object-cover ring-2 ring-white",nr[r])}),n&&e.jsx("span",{className:Jt(`absolute bottom-0 right-1 block rounded-full ${n} ring-2 ring-white`,or[r])}),o&&e.jsx("span",{className:Jt("absolute bottom-0 right-1 block rounded-full",sr[r],`has-[>svg]:${sr[r]} ${s&&"ring-2 ring-white"}`),children:o})]}),bs=t.memo(({stroke:t="",fill:r="none",width:n="12",className:o="",height:s="12"})=>e.jsx("svg",{"data-testid":"icon-x-close",xmlns:"http://www.w3.org/2000/svg",width:n,role:"x-icon",height:s,className:o,viewBox:"0 0 12 12",fill:r,children:e.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),ys=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,vs=Ge,ws=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return vs(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;const a=ys(t)||ys(n);return o[e][a]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...i}[t]):{...s,...i}[t]===r})?[...e,r,n]:e},[]);return vs(e,a,l,null==r?void 0:r.class,null==r?void 0:r.className)},js=ws("flex items-center font-medium",{variants:{size:{sm:"px-2 py-0.5 gap-1 has-[>svg]:text-sm text-xs",md:"px-2.5 py-0.5 gap-1.5 has-[>svg]:text-md text-sm",lg:"px-3 py-1 gap-2 has-[>svg]:text-lg text-sm"},type:{pillColor:"rounded-full border",pillOutline:"rounded-full border-[1.5px]",badgeColor:"rounded-sm border",badgeModern:"rounded-md shadow-sm border has-[>svg]:stroke-current"},dir:{ltr:"flex-row",rtl:"flex-row-reverse"},color:{gray:"bg-utility-gray-50 text-utility-gray-700 border-utility-gray-200 has-[>svg]:stroke-utility-gray-light-400",brand:"bg-utility-brand-50 text-utility-brand-700 border-utility-brand-200 has-[>svg]:stroke-utility-brand-400",error:"bg-utility-error-50 text-utility-error-700 border-utility-error-200 has-[>svg]:stroke-utility-error-400",success:"bg-utility-success-50 text-utility-success-700 border-utility-success-200 has-[>svg]:stroke-utility-success-400",grayBlue:"bg-utility-gray-blue-50 text-utility-gray-blue-700 border-utility-gray-blue-200 has-[>svg]:stroke-utility-gray-blue-400",blueLight:"bg-utility-blue-light-50 text-utility-blue-light-700 border-utility-blue-light-200 has-[>svg]:stroke-utility-blue-light-400",blue:"bg-utility-blue-50 text-utility-blue-700 border-utility-blue-200 has-[>svg]:stroke-utility-blue-400",indigo:"bg-utility-indigo-50 text-utility-indigo-700 border-utility-indigo-200 has-[>svg]:stroke-utility-indigo-400",purple:"bg-utility-purple-50 text-utility-purple-700 border-utility-purple-200 has-[>svg]:stroke-utility-purple-400",pink:"bg-utility-pink-50 text-utility-pink-700 border-utility-pink-200 has-[>svg]:stroke-utility-pink-400",orange:"bg-utility-orange-50 text-utility-orange-700 border-utility-orange-200 has-[>svg]:stroke-utility-orange-400 fill-red-500"}},defaultVariants:{size:"sm",type:"pillColor",dir:"ltr",color:"blue"}});function ks({className:t,size:r="sm",type:n="pillColor",color:o="blue",dir:s="rtl",icon:a,closable:i=!1,onClose:l,children:d,...c}){return e.jsxs("div",{className:Jt("w-fit",js({size:r,type:n,dir:s,color:o}),"badgeModern"===n&&"bg-transparent border-primary text-secondary",t),...c,children:[a,d,i&&e.jsx("button",{onClick:l,className:"ml-1",children:e.jsx(bs,{className:"w-3 h-3 stroke-current"})})]})}const Ns=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M10 12L6 8L10 4",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})),Cs=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",children:e.jsx("path",{d:"M1 9L5 5L1 1",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})),zs=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#667085",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ps=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#0050FF",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ss=ws("inline-flex items-center justify-center font-medium focus:outline-none transition-all w-fit rounded-md border transition-all duration-300 cursor-pointer relative",{variants:{loading:{true:"pointer-events-none"},size:{sm:"text-sm px-3 py-2 gap-1",md:"text-base px-3.5 py-2.5 gap-1",lg:"text-lg px-4 py-2.5 gap-1.5",xl:"text-lg px-4.5 py-3 gap-1.5","2xl":"rounded-lg text-lg px-5.5 py-4 gap-2"},fullWidth:{true:"w-full"},disabled:{true:"pointer-events-none"},dir:{rtl:"flex-row",ltr:"flex-row-reverse"},variant:{primary:"border-gradient-border bg-rbutton-primary-bg hover:bg-rbutton-primary-bg-hover focus:bg-rbutton-primary-bg shadow-xs-skeuomorphic focus:shadow-focus-ring-shadow-xs-skeuomorphic text-rbutton-primary-fg has-[>svg]:text-rbutton-primary-fg disabled:bg-rbg-disabled disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryGray:"text-rbutton-secondary-fg has-[>svg]:stroke-rbutton-secondary-fg border-gradient-border bg-rbutton-secondary-bg hover:bg-rbutton-secondary-bg-hover shadow-xs-skeuomorphic disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryColor:"text-rbutton-secondary-color-fg bg-rbutton-secondary-color-bg border-rbutton-secondary-color-border hover:text-rbutton-secondary-color-fg-hover hover:bg-rbutton-secondary-color-bg-hover border-rbutton-secondary-color-border-hover disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled disabled:shadow-xs",tertiaryGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover hover:bg-rbutton-tertiary-bg-hover disabled:text-rfg-disabled",tertiaryColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover hover:bg-rbutton-tertiary-color-bg-hover disabled:text-rfg-disabled",linkGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover disabled:text-rfg-disabled !p-0",linkColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover disabled:text-rfg-disabled !p-0"}},defaultVariants:{variant:"primary",size:"md"}}),Es=({size:t="sm"})=>e.jsx("div",{"aria-label":"loading",className:Ge("border-2 border-t-transparent rounded-full animate-spin",{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-7 w-7"}[t])}),Rs=({variant:t="primary",size:r="md",fullWidth:n,disabled:o=!1,loading:s=!1,leftIcon:a,rightIcon:i,children:l,className:d,onClick:c,asChild:u=!1,...f})=>{const p=u?m:"button";return e.jsxs(p,{className:Ss({variant:t,size:r,fullWidth:n,disabled:o,className:d,loading:s}),disabled:o,onClick:s?()=>{}:c,...f,children:[s&&e.jsx("div",{className:"absolute inset-0 flex justify-center items-center",children:e.jsx(Es,{size:r??"md"})}),e.jsxs("span",{className:Ge({invisible:s},"flex items-center gap-2"),children:[a,l,i]})]})},Ts=t.memo(({stroke:t="white",fill:r="none",width:n="10",className:o="",height:s="10"})=>e.jsx(e.Fragment,{children:e.jsx("svg",{width:n,"data-testid":"minus-icon",height:s,className:o,fill:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",children:e.jsx("path",{d:"M2.5 6H9.5",stroke:t,strokeWidth:"1.666",strokeLinecap:"round",strokeLinejoin:"round"})})})),Ls=t.memo(({stroke:t="#fff",fill:r="none",width:n="10",height:o="10"})=>e.jsx("svg",{width:n,height:o,"data-testid":"tickbox-icon",viewBox:"0 0 10 10",className:"border-white",fill:r,xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8.33341 2.5L3.75008 7.08333L1.66675 5",stroke:t,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})),Ms=ws("border-rborder-primary rounded-xs border-[1px] peer-checked:border-rbg-brand-solid peer-checked:bg-rbg-brand-solid flex items-center justify-center",{variants:{size:{sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-4.5 h-4.5"},disabled:{true:" bg-rbg-disabled-subtle cursor-auto",false:" group cursor-pointer",undefined:"group cursor-pointer"}},defaultVariants:{size:"sm"}}),Ds={sm:"p-1",md:"p-[5px]",lg:"p-1.5"},Is=({size:r="sm",children:n,id:o,disabled:s=!1,checkboxIndex:a=1,isIndeterminate:i=!1,checked:l,onChange:d,onClick:c,defaultChecked:u,name:m,label:f,...p})=>{const h=t.useRef(null);t.useEffect(()=>{h.current&&(h.current.indeterminate=i)},[i]);const x=s?"#D0D5DD":"white";let g=null;return s?l&&(g=i?e.jsx(Ts,{stroke:x}):e.jsx(Ls,{stroke:x})):g=i?e.jsx(Ts,{stroke:x}):e.jsx(Ls,{stroke:x}),e.jsxs("div",{className:"flex items-center cursor-pointer gap-2 justify-start",children:[e.jsx("input",{type:"checkbox","data-testid":"checkbox",id:o,ref:h,onChange:e=>!s&&d&&d(e),onClick:c,disabled:s,checked:l,defaultChecked:u,className:"peer hidden",...p}),e.jsx("label",{htmlFor:o??m,tabIndex:a,className:Jt(Ms({size:r,disabled:s}),`${s&&"!bg-rbg-disabled !border-rborder-primary"} `),children:e.jsx("div",{className:`${Ds[r]} ${!s&&"group-focus-within:border-2 border-rbg-brand-solid "} flex items-center justify-center rounded-md`,children:g})}),(n??f)&&e.jsx("div",{className:"leading-none",onClick:()=>{h.current&&!s&&(h.current.click(),h.current.focus())},children:n??f})]})},As="rounded-full border-[1px] flex items-center justify-center peer-checked:border-[5px]",_s={sm:"text-xs",md:"text-sm"},Os={sm:"p-2.5",md:"p-3"},$s=ws(As,{variants:{size:{sm:"w-4 h-4",md:"w-5 h-5 !peer-checked:border-[6px]"},disabled:{true:" cursor-auto bg-rbg-disabled-subtle !border-rfg-disabled-subtle !border-[1px] ",false:"group cursor-pointer border-rbg-brand-solid",undefined:"group cursor-pointer border-rbg-brand-solid"}},defaultVariants:{size:"sm"}}),Fs=({name:t,value:r,checked:n,onChange:o,size:s="sm",disabled:a,className:i,children:l,id:d,...c})=>e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("label",{htmlFor:d,className:"inline-flex w-fit items-center cursor-pointer relative",children:[e.jsx("input",{type:"radio",name:t,value:r,checked:n,onChange:o,className:"sr-only peer",disabled:a,id:d,...c}),e.jsx("div",{className:Jt($s({size:s,disabled:a}),As)}),e.jsx("div",{className:`peer-focus:border-2 peer-focus-within:border-1 border-brand-500 rounded-full absolute top-1/2 left-1/2 -translate-1/2 ${Os[s]} ${n&&a&&("sm"===s?"!border-4":"!border-5")+" !border-rfg-disabled-subtle !p-0 "} `})]}),l&&e.jsx("label",{htmlFor:d,className:`cursor-pointer ${_s[s]} ${i}`,children:l})]}),Vs={sm:"text-sm",md:"text-md"},Bs={sm:"16",md:"20"},Ws={sm:"text-sm",md:"text-md"},Hs=t.memo(({stroke:t="#344054",fill:r="none",width:n="16",className:o="",height:s="16"})=>e.jsx(e.Fragment,{children:e.jsx("svg",{"data-testid":"layer-icon",xmlns:"http://www.w3.org/2000/svg",width:n,height:s,className:o,viewBox:"0 0 16 16",fill:r,children:e.jsx("path",{d:"M1.33325 9.66669L7.7614 12.8808C7.84886 12.9245 7.89259 12.9464 7.93845 12.955C7.97908 12.9626 8.02076 12.9626 8.06139 12.955C8.10725 12.9464 8.15098 12.9245 8.23843 12.8808L14.6666 9.66669M1.33325 6.33336L7.7614 3.11928C7.84886 3.07555 7.89259 3.05369 7.93845 3.04508C7.97908 3.03746 8.02076 3.03746 8.06139 3.04508C8.10725 3.05369 8.15098 3.07555 8.23843 3.11928L14.6666 6.33336L8.23843 9.54743C8.15098 9.59116 8.10725 9.61302 8.06139 9.62163C8.02076 9.62925 7.97908 9.62925 7.93845 9.62163C7.89259 9.61302 7.84886 9.59116 7.7614 9.54743L1.33325 6.33336Z",stroke:t,strokeWidth:"1.333",strokeLinecap:"round",strokeLinejoin:"round"})})}));function Gs({children:t,className:r,...n}){return e.jsx("div",{className:`${r} flex items-center justify-center border border-disabled-subtle-br rounded-md shadow-rshadow-sm-01 p-2.5 w-fit h-fit`,...n,children:t})}function qs({per:t,size:r="sm",title:n="",description:o,price:s,id:a,checkboxIndex:i,checked:l,name:d="",value:c="",inputProps:u,onChange:m,type:f,onCardClick:p,disabled:h}){return e.jsxs(e.Fragment,{children:[e.jsx(Gs,{"data-testid":"icon-wrapper",children:e.jsx(Hs,{width:Bs[r],height:Bs[r]})}),e.jsxs("div",{onClick:p,className:"flex flex-col grow justify-between",children:[e.jsxs("div",{className:"flex",children:[e.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:n})," ",e.jsxs("span",{children:[s,"/",t]})]}),e.jsx("div",{className:"text-muted-foreground",children:o})]}),e.jsx("div",{className:"flex items-start gap-2",children:"radio"===f?e.jsx(Fs,{onChange:m,checked:l,disabled:h,value:c,name:d,size:r,id:a,...u}):e.jsx(Is,{...u,disabled:h,id:a,name:d,onChange:m,size:r,value:c,checkboxIndex:i,checked:l})})]})}const Ks=({title:t,size:r,disabled:n,checkboxIndex:o,id:s,name:a="",value:i="",onChange:l,inputProps:d,checked:c,type:u,...m})=>{const f=n||"group-focus-within:border-rbg-brand-solid group-focus-within:border-b-2 border-b";return e.jsxs("div",{"data-testid":"header",className:`flex items-center border-b-2 border-rborder-secondary p-4 w-full gap-2 ${f}`,...m,children:[e.jsx(Gs,{children:e.jsx(Hs,{width:"20",height:"20"})}),e.jsx("div",{className:"flex flex-col grow justify-between",children:e.jsx("div",{className:"flex text-sm",children:e.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:t})})}),e.jsx("div",{className:"flex items-start gap-2",children:"radio"===u?e.jsx(Fs,{onChange:l,checked:c,disabled:n,value:i,name:a,size:r,id:s,...d}):e.jsx(Is,{checkboxIndex:o,disabled:n,id:s,name:a,onChange:l,size:r,value:i,...d})})]})};function Us({per:t,size:r="sm",title:n="",price:o,description:s,checked:a,badgeContent:i,checkboxIndex:l=1,id:d="",value:c="value",name:u="",onChange:m,disabled:f,type:p}){return e.jsxs(e.Fragment,{children:[e.jsx(Ks,{type:p,onChange:m,name:u,disabled:f,checked:a,value:c,"data-testid":"header",checkboxIndex:l,title:n,size:r,id:d}),e.jsxs("div",{className:"p-4 flex w-full",children:[e.jsxs("div",{className:"grow space-y-1",children:[e.jsxs("div",{className:"flex items-end text-sm gap-1",children:[e.jsx("span",{className:"text-3xl font-semibold text-foreground text-rtext-secondary-700",children:o}),e.jsx("span",{className:"h-fit",children:t})]}),e.jsx("div",{children:s})]}),e.jsx("span",{children:i&&e.jsx(ks,{size:"md",type:"badgeColor",dir:"rtl",color:"success",className:"!bg-white !border-rborder-primary !text-rtext-secondary-700",icon:e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rfg-success-primary"}),children:i})})]})]})}const Xs={sm:"text-sm",md:"text-md"},Ys={sm:"w-8 h-8",md:"w-10 h-10"},Zs=(e,t=50)=>t+10*e,Js=(e,t=40)=>t+10*e,Qs=ws("",{variants:{direction:{down:"",up:"",left:"",right:""},alignment:{left:"",right:"",top:"",bottom:""}},compoundVariants:[{direction:"down",alignment:"left",class:"origin-top-right right-0 mt-2"},{direction:"down",alignment:"right",class:"origin-top-left left-0 mt-2"},{direction:"down",alignment:"top",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"down",alignment:"bottom",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"up",alignment:"left",class:"origin-bottom-right right-0 bottom-full mb-2"},{direction:"up",alignment:"right",class:"origin-bottom-left left-0 bottom-full mb-2"},{direction:"up",alignment:"top",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"up",alignment:"bottom",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"left",alignment:"top",class:"origin-top-right top-0 right-full mr-2"},{direction:"left",alignment:"bottom",class:"origin-bottom-right bottom-0 right-full mr-2"},{direction:"left",alignment:"left",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"left",alignment:"right",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"top",class:"origin-top-left top-0 left-full ml-2"},{direction:"right",alignment:"bottom",class:"origin-bottom-left bottom-0 left-full ml-2"},{direction:"right",alignment:"left",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"right",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"}],defaultVariants:{direction:"down",alignment:"right"}}),ea=({icon:t,mainText:r,subText:n,formatText:o,acceptableFormats:s,disable:a,multiItem:i,onChange:l})=>e.jsx("div",{className:Jt("relative w-full py-4 px-6 flex justify-center items-center gap-1 rounded-xl border border-rborder-secondary bg-rbg-primary ",a&&"bg-rbg-disabled-subtle",!a&&"hover:border-rborder-brand focus:border-rborder-brand focus-within:border-rborder-brand"),children:e.jsxs("div",{className:"text-center flex flex-col justify-center items-center gap-2",children:[t??e.jsx(Rs,{variant:"secondaryGray","aria-hidden":"true",disabled:a,children:e.jsx(Ae,{"data-testid":"default-uploadcloud"})}),e.jsxs("div",{className:"flex flex-col justify-center items-center gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("label",{htmlFor:"file-upload",className:Jt(" cursor-pointer rounded-md text-rbutton-tertiary-color-fg font-normal text-sm",a&&"text-rbg-disabled-subtle"),children:[e.jsx("span",{className:Jt(a&&"text-rfg-disabled"),children:r}),e.jsx("input",{id:"file-upload",name:"file-upload","data-testid":"file-input",type:"file",className:"absolute overflow-hidden top-0 left-0 w-full h-full opacity-0 cursor-pointer",disabled:a,multiple:i,accept:s?Array.isArray(s)?s.map(e=>e.startsWith(".")?e:`.${e}`).join(", "):s:void 0,onChange:l})]}),e.jsx("p",{className:"text-rtext-tertiary-600 text-sm",children:n})]}),e.jsx("p",{className:"text-xs text-rtext-tertiary-600 font-normal",children:o})]})]})});var ta="Progress",ra=100,[na]=a(ta),[oa,sa]=na(ta),aa=o.forwardRef((t,r)=>{const{__scopeProgress:n,value:o=null,max:s,getValueLabel:a=da,...i}=t;!s&&0!==s||ma(s)||console.error(`Invalid prop \`max\` of value \`${`${s}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const l=ma(s)?s:ra;null===o||fa(o,l)||console.error(function(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${o}`,"Progress"));const d=fa(o,l)?o:null,c=ua(d)?a(d,l):void 0;return e.jsx(oa,{scope:n,value:d,max:l,children:e.jsx(w.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":ua(d)?d:void 0,"aria-valuetext":c,role:"progressbar","data-state":ca(d,l),"data-value":d??void 0,"data-max":l,...i,ref:r})})});aa.displayName=ta;var ia="ProgressIndicator",la=o.forwardRef((t,r)=>{const{__scopeProgress:n,...o}=t,s=sa(ia,n);return e.jsx(w.div,{"data-state":ca(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...o,ref:r})});function da(e,t){return`${Math.round(e/t*100)}%`}function ca(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function ua(e){return"number"==typeof e}function ma(e){return ua(e)&&!isNaN(e)&&e>0}function fa(e,t){return ua(e)&&!isNaN(e)&&e<=t&&e>=0}la.displayName=ia;var pa=aa,ha=la;const xa={xxs:"w-[64px] h-[64px]",xs:"w-[160px] h-[160px]",sm:"w-[200px] h-[200px]",md:"w-[240px] h-[240px]",lg:"w-[280px] h-[280px]"},ga={xxs:64,xs:160,sm:200,md:240,lg:280},ba=o.forwardRef(({type:t="line",value:r=0,label:n,labelClassName:o,backgroundVariant:s,indicatorVariant:a,className:i,size:l="md",strokeWidth:d=16,svgClassName:c,...u},m)=>{const f=Math.min(Math.max(r??0,0),100),p=ga[l]||240,h=(p-d)/2;if("half-circle"===t){const t=Math.PI*h,r=t-f/100*t;return e.jsxs("div",{className:Jt("relative flex items-center justify-center",xa[l],i),ref:m,...u,children:[e.jsxs("svg",{width:p,height:p/2,className:Jt("rotate-[-90deg]",c),children:[e.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:d,r:h,cx:p/2,cy:p/2}),e.jsx("circle",{fill:"transparent",strokeWidth:d,strokeLinecap:"round",strokeDasharray:t,strokeDashoffset:t-r,r:h,cx:p/2,cy:p/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:a})]}),void 0!==n&&e.jsxs("span",{className:Jt("absolute text-sm font-semibold text-muted-foreground",o),children:[n,"%"]})]})}if("circle"===t){const t=2*Math.PI*h,r=t-f/100*t;return e.jsxs("div",{className:Jt("relative flex items-center justify-center",xa[l],i),ref:m,...u,children:[e.jsxs("svg",{width:p,height:p,className:Jt("rotate-[-90deg]",c),children:[e.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:d,r:h,cx:p/2,cy:p/2}),e.jsx("circle",{fill:"transparent",strokeWidth:d,strokeLinecap:"round",strokeDasharray:t,strokeDashoffset:r,r:h,cx:p/2,cy:p/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:a})]}),void 0!==n&&e.jsxs("span",{className:Jt("absolute text-sm font-semibold text-muted-foreground",o),children:[n,"%"]})]})}return e.jsxs("div",{className:"flex items-center gap-4 w-full",children:[e.jsx(pa,{ref:m,className:Jt("relative h-4 w-full overflow-hidden rounded-full bg-muted",s,i),...u,children:e.jsx(ha,{className:Jt("h-full transition-transform duration-300",a),style:{transform:`translateX(-${100-r}%)`}})}),"number"==typeof n&&e.jsxs("span",{className:Jt("text-sm text-muted-foreground min-w-[40px] text-right",o),children:[n,"%"]})]})});ba.displayName="Progress";const ya=({width:t=40,height:r=40})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:r,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M11.6667 1.89118V5.33329C11.6667 5.8 11.6667 6.03336 11.7575 6.21162C11.8374 6.36842 11.9649 6.4959 12.1217 6.5758C12.3 6.66663 12.5333 6.66663 13 6.66663H16.4422M16.6667 8.32348V14.3333C16.6667 15.7334 16.6667 16.4335 16.3942 16.9683C16.1545 17.4387 15.7721 17.8211 15.3017 18.0608C14.7669 18.3333 14.0668 18.3333 12.6667 18.3333H7.33337C5.93324 18.3333 5.23318 18.3333 4.6984 18.0608C4.22799 17.8211 3.84554 17.4387 3.60586 16.9683C3.33337 16.4335 3.33337 15.7334 3.33337 14.3333V5.66663C3.33337 4.26649 3.33337 3.56643 3.60586 3.03165C3.84554 2.56124 4.22799 2.17879 4.6984 1.93911C5.23318 1.66663 5.93324 1.66663 7.33337 1.66663H10.0099C10.6213 1.66663 10.9271 1.66663 11.2148 1.7357C11.4699 1.79694 11.7137 1.89795 11.9374 2.03503C12.1897 2.18963 12.4059 2.40582 12.8383 2.8382L15.4951 5.49505C15.9275 5.92743 16.1437 6.14362 16.2983 6.39591C16.4354 6.61959 16.5364 6.86346 16.5976 7.11855C16.6667 7.40627 16.6667 7.712 16.6667 8.32348Z",stroke:"#98A2B3",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),va=({item:t,loadType:r,onDelete:n})=>e.jsxs("div",{className:Jt("p-4 flex gap-3 w-full rounded-xl border border-rborder-secondary bg-rbg-primary","failed"==t?.status&&"border-rborder-error"),children:[e.jsx("div",{className:" flex justify-start items-start w-10 h-10",children:t?.icon??e.jsx(ya,{width:20,height:20,"data-testid":"fallback-icon"})}),e.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("div",{className:"flex flex-col w-1/2",children:[e.jsx("span",{className:"font-medium text-rtext-secondary-700 overflow-hidden text-ellipsis text-sm",children:t?.title}),e.jsx("span",{className:"text-rtext-tertiary-600 font-normal text-sm overflow-hidden text-ellipsis",children:t?.size})]}),e.jsx(Rs,{className:Jt("self-centertext-rbutton-tertiary-fg","failed"==t?.status&&"text-rbutton-secondary-error-fg"),onClick:()=>{n(t?.id)},variant:"linkGray",children:e.jsx(Ve,{width:20,height:20})})]}),"progressBar"==r&&e.jsx(ba,{type:"line",value:t?.progressValue,label:t?.percentage,size:"lg",indicatorVariant:"bg-rfg-brand-primary-600",backgroundVariant:"bg-rbg-quaternary",dir:"rtl",className:"h-2",labelClassName:"text-end"})]})]}),wa=(e,t,r)=>Math.min(Math.max(e,t),r),ja={x:0,y:0};const ka={sm:"text-xs ps-2 pe-2",md:"text-sm ps-5 pe-5",lg:"text-base ps-8 pe-8",xl:"text-base ps-11 pe-11"},Na=ws("rounded-md px-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled",{variants:{size:{sm:"h-9.5 py-2.5",md:"h-10.5 pt-3 pb-3"},inputType:{default:"pe-8",iconLeading:"ps-10",leadingDropdown:"pe-8",trailingDropdown:"pe-8 ps-6",leadingText:"pe-8 ps-20",trailingButton:"pe-8",shaba:"pe-12"}},defaultVariants:{size:"sm",inputType:"default"}}),Ca=({id:t,label:r,required:n,labelClass:o,labelStarClass:s})=>e.jsxs("label",{htmlFor:t,className:Zt("text-sm font-medium text-rtext-secondary-700",o),children:[r,n&&e.jsx("span",{className:Zt("dv-required-label text-rtext-brand-tertiary-600 mx-1",s),children:"*"})]}),za=t.memo(({stroke:t="#98A2B3",fill:r="none",width:n="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:o,viewBox:"0 0 16 16",fill:r,children:e.jsx("path",{d:"M6.05998 5.99998C6.21672 5.55442 6.52608 5.17872 6.93328 4.9394C7.34048 4.70009 7.81924 4.61261 8.28476 4.69245C8.75028 4.7723 9.17252 5.01433 9.4767 5.37567C9.78087 5.737 9.94735 6.19433 9.94665 6.66665C9.94665 7.99998 7.94665 8.66665 7.94665 8.66665M7.99998 11.3333H8.00665M14.6666 7.99998C14.6666 11.6819 11.6819 14.6666 7.99998 14.6666C4.31808 14.6666 1.33331 11.6819 1.33331 7.99998C1.33331 4.31808 4.31808 1.33331 7.99998 1.33331C11.6819 1.33331 14.6666 4.31808 14.6666 7.99998Z",stroke:t,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})),Pa=(e,r)=>{t.useEffect(()=>{const t=t=>{e.current&&!e.current.contains(t.target)&&r()};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e,r])},Sa=({config:r,isLoading:n=!1,disabled:o=!1,className:s,tooltipClass:a,tooltipTitle:i,selectedValueLabel:l,onChange:d,options:c,buttonClass:u,contentClass:m,labelClass:f,labelStarClass:p})=>{const{label:h,name:x,errorText:g,hintText:b,isRequiredInput:y=!1,canSelectZero:v=!1}=r||{},[w,j]=t.useState(!1),[k,N]=t.useState(-50),[C,z]=t.useState(!1),[P,S]=t.useState(5),E=t.useRef(null);Pa(E,()=>z(!1));const R=t.useRef(null);return t.useEffect(()=>{w&&(()=>{if(R.current){const e=R.current.offsetHeight;N(-e+window.scrollY+40)}})()},[w]),Pa(R,()=>j(!1)),e.jsxs("div",{className:Zt("relative flex w-full flex-col gap-1",s),children:[h&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ca,{labelClass:f,labelStarClass:p,id:x,label:h,required:y}),i&&e.jsx("button",{type:"button",onClick:i?()=>j(e=>!e):()=>{},className:"flex-center h-4 w-4 rounded-full bg-blue-400 text-xs text-white",children:"i"})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{type:"button",className:Zt("flex items-center justify-between w-full bg-white border border-rborder-primary rounded-md px-2 shadow-xs text-sm text-dark/80 focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-500 px-4 py-2 text-left",u),onClick:()=>z(e=>!e),disabled:n||o,children:[l,C?e.jsx(Te,{className:"h-4 w-4 opacity-50"}):e.jsx(Se,{className:"h-4 w-4 opacity-50"})]}),C&&e.jsx("div",{ref:E,className:Zt("absolute left-0 mt-1 w-full rounded-md bg-gray-50 shadow-lg border border-rborder-primary z-50",m),children:e.jsxs("ul",{className:"max-h-48 overflow-auto p-2 text-sm text-start",onScroll:e=>{const{scrollTop:t,scrollHeight:r,clientHeight:n}=e.currentTarget;t+n>=r-10&&S(e=>Math.min(e+5,c?.length))},style:{maxHeight:"150px"},children:[!v&&e.jsx("li",{children:e.jsx("button",{type:"button",className:"w-full p-2 text-start text-gray-500 cursor-not-allowed",onClick:()=>z(!1),children:"-"})}),c?.slice(0,P)?.map(t=>e.jsx("li",{children:e.jsx("button",{type:"button",className:"w-full p-2 text-start cursor-pointer hover:bg-gray-100",onClick:()=>{return e=t.value,d({name:x,value:e}),void z(!1);var e},children:t.title})},t.value))]})})]}),i&&w&&e.jsx("div",{ref:R,className:Zt("absolute left-1/2 z-10 max-h-[200px] w-72 -translate-x-1/2 -translate-y-11 transform overflow-auto rounded bg-gray-500 p-3 text-start text-xs text-white shadow-md transition-all duration-200",a),style:{top:`${k}px`},dangerouslySetInnerHTML:{__html:i}}),!g&&b&&e.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:b}),g&&e.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:g})]})},Ea=ws("w-full flex flex-col py-2.5 px-3.5 gap-2",{variants:{sender:{admin:"",user:""},variant:{primary:"bg-rbg-brand-solid text-rtext-white text-md font-normal",gray:"bg-rbg-secondary border border-rborder-secondary text-rtext-primary-900 text-md font-normal",white:"bg-rbg-primary border border-rborder-secondary"},direction:{ltr:"",rtl:""}},compoundVariants:[{sender:"admin",direction:"ltr",class:"rounded-tl-md rounded-tr-none rounded-br-md rounded-bl-md "},{sender:"user",direction:"ltr",class:"rounded-tl-none rounded-tr-md rounded-br-md rounded-bl-md"},{sender:"admin",direction:"rtl",class:" rounded-tl-md rounded-tr-none rounded-br-md rounded-bl-md"},{sender:"user",direction:"rtl",class:"rounded-tl-none rounded-tr-md rounded-br-md rounded-bl-md"}],defaultVariants:{variant:"primary",direction:"rtl"}}),Ra=ws("",{variants:{direction:{ltr:"",rtl:""},sender:{admin:"",user:""}},compoundVariants:[{sender:"admin",direction:"ltr",class:"flex-row-reverse"},{sender:"admin",direction:"rtl",class:"flex-row"},{sender:"user",direction:"ltr",class:"flex-row"},{sender:"user",direction:"rtl",class:"flex-row-reverse"}],defaultVariants:{direction:"ltr",sender:"user"}});function Ta({className:t,...r}){return e.jsx("div",{"data-slot":"card",className:Jt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...r})}function La({className:t,...r}){return e.jsx("div",{"data-slot":"card-header",className:Jt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function Ma({className:t,...r}){return e.jsx("div",{"data-slot":"card-action",className:Jt("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...r})}const Da={success:"w-12 h-12 flex items-center justify-center rounded-full bg-rbg-success-secondary",notification:"w-12 h-12 flex items-center justify-center rounded-full bg-rbg-brand-secondary",secondary:"w-12 h-12 flex items-center justify-center rounded-lg bg-rbg-primary border border-gray-light-200 shadow-xs-skeuomorphic"},Ia={normal:"font-medium text-sm text-rtext-tertiary-600",bold:"text-rtext-primary-900 font-normal text-md"},Aa=ws("modal-container fixed left-1/2 right-auto flex max-h-[80dvh] w-4/5 cursor-default flex-col rounded bg-white text-center",{variants:{size:{sm:"max-w-rsm",md:"max-w-rmd",lg:"max-w-rlg"},overflow:{hidden:"overflow-hidden",auto:"overflow-auto"},position:{center:"top-1/2 -translate-y-1/2 animate-slide-in-center",bottom:"bottom-0 animate-slide-in-bottom"}},defaultVariants:{size:"md"}});let _a=0;const Oa=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M15.8334 9.99996H4.16675M4.16675 9.99996L10.0001 15.8333M4.16675 9.99996L10.0001 4.16663",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})),$a=t.memo(()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M4.16675 10H15.8334M15.8334 10L10.0001 4.16669M15.8334 10L10.0001 15.8334",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})),Fa=t.forwardRef(({className:t,...r},n)=>e.jsx("ul",{ref:n,className:Jt("flex flex-row items-center cursor-pointer",t),...r}));Fa.displayName="PaginationContent";const Va=t.forwardRef(({className:t,...r},n)=>e.jsx("li",{ref:n,className:Jt("flex items-center ",t),...r}));Va.displayName="PaginationItem";const Ba=({className:t,isActive:r,activeClassName:n,disabled:o,...s})=>{const a=r?n||"rounded-md border bg-[#F9FAFB] text-[#182230] border-[#F9FAFB]":"",i=o?"pointer-events-none opacity-50":"";return e.jsx("a",{"aria-current":r?"page":void 0,className:Jt("cursor-pointer inline-flex items-center gap-1.5 px-4 py-1.5 justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",r?"border border-primary text-primary":"hover:bg-accent hover:text-accent-foreground",a,i,t),...s,"aria-disabled":o,onClick:e=>{o?e.preventDefault():s.onClick?.(e)}})},Wa=({currentPage:t,totalPages:r,onPageChange:n,dir:o="rtl",labels:s,previousClassName:a,nextClassName:i,className:l,prevIcon:d,nextIcon:c,...u})=>{const m="rtl"===o;return e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Jt("",l),...u,children:e.jsxs(Fa,{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex",children:[e.jsx(Va,{className:"md:block hidden",children:e.jsx(Ba,{size:"default","aria-label":"Go to first page",disabled:1===t,onClick:()=>n?.(1),children:s?.first})}),e.jsx(Va,{children:e.jsxs(Ba,{"aria-label":"Go to previous page",size:"default",className:Jt("gap-1",a),onClick:()=>n?.(t-1),disabled:1===t,children:[e.jsx("div",{className:"md:block hidden",children:s?.prev||"قبلی"}),e.jsx("div",{className:"md:hidden block",children:m?d||e.jsx($a,{}):c||e.jsx(Oa,{})})]})})]}),e.jsxs("span",{className:"text-sm font-medium",children:[s?.page," ",t," ",s?.of," ",r]}),e.jsxs("div",{className:"flex",children:[e.jsx(Va,{children:e.jsxs(Ba,{"aria-label":"Go to next page",size:"default",className:Jt("gap-1",i),onClick:()=>n?.(t+1),disabled:t===r,children:[e.jsx("span",{className:"md:block hidden",children:s?.next||"بعدی"}),e.jsx("div",{className:"md:hidden block",children:m?d||e.jsx(Oa,{}):c||e.jsx($a,{})})]})}),e.jsx(Va,{className:"md:block hidden",children:e.jsx(Ba,{size:"default","aria-label":"Go to last page",disabled:t===r,onClick:()=>n?.(r),children:s?.last})})]})]})})},Ha=({currentPage:t,totalPages:r,onPageChange:n,dir:o="rtl",labels:s,previousClassName:a,nextClassName:i,className:l,...d})=>{const c="rtl"===o;return e.jsxs("nav",{role:"navigation","aria-label":"pagination",className:Jt("flex w-full items-center justify-between text-sm text-muted-foreground",l),...d,children:[e.jsxs("span",{children:[s?.page," ",t," ",s?.of," ",r]}),e.jsxs(Fa,{className:"flex items-center gap-2",children:[e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(1),disabled:1===t||r<2,children:e.jsx("span",{children:s?.first})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to previous page",size:"default",className:Jt("gap-1",a),onClick:()=>n?.(c?t+1:t-1),disabled:c?t===r:1===t,children:e.jsx("span",{children:c?s?.next:s?.prev})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to next page",size:"default",className:Jt("gap-1",i),onClick:()=>n?.(c?t-1:t+1),disabled:c?1===t:t===r,children:e.jsx("span",{children:c?s?.prev:s?.next})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(r),disabled:t===r,children:e.jsx("span",{children:s?.last})})})]})]})},Ga=({currentPage:t,totalPages:r,onPageChange:n,labels:o,previousClassName:s,className:a,activeClassName:i,nextClassName:l,dir:d="rtl",prevIcon:c,nextIcon:u,firstIcon:m,lastIcon:f,showFirstLast:p=!0,hasText:h=!0})=>{const x=((e,t,r)=>{const n=[],o="rtl"===r;if(t<=6)for(let e=1;e<=t;e++)n.push(e);else if(e>3)if(e<t-2)n.push(1,"...",e-1,e,e+1,"...",t);else{n.push(1,2,3,"...");for(let e=t-2;e<=t;e++)n.push(e)}else{for(let e=1;e<=3;e++)n.push(e);n.push("...",t-2,t-1,t)}return o?[...n].reverse():n})(t,r,d),g="rtl"===d,b=g?[...x].reverse():x;return e.jsxs("nav",{role:"navigation","aria-label":"pagination",className:Jt("mx-auto flex w-full justify-center","rtl"===d?"rtl":"ltr",a),children:[e.jsxs("div",{className:Jt("flex gap-2",g?"ml-auto":"mr-auto"),children:[p&&e.jsxs(Ba,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(1),disabled:1===t,children:[g?m||e.jsx(Me,{}):f||e.jsx(Le,{}),h&&e.jsx("span",{children:o?.first})]}),e.jsxs(Ba,{"aria-label":"Go to previous page",size:"default",className:Jt("flex items-center",s),onClick:()=>n?.(t-1),disabled:1===t,children:[g?u||e.jsx(Re,{}):c||e.jsx(Ee,{}),h&&e.jsx("span",{children:o?.prev})]})]}),e.jsx(Fa,{children:b.map((r,o)=>e.jsx(Va,{children:"..."===r?e.jsx("span",{className:"px-2",children:"..."}):e.jsx(Ba,{isActive:r===t,onClick:()=>n?.(Number(r)),activeClassName:Zt(i,"rounded-md"),children:r})},o))}),e.jsxs("div",{className:Jt("flex gap-2",g?"mr-auto":"ml-auto"),children:[e.jsxs(Ba,{"aria-label":"Go to next page",size:"default",className:Jt("flex items-center",l),onClick:()=>n?.(t+1),disabled:t===r,children:[h&&e.jsx("span",{children:o?.next}),g?c||e.jsx(Ee,{}):u||e.jsx(Re,{})]}),p&&e.jsxs(Ba,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(r),disabled:t===r,children:[h&&e.jsx("span",{children:o?.last}),g?f||e.jsx(Le,{}):m||e.jsx(Me,{})]})]})]})},qa=({currentPage:t,totalPages:r,onPageChange:n,dir:o="rtl",labels:s,renderPageNumbers:a,justifyClassName:i,prevIcon:l,nextIcon:d,hasText:c})=>{const u="rtl"===o;return e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Jt("w-full flex",i),children:e.jsxs(Fa,{className:"border border-gray-200 rounded-md",children:[e.jsx(Va,{children:e.jsx(Ba,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>n?.(t-1),disabled:1===t,children:e.jsx("div",{className:"flex items-center gap-1",children:u?e.jsxs(e.Fragment,{children:[l||e.jsx(Re,{size:16}),c&&e.jsx("span",{className:"hidden md:block",children:s?.prev})]}):e.jsxs(e.Fragment,{children:[d||e.jsx(Ee,{size:16}),c&&e.jsx("span",{className:"hidden md:block",children:s?.prev})]})})})}),a(),e.jsx(Va,{children:e.jsx(Ba,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>n?.(t+1),disabled:t===r,children:e.jsx("div",{className:"flex items-center gap-1",children:u?e.jsxs(e.Fragment,{children:[c&&e.jsx("span",{className:"hidden md:block",children:s?.next}),d||e.jsx(Ee,{size:16})]}):e.jsxs(e.Fragment,{children:[c&&e.jsx("span",{className:"hidden md:block",children:s?.next}),l||e.jsx(Re,{size:16})]})})})})]})})},Ka=({currentPage:t,totalPages:r,onPageChange:n,dir:o="rtl",labels:s,previousClassName:a,nextClassName:i,className:l,...d})=>{const c="rtl"===o;return e.jsxs("nav",{role:"navigation","aria-label":"pagination",className:Jt("flex w-full items-center justify-between text-sm text-muted-foreground",l),...d,children:[e.jsxs(Fa,{className:"flex gap-2 items-center",children:[e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(1),disabled:1===t,children:e.jsx("span",{children:s?.first})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to previous page",size:"default",className:Jt("gap-1",a),onClick:()=>n?.(c?t+1:t-1),disabled:c?t===r:1===t,children:e.jsx("span",{children:c?s?.next:s?.prev})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to next page",size:"default",className:Jt("gap-1",i),onClick:()=>n?.(c?t-1:t+1),disabled:c?1===t:t===r,children:e.jsx("span",{children:c?s?.prev:s?.next})})}),e.jsx(Va,{children:e.jsx(Ba,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>n?.(r),disabled:t===r,children:e.jsx("span",{children:s?.last})})})]}),e.jsxs("span",{children:[s?.page," ",t," ",s?.of," ",r]})]})};function Ua(e,[t,r]){return Math.min(r,Math.max(t,e))}function Xa(e){const t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ya=["PageUp","PageDown"],Za=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ja={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Qa="Slider",[ei,ti,ri]=x(Qa),[ni]=a(Qa,[ri]),[oi,si]=ni(Qa),ai=o.forwardRef((t,r)=>{const{name:n,min:s=0,max:a=100,step:i=1,orientation:l="horizontal",disabled:d=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[s],value:m,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:h=!1,form:x,...b}=t,y=o.useRef(new Set),w=o.useRef(0),j="horizontal"===l?di:ci,[k=[],N]=v({prop:m,defaultProp:u,onChange:e=>{const t=[...y.current];t[w.current]?.focus(),f(e)}}),C=o.useRef(k);function z(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(i),o=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-s)/i)*i+s,n),l=Ua(o,[s,a]);N((e=[])=>{const n=function(e=[],t,r){const n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,l,t);if(function(e,t){if(t>0){const r=function(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}(e);return Math.min(...r)>=t}return!0}(n,c*i)){w.current=n.indexOf(l);const t=String(n)!==String(e);return t&&r&&p(n),t?n:e}return e})}return e.jsx(oi,{scope:t.__scopeSlider,name:n,disabled:d,min:s,max:a,valueIndexToChangeRef:w,thumbs:y.current,values:k,orientation:l,form:x,children:e.jsx(ei.Provider,{scope:t.__scopeSlider,children:e.jsx(ei.Slot,{scope:t.__scopeSlider,children:e.jsx(j,{"aria-disabled":d,"data-disabled":d?"":void 0,...b,ref:r,onPointerDown:g(b.onPointerDown,()=>{d||(C.current=k)}),min:s,max:a,inverted:h,onSlideStart:d?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(k,e);z(e,t)},onSlideMove:d?void 0:function(e){z(e,w.current)},onSlideEnd:d?void 0:function(){const e=C.current[w.current];k[w.current]!==e&&p(k)},onHomeKeyDown:()=>!d&&z(s,0,{commit:!0}),onEndKeyDown:()=>!d&&z(a,k.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!d){const r=Ya.includes(e.key)||e.shiftKey&&Za.includes(e.key)?10:1,n=w.current;z(k[n]+i*r*t,n,{commit:!0})}}})})})})});ai.displayName=Qa;var[ii,li]=ni(Qa,{startEdge:"left",endEdge:"right",size:"width",direction:1}),di=o.forwardRef((t,r)=>{const{min:n,max:s,dir:a,inverted:i,onSlideStart:l,onSlideMove:d,onSlideEnd:u,onStepKeyDown:m,...f}=t,[p,h]=o.useState(null),x=c(r,e=>h(e)),g=o.useRef(void 0),b=W(a),y="ltr"===b,v=y&&!i||!y&&i;function w(e){const t=g.current||p.getBoundingClientRect(),r=wi([0,t.width],v?[n,s]:[s,n]);return g.current=t,r(e-t.left)}return e.jsx(ii,{scope:t.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:e.jsx(ui,{dir:b,"data-orientation":"horizontal",...f,ref:x,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=w(e.clientX);l?.(t)},onSlideMove:e=>{const t=w(e.clientX);d?.(t)},onSlideEnd:()=>{g.current=void 0,u?.()},onStepKeyDown:e=>{const t=Ja[v?"from-left":"from-right"].includes(e.key);m?.({event:e,direction:t?-1:1})}})})}),ci=o.forwardRef((t,r)=>{const{min:n,max:s,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:d,onStepKeyDown:u,...m}=t,f=o.useRef(null),p=c(r,f),h=o.useRef(void 0),x=!a;function g(e){const t=h.current||f.current.getBoundingClientRect(),r=wi([0,t.height],x?[s,n]:[n,s]);return h.current=t,r(e-t.top)}return e.jsx(ii,{scope:t.__scopeSlider,startEdge:x?"bottom":"top",endEdge:x?"top":"bottom",size:"height",direction:x?1:-1,children:e.jsx(ui,{"data-orientation":"vertical",...m,ref:p,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=g(e.clientY);i?.(t)},onSlideMove:e=>{const t=g(e.clientY);l?.(t)},onSlideEnd:()=>{h.current=void 0,d?.()},onStepKeyDown:e=>{const t=Ja[x?"from-bottom":"from-top"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})}),ui=o.forwardRef((t,r)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:s,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:d,...c}=t,u=si(Qa,n);return e.jsx(w.span,{...c,ref:r,onKeyDown:g(t.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):Ya.concat(Za).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:g(t.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():o(e)}),onPointerMove:g(t.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&s(e)}),onPointerUp:g(t.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),mi="SliderTrack",fi=o.forwardRef((t,r)=>{const{__scopeSlider:n,...o}=t,s=si(mi,n);return e.jsx(w.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...o,ref:r})});fi.displayName=mi;var pi="SliderRange",hi=o.forwardRef((t,r)=>{const{__scopeSlider:n,...s}=t,a=si(pi,n),i=li(pi,n),l=c(r,o.useRef(null)),d=a.values.length,u=a.values.map(e=>vi(e,a.min,a.max)),m=d>1?Math.min(...u):0,f=100-Math.max(...u);return e.jsx(w.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...s,ref:l,style:{...t.style,[i.startEdge]:m+"%",[i.endEdge]:f+"%"}})});hi.displayName=pi;var xi="SliderThumb",gi=o.forwardRef((t,r)=>{const n=ti(t.__scopeSlider),[s,a]=o.useState(null),i=c(r,e=>a(e)),l=o.useMemo(()=>s?n().findIndex(e=>e.ref.current===s):-1,[n,s]);return e.jsx(bi,{...t,ref:i,index:l})}),bi=o.forwardRef((t,r)=>{const{__scopeSlider:n,index:s,name:a,...i}=t,l=si(xi,n),d=li(xi,n),[u,m]=o.useState(null),f=c(r,e=>m(e)),p=!u||(l.form||!!u.closest("form")),h=co(u),x=l.values[s],b=void 0===x?0:vi(x,l.min,l.max),y=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(s,l.values.length),v=h?.[d.size],j=v?function(e,t,r){const n=e/2,o=wi([0,50],[0,n]);return(n-o(t)*r)*r}(v,b,d.direction):0;return o.useEffect(()=>{if(u)return l.thumbs.add(u),()=>{l.thumbs.delete(u)}},[u,l.thumbs]),e.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${b}% + ${j}px)`},children:[e.jsx(ei.ItemSlot,{scope:t.__scopeSlider,children:e.jsx(w.span,{role:"slider","aria-label":t["aria-label"]||y,"aria-valuemin":l.min,"aria-valuenow":x,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:f,style:void 0===x?{display:"none"}:t.style,onFocus:g(t.onFocus,()=>{l.valueIndexToChangeRef.current=s})})}),p&&e.jsx(yi,{name:a??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:x},s)]})});gi.displayName=xi;var yi=o.forwardRef(({__scopeSlider:t,value:r,...n},s)=>{const a=o.useRef(null),i=c(a,s),l=Xa(r);return o.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(l!==r&&n){const t=new Event("input",{bubbles:!0});n.call(e,r),e.dispatchEvent(t)}},[l,r]),e.jsx(w.input,{style:{display:"none"},...n,ref:i,defaultValue:r})});function vi(e,t,r){return Ua(100/(r-t)*(e-t),[0,100])}function wi(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}yi.displayName="RadioBubbleInput";var ji=ai,ki=fi,Ni=hi,Ci=gi;var zi="Switch",[Pi]=a(zi),[Si,Ei]=Pi(zi),Ri=o.forwardRef((t,r)=>{const{__scopeSwitch:n,name:s,checked:a,defaultChecked:i,required:l,disabled:d,value:u="on",onCheckedChange:m,form:f,...p}=t,[h,x]=o.useState(null),b=c(r,e=>x(e)),y=o.useRef(!1),j=!h||(f||!!h.closest("form")),[k,N]=v({prop:a,defaultProp:i??!1,onChange:m,caller:zi});return e.jsxs(Si,{scope:n,checked:k,disabled:d,children:[e.jsx(w.button,{type:"button",role:"switch","aria-checked":k,"aria-required":l,"data-state":Di(k),"data-disabled":d?"":void 0,disabled:d,value:u,...p,ref:b,onClick:g(t.onClick,e=>{N(e=>!e),j&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),j&&e.jsx(Mi,{control:h,bubbles:!y.current,name:s,value:u,checked:k,required:l,disabled:d,form:f,style:{transform:"translateX(-100%)"}})]})});Ri.displayName=zi;var Ti="SwitchThumb",Li=o.forwardRef((t,r)=>{const{__scopeSwitch:n,...o}=t,s=Ei(Ti,n);return e.jsx(w.span,{"data-state":Di(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:r})});Li.displayName=Ti;var Mi=o.forwardRef(({__scopeSwitch:t,control:r,checked:n,bubbles:s=!0,...a},i)=>{const l=o.useRef(null),d=c(l,i),u=Xa(n),m=co(r);return o.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==n&&r){const t=new Event("click",{bubbles:s});r.call(e,n),e.dispatchEvent(t)}},[u,n,s]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:d,style:{...a.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Di(e){return e?"checked":"unchecked"}Mi.displayName="SwitchBubbleInput";var Ii=Ri,Ai=Li;function _i({label:t,labelClassName:r,handleClick:n,description:o,descriptionClassName:s}){return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx(Rs,{type:"button",variant:"linkGray",className:Jt("text-sm",r),onClick:n,children:t}),o&&e.jsx("span",{className:Jt("text-xs text-gray-500",s),children:o})]})}const Oi=o.forwardRef(({className:t,thumbClassName:r,label:n,labelClassName:s,descriptionClassName:a,description:i,onToggle:l,...d},c)=>{const[u,m]=o.useState(!1),f=()=>{m(e=>!e),l()};return e.jsxs("div",{className:Jt("flex gap-1",i?"items-start":"items-center"),children:[e.jsx(Ii,{ref:c,className:Jt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-start rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-brand-600 data-[state=unchecked]:bg-gray-light-100",t,i?"mt-0.5":"mt-0"),onCheckedChange:f,checked:u,...d,children:e.jsx(Ai,{className:Jt("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:-translate-x-5 data-[state=checked]:ltr:translate-x-5 data-[state=unchecked]:-translate-x-0",r)})}),e.jsx(_i,{label:n,labelClassName:s,handleClick:f,description:i,descriptionClassName:a})]})});Oi.displayName="Switch";var $i="rovingFocusGroup.onEntryFocus",Fi={bubbles:!1,cancelable:!0},Vi="RovingFocusGroup",[Bi,Wi,Hi]=x(Vi),[Gi,qi]=a(Vi,[Hi]),[Ki,Ui]=Gi(Vi),Xi=o.forwardRef((t,r)=>e.jsx(Bi.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Bi.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Yi,{...t,ref:r})})}));Xi.displayName=Vi;var Yi=o.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:n,orientation:s,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:u,onEntryFocus:m,preventScrollOnEntryFocus:f=!1,...p}=t,h=o.useRef(null),x=c(r,h),b=W(i),[y,j]=v({prop:l,defaultProp:d??null,onChange:u,caller:Vi}),[k,N]=o.useState(!1),C=dr(m),z=Wi(n),P=o.useRef(!1),[S,E]=o.useState(0);return o.useEffect(()=>{const e=h.current;if(e)return e.addEventListener($i,C),()=>e.removeEventListener($i,C)},[C]),e.jsx(Ki,{scope:n,orientation:s,dir:b,loop:a,currentTabStopId:y,onItemFocus:o.useCallback(e=>j(e),[j]),onItemShiftTab:o.useCallback(()=>N(!0),[]),onFocusableItemAdd:o.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>E(e=>e-1),[]),children:e.jsx(w.div,{tabIndex:k||0===S?-1:0,"data-orientation":s,...p,ref:x,style:{outline:"none",...t.style},onMouseDown:g(t.onMouseDown,()=>{P.current=!0}),onFocus:g(t.onFocus,e=>{const t=!P.current;if(e.target===e.currentTarget&&t&&!k){const t=new CustomEvent($i,Fi);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=z().filter(e=>e.focusable);el([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),f)}}P.current=!1}),onBlur:g(t.onBlur,()=>N(!1))})})}),Zi="RovingFocusGroupItem",Ji=o.forwardRef((t,r)=>{const{__scopeRovingFocusGroup:n,focusable:s=!0,active:a=!1,tabStopId:i,children:l,...d}=t,c=z(),u=i||c,m=Ui(Zi,n),f=m.currentTabStopId===u,p=Wi(n),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:b}=m;return o.useEffect(()=>{if(s)return h(),()=>x()},[s,h,x]),e.jsx(Bi.ItemSlot,{scope:n,id:u,focusable:s,active:a,children:e.jsx(w.span,{tabIndex:f?0:-1,"data-orientation":m.orientation,...d,ref:r,onMouseDown:g(t.onMouseDown,e=>{s?m.onItemFocus(u):e.preventDefault()}),onFocus:g(t.onFocus,()=>m.onItemFocus(u)),onKeyDown:g(t.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:Qi[n]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const s=o.indexOf(e.currentTarget);o=m.loop?(n=s+1,(r=o).map((e,t)=>r[(n+t)%r.length])):o.slice(s+1)}setTimeout(()=>el(o))}var r,n}),children:"function"==typeof l?l({isCurrentTabStop:f,hasTabStop:null!=b}):l})})});Ji.displayName=Zi;var Qi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function el(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var tl=Xi,rl=Ji,nl="Tabs",[ol]=a(nl,[qi]),sl=qi(),[al,il]=ol(nl),ll=o.forwardRef((t,r)=>{const{__scopeTabs:n,value:o,onValueChange:s,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:d="automatic",...c}=t,u=W(l),[m,f]=v({prop:o,onChange:s,defaultProp:a??"",caller:nl});return e.jsx(al,{scope:n,baseId:z(),value:m,onValueChange:f,orientation:i,dir:u,activationMode:d,children:e.jsx(w.div,{dir:u,"data-orientation":i,...c,ref:r})})});ll.displayName=nl;var dl="TabsList",cl=o.forwardRef((t,r)=>{const{__scopeTabs:n,loop:o=!0,...s}=t,a=il(dl,n),i=sl(n);return e.jsx(tl,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:o,children:e.jsx(w.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:r})})});cl.displayName=dl;var ul="TabsTrigger",ml=o.forwardRef((t,r)=>{const{__scopeTabs:n,value:o,disabled:s=!1,...a}=t,i=il(ul,n),l=sl(n),d=hl(i.baseId,o),c=xl(i.baseId,o),u=o===i.value;return e.jsx(rl,{asChild:!0,...l,focusable:!s,active:u,children:e.jsx(w.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:r,onMouseDown:g(t.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():i.onValueChange(o)}),onKeyDown:g(t.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&i.onValueChange(o)}),onFocus:g(t.onFocus,()=>{const e="manual"!==i.activationMode;u||s||!e||i.onValueChange(o)})})})});ml.displayName=ul;var fl="TabsContent",pl=o.forwardRef((t,r)=>{const{__scopeTabs:n,value:s,forceMount:a,children:i,...l}=t,d=il(fl,n),c=hl(d.baseId,s),u=xl(d.baseId,s),m=s===d.value,f=o.useRef(m);return o.useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),e.jsx(j,{present:a||m,children:({present:n})=>e.jsx(w.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:u,tabIndex:0,...l,ref:r,style:{...t.style,animationDuration:f.current?"0s":void 0},children:n&&i})})});function hl(e,t){return`${e}-trigger-${t}`}function xl(e,t){return`${e}-content-${t}`}pl.displayName=fl;var gl=ll,bl=cl,yl=ml,vl=pl;const wl=ws(" text-muted-foreground inline-flex flex-row h-9 items-center",{variants:{listVariant:{brand:"",gray:"",outlined:"border-b border-rborder-secondary gap-2",bordered:"rounded-lg border border-rborder-secondary bg-rbg-secondary-alt p-1",minimal:" rounded-md border border-rborder-secondary bg-rbg-secondary-alt !gap-0.5"},fullWidth:{true:"justify-between",false:"justify-start gap-1"},direction:{vertical:"flex-col min-h-fit max-w-fit ",horizontal:"flex-row w-full"}},defaultVariants:{listVariant:"brand",fullWidth:!0,direction:"horizontal"}}),jl=ws(" h-full py-2 px-3 cursor-pointer inline-flex items-center justify-center gap-2 text-sm font-normal whitespace-nowrap transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{triggerVariant:{brand:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-brand-primary-alt data-[state=active]:text-rtext-brand-secondary-700 ",gray:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-active data-[state=active]:text-rtext-secondary-700 ",outlined:"text-rtext-quaternary-500 data-[state=active]:text-rtext-brand-secondary-700 pb-2.5 data-[state=active]:pb-2 data-[state=active]:border-b-2 data-[state=active]:border-rgf-brand-primary-alt",bordered:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:shadow-sm",minimal:"text-rtext-quaternary-500 data-[state=active]:rounded-md data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:border data-[state=active]:border-rborder-primary data-[state=active]:shadow-xs"},fullWidth:{true:"w-full",false:"w-fit justify-start gap-1 items-center"}},defaultVariants:{triggerVariant:"gray",fullWidth:!0}});const kl=Object.assign(({className:t,direction:r="horizontal",dir:n="rtl",...o})=>e.jsx(gl,{"data-slot":"tabs",dir:n,className:Jt("flex gap-2","horizontal"==r?"flex-col":"flex-row",t),...o}),{List:function({className:t,listVariant:r,direction:n="horizontal",fullWidth:o=!1,...s}){return e.jsx(bl,{"data-slot":"tabs-list",className:Jt(wl({fullWidth:o,listVariant:r,direction:n}),t),...s})},Trigger:function({className:t,triggerVariant:r,fullWidth:n,...o}){return e.jsx(yl,{"data-slot":"tabs-trigger",className:Jt(jl({triggerVariant:r,fullWidth:n}),t),...o})},Content:function({className:t,...r}){return e.jsx(vl,{"data-slot":"tabs-content",className:Jt("flex-1 outline-none",t),...r})}}),Nl=ws("inline-flex items-center h-fit min-w-fit bg-white w-fit rounded-md text-rtext-secondary-700 font-medium border border-rborder-primary",{variants:{size:{sm:"px-2 py-[3px] text-xs gap-1",md:"px-[9px] py-0.5 text-sm gap-[5px]",lg:"px-2.5 py-1 text-sm gap-1.5"},dir:{ltr:"flex-row-reverse",rtl:"flex-row"},icon:{"x-close":"x-close"}},defaultVariants:{size:"sm",dir:"rtl"}}),Cl=ws("",{variants:{size:{sm:"px-1 leading-[var(--line-height-text-xs)]",md:"px-[5px] leading-[var(--line-height-text-xs)]",lg:"px-1.5 leading-[var(--line-height-text-sm)]"}},defaultVariants:{size:"sm"}}),zl=ws("",{variants:{size:{sm:"10",md:"12",lg:"14"}},defaultVariants:{size:"sm"}});function Pl({number:t,size:r}){return e.jsx("div",{className:Jt(Cl({size:r}),"bg-gray-light-100 rounded-[3px]"),children:t})}const Sl=ws("rounded-md p-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled w-full"),El={success:e.jsx(De,{className:"text-green-100",size:20}),error:e.jsx(Ie,{className:"text-red-100",size:20}),info:e.jsx(Fe,{className:"text-blue-100",size:20}),warning:e.jsx(Be,{className:"text-yellow-100",size:20})},Rl={success:"bg-green-500",error:"bg-red-500",info:"bg-blue-500",warning:"bg-yellow-500 text-black"},Tl={fade:"transition-all duration-300",slide:"transition-all duration-300 transform translate-x-0",scale:"transition-all duration-300 transform scale-100"},Ll={fade:"opacity-0",slide:"translate-x-10 opacity-0",scale:"scale-0 opacity-0"};function Ml(e){switch(e){case"top-left":return"top-4 left-4";case"top-center":return"top-4 left-1/2 -translate-x-1/2";case"top-right":default:return"top-4 right-4";case"middle-center":return"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2";case"bottom-left":return"bottom-4 left-4";case"bottom-center":return"bottom-4 left-1/2 -translate-x-1/2";case"bottom-right":return"bottom-4 right-4"}}const Dl=["top-left","top-center","top-right","middle-center","bottom-left","bottom-center","bottom-right"];let Il={};function Al(e){Il=e}function _l(e){const t="string"==typeof e?{...Il,message:e,type:Il?.type??"info"}:{...Il,...e},r=new CustomEvent("custom-toast",{detail:t});window.dispatchEvent(r)}_l.success=(e,t)=>_l({...Il,...t,message:e,type:"success"}),_l.error=(e,t)=>_l({...Il,...t,message:e,type:"error"}),_l.info=(e,t)=>_l({...Il,...t,message:e,type:"info"}),_l.warning=(e,t)=>_l({...Il,...t,message:e,type:"warning"}),exports.AccordionDemo=function({type:t="single",collapsible:r=!1,items:n,accordionClassName:o="w-full bg-white p-4",itemClassName:s="border-b last:border-b-0",questionClassName:a="text-lg font-medium",answerClassName:i="text-sm text-gray-600",iconClosed:l,iconOpen:d}){return e.jsx(Qt,{type:t,collapsible:r,className:`${o}`,children:n.map((t,r)=>e.jsxs(er,{value:`item-${r}`,className:s,children:[e.jsx(tr,{className:a,iconClosed:l,iconOpen:d,children:t.question}),e.jsx(rr,{className:i,children:t.answer})]},r))})},exports.Avatar=({type:t,size:r="md",imgList:n=[],img:o={},showAmount:s=1,showAddBtn:a=!1,notifyColor:i="",notifyIcon:l="",title:d="",description:c="",iconBorder:u=!0,tooltip:m,addBtnAction:f=()=>{}})=>e.jsxs(e.Fragment,{children:["single"==t&&e.jsx(gs,{img:o,size:r,notifyColor:i,notifyIcon:l,iconBorder:u}),"group"==t&&e.jsx(xs,{imgList:n,size:r,showAmount:s,showAddBtn:a,tooltip:m,addBtnAction:f}),"labled"==t&&e.jsxs("div",{className:Jt("inline-flex items-center",ar[r]),children:[e.jsx(gs,{img:o,size:r,notifyColor:i,notifyIcon:l,iconBorder:u}),e.jsx(lr,{size:r,title:d,description:c})]})]}),exports.Badge=ks,exports.Breadcrumb=({breadCrumbLink:r,type:n="chevron",dir:o,navClassName:s,listClassName:a,listItemClassName:i="",linkClassName:l,separatorClassName:d})=>{const[c,u]=t.useState("");t.useEffect(()=>{"undefined"!=typeof window&&u(window.location.pathname)},[]);const m=o??("rtl"===document?.body?.getAttribute("dir")?"rtl":"ltr"),f=()=>{switch(n){case"chevron":return"rtl"===m?e.jsx(Ns,{}):e.jsx(Cs,{});case"slash":return e.jsx(Ps,{});default:return e.jsx(Cs,{})}},p=[{title:e.jsx(zs,{}),link:"/"},...r],h=p.findIndex(e=>e.link===c),x=h>=0?p.slice(0,h+1):p;return e.jsx("nav",{className:`w-full overflow-x-auto scrollbar-thin scrollbar-thumb-gray-400 ${s??""}`,dir:m,children:e.jsxs("ol",{className:`flex flex-nowrap items-center gap-x-1 lg:gap-x-2 w-max py-2 rounded-md ${a??""}`,children:[" ",x.map((t,r)=>{const n=t.link??"",o=r!==x.length-1,s=c===n;return e.jsxs("li",{className:Jt("flex items-center text-sm font-normal leading-normal transition-colors duration-300 ",i),children:[t.link?e.jsx("a",{href:n,className:`${l??"cursor-pointer transition-colors duration-300"} ${s?"text-rtext-brand-tertiary-600":"text-rtext-placeholder"}`,children:t.title}):e.jsx("span",{className:"text-gray-500",children:t.title}),o&&e.jsx("span",{className:`${d??"ms-2"}`,children:f()})]},`${n}-${r}`)})]})})},exports.Button=Rs,exports.Checkbox=Is,exports.Dropdown=({children:r,toggleBtn:n,direction:o="down",alignment:s="right",dropDownClassName:a="",autoAdjust:i=!0,open:l,onOpenChange:d})=>{const[c,u]=t.useState(!1),[m,f]=t.useState(o),[p,h]=t.useState(s),x=void 0!==l&&"function"==typeof d,g=l??c,b=t.useRef(null),y=t.useRef(null),v=t.useRef(0);t.useEffect(()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),t.useLayoutEffect(()=>{if(!i)return f(o),void h(s);if(g&&b.current&&y.current){const e=b.current.getBoundingClientRect(),t=y.current.getBoundingClientRect(),r=t.width||200,n=t.height||200,a=window.innerHeight-e.bottom,i=e.top,l=window.innerWidth-e.right,d=e.left;if("down"===o||"up"===o)f(a<n&&i>a?"up":"down"),h(s);else if("left"===o||"right"===o)"left"===o?f(d<r&&l>d?"right":"left"):"right"===o&&f(l<r&&d>l?"left":"right"),h(s);else{Math.max(a,i)>Math.max(l,d)?(f(a>i?"down":"up"),h(s)):(f(l>d?"right":"left"),h(s))}}},[g,o,s,i]);const w=e=>{x&&d?d(e):u(e)};return e.jsxs("div",{className:"relative inline-block",ref:b,children:[e.jsx(Rs,{...n,onClick:()=>w(!g)}),g&&e.jsx("div",{ref:y,style:{zIndex:Js(v.current)},className:Jt("absolute border border-rborder-secondary w-fit rounded-md shadow-lg bg-rbg-primary",Qs({direction:m,alignment:p}),a),children:r})]})},exports.FileUploader=({icon:t,mainText:r,subText:n,formatText:o,acceptableFormats:s="",disable:a=!1,items:i,loadType:l="progressBar",multiItem:d=!1,onChange:c,onDelete:u})=>e.jsxs("div",{className:"w-full flex flex-col gap-4",children:[e.jsx(ea,{icon:t,mainText:r,subText:n,formatText:o,acceptableFormats:s,disable:a,multiItem:d,onChange:c}),i&&i.length>0&&e.jsx("div",{className:"flex flex-col gap-3",children:i.map(t=>e.jsx(va,{item:t,loadType:l,onDelete:u},t?.title))})]}),exports.ImageMagnify=function({src:r,alt:n="",zoom:o=2,lensSize:s=140,className:a="",lensVisibleClassName:i="hidden md:block",zoomPaneVisibleClassName:l="hidden md:block",touchToggle:d=!0,zoomPaneSize:c,zoomPanePosition:u="right",zoomMode:m="pane"}){const f=t.useRef(null),p=t.useRef(null),[h,x]=t.useState(!1),[g,b]=t.useState(ja),[y,v]=t.useState({w:0,h:0}),[w,j]=t.useState(!1);t.useEffect(()=>{const e=()=>{const e=p.current;e&&v({w:e.width,h:e.height})},t=p.current;if(t)return t.complete&&e(),t.addEventListener("load",e),window.addEventListener("resize",e),()=>{t.removeEventListener("load",e),window.removeEventListener("resize",e)}},[r]);const k=(e,t)=>{const r=p.current;if(!r)return ja;const n=r.getBoundingClientRect();if(0===n.width||0===n.height)return ja;return{x:wa(e-n.left,0,n.width),y:wa(t-n.top,0,n.height)}},N=e=>{const t="nativeEvent"in e?e.nativeEvent:e;if("touches"in t&&t.touches?.length>0){const e=t.touches[0];return void b(k(e.clientX,e.clientY))}"number"==typeof t.clientX&&b(k(t.clientX,t.clientY))},C=()=>{x(!1),w&&j(!1)},z=p.current?.getBoundingClientRect(),P=(z?.width??y.w)||1,S=(z?.height??y.h)||1,E=`${P*o}px ${S*o}px`,R=`${g.x/P*100}% ${g.y/S*100}%`,T=c??P,L=c??S,M={width:s,height:s,left:wa(g.x-s/2,0,Math.max(P-s,0)),top:wa(g.y-s/2,0,Math.max(S-s,0)),backgroundImage:"inline"===m?`url(${r})`:"none",backgroundRepeat:"no-repeat",backgroundSize:"inline"===m?E:void 0,backgroundPosition:"inline"===m?R:void 0},D={width:T,height:L,backgroundImage:`url(${r})`,backgroundRepeat:"no-repeat",backgroundSize:E,backgroundPosition:R},I="left"===u,A=h?i:"hidden",_="pane"===m&&h?l:"hidden";return e.jsxs("div",{className:`relative w-fit inline-block align-top ${a}`,children:[e.jsxs("div",{ref:f,className:"relative select-none touch-none",onMouseMove:e=>{N(e)},onMouseEnter:()=>{x(!0)},onMouseLeave:C,onTouchStart:e=>{d&&(e.preventDefault(),w?(j(!1),x(!1)):(j(!0),x(!0),N(e)))},onTouchMove:e=>{w&&(e.preventDefault(),N(e))},onTouchEnd:C,children:[e.jsx("img",{ref:p,src:r,alt:n,className:"block max-w-full h-auto select-none",draggable:!1,onDragStart:e=>e.preventDefault()}),e.jsx("div",{className:`pointer-events-none absolute rounded-full border-2 border-white shadow-lg ${A} ${"inline"===m?"bg-white/10 backdrop-blur":"bg-transparent"}`,style:M})]}),e.jsx("div",{className:`${_} absolute top-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-slate-200 shadow-sm \n ${I?"right-full mr-3":"left-full ml-3"}\n `,style:D})]})},exports.Input=({size:r="sm",type:n="text",inputType:o="default",disabled:s=!1,id:a,label:i,required:l=!1,destructive:d=!1,destructiveText:c,hintText:u,placeholder:m,helpIcon:f=!1,icon:p,leadingTextValue:h,className:x,trailingDropdownOptions:g,trailingDropdownDefault:b,onChange:y,value:v,tooltipProps:w,trailingButtonText:j,name:k,labelClass:N,labelStarClass:C,shabaLabelSize:z="lg",autoFocus:P=!1,...S})=>{const E=p,[R,T]=t.useState(),[L,M]=t.useState(!1);return e.jsxs("div",{className:"flex flex-col gap-1 items-start",children:[e.jsx(Ca,{id:a,label:i,required:l,labelClass:N,labelStarClass:C}),e.jsxs("div",{className:"relative w-full",children:[E&&"iconLeading"==o&&e.jsx("div",{"aria-label":"iconLeading",className:"absolute ltr:left-3 rtl:right-3 top-1/2 -translate-y-1/2",children:e.jsx(E,{})}),h&&"leadingText"==o&&e.jsx("div",{"aria-label":"leadingText",className:`h-full absolute text-sm text-rfg-tertiary-600 ltr:left-3 rtl:right-3 top-1/2 -translate-y-1/2 border-e pe-2 w-15 truncate text-center ${"sm"===r?"pt-2":"pt-2.5"} \n ${!0===d?"border-rborder-error":"border-rborder-primary"}`,children:h}),"trailingDropdown"==o&&e.jsx("p",{className:"absolute ltr:left-2 rtl:right-2 top-1/2 -translate-y-1/2",children:R?R?.icon:b?.icon}),e.jsx("input",{value:v,name:k,onChange:y,placeholder:m,autoFocus:P,className:Jt(Na({size:r,inputType:o}),x,d&&"bg-rbg-disabled-subtle",d&&"!border-2 !border-rborder-error focus:!outline-0",s&&"bg-rbg-disabled-subtle border-rborder-disabled"),type:"password"===n&&L?"text":n,id:a,disabled:s,...S}),"password"===n&&e.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit h-5 flex items-center justify-center",children:e.jsx(Rs,{type:"button",variant:"linkGray",onClick:()=>M(!L),children:L?e.jsx(Oe,{size:18,className:"text-rbutton-tertiary-fg"}):e.jsx($e,{size:18,className:"text-rbutton-tertiary-fg"})})}),f&&w&&!1===d&&e.jsx(ps,{content:w?.text,description:w?.description,position:w?.position,dir:w?.dir,descriptionClassName:w?.descriptionClassName,children:e.jsx("div",{"data-testid":"tooltip-button",className:"w-fit absolute top-1/2 -translate-y-1/2 \n "+("trailingButton"==o||"trailingDropdown"==o?"ltr:right-20 rtl:left-20":"shaba"==o?"ltr:right-12 rtl:left-12":"ltr:right-2 rtl:left-2"),children:e.jsx(za,{})})}),"trailingButton"==o&&e.jsxs("button",{"aria-label":"copyButton",onClick:()=>{return e=String(v),void navigator.clipboard.writeText(e);var e},className:"flex items-center gap-1 h-full absolute text-sm text-rbutton-secondary-fg cursor-pointer ltr:right-3 rtl:left-3 top-1/2 -translate-y-1/2 border-s ps-2 "+(!0===d?"border-rborder-error":"border-rborder-primary"),children:[e.jsx(_e,{size:20})," ",j]}),"trailingDropdown"==o&&e.jsx(Sa,{onChange:e=>{const t=g?.find(t=>t?.value===e?.value);T(t??e)},options:g??[],selectedValueLabel:b?.title??"-",config:{canSelectZero:!0,name:"trailingDropdown"},className:"w-fit absolute rtl:left-0 ltr:right-0 top-0"}),"shaba"==o&&e.jsx("div",{"aria-label":"shabaLabel",className:Jt("flex items-center h-full absolute text-rfg-tertiary-600 ltr:right-0 rtl:left-0 top-1/2 -translate-y-1/2 border-s",ka[z],!0===d?"border-rborder-error":"border-rborder-primary"),children:"IR"})]}),!1===d&&u&&e.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:u}),d&&c&&e.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:c})]})},exports.Message=({variant:t,sender:r,senderName:n,message:o,children:s,avatar:a,date:i,className:l,dir:d})=>{const c=d??("rtl"===document?.body?.getAttribute("dir")?"rtl":"ltr");return e.jsx("div",{className:Jt("w-full flex ",Ra({sender:r,direction:c})),"data-testid":"messageWrapper",children:e.jsxs("div",{className:Jt("w-fit max-w-4/5 flex gap-3",Ra({sender:r,direction:c}),l),"data-testid":"messageComp",children:[a??null,e.jsxs("div",{className:"w-full flex flex-col gap-1.5",children:[e.jsxs("div",{className:Jt("w-full flex justify-between items-center",Ra({sender:r,direction:c})),children:[e.jsx("span",{className:"text-rtext-secondary-700 text-sm font-medium",children:n}),e.jsx("span",{className:"text-rtext-tertiary-600 text-xs font-normal",children:i})]}),e.jsxs("div",{className:Jt(Ea({variant:t,sender:r,direction:c})),children:[o&&e.jsx("span",{className:"",children:o}),s??null]})]})]})})},exports.Metrics=({title:r,value:n,description:o,icon:s,iconType:a="secondary",statistic:i,chartImg:l,chartPosition:d,actionBtns:c,toggleBtn:u,iconPosition:m="hidden",statisticPosition:f,titleType:p="normal"})=>e.jsxs(Ta,{className:"flex flex-col gap-0 rounded-xl border border-rborder-secondary bg-rbg-primary shadow-xs w-full sm:max-w-[380px] max-w-[311px] h-fit justify-start p-0",children:[e.jsxs("div",{className:"flex gap-5 w-full py-5 px-4 sm:p-6",children:["iconSide"==m&&e.jsx("div",{className:Jt("self-center",Da[a]),children:s}),e.jsxs("div",{className:Jt("flex flex-col h-full items-end gap-2 w-full",`${("topWithTitle"==m||"topAlone"==m)&&"gap-5 md:gap-6"}`),children:[e.jsxs(La,{className:"flex justify-between w-full px-0",children:[e.jsxs("div",{className:"flex items-center gap-3 ",children:[("topWithTitle"==m||"topAlone"==m)&&e.jsx("div",{className:Da[a],children:s}),"topAlone"!=m&&e.jsx("span",{className:Ia[p],children:r})]}),u]}),e.jsxs("div",{className:"flex flex-col w-full gap-2",children:["topAlone"==m&&e.jsx("span",{className:Ia[p],children:r}),e.jsxs("div",{className:"w-full flex justify-between gap-4",children:[e.jsxs("div",{className:Jt("flex justify-between items-center w-full h-fit px-0",`${"row-below"==f&&"flex-col just-start items-start gap-4"}`,`${"row-next"==f&&"flex justify-start items-start gap-2"}`),children:[e.jsx("span",{className:"text-display-md font-normal text-rtext-primary-900",children:n}),e.jsxs("div",{className:"flex gap-2 items-center",children:[i,o&&e.jsx("span",{className:"font-medium text-sm text-rtext-tertiary-600",children:o})]})]}),"side"==d&&e.jsx("div",{className:"w-full",children:l})]})]}),"bottom"==d&&e.jsx("div",{className:"w-full",children:l})]})]}),c&&e.jsx(Ma,{className:"flex flex-row-reverse items-center justify-between py-4 px-6 border-t border-rborder-secondary gap-1.5 w-full",children:c?.map((r,n)=>e.jsx(t.Fragment,{children:r},n))})]}),exports.Modal=({children:n,closeHandler:o,size:s="md",modalTitle:a,overflow:i,closeIconStroke:l="#000",position:d="center",icon:c,headerIconDir:u="flex-col",showModal:m=!1,modalContentStyle:f,showCloseIcon:p=!0})=>{const h=t.useRef(++_a);return t.useEffect(()=>(m&&(document.body.style.overflow="hidden"),()=>{_a--,document.body.style.overflow=""}),[m]),m?r.createPortal(e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"fixed left-0 top-0 h-full min-h-screen w-full cursor-default overflow-hidden bg-black/60 duration-0",style:{zIndex:Js(h.current)},onClick:o}),e.jsxs("dialog",{open:!0,"aria-label":"modal-container",className:Zt(Aa({size:s,overflow:i,position:d}),f),style:{zIndex:Zs(h.current)},children:[e.jsxs("div",{className:("flex-col"==u?"items-start":"items-center")+"\n sticky top-0 z-10 flex justify-between gap-6 bg-white py-4",children:[e.jsxs("div",{className:`flex gap-4 justify-start items-start ${u}`,children:[c&&c,a&&e.jsx("h2",{id:"modal-title",className:"text-lg font-semibold",children:a})]}),p&&e.jsx(Rs,{variant:"tertiaryGray",size:"sm",className:"!p-0",onClick:o,children:e.jsx(bs,{width:"16",height:"16",stroke:l})})]}),e.jsx("div",{className:"overflow-y-auto",children:n})]})]}),document.body):null},exports.Pagination=({currentPage:t,totalPages:r,onPageChange:n,type:o="default",dir:s="rtl",className:a,activeClassName:i,previousClassName:l,nextClassName:d,prevIcon:c,nextIcon:u,firstIcon:m,lastIcon:f,showFirstLast:p=!0,labels:h,hasText:x=!0,...g})=>{const b="rtl"===s,y={...{next:b?"بعدی":"Next",prev:b?"قبلی":"Previous",first:b?"اولین":"First",last:b?"آخرین":"Last",page:b?"صفحه":"page",of:b?"از":"of"},...h};if(r<=1)return null;const v=()=>{const o=[];if("undefined"!=typeof window&&window.innerWidth<768){const e=new Set;e.add(1),e.add(2),e.add(r-1),e.add(r),1!==t&&2!==t&&t!==r-1&&t!==r&&e.add(t);const n=Array.from(e).sort((e,t)=>e-t);for(let e=0;e<n.length;e++)o.push(n[e]),e<n.length-1&&n[e+1]!==n[e]+1&&o.push("...")}else if(r<=6)for(let e=1;e<=r;e++)o.push(e);else{if(t>3)if(t<r-2)o.push(1,"...",t-1,t,t+1,"...",r);else{o.push(1,2,3,"...");for(let e=r-2;e<=r;e++)o.push(e)}else{for(let e=1;e<=3;e++)o.push(e);o.push("...",r-2,r-1,r)}}const s=b?[...o].reverse():o;return e.jsx("div",{className:Jt("flex h-full",b&&"flex-row-reverse"),children:s.map((r,o)=>"..."===r?e.jsx("span",{className:"md:px-3 md:py-1 p-2 text-gray-400 text-sm",children:"..."},`dots-${o}`):e.jsx("button",{onClick:()=>n?.(r),className:Jt("px-3 py-1 text-sm border border-gray-200",t===r?i:a),children:r},r))})};return"card-minimal-right-aligned"===o?e.jsx(Ha,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,previousClassName:l,nextClassName:d,className:a,...g}):"card-minimal-left-aligned"===o?e.jsx(Ka,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,previousClassName:l,nextClassName:d,className:a,...g}):"card-minimal-center-aligned"===o?e.jsx(Wa,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,previousClassName:l,nextClassName:d,className:a,prevIcon:c,nextIcon:u,...g}):"card-button-group-right-aligned"===o?e.jsx(qa,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,renderPageNumbers:v,previousClassName:l,nextClassName:d,justifyClassName:Zt(a,"justify-end"),prevIcon:c,nextIcon:u,hasText:x,...g}):"card-button-group-left-aligned"===o?e.jsx(qa,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,renderPageNumbers:v,previousClassName:l,nextClassName:d,justifyClassName:Zt(a,"justify-start"),prevIcon:c,nextIcon:u,hasText:x,...g}):"card-button-group-center-aligned"===o?e.jsx(qa,{currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,renderPageNumbers:v,previousClassName:l,nextClassName:d,justifyClassName:Zt(a,"justify-center"),prevIcon:c,nextIcon:u,hasText:x,...g}):e.jsx(Ga,{activeClassName:i,currentPage:t,totalPages:r,onPageChange:n,dir:s,labels:y,previousClassName:l,nextClassName:d,className:a,prevIcon:c,nextIcon:u,firstIcon:m,lastIcon:f,showFirstLast:p,hasText:x})},exports.PaymentCard=({size:t="sm",title:r="",description:n,checked:o,disabled:s,id:a,value:i="",footer:l,icon:d,type:c="checkbox",onChange:u,name:m="",cardOnclick:f,inputProps:p,checkboxIndex:h})=>{const x=(({checked:e,disabled:t,size:r,hasHeader:n})=>({label:` \n rounded-2xl md:w-3xl text-md h-fit min-w-[343px] text-rtext-tertiary-600 flex gap-2 cursor-pointer\n border-2 border-rborder-secondary rounded-2xl ${n?"flex-col":"p-4"} ${r&&Vs[r]} ${t?"bg-rbg-disabled-subtle":"group"} ${e?"!border-rbg-brand-solid":""}`}))({checked:o,disabled:s,size:t});return e.jsxs("label",{onClick:f,htmlFor:a,tabIndex:h,className:x.label,children:[d,e.jsxs("div",{className:"flex flex-col gap-3 grow justify-between",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:r}),e.jsx("span",{className:"text-rtext-tertiary-600",children:n})]}),l]}),e.jsx("div",{className:"flex items-start gap-2",children:"radio"===c?e.jsx(Fs,{onChange:u,checked:o,disabled:s,value:i,name:m,size:t,id:a,...p}):e.jsx(Is,{...p,disabled:s,id:a,name:m,onChange:u,size:t})})]})},exports.PlanCard=({hasHeader:t=!1,per:r,size:n="sm",title:o="",description:s,price:a,badgeContent:i,checked:l,disabled:d,type:c,name:u,value:m,onChange:f,onCardClick:p,id:h,checkboxIndex:x})=>{const g=t?Us:qs,b=(({checked:e,disabled:t,size:r,hasHeader:n})=>({label:`\n md:w-3xl h-fit min-w-[343px] text-rtext-tertiary-600 rounded-2xl flex group gap-2 cursor-pointer\n border-2 border-rborder-secondary rounded-2xl ${n?"flex-col":"p-4"} ${r&&Ws[r]} ${t?"bg-rbg-disabled-subtle":"group"} ${e?"!border-rbg-brand-solid":""}`}))({checked:l,disabled:d,hasHeader:t,size:n});return e.jsx("label",{..."test"===process.env.NODE_ENV&&{"data-testid":"plan-card-wrapper"},onClick:p,htmlFor:h,tabIndex:x,className:b.label,children:e.jsx(g,{type:c,checkboxIndex:x,checked:l,name:u,per:r,size:n,title:o,description:s,price:a,badgeContent:i,id:h,value:m,disabled:d,onChange:f})})},exports.PriceSlider=function({defaultValue:t=[0,1e3],min:r=0,max:n=1e3,step:s=1,className:a="",trackClassName:i="",rangeClassName:l="",thumbClassName:d="",showValue:c=!1,valueClassName:u="",isPercentage:m=!1,valuePosition:f="bottom",dir:p="ltr",onValueChange:h,...x}){const[g,b]=o.useState(t);return e.jsxs(ji,{value:g,onValueChange:e=>{const[t,o]=e,s=[Math.max(r,Math.min(t,n)),Math.min(n,Math.max(o,r))];b(s),h?.(s)},min:r,max:n,step:s,dir:p,className:Jt("relative flex w-full touch-none select-none items-center",a),...x,children:[e.jsx(ki,{className:Jt("relative h-2 w-full grow overflow-hidden rounded-full bg-gray-light-200",i),children:e.jsx(Ni,{className:Jt("absolute h-full bg-rfg-brand-primary-600",l)})}),g.map((t,r)=>e.jsx(Ci,{className:Jt("relative block h-5 w-5 rounded-full border-2 border-rfg-brand-primary-600 bg-white focus:outline-none focus:ring-2 focus:ring-rfg-brand-primary-300",d),children:c&&e.jsx("span",{className:Jt("absolute left-1/2 -translate-x-1/2 whitespace-nowrap text-xs text-gray-700","top"===f?"bottom-7":"top-7",u),children:m?`٪${t}`:t.toLocaleString()})},r))]})},exports.Progress=ba,exports.Radio=Fs,exports.Select=Sa,exports.Switch=Oi,exports.Tabs=kl,exports.Tag=({className:t,size:r="sm",number:n,pin:o=!1,avatar:s,children:a,checkbox:i,dir:l="rtl",icon:d,checkboxIndex:c,...u})=>{const m="x-close"===d&&e.jsx(bs,{width:Jt(zl({size:r})),height:Jt(zl({size:r})),stroke:"#98A2B3"});return e.jsxs("div",{className:Jt(Nl({size:r,dir:l,icon:d}),t),...u,children:[m,n&&e.jsx(Pl,{number:n,size:r}),e.jsx("span",{children:a}),s&&e.jsx("img",{src:s,alt:"avatar",className:"w-4 h-4 rounded-full"}),o&&e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current"}),i&&e.jsx(Is,{checkboxIndex:c,size:r,id:i,name:i||""})]})},exports.TextArea=({row:t=5,label:r,required:n=!1,destructive:o=!1,disabled:s=!1,destructiveText:a,hintText:i,placeholder:l,helpIcon:d=!1,onChange:c,id:u,tooltipProps:m,className:f,value:p,name:h,labelClass:x,labelStarClass:g,autoFocus:b=!1,...y})=>e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ca,{id:u,label:r,required:n,labelClass:x,labelStarClass:g}),d&&m&&e.jsx(ps,{content:m?.text,description:m?.description,position:m?.position,dir:m?.dir,descriptionClassName:m?.descriptionClassName,children:e.jsx("div",{children:e.jsx(za,{})})})]}),e.jsx("textarea",{value:p,name:h,disabled:s,rows:t,placeholder:l,id:u,onChange:c,className:Jt(Sl(),f,o&&"!border-2 !border-rborder-error focus:!outline-0",o&&"bg-rbg-disabled-subtle border-rborder-disabled"),autoFocus:b,...y}),!1===o&&i&&e.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:i}),o&&a&&e.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:a})]}),exports.ToastContainer=({type:r="info",position:n="top-right",duration:o=3e3,animation:s="fade",showProgress:a=!0})=>{const[i,l]=t.useState([]),d=t.useRef({});t.useEffect(()=>{Al({type:r,duration:o,animation:s,position:n,showProgress:a})},[]),t.useEffect(()=>{const e=e=>{const t=Date.now(),r=e.detail.duration??3e3,n={...e.detail,id:t,visible:!0,progressVisible:!1,duration:r,position:e.detail.position??"top-right",animation:e.detail.animation??"fade",showProgress:e.detail.showProgress??!1};l(e=>{if(e.length>=3)return e;const o=Date.now();return d.current[t]={timeoutId:setTimeout(()=>c(t),r),start:o,remaining:r},[...e,n]}),requestAnimationFrame(()=>{l(e=>e.map(e=>e.id===t?{...e,progressVisible:!0}:e))})};return window.addEventListener("custom-toast",e),()=>window.removeEventListener("custom-toast",e)},[]);const c=e=>{l(t=>t.map(t=>t.id===e?{...t,visible:!1}:t)),setTimeout(()=>{l(t=>t.filter(t=>t.id!==e)),delete d.current[e]},300)};return e.jsx(e.Fragment,{children:Dl.map(t=>{const r=i.filter(e=>e.position===t).slice(-3);return 0===r.length?null:e.jsx("div",{className:`fixed z-50 space-y-2 w-full sm:w-[320px] px-4 ${Ml(t)}`,children:r.map(t=>(console.log("toast : ",t),e.jsxs("div",{onMouseEnter:()=>(e=>{const t=d.current[e];if(!t)return;const r=Date.now()-t.start;t.remaining=Math.max(0,t.remaining-r),clearTimeout(t.timeoutId)})(t.id),onMouseLeave:()=>(e=>{const t=d.current[e];!t||t.remaining<=0||(t.start=Date.now(),t.timeoutId=setTimeout(()=>c(e),t.remaining))})(t.id),className:Zt("relative px-4 py-3 pr-10 rounded shadow text-white flex items-start gap-3",Rl[t.type??"info"],Tl[t.animation??"fade"],t.visible?"":Ll[t.animation??"fade"]),children:[e.jsx("span",{children:El[t.type??"info"]}),e.jsx("div",{className:"flex-1 break-words text-sm",dangerouslySetInnerHTML:{__html:t.message}}),e.jsx("button",{className:"absolute top-2 right-2 text-white hover:opacity-80",onClick:()=>c(t.id),children:e.jsx(We,{size:16})}),t.showProgress&&e.jsx("div",{className:"absolute bottom-0 left-0 h-1 bg-white/50",style:{width:t.progressVisible?"100%":"0%",transition:`width ${t.duration}ms linear`}})]},t.id)))},t)})})},exports.TooltipWrapper=ps,exports.UserCard=({size:t="sm",description:r,checked:n,disabled:o,id:s,value:a="",type:i="checkbox",onChange:l,name:d="",inputProps:c,username:u,checkboxIndex:m,userFullName:f,cardOnclick:p})=>{const h=(({checked:e,disabled:t,size:r,hasHeader:n})=>({label:` \n min-w-[343px] md:w-3xl rounded-xl flex group gap-2 cursor-pointer\n border-2 border-rborder-secondary rounded-2xl text-rtext-tertiary-600 p-4 ${r&&Xs[r]} ${t?"bg-rbg-disabled-subtle":"group"} ${e?"!border-rbg-brand-solid":""}`}))({checked:n,disabled:o,hasHeader:!1,size:t});return e.jsxs("label",{onClick:p,htmlFor:s,tabIndex:m,className:h.label,children:[e.jsx("img",{src:"/Avatar.png",alt:"avatar",role:"avatar",className:`rounded-full ${Ys[t]}`}),e.jsx("div",{className:"flex flex-col gap-3 grow justify-between",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex gap-1",children:[e.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:f}),e.jsx("span",{className:"text-rtext-tertiary-600",children:u})]}),e.jsx("span",{className:"text-rtext-tertiary-600",children:r})]})}),e.jsx("div",{className:"flex items-start gap-2",children:"radio"===i?e.jsx(Fs,{onChange:l,checked:n,disabled:o,value:a,name:d,size:t,id:s,...c}):e.jsx(Is,{...c,disabled:o,id:s,name:d,checked:n,onChange:l,size:t,value:a})})]})},exports.setToastDefaults=Al,exports.toast=_l;
|