@mp-front/components 0.0.1-next-6 → 0.0.1-next-8
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/components/modal/modal.component.d.ts +28 -1
- package/dist/components/modal/modal.component.d.ts.map +1 -1
- package/dist/components/modal/modal.overlay.d.ts +16 -1
- package/dist/components/modal/modal.overlay.d.ts.map +1 -1
- package/dist/lang/es_MX/index.d.ts +3 -14
- package/dist/lang/es_MX/index.d.ts.map +1 -1
- package/dist/lang/i18n.d.ts +2 -123
- package/dist/lang/i18n.d.ts.map +1 -1
- package/dist/lang/layout/login/index.d.ts +0 -1
- package/dist/lang/layout/login/index.d.ts.map +1 -1
- package/dist/layout/content.component.d.ts.map +1 -1
- package/dist/layout/root-layout.component.d.ts +1 -1
- package/dist/layout/root-layout.component.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +1 -1
- package/dist/ui-components-index.cjs +5 -6
- package/dist/ui-components-index.js +9 -9
- package/dist/ui-components-layout.cjs +33 -37
- package/dist/ui-components-layout.js +7722 -6279
- package/dist/useTranslation-QicPQnlv.cjs +1 -0
- package/dist/{useTranslation-DlVfOUdM.js → useTranslation-tTfk6apO.js} +43 -33
- package/package.json +3 -3
- package/dist/lang/components/customer-name-card/en_EN/index.d.ts +0 -8
- package/dist/lang/components/customer-name-card/en_EN/index.d.ts.map +0 -1
- package/dist/lang/components/customer-name-card/es_MX/index.d.ts +0 -8
- package/dist/lang/components/customer-name-card/es_MX/index.d.ts.map +0 -1
- package/dist/lang/components/customer-name-card/index.d.ts +0 -3
- package/dist/lang/components/customer-name-card/index.d.ts.map +0 -1
- package/dist/lang/components/index.d.ts +0 -2
- package/dist/lang/components/index.d.ts.map +0 -1
- package/dist/lang/en_US/index.d.ts +0 -44
- package/dist/lang/en_US/index.d.ts.map +0 -1
- package/dist/lang/layout/login/en_EN/index.d.ts +0 -7
- package/dist/lang/layout/login/en_EN/index.d.ts.map +0 -1
- package/dist/useTranslation-CnSCmJou.cjs +0 -1
|
@@ -71,12 +71,11 @@ Defaulting to \`null\`.`}var ew=hp,tw=mp,Ia="Radio",[nw,xp]=fe(Ia),[rw,ow]=nw(Ia
|
|
|
71
71
|
${E}px !important;
|
|
72
72
|
${b}px !important;
|
|
73
73
|
}
|
|
74
|
-
`),()=>{R.contains(w)&&R.removeChild(w)}},[t]),h.jsxRuntimeExports.jsx(Tj,{isPresent:t,childRef:c,sizeRef:l,children:v.cloneElement(e,{ref:a})})}const Oj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:c,anchorX:l,anchorY:u,root:i})=>{const a=Ua(Mj),d=S.useId();let f=!0,p=S.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:m=>{a.set(m,!0);for(const g of a.values())if(!g)return;r&&r()},register:m=>(a.set(m,!1),()=>a.delete(m))}),[n,a,r]);return s&&f&&(p={...p}),S.useMemo(()=>{a.forEach((m,g)=>a.set(g,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),c==="popLayout"&&(e=h.jsxRuntimeExports.jsx(Aj,{isPresent:n,anchorX:l,anchorY:u,root:i,children:e})),h.jsxRuntimeExports.jsx(di.Provider,{value:p,children:e})};function Mj(){return new Map}function dx(e=!0){const t=S.useContext(di);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=S.useId();S.useEffect(()=>{if(e)return o(s)},[e]);const c=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,c]:[!0]}const vr=e=>e.key||"";function il(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Ot=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:c=!1,anchorX:l="left",anchorY:u="top",root:i})=>{const[a,d]=dx(c),f=S.useMemo(()=>il(e),[e]),p=c&&!a?[]:f.map(vr),m=S.useRef(!0),g=S.useRef(f),x=Ua(()=>new Map),y=S.useRef(new Set),[E,b]=S.useState(f),[w,R]=S.useState(f);zm(()=>{m.current=!1,g.current=f;for(let P=0;P<w.length;P++){const T=vr(w[P]);p.includes(T)?(x.delete(T),y.current.delete(T)):x.get(T)!==!0&&x.set(T,!1)}},[w,p.length,p.join("-")]);const _=[];if(f!==E){let P=[...f];for(let T=0;T<w.length;T++){const C=w[T],O=vr(C);p.includes(O)||(P.splice(T,0,C),_.push(C))}return s==="wait"&&_.length&&(P=_),R(il(P)),b(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:j}=S.useContext($a);return h.jsxRuntimeExports.jsx(h.jsxRuntimeExports.Fragment,{children:w.map(P=>{const T=vr(P),C=c&&!a?!1:f===w||p.includes(T),O=()=>{if(y.current.has(T))return;if(y.current.add(T),x.has(T))x.set(T,!0);else return;let I=!0;x.forEach(k=>{k||(I=!1)}),I&&(j==null||j(),R(g.current),c&&(d==null||d()),r&&r())};return h.jsxRuntimeExports.jsx(Oj,{isPresent:C,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:i,onExitComplete:C?void 0:O,anchorX:l,anchorY:u,children:P},T)})})},fx=S.createContext({strict:!1}),sl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let al=!1;function Ij(){if(al)return;const e={};for(const t in sl)e[t]={isEnabled:n=>sl[t].some(r=>!!n[r])};$g(e),al=!0}function hx(){return Ij(),y_()}function Dj(e){const t=hx();for(const n in e)t[n]={...t[n],...e[n]};$g(t)}const Nj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Io(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nj.has(e)}let px=e=>!Io(e);function kj(e){typeof e=="function"&&(px=t=>t.startsWith("on")?!Io(t):e(t))}try{kj(require("@emotion/is-prop-valid").default)}catch{}function Lj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(px(o)||n===!0&&Io(o)||!t&&!Io(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const pi=S.createContext({});function Fj(e,t){if(hi(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fn(n)?n:void 0,animate:Fn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vj(e){const{initial:t,animate:n}=Fj(e,S.useContext(pi));return S.useMemo(()=>({initial:t,animate:n}),[cl(t),cl(n)])}function cl(e){return Array.isArray(e)?e.join(" "):e}const xc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mx(e,t,n){for(const r in t)!ve(t[r])&&!Kg(r,n)&&(e[r]=t[r])}function Bj({transformTemplate:e},t){return S.useMemo(()=>{const n=xc();return pc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $j(e,t){const n=e.style||{},r={};return mx(r,n,e),Object.assign(r,Bj(e,t)),r}function Uj(e,t){const n={},r=$j(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const gx=()=>({...xc(),attrs:{}});function Gj(e,t,n,r){const o=S.useMemo(()=>{const s=gx();return Xg(s,t,Zg(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};mx(s,e.style,e),o.style={...s,...o.style}}return o}const zj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vc(e){return typeof e!="string"||e.includes("-")?!1:!!(zj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hj(e,t,n,{latestValues:r},o,s=!1,c){const u=(c??vc(e)?Gj:Uj)(t,r,o,e),i=Lj(t,typeof e=="string",s),a=e!==S.Fragment?{...i,...u,ref:n}:{},{children:d}=t,f=S.useMemo(()=>ve(d)?d.get():d,[d]);return S.createElement(e,{...a,children:f})}function Wj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:qj(n,r,o,e),renderState:t()}}function qj(e,t,n,r){const o={},s=r(e,{});for(const f in s)o[f]=ho(s[f]);let{initial:c,animate:l}=e;const u=hi(e),i=Bg(e);t&&i&&!u&&e.inherit!==!1&&(c===void 0&&(c=t.initial),l===void 0&&(l=t.animate));let a=n?n.initial===!1:!1;a=a||c===!1;const d=a?l:c;if(d&&typeof d!="boolean"&&!fi(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=ac(e,f[p]);if(m){const{transitionEnd:g,transition:x,...y}=m;for(const E in y){let b=y[E];if(Array.isArray(b)){const w=a?b.length-1:0;b=b[w]}b!==null&&(o[E]=b)}for(const E in g)o[E]=g[E]}}}return o}const xx=e=>(t,n)=>{const r=S.useContext(pi),o=S.useContext(di),s=()=>Wj(e,t,r,o);return n?s():Ua(s)},Kj=xx({scrapeMotionValuesFromProps:mc,createRenderState:xc}),Xj=xx({scrapeMotionValuesFromProps:Qg,createRenderState:gx}),Yj=Symbol.for("motionComponentSymbol");function Zj(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const o=S.useRef(null);return S.useCallback(s=>{var l;s&&((l=e.onMount)==null||l.call(e,s)),t&&(s?t.mount(s):t.unmount());const c=r.current;if(typeof c=="function")if(s){const u=c(s);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):c(s);else c&&(c.current=s)},[t])}const vx=S.createContext({});function Cn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qj(e,t,n,r,o,s){var b,w;const{visualElement:c}=S.useContext(pi),l=S.useContext(fx),u=S.useContext(di),i=S.useContext(gc),a=i.reducedMotion,d=i.skipAnimations,f=S.useRef(null),p=S.useRef(!1);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:a,skipAnimations:d,isSVG:s}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=S.useContext(vx);m&&!m.projection&&o&&(m.type==="html"||m.type==="svg")&&Jj(f.current,n,o,g);const x=S.useRef(!1);S.useInsertionEffect(()=>{m&&x.current&&m.update(n,u)});const y=n[jg],E=S.useRef(!!y&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,y))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,y)));return zm(()=>{p.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),E.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!E.current&&m.animationState&&m.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)==null||R.call(window,y)}),E.current=!1),m.enteringChildren=void 0)}),m}function Jj(e,t,n,r){const{layoutId:o,layout:s,drag:c,dragConstraints:l,layoutScroll:u,layoutRoot:i,layoutCrossfade:a}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yx(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!c||l&&Cn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:a,layoutScroll:u,layoutRoot:i})}function yx(e){if(e)return e.options.allowProjection!==!1?e.projection:yx(e.parent)}function Gi(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Dj(r);const s=n?n==="svg":vc(e),c=s?Xj:Kj;function l(i,a){let d;const f={...S.useContext(gc),...i,layoutId:eP(i)},{isStatic:p}=f,m=Vj(i),g=c(i,p);if(!p&&Gm){tP(f,r);const x=nP(f);d=x.MeasureLayout,m.visualElement=Qj(e,g,f,o,x.ProjectionNode,s)}return h.jsxRuntimeExports.jsxs(pi.Provider,{value:m,children:[d&&m.visualElement?h.jsxRuntimeExports.jsx(d,{visualElement:m.visualElement,...f}):null,Hj(e,i,Zj(g,m.visualElement,a),g,p,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=S.forwardRef(l);return u[Yj]=e,u}function eP({layoutId:e}){const t=S.useContext($a).id;return t&&e!==void 0?t+"-"+e:e}function tP(e,t){const n=S.useContext(fx).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?an(!1,r,"lazy-strict-mode"):nt(!1,r,"lazy-strict-mode")}}function nP(e){const t=hx(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function rP(e,t){if(typeof Proxy>"u")return Gi;const n=new Map,r=(s,c)=>Gi(s,c,e,t),o=(s,c)=>(process.env.NODE_ENV!=="production"&&qa(!1,"motion() is deprecated. Use motion.create() instead."),r(s,c));return new Proxy(o,{get:(s,c)=>c==="create"?r:(n.has(c)||n.set(c,Gi(c,void 0,e,t)),n.get(c))})}const oP=(e,t)=>t.isSVG??vc(e)?new k_(t):new A_(t,{allowProjection:e!==S.Fragment});class iP extends yt{constructor(t){super(t),t.animationState||(t.animationState=$_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let sP=0;class aP extends yt{constructor(){super(...arguments),this.id=sP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const cP={animation:{Feature:iP},exit:{Feature:aP}};function rr(e){return{point:{x:e.pageX,y:e.pageY}}}const uP=e=>t=>dc(t)&&e(t,rr(t));function Pn(e,t,n,r){return Vn(e,t,uP(n),r)}const Ex=({current:e})=>e?e.ownerDocument.defaultView:null,ul=(e,t)=>Math.abs(e-t);function lP(e,t){const n=ul(e.x,t.x),r=ul(e.y,t.y);return Math.sqrt(n**2+r**2)}const ll=new Set(["auto","scroll"]);class bx{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:c=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Hi(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=lP(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:x}=p,{timestamp:y}=ge;this.history.push({...x,timestamp:y});const{onStart:E,onMove:b}=this.handlers;m||(E&&E(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=zi(m,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Hi(p.type==="pointercancel"?this.lastMoveEventInfo:zi(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,E),x&&x(p,E)},!dc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=c,this.contextWindow=o||window;const u=rr(t),i=zi(u,this.transformPagePoint),{point:a}=i,{timestamp:d}=ge;this.history=[{...a,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Hi(i,this.history)),this.removeListeners=er(Pn(this.contextWindow,"pointermove",this.handlePointerMove),Pn(this.contextWindow,"pointerup",this.handlePointerUp),Pn(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ll.has(r.overflowX)||ll.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),se.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),dt(this.updatePoint)}}function zi(e,t){return t?{point:t(e.point)}:e}function dl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hi({point:e},t){return{point:e,delta:dl(e,wx(t)),offset:dl(e,dP(t)),velocity:fP(t,.1)}}function dP(e){return e[0]}function wx(e){return e[e.length-1]}function fP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ke(t)));)n--;if(!r)return{x:0,y:0};const s=Me(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const c={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function hP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ue(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ue(n,e,r.max):Math.min(e,n)),e}function fl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pP(e,{top:t,left:n,bottom:r,right:o}){return{x:fl(e.x,n,o),y:fl(e.y,t,r)}}function hl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function mP(e,t){return{x:hl(e.x,t.x),y:hl(e.y,t.y)}}function gP(e,t){let n=.5;const r=we(e),o=we(t);return o>r?n=Nn(t.min,t.max-r,e.min):r>o&&(n=Nn(e.min,e.max-o,t.min)),Ze(0,1,n)}function xP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ws=.35;function vP(e=Ws){return e===!1?e=0:e===!0&&(e=Ws),{x:pl(e,"left","right"),y:pl(e,"top","bottom")}}function pl(e,t,n){return{min:ml(e,t),max:ml(e,n)}}function ml(e,t){return typeof e=="number"?e:e[t]||0}const yP=new WeakMap;class EP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=d=>{n?(this.stopAnimation(),this.snapToCursor(rr(d).point)):this.pauseAnimation()},c=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=o_(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ae(y=>{let E=this.getAxisMotionValue(y).get()||0;if(Xe.test(E)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[y];w&&(E=we(w)*(parseFloat(E)/100))}}this.originPoint[y]=E}),g&&se.update(()=>g(d,f),!1,!0),Fs(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=bP(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),x&&se.update(()=>x(d,f),!1,!0)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>Ae(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new bx(t,{onSessionStart:s,onStart:c,onMove:l,onSessionEnd:u,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:r,contextWindow:Ex(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:l}=this.getProps();l&&se.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!yr(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=hP(c,this.constraints[t],this.elastic[t])),s.set(c)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,o=this.constraints;t&&Cn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=pP(r.layoutBox,t):this.constraints=!1,this.elastic=vP(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ae(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=xP(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cn(t))return!1;const r=t.current;nt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=S_(r,o.root,this.visualElement.getTransformPagePoint());let c=mP(o.layout.layoutBox,s);if(n){const l=n(b_(c));this.hasMutatedConstraints=!!l,l&&(c=Gg(l))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:c,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},i=Ae(a=>{if(!yr(a,n,this.currentDirection))return;let d=u&&u[a]||{};c&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[a]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(a,m)});return Promise.all(i).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fs(this.visualElement,t),r.start(sc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ae(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ae(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ae(n=>{const{drag:r}=this.getProps();if(!yr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:l}=o.layout.layoutBox[n],u=s.get()||0;s.set(t[n]-ue(c,l,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ae(c=>{const l=this.getAxisMotionValue(c);if(l&&this.constraints!==!1){const u=l.get();o[c]=gP({min:u,max:u},this.constraints[c])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ae(c=>{if(!yr(c,t,null))return;const l=this.getAxisMotionValue(c),{min:u,max:i}=this.constraints[c];l.set(ue(u,i,o[c]))})}addListeners(){if(!this.visualElement.current)return;yP.set(this.visualElement,this);const t=this.visualElement.current,n=Pn(t,"pointerdown",u=>{const{drag:i,dragListener:a=!0}=this.getProps(),d=u.target,f=d!==t&&u_(d);i&&a&&!f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Cn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),se.read(r);const c=Vn(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:i})=>{this.isDragging&&i&&(Ae(a=>{const d=this.getAxisMotionValue(a);d&&(this.originPoint[a]+=u[a].translate,d.set(d.get()+u[a].translate))}),this.visualElement.render())}));return()=>{c(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:c=Ws,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:c,dragMomentum:l}}}function yr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class wP extends yt{constructor(t){super(t),this.removeGroupControls=De,this.removeListeners=De,this.controls=new EP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Wi=e=>(t,n)=>{e&&se.update(()=>e(t,n),!1,!0)};class RP extends yt{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(t){this.session=new bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ex(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wi(t),onStart:Wi(n),onMove:Wi(r),onEnd:(s,c)=>{delete this.session,o&&se.postRender(()=>o(s,c))}}}mount(){this.removePointerDownListener=Pn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let qi=!1;class SP extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),qi&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),po.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:c}=r;return c&&(c.isPresent=s,t.layoutDependency!==n&&c.setOptions({...c.options,layoutDependency:n}),qi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?c.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?c.promote():c.relegate()||se.postRender(()=>{const l=c.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;qi=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rx(e){const[t,n]=dx(),r=S.useContext($a);return h.jsxRuntimeExports.jsx(SP,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(vx),isPresent:t,safeToRemove:n})}const CP={pan:{Feature:RP},drag:{Feature:wP,ProjectionNode:lx,MeasureLayout:Rx}};function gl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&se.postRender(()=>s(t,rr(t)))}class _P extends yt{mount(){const{current:t}=this.node;t&&(this.unmount=i_(t,(n,r)=>(gl(this.node,r,"Start"),o=>gl(this.node,o,"End"))))}unmount(){}}class jP extends yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=er(Vn(this.node.current,"focus",()=>this.onFocus()),Vn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&se.postRender(()=>s(t,rr(t)))}class PP extends yt{mount(){const{current:t}=this.node;t&&(this.unmount=d_(t,(n,r)=>(xl(this.node,r,"Start"),(o,{success:s})=>xl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qs=new WeakMap,Ki=new WeakMap,TP=e=>{const t=qs.get(e.target);t&&t(e)},AP=e=>{e.forEach(TP)};function OP({root:e,...t}){const n=e||document;Ki.has(n)||Ki.set(n,{});const r=Ki.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(AP,{root:e,...t})),r[o]}function MP(e,t,n){const r=OP(t);return qs.set(e,n),r.observe(e),()=>{qs.delete(e),r.unobserve(e)}}const IP={some:0,all:1};class DP extends yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:IP[o]},l=u=>{const{isIntersecting:i}=u;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);const{onViewportEnter:a,onViewportLeave:d}=this.node.getProps(),f=i?a:d;f&&f(u)};return MP(this.node.current,c,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(NP(t,n))&&this.startObserver()}unmount(){}}function NP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kP={inView:{Feature:DP},tap:{Feature:PP},focus:{Feature:jP},hover:{Feature:_P}},LP={layout:{ProjectionNode:lx,MeasureLayout:Rx}},FP={...cP,...kP,...CP,...LP},re=rP(FP,oP),VP=S.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},s)=>h.jsxRuntimeExports.jsx($v,{...o,className:M.classNames("overflow-hidden bg-white",t),ref:s,asChild:!0,children:h.jsxRuntimeExports.jsxs(re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&h.jsxRuntimeExports.jsx("hr",{className:M.classNames("bg-primary-blue h-0.5 border-0",n)}),h.jsxRuntimeExports.jsx("div",{className:"px-5 py-[15px]",children:e})]})})),BP=({items:e,classNames:t,showDivider:n,defaultValue:r})=>h.jsxRuntimeExports.jsx(Lv,{className:M.classNames("flex flex-col space-y-4",t==null?void 0:t.container),type:"single",defaultValue:r,collapsible:!0,children:e==null?void 0:e.map(o=>h.jsxRuntimeExports.jsxs(JR,{className:t==null?void 0:t.item,value:o.id,children:[h.jsxRuntimeExports.jsx(eS,{className:t==null?void 0:t.trigger,triggerIcon:o==null?void 0:o.triggerIcon,children:o.title}),h.jsxRuntimeExports.jsx(VP,{showDivider:n,dividerClassName:t==null?void 0:t.divider,className:t==null?void 0:t.content,children:o.content})]},o.id))}),$P={success:h.jsxRuntimeExports.jsx(ne.SvgIconCheckCircle,{width:24,height:24}),info:h.jsxRuntimeExports.jsx(ne.SvgIconInfoCircle,{width:24,height:24}),warning:h.jsxRuntimeExports.jsx(ne.SvgIconWarningCircle,{width:24,height:24}),error:h.jsxRuntimeExports.jsx(ne.SvgIconErrorCircle,{width:24,height:24})},UP={success:"text-green-6",info:"text-blue-6",warning:"text-gold-6",error:"text-red-6"},GP={success:"text-gray-6 hover:bg-gray-100 cursor-pointer",error:"text-gray-6 hover:bg-gray-100 cursor-pointer",warning:"text-gray-6 hover:bg-gray-100 cursor-pointer",info:"text-gray-6 hover:bg-gray-100 cursor-pointer"},zP={success:"bg-green-1 border border-green-3",info:"bg-blue-1 border border-blue-3",warning:"bg-gold-1 border border-gold-3",error:"bg-red-1 border border-red-3"},HP=({type:e="info",title:t,description:n,showIcon:r=!0,closable:o=!1,onClose:s,className:c="",children:l,...u})=>{const i=!!t&&!n&&!l||!t&&!!n&&!l;return h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:M.classNames("relative border rounded-lg p-4",zP[e],{[c]:c}),...u,children:[h.jsxRuntimeExports.jsxs(Ne,{gap:4,align:i?"center":"start",children:[r&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("shrink-0",UP[e]),children:$P[e]}),h.jsxRuntimeExports.jsxs(Ne,{direction:i?"horizontal":"vertical",gap:0,className:"flex-1 min-w-0",align:i?"center":"start",children:[t&&h.jsxRuntimeExports.jsx("h4",{className:"text-base font-medium leading-tight text-gray-12",children:t}),n&&h.jsxRuntimeExports.jsx("p",{className:M.classNames("text-sm font-medium leading-tight text-gray-12",{"mt-2":!!t&&!i}),children:n}),l&&h.jsxRuntimeExports.jsx("div",{className:"mt-2",children:l})]})]}),o&&h.jsxRuntimeExports.jsx("button",{onClick:s,className:M.classNames("absolute top-4 right-4 p-1 rounded transition-colors",GP[e]),"aria-label":"Cerrar alerta",children:h.jsxRuntimeExports.jsx(ne.SvgClose,{width:16,height:16})})]})},WP={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},qP=({size:e="md",src:t,alt:n="avatar",icon:r=h.jsxRuntimeExports.jsx(ne.SvgUser,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:s="text-white",className:c="",onClick:l,style:u})=>h.jsxRuntimeExports.jsxs(py,{className:M.classNames("inline-flex shrink-0 overflow-hidden rounded-full",WP[e],c),onClick:l,style:u,children:[t&&h.jsxRuntimeExports.jsx(my,{src:t,alt:n,className:"h-full w-full object-cover"}),h.jsxRuntimeExports.jsx(gy,{delayMs:0,className:M.classNames("flex h-full w-full items-center justify-center rounded-full",s,o),children:r})]}),KP={default:M.classNames("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),primary:M.classNames("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),secondary:M.classNames("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),text:M.classNames("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),danger:M.classNames("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10"),withoutColor:"bg-transparent border-transparent shadow-none"},XP={sm:"px-3 text-sm h-6 rounded-md",md:"px-4 py-2 h-8",lg:"px-6 py-[7px] text-base h-10 rounded-lg",xl:"px-6 py-[11px] h-12"},vl=["sm","md","lg","xl"],YP=e=>{const t=vl.indexOf(e);return t===-1?"":M.classNames(vl.slice(0,t+1).map(n=>XP[n]))},ZP={pointer:"cursor-pointer",default:"cursor-default","not-allowed":"cursor-not-allowed",wait:"cursor-wait",text:"cursor-text"},QP=e=>M.classNames("flex items-center justify-center gap-2 border active:scale-95",ZP[e],"disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5 disabled:cursor-not-allowed","transition-all duration-300 ease-in-out","shadow-button"),Ks=({icon:e,children:t,leftIcon:n,rightIcon:r,type:o="button",variant:s="default",size:c="md",className:l="",isLoading:u=!1,positionLoading:i="left",cursor:a="pointer",...d})=>{const f=S.useId(),p=QP(a),{isLeftLoading:m,isRightLoading:g}=S.useMemo(()=>({isLeftLoading:i==="left"&&u,isRightLoading:i==="right"&&u}),[u,i]),x=S.useMemo(()=>["primary","secondary","text","withoutColor"].includes(s)?h.jsxRuntimeExports.jsx(ne.SvgLoaderAnimBlue,{className:"animate-spin"}):h.jsxRuntimeExports.jsx(ne.SvgLoaderAnimWhite,{className:"animate-spin"}),[s]),y=S.useMemo(()=>e??n,[e,n]);return h.jsxRuntimeExports.jsxs(re.button,{id:`${f}-button`,className:M.classNames(p,KP[s],YP(c),l),type:o,...d,children:[h.jsxRuntimeExports.jsx(Ot,{mode:"wait",children:(m||y)&&h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.2},children:m?x:y},"leftIcon")}),typeof t=="string"||typeof t=="number"?h.jsxRuntimeExports.jsx("span",{className:"whitespace-normal",children:t}):t,h.jsxRuntimeExports.jsx(Ot,{mode:"wait",children:(g||r)&&h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,x:8},animate:{opacity:1,x:0},exit:{opacity:0,x:8},transition:{duration:.2},children:g?x:r},"rightIcon")})]})},JP=({children:e,className:t="",align:n="horizontal",shadow:r=!0,rounded:o=!0,bordered:s=!0,...c})=>{const{...l}=c,u=M.classNames("bg-white p-4",{"flex flex-col":n==="horizontal","flex flex-col md:flex-row md:max-w-xl":n==="vertical"},{"shadow-lg":r},{"rounded-2xl":o},{"border border-gray-200":s},{[t]:t});return h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:u,...l,children:e})},eT={sm:"h-4 w-4",md:"h-6 w-6"},tT={sm:"h-3 w-3",md:"h-4 w-4"},nT={sm:"h-2 w-2",md:"h-4 w-4"},rT={sm:"text-sm",md:"text-base"},oT=({size:e,disabled:t})=>({checked:h.jsxRuntimeExports.jsx(ne.SvgCheckv2,{className:M.classNames(tT[e],t?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:h.jsxRuntimeExports.jsx(ne.SvgIndeterminate,{className:M.classNames(nT[e],t?"text-stone-300 fill-stone-300":"text-blue-800")})}),iT=({size:e,disabled:t,children:n,checkboxId:r})=>n?h.jsxRuntimeExports.jsx("label",{htmlFor:r,className:M.classNames(rT[e],t&&"text-gray-400","cursor-pointer"),children:n}):null,Sx=S.forwardRef(({size:e="md",checked:t,indeterminate:n=!1,disabled:r=!1,onCheckedChange:o,className:s,children:c,...l},u)=>{const i=S.useId(),a=n?"indeterminate":t?"checked":"none",d=f=>{r||o==null||o(f===!0)};return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("flex gap-2 items-start sm:items-center select-none",r?"pointer-events-none":"cursor-pointer",s),children:[h.jsxRuntimeExports.jsx($f,{id:i,ref:u,checked:t,"aria-checked":n?"mixed":t,disabled:r,onCheckedChange:d,className:M.classNames("flex justify-center items-center rounded-sm border relative transition-[background-color] cursor-pointer",eT[e],{"bg-white border-gray-300 hover:border-blue-800":!t&&!r,"bg-blue-800 border-blue-800":t&&!n&&!r||n&&!r,"bg-neutral-100 border-stone-300":r}),...l,children:a!=="none"&&oT({size:e,disabled:r})[a]}),h.jsxRuntimeExports.jsx(iT,{size:e,disabled:r,children:c,checkboxId:i})]})});Sx.displayName="Checkbox";const sT=({children:e,className:t,width:n="min-w-full w-full",type:r="horizontal",align:o="center"})=>{const s={left:"before:w-[5%] after:w-full",center:"before:w-full after:w-full",right:"before:w-full after:w-[5%]"};return h.jsxRuntimeExports.jsx("div",{className:M.classNames("p-0 m-0 box-border",{"flex h-px items-center":r==="horizontal","inline-block border-s border-s-gray-5 min-h-[1em] h-full":r==="vertical","bg-grays-Macropay-05":r==="horizontal"&&!e,"whitespace-nowrap before:h-px after:h-px before:bg-grays-Macropay-05 after:bg-grays-Macropay-05":r==="horizontal"&&e,[`${s[o]}`]:o,[n]:n&&r==="horizontal",[`${t}`]:t}),children:e&&r==="horizontal"&&h.jsxRuntimeExports.jsx("span",{className:M.classNames("inline-block ps-4 pe-4",{[`text-${o}`]:o}),children:e})})},aT=({children:e,id:t,className:n=""})=>{const r=S.useRef(null),[o,s]=S.useState(!1);return S.useEffect(()=>{const c=document.getElementById(t)||document.createElement("div");return r.current=c,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),s(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?Vd.createPortal(e,r.current):null},Cx=S.memo(aT),mn={backdrop:"fixed inset-0 bg-black/50",drawer:"fixed top-0 h-full w-80 bg-white shadow-xl",header:"flex justify-end absolute right-7",closeButton:"text-gray-500 hover:text-gray-700",children:"overflow-y-auto h-[calc(100%-3rem)]"},cT={right:"right-0",left:"left-0"},Er={backdrop:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},drawer:{transition:{type:"tween",duration:.2}}},uT=({open:e,onClose:t,children:n,position:r="right",className:o="",classNames:s={backdrop:"",drawer:"",header:"",children:""}})=>(S.useEffect(()=>{const c=l=>{l.key==="Escape"&&t()};return e&&document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),h.jsxRuntimeExports.jsx(Cx,{id:"drawer",children:h.jsxRuntimeExports.jsx(Ot,{children:e&&h.jsxRuntimeExports.jsxs(h.jsxRuntimeExports.Fragment,{children:[h.jsxRuntimeExports.jsx(re.div,{className:M.classNames(mn.backdrop,s.backdrop),initial:Er.backdrop.initial,animate:Er.backdrop.animate,exit:Er.backdrop.exit,onClick:t}),h.jsxRuntimeExports.jsxs(re.div,{className:M.classNames(mn.drawer,cT[r],s.drawer,o),initial:{x:r==="right"?"100%":"-100%"},animate:{x:0},exit:{x:r==="right"?"100%":"-100%"},transition:Er.drawer.transition,children:[h.jsxRuntimeExports.jsx("div",{className:M.classNames(mn.header,s.header),children:h.jsxRuntimeExports.jsx("button",{onClick:t,className:mn.closeButton,children:"✕"})}),h.jsxRuntimeExports.jsx("div",{className:M.classNames(mn.children,s.children),children:n})]})]})})})),lT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(u1,{className:M.classNames("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),dT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(l1,{children:h.jsxRuntimeExports.jsx(d1,{...n,className:M.classNames("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:h.jsxRuntimeExports.jsx("div",{className:"p-1",children:e})})})})),fT=S.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},s)=>h.jsxRuntimeExports.jsxs(h1,{className:M.classNames("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:s,...o,children:[h.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[n&&h.jsxRuntimeExports.jsx("span",{className:"inline-flex shrink-0",children:n}),h.jsxRuntimeExports.jsx("span",{children:e})]}),r&&h.jsxRuntimeExports.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),hT=S.forwardRef(({className:e,...t},n)=>h.jsxRuntimeExports.jsx(p1,{className:M.classNames("my-1 h-px bg-gray-3",e),ref:n,...t})),pT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(f1,{className:M.classNames("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),mT=(e,t)=>{const n={separator:()=>h.jsxRuntimeExports.jsx(hT,{className:t==null?void 0:t.separator},e.id),label:()=>h.jsxRuntimeExports.jsx(pT,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>h.jsxRuntimeExports.jsx(fT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},gT=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>h.jsxRuntimeExports.jsxs(c1,{children:[h.jsxRuntimeExports.jsx(lT,{children:e}),h.jsxRuntimeExports.jsx(dT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(s=>h.jsxRuntimeExports.jsx("div",{children:mT(s,o)},s.id))})]}),br={container:"container mx-auto",wrapper:"flex flex-col items-center",icon:"text-3xl text-gray-300",text:"mt-3 text-base text-gray-300 font-normal"},xT=({text:e="No hay datos para mostrar",className:t="",icon:n=h.jsxRuntimeExports.jsx(ne.SvgEmpty,{})})=>h.jsxRuntimeExports.jsx(h.Slot,{children:h.jsxRuntimeExports.jsx(re.section,{"data-cy":"empty-component",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},className:M.classNames(br.container,t),children:h.jsxRuntimeExports.jsxs("div",{className:br.wrapper,children:[h.jsxRuntimeExports.jsx(re.div,{initial:{scale:.9},animate:{scale:1},transition:{duration:.2},children:S.cloneElement(n,{className:M.classNames(br.icon,n.props.className),...n.props})}),h.jsxRuntimeExports.jsx(re.h1,{"data-cy":"empty-text",className:br.text,initial:{opacity:0},animate:{opacity:1},transition:{delay:.1},children:e})]})})});var _x=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(_x||{});const{align:vT,justify:yT,gap:ET}=_x,bT={horizontal:"flex-row",vertical:"flex-col"},wT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},Ne=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:s=!1,style:c,className:l="",onClick:u,wrap:i,...a})=>h.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,className:M.classNames(`flex ${s?wT[o]:bT[o]}`,Oe.generateClasses(ET,r),Oe.generateClasses(yT,t),Oe.generateClasses(vT,n),{[l]:l,"flex-wrap":i}),onClick:u,style:c,children:e,...a}),RT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},jx=(e,t,n,r,o)=>{const s=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],c=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],l={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:RT[t],stateStyles:l,baseStyles:s,variantStyles:c}},Px=({onClick:e,disabled:t})=>h.jsxRuntimeExports.jsx(re.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{})},"clear-button"),ST=({error:e,size:t="md",check:n,icon:r,leftIcon:o,clear:s=!0,disabled:c=!1,variant:l="default",className:u,...i})=>{const[a,d]=S.useState(i.value??""),{baseStyles:f,variantStyles:p,sizeStyles:m,stateStyles:g}=jx(l,t,e,n,!!r),x=S.useMemo(()=>s&&a?h.jsxRuntimeExports.jsx(Px,{disabled:c,onClick:()=>d("")}):o?h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:o}):null,[s,a,o,c]);return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("relative",u),children:[r&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:r}),h.jsxRuntimeExports.jsx(re.input,{...i,value:a,disabled:c,onChange:y=>d(y.target.value),className:M.classNames(...f,...p,m,g,u)}),h.jsxRuntimeExports.jsx(Ot,{children:x})]})},CT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:s,currency:c,currencyDisplay:l,locale:u,prefix:i="",suffix:a=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...s==="currency"&&{style:"currency",currency:c,currencyDisplay:l}},f=new Intl.NumberFormat(u,d).format(e);return`${i} ${f} ${a}`.trim()},_T=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),s=Number.parseFloat(o);return Number.isNaN(s)?null:s},jT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),PT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:s="decimal",currency:c="MXN",currencyDisplay:l="symbol",useGrouping:u=!0,minFractionDigits:i,maxFractionDigits:a,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:g,...x}=e,[y,E]=S.useState(Number((x==null?void 0:x.value)??null)),[b,w]=S.useState(""),[R,_]=S.useState(!1),j=S.useMemo(()=>({format:r,useGrouping:u,minFractionDigits:i,maxFractionDigits:a,mode:s,currency:c,currencyDisplay:l,locale:o,prefix:m,suffix:g}),[r,u,i,a,s,c,l,o,m,g]),P=S.useCallback(B=>CT({num:B,...j}),[j]),T=S.useCallback(B=>_T(B,m,g,p),[m,g,p]);S.useEffect(()=>{R||w(P(y))},[y,P,R]);const C=S.useCallback(B=>{const q=B.target.value;w(q);const U=T(q);jT(U,d,f)&&(E(U),t==null||t(U),n==null||n({originalEvent:B.nativeEvent,value:U}))},[T,d,f,t,n]),O=S.useCallback(B=>{var q;_(!0),y!=null&&w(y.toString()),(q=x.onFocus)==null||q.call(x,B)},[y,x]),I=S.useCallback(B=>{var q;_(!1),w(P(y)),(q=x.onBlur)==null||q.call(x,B)},[P,y,x]),k=S.useCallback(()=>{w(""),E(null),t==null||t(null)},[t]);return{displayValue:b,handleChange:C,handleFocus:O,handleBlur:I,handleClear:k,...x}},Tx=S.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:s,leftIcon:c,clear:l=!0,disabled:u=!1,variant:i="default",className:a,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:g,...x}=PT(e),{baseStyles:y,variantStyles:E,sizeStyles:b,stateStyles:w}=jx(i,r,n,o,!!s),R=S.useMemo(()=>l&&d?h.jsxRuntimeExports.jsx(Px,{disabled:u,onClick:g}):c?h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:c}):null,[l,d,c,u,g]);return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("relative",a),children:[s&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:s}),h.jsxRuntimeExports.jsx(re.input,{...x,ref:t,type:"text",value:d,disabled:u,onChange:f,onFocus:p,onBlur:m,className:M.classNames(...y,...E,b,w,a)}),h.jsxRuntimeExports.jsx(Ot,{children:R})]})});Tx.displayName="InputNumber";const TT={Text:ST,Number:Tx},yl=(e,t)=>`${e}-${t}`,mi=S.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:s="base",weight:c="normal",...l},u)=>{if(!e)return null;const i=yl("text",s),a=yl("font",c),d=n?h.Slot:t??"p";return h.jsxRuntimeExports.jsx(d,{ref:u,className:M.classNames("text-grays-Macropay-10",i,a,r,{italic:o}),...l,children:e})});mi.displayName="Typography";const AT=({children:e,as:t="p",className:n,...r})=>h.jsxRuntimeExports.jsx(mi,{as:t,className:n,...r,children:e}),OT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},MT={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},IT=({children:e,className:t="",level:n=1,...r})=>{const o=MT[n];return h.jsxRuntimeExports.jsx(mi,{as:o,weight:"bold",className:`${OT[n]} ${t}`,...r,children:e})},dn=mi;dn.Text=AT;dn.Title=IT;const DT=({title:e,className:t=""})=>h.jsxRuntimeExports.jsx(dn.Title,{level:3,className:t,children:e}),NT={sm:"12rem",md:"16rem",lg:"20rem",xl:"24rem"},kT={sm:"w-56",md:"w-64",lg:"w-80",xl:"w-96"},LT={sm:"px-2 py-1.5",md:"px-3 py-2",lg:"px-4 py-2.5",xl:"px-5 py-3"},Ax={sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},FT=({item:e,index:t,isLast:n,size:r,itemClassName:o=""})=>{const s=e.href?"a":"button",c=e.href?{href:e.href}:{onClick:e.onClick,type:"button"};return h.jsxRuntimeExports.jsx(re.li,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:t*.05},className:M.classNames("border-gray-5 transition-colors duration-200",{"border-b":!n,"hover:bg-gray-3":!e.disabled,"opacity-50 cursor-not-allowed":e.disabled}),children:h.jsxRuntimeExports.jsx(s,{...c,disabled:e.disabled,className:M.classNames("w-full text-left block",LT[r],Ax[r],"text-gray-12 no-underline","focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-inset",{"cursor-pointer":!e.disabled,"cursor-not-allowed":e.disabled,[o]:o}),children:e.content})},e.id)},VT=({message:e,size:t})=>h.jsxRuntimeExports.jsx("li",{className:M.classNames("flex items-center justify-center h-full text-gray-9",Ax[t]),children:e}),BT=({paginatedItems:e,containerHeight:t,size:n,withPagination:r,showBorder:o,showShadow:s,emptyMessage:c,itemClassName:l=""})=>h.jsxRuntimeExports.jsx("ul",{style:{height:r?"auto":t},className:M.classNames(kT[n],"rounded-lg",{"border border-gray-6":o,"shadow-md":s,"overflow-y-auto scroll-smooth":!r}),children:e.length===0?h.jsxRuntimeExports.jsx(VT,{message:c,size:n}):e.map((u,i)=>h.jsxRuntimeExports.jsx(FT,{item:u,index:i,isLast:i===e.length-1,size:n,itemClassName:l},u.id))}),$T=(e,t,n,r)=>S.useMemo(()=>{if(!t)return e;const o=(n-1)*r,s=o+r;return e.slice(o,s)},[e,t,n,r]),UT=(e,t)=>S.useMemo(()=>Math.ceil(e/t),[e,t]),GT=(e,t)=>t||NT[e],zT=e=>t=>{e&&e(t)},HT=({items:e,title:t,size:n="md",withPagination:r=!1,currentPage:o=1,itemsPerPage:s=10,onPageChange:c,showBorder:l=!0,showShadow:u=!0,height:i,className:a="",titleClassName:d="",itemClassName:f="",emptyMessage:p="No items to display",onAnimationStart:m,onAnimationEnd:g,onAnimationIteration:x,...y})=>{const E=$T(e,r,o,s),b=UT(e.length,s),w=GT(n,i),R=zT(c);return h.jsxRuntimeExports.jsx("div",{onAnimationStart:m,onAnimationEnd:g,onAnimationIteration:x,...y,children:h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:M.classNames("flex flex-col",{[a]:a}),children:[t&&h.jsxRuntimeExports.jsx(DT,{title:t,size:n,className:d}),h.jsxRuntimeExports.jsx(BT,{paginatedItems:E,containerHeight:w,size:n,withPagination:r,showBorder:l,showShadow:u,emptyMessage:p,itemClassName:f}),r&&b>1&&h.jsxRuntimeExports.jsx(Ox,{currentPage:o,totalPages:b,onPageChange:R,size:n})]})})},WT={hidden:{opacity:0},visible:{opacity:1},exit:{opacity:0}},qT={hidden:{opacity:0,scale:.95,y:8},visible:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:8}},KT=()=>h.jsxRuntimeExports.jsx(ty,{asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{className:`\r
|
|
75
|
-
fixed inset-0 z-10
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
backdrop-filter backdrop-blur-sm\r
|
|
79
|
-
`,variants:WT,initial:"hidden",animate:"visible",exit:"exit",onClick:e=>e.stopPropagation()})}),XT=({children:e,panelClassName:t,isCloseAble:n,onClose:r})=>h.jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:h.jsxRuntimeExports.jsx(Ne,{align:"center",justify:"center",className:"min-h-full p-4 text-center items-center",children:h.jsxRuntimeExports.jsx(ny,{asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{variants:qT,initial:"hidden",animate:"visible",exit:"exit",transition:{duration:.2,ease:"easeOut"},className:M.classNames("relative min-w-full md:min-w-104.5 p-6 md:p-8 transform rounded-lg bg-white text-left shadow-xl outline-none max-w-lg",{[t]:t}),children:h.jsxRuntimeExports.jsxs(Ne,{className:"relative gap-6",direction:"vertical",align:"center",children:[n&&h.jsxRuntimeExports.jsx("button",{className:"absolute -right-4 -top-4 md:-right-5 w-auto h-auto",onClick:r,children:h.jsxRuntimeExports.jsx(ne.SvgClose,{className:"cursor-pointer text-gray-7 text-2xl"})}),e]})})})})}),YT=({type:e="default",title:t,message:n,titleAlign:r="left",children:o})=>!t&&!n?null:h.jsxRuntimeExports.jsxs(Ne,{gap:4,className:M.classNames("w-full",{hidden:!t&&!n}),children:[e!=="default"&&h.jsxRuntimeExports.jsxs(Ne,{align:"center",justify:"center",className:M.classNames("w-6 h-6 md:h-7 md:w-7 shrink-0 rounded-full text-white",{"bg-error":e==="error","bg-success":e==="success","bg-warning":e==="warning","bg-info":e==="info"}),children:[e==="error"&&h.jsxRuntimeExports.jsx(ne.SvgClose,{}),e==="success"&&h.jsxRuntimeExports.jsx(ne.SvgDone,{}),e==="warning"&&h.jsxRuntimeExports.jsx(ne.SvgExclamation,{}),e==="info"&&h.jsxRuntimeExports.jsx(ne.SvgInfo,{})]}),h.jsxRuntimeExports.jsxs(Ne,{direction:"vertical",gap:2,className:"w-full",children:[typeof t!="string"?t:h.jsxRuntimeExports.jsx(ry,{asChild:!0,children:h.jsxRuntimeExports.jsx(dn.Title,{weight:"semibold",level:4,...typeof t!="string"?t:{},className:M.classNames("inline-block",{[`text-${r}`]:r}),children:typeof t=="string"?t:o})}),n&&h.jsxRuntimeExports.jsx(oy,{asChild:!0,children:h.jsxRuntimeExports.jsx("span",{className:"text-base font-normal text-black text-opacity-85",children:n})})]})]}),ZT=({buttonCancel:e,buttonOk:t})=>!e&&!t?null:h.jsxRuntimeExports.jsxs("div",{className:"w-full max-[400px]:grid grid-cols-1 flex flex-wrap justify-end gap-4",children:[t&&h.jsxRuntimeExports.jsx(Ks,{className:"outline-none inline-flex max-[400px]:order-1 order-2",variant:"primary",size:"xl",...t}),e&&h.jsxRuntimeExports.jsx(Ks,{className:"outline-none inline-flex max-[400px]:order-2 order-1",variant:"secondary",size:"xl",...e})]}),QT=({isOpen:e,onClose:t=()=>{},children:n,header:r,title:o,message:s,type:c,titleAlign:l,buttonOk:u,buttonCancel:i,isCloseAble:a,className:d=""})=>h.jsxRuntimeExports.jsx(J0,{open:e,children:h.jsxRuntimeExports.jsx(Ot,{children:e&&h.jsxRuntimeExports.jsxs(ey,{forceMount:!0,children:[h.jsxRuntimeExports.jsx(KT,{}),h.jsxRuntimeExports.jsxs(XT,{panelClassName:d,isCloseAble:a,onClose:t,children:[r,h.jsxRuntimeExports.jsx(YT,{type:c,title:o,message:s,titleAlign:l,children:n}),n&&h.jsxRuntimeExports.jsx("div",{children:n,className:"w-full"}),h.jsxRuntimeExports.jsx(ZT,{buttonOk:u,buttonCancel:i})]})]})})}),JT={success:{icon:h.jsxRuntimeExports.jsx(ne.SvgCheckCircle,{className:"size-6"}),borderColor:"border-green-6",iconColor:"text-green-6"},error:{icon:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{className:"size-6"}),borderColor:"border-primary-red",iconColor:"text-primary-red"},warning:{icon:h.jsxRuntimeExports.jsx(ne.SvgIconWarning,{className:"size-6"}),borderColor:"border-gold-6",iconColor:"text-gold-6"},info:{icon:h.jsxRuntimeExports.jsx(ne.SvgInfoCircle,{className:"size-6"}),borderColor:"border-blue-500",iconColor:"text-blue-500"},default:{icon:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{className:"size-6"}),borderColor:"border-gray-300",iconColor:"text-primary-blue"}},eA=e=>({"top-left":{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-100,scale:.95}},"top-right":{initial:{opacity:0,x:100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:100,scale:.95}},"top-center":{initial:{opacity:0,y:-50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-50,scale:.95}},"bottom-left":{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-100,scale:.95}},"bottom-right":{initial:{opacity:0,x:100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:100,scale:.95}},"bottom-center":{initial:{opacity:0,y:50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:50,scale:.95}}})[e||"top-right"],tA=({onClose:e,id:t})=>h.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>e==null?void 0:e(t),className:"absolute top-2 right-2 shrink-0 p-1 rounded-md transition-colors text-gray-10 hover:text-gray-12 hover:bg-gray-4 focus:outline-none focus:ring-2 focus:ring-gray-7 cursor-pointer","aria-label":"Close notification",children:h.jsxRuntimeExports.jsx(ne.SvgClose,{className:"size-6"})}),nA=({IconComponent:e,iconColor:t,defaultIconColor:n})=>e?h.jsxRuntimeExports.jsx(Ne,{align:"center",justify:"center",className:M.classNames("w-7 h-7 shrink-0 sm:w-6 sm:h-6",t||n),children:e}):null,{Title:rA,Text:oA}=dn,iA=({title:e,message:t,children:n})=>h.jsxRuntimeExports.jsxs(Ne,{gap:2,direction:"vertical",justify:"center",className:"w-full",children:[e&&h.jsxRuntimeExports.jsx(rA,{level:6,weight:"medium",children:e}),t&&h.jsxRuntimeExports.jsx(oA,{className:"leading-5",size:"sm",children:t}),n]}),sA=({type:e="default",title:t,message:n,duration:r=4e3,id:o,placement:s="top-right",showIcon:c=!0,closable:l=!1,onClose:u,className:i="",children:a,borderColor:d,iconColor:f,...p})=>{const{initial:m,animate:g,exit:x}=eA(s);S.useEffect(()=>{if(r>0){const w=setTimeout(()=>{u==null||u(o)},r);return()=>clearTimeout(w)}},[r,o,u]);const y=e?JT[e]:null,E=y==null?void 0:y.icon,b=M.classNames("px-6 py-4 rounded flex gap-4 max-w-96 shadow-md relative border bg-white",d||(y==null?void 0:y.borderColor),i);return h.jsxRuntimeExports.jsxs(re.div,{layout:!0,initial:m,animate:g,exit:x,transition:{duration:.35,ease:"easeOut"},className:b,role:"alert","aria-live":"polite",...p,children:[l&&h.jsxRuntimeExports.jsx(tA,{onClose:u,id:o}),c&&h.jsxRuntimeExports.jsx(nA,{IconComponent:E,iconColor:f,defaultIconColor:y==null?void 0:y.iconColor}),h.jsxRuntimeExports.jsx(iA,{title:t,message:n,children:a})]})},yc={sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},Ec={sm:"min-w-8 h-8",md:"min-w-9 h-9",lg:"min-w-10 h-10",xl:"min-w-12 h-12"},aA=5,El=({onClick:e,disabled:t,size:n,label:r,children:o})=>h.jsxRuntimeExports.jsx(re.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:e,disabled:t,className:M.classNames(Ec[n],yc[n],"flex items-center justify-center rounded-md border border-gray-6","transition-colors duration-200","hover:bg-gray-3 active:bg-gray-4","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),"aria-label":r,children:o}),cA=({pageNumber:e,isActive:t,onPageChange:n,size:r})=>h.jsxRuntimeExports.jsx(re.button,{whileHover:{scale:t?1:1.05},whileTap:{scale:.95},onClick:()=>n(e),className:M.classNames(Ec[r],yc[r],"flex items-center justify-center rounded-md border transition-colors duration-200",{"bg-primary-blue text-white border-primary-blue":t,"border-gray-6 hover:bg-gray-3 active:bg-gray-4":!t}),"aria-label":`Page ${e}`,"aria-current":t?"page":void 0,children:e},e),uA=({prevPage:e,nextPage:t,size:n})=>h.jsxRuntimeExports.jsx("span",{className:M.classNames(Ec[n],yc[n],"flex items-center justify-center"),children:"..."},`ellipsis-${e}-${t}`),lA=(e,t)=>t<=aA?Array.from({length:t},(n,r)=>r+1):e<=3?[1,2,3,4,"...",t]:e>=t-2?[1,"...",t-3,t-2,t-1,t]:[1,"...",e-1,e,e+1,"...",t],dA=(e,t)=>()=>{e>1&&t(e-1)},fA=(e,t,n)=>()=>{e<t&&n(e+1)},Ox=({currentPage:e,totalPages:t,onPageChange:n,size:r="md",className:o=""})=>{const s=dA(e,n),c=fA(e,t,n),l=lA(e,t);return h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0},animate:{opacity:1},className:M.classNames("flex items-center justify-center gap-1 mt-3",{[o]:o}),children:[h.jsxRuntimeExports.jsx(El,{onClick:s,disabled:e===1,size:r,label:"Previous page",children:"←"}),l.map((u,i,a)=>{if(u==="..."){const p=a[i-1]||"start",m=a[i+1]||"end";return h.jsxRuntimeExports.jsx(uA,{prevPage:p,nextPage:m,size:r},`ellipsis-${p}-${m}`)}const d=u,f=d===e;return h.jsxRuntimeExports.jsx(cA,{pageNumber:d,isActive:f,onPageChange:n,size:r},d)}),h.jsxRuntimeExports.jsx(El,{onClick:c,disabled:e===t,size:r,label:"Next page",children:"→"})]})},hA=e=>{const t=S.createContext(void 0);return[({value:o,children:s})=>h.jsxRuntimeExports.jsx(t.Provider,{value:o,children:s}),()=>{const o=S.useContext(t);if(o===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return o}]},[pA]=hA("PopoverContext"),mA=e=>{const[t,n]=Bd.useControlledState({value:e==null?void 0:e.open,defaultValue:e==null?void 0:e.defaultOpen,onChange:e==null?void 0:e.onOpenChange});return h.jsxRuntimeExports.jsx(pA,{value:{open:t,setOpen:n},children:h.jsxRuntimeExports.jsx(q1,{"data-slot":"popover",...e,onOpenChange:n})})},gA={sm:"h-1",md:"h-2",lg:"h-3",xl:"h-4"},xA={primary:"bg-primary-blue",success:"bg-green-500",warning:"bg-yellow-500",error:"bg-red-500",info:"bg-blue-400"},vA=({value:e=0,classNames:t,indicatorColor:n="primary",customIndicatorClass:r,size:o="md",showLabel:s=!1,labelClassName:c,...l})=>h.jsxRuntimeExports.jsxs("div",{className:"w-full",children:[h.jsxRuntimeExports.jsx(ew,{className:M.classNames("relative w-full overflow-hidden rounded-full bg-gray-200",gA[o],t==null?void 0:t.root),value:e,...l,children:h.jsxRuntimeExports.jsx(tw,{className:M.classNames("h-full transition-transform duration-300 ease-in-out",r||xA[n],t==null?void 0:t.indicator),style:{transform:`translateX(-${100-(e||0)}%)`}})}),s&&h.jsxRuntimeExports.jsxs("div",{className:M.classNames("mt-1 text-right text-sm text-gray-600",c),children:[e,"%"]})]});var yA=Object.defineProperty,Do=Object.getOwnPropertySymbols,Mx=Object.prototype.hasOwnProperty,Ix=Object.prototype.propertyIsEnumerable,bl=(e,t,n)=>t in e?yA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xs=(e,t)=>{for(var n in t||(t={}))Mx.call(t,n)&&bl(e,n,t[n]);if(Do)for(var n of Do(t))Ix.call(t,n)&&bl(e,n,t[n]);return e},Ys=(e,t)=>{var n={};for(var r in e)Mx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Do)for(var r of Do(e))t.indexOf(r)<0&&Ix.call(e,r)&&(n[r]=e[r]);return n};/**
|
|
74
|
+
`),()=>{R.contains(w)&&R.removeChild(w)}},[t]),h.jsxRuntimeExports.jsx(Tj,{isPresent:t,childRef:c,sizeRef:l,children:v.cloneElement(e,{ref:a})})}const Oj=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:c,anchorX:l,anchorY:u,root:i})=>{const a=Ua(Mj),d=S.useId();let f=!0,p=S.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:m=>{a.set(m,!0);for(const g of a.values())if(!g)return;r&&r()},register:m=>(a.set(m,!1),()=>a.delete(m))}),[n,a,r]);return s&&f&&(p={...p}),S.useMemo(()=>{a.forEach((m,g)=>a.set(g,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),c==="popLayout"&&(e=h.jsxRuntimeExports.jsx(Aj,{isPresent:n,anchorX:l,anchorY:u,root:i,children:e})),h.jsxRuntimeExports.jsx(di.Provider,{value:p,children:e})};function Mj(){return new Map}function dx(e=!0){const t=S.useContext(di);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=S.useId();S.useEffect(()=>{if(e)return o(s)},[e]);const c=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,c]:[!0]}const vr=e=>e.key||"";function il(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Ot=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:c=!1,anchorX:l="left",anchorY:u="top",root:i})=>{const[a,d]=dx(c),f=S.useMemo(()=>il(e),[e]),p=c&&!a?[]:f.map(vr),m=S.useRef(!0),g=S.useRef(f),x=Ua(()=>new Map),y=S.useRef(new Set),[E,b]=S.useState(f),[w,R]=S.useState(f);zm(()=>{m.current=!1,g.current=f;for(let P=0;P<w.length;P++){const T=vr(w[P]);p.includes(T)?(x.delete(T),y.current.delete(T)):x.get(T)!==!0&&x.set(T,!1)}},[w,p.length,p.join("-")]);const _=[];if(f!==E){let P=[...f];for(let T=0;T<w.length;T++){const C=w[T],O=vr(C);p.includes(O)||(P.splice(T,0,C),_.push(C))}return s==="wait"&&_.length&&(P=_),R(il(P)),b(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:j}=S.useContext($a);return h.jsxRuntimeExports.jsx(h.jsxRuntimeExports.Fragment,{children:w.map(P=>{const T=vr(P),C=c&&!a?!1:f===w||p.includes(T),O=()=>{if(y.current.has(T))return;if(y.current.add(T),x.has(T))x.set(T,!0);else return;let I=!0;x.forEach(k=>{k||(I=!1)}),I&&(j==null||j(),R(g.current),c&&(d==null||d()),r&&r())};return h.jsxRuntimeExports.jsx(Oj,{isPresent:C,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:i,onExitComplete:C?void 0:O,anchorX:l,anchorY:u,children:P},T)})})},fx=S.createContext({strict:!1}),sl={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let al=!1;function Ij(){if(al)return;const e={};for(const t in sl)e[t]={isEnabled:n=>sl[t].some(r=>!!n[r])};$g(e),al=!0}function hx(){return Ij(),y_()}function Dj(e){const t=hx();for(const n in e)t[n]={...t[n],...e[n]};$g(t)}const Nj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Io(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nj.has(e)}let px=e=>!Io(e);function kj(e){typeof e=="function"&&(px=t=>t.startsWith("on")?!Io(t):e(t))}try{kj(require("@emotion/is-prop-valid").default)}catch{}function Lj(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(px(o)||n===!0&&Io(o)||!t&&!Io(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const pi=S.createContext({});function Fj(e,t){if(hi(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fn(n)?n:void 0,animate:Fn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Vj(e){const{initial:t,animate:n}=Fj(e,S.useContext(pi));return S.useMemo(()=>({initial:t,animate:n}),[cl(t),cl(n)])}function cl(e){return Array.isArray(e)?e.join(" "):e}const xc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mx(e,t,n){for(const r in t)!ve(t[r])&&!Kg(r,n)&&(e[r]=t[r])}function Bj({transformTemplate:e},t){return S.useMemo(()=>{const n=xc();return pc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $j(e,t){const n=e.style||{},r={};return mx(r,n,e),Object.assign(r,Bj(e,t)),r}function Uj(e,t){const n={},r=$j(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const gx=()=>({...xc(),attrs:{}});function Gj(e,t,n,r){const o=S.useMemo(()=>{const s=gx();return Xg(s,t,Zg(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};mx(s,e.style,e),o.style={...s,...o.style}}return o}const zj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vc(e){return typeof e!="string"||e.includes("-")?!1:!!(zj.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hj(e,t,n,{latestValues:r},o,s=!1,c){const u=(c??vc(e)?Gj:Uj)(t,r,o,e),i=Lj(t,typeof e=="string",s),a=e!==S.Fragment?{...i,...u,ref:n}:{},{children:d}=t,f=S.useMemo(()=>ve(d)?d.get():d,[d]);return S.createElement(e,{...a,children:f})}function Wj({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:qj(n,r,o,e),renderState:t()}}function qj(e,t,n,r){const o={},s=r(e,{});for(const f in s)o[f]=ho(s[f]);let{initial:c,animate:l}=e;const u=hi(e),i=Bg(e);t&&i&&!u&&e.inherit!==!1&&(c===void 0&&(c=t.initial),l===void 0&&(l=t.animate));let a=n?n.initial===!1:!1;a=a||c===!1;const d=a?l:c;if(d&&typeof d!="boolean"&&!fi(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=ac(e,f[p]);if(m){const{transitionEnd:g,transition:x,...y}=m;for(const E in y){let b=y[E];if(Array.isArray(b)){const w=a?b.length-1:0;b=b[w]}b!==null&&(o[E]=b)}for(const E in g)o[E]=g[E]}}}return o}const xx=e=>(t,n)=>{const r=S.useContext(pi),o=S.useContext(di),s=()=>Wj(e,t,r,o);return n?s():Ua(s)},Kj=xx({scrapeMotionValuesFromProps:mc,createRenderState:xc}),Xj=xx({scrapeMotionValuesFromProps:Qg,createRenderState:gx}),Yj=Symbol.for("motionComponentSymbol");function Zj(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const o=S.useRef(null);return S.useCallback(s=>{var l;s&&((l=e.onMount)==null||l.call(e,s)),t&&(s?t.mount(s):t.unmount());const c=r.current;if(typeof c=="function")if(s){const u=c(s);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):c(s);else c&&(c.current=s)},[t])}const vx=S.createContext({});function Cn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qj(e,t,n,r,o,s){var b,w;const{visualElement:c}=S.useContext(pi),l=S.useContext(fx),u=S.useContext(di),i=S.useContext(gc),a=i.reducedMotion,d=i.skipAnimations,f=S.useRef(null),p=S.useRef(!1);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:c,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:a,skipAnimations:d,isSVG:s}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=S.useContext(vx);m&&!m.projection&&o&&(m.type==="html"||m.type==="svg")&&Jj(f.current,n,o,g);const x=S.useRef(!1);S.useInsertionEffect(()=>{m&&x.current&&m.update(n,u)});const y=n[jg],E=S.useRef(!!y&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,y))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,y)));return zm(()=>{p.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),E.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!E.current&&m.animationState&&m.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)==null||R.call(window,y)}),E.current=!1),m.enteringChildren=void 0)}),m}function Jj(e,t,n,r){const{layoutId:o,layout:s,drag:c,dragConstraints:l,layoutScroll:u,layoutRoot:i,layoutCrossfade:a}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yx(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!c||l&&Cn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:a,layoutScroll:u,layoutRoot:i})}function yx(e){if(e)return e.options.allowProjection!==!1?e.projection:yx(e.parent)}function Gi(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Dj(r);const s=n?n==="svg":vc(e),c=s?Xj:Kj;function l(i,a){let d;const f={...S.useContext(gc),...i,layoutId:eP(i)},{isStatic:p}=f,m=Vj(i),g=c(i,p);if(!p&&Gm){tP(f,r);const x=nP(f);d=x.MeasureLayout,m.visualElement=Qj(e,g,f,o,x.ProjectionNode,s)}return h.jsxRuntimeExports.jsxs(pi.Provider,{value:m,children:[d&&m.visualElement?h.jsxRuntimeExports.jsx(d,{visualElement:m.visualElement,...f}):null,Hj(e,i,Zj(g,m.visualElement,a),g,p,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=S.forwardRef(l);return u[Yj]=e,u}function eP({layoutId:e}){const t=S.useContext($a).id;return t&&e!==void 0?t+"-"+e:e}function tP(e,t){const n=S.useContext(fx).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?an(!1,r,"lazy-strict-mode"):nt(!1,r,"lazy-strict-mode")}}function nP(e){const t=hx(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function rP(e,t){if(typeof Proxy>"u")return Gi;const n=new Map,r=(s,c)=>Gi(s,c,e,t),o=(s,c)=>(process.env.NODE_ENV!=="production"&&qa(!1,"motion() is deprecated. Use motion.create() instead."),r(s,c));return new Proxy(o,{get:(s,c)=>c==="create"?r:(n.has(c)||n.set(c,Gi(c,void 0,e,t)),n.get(c))})}const oP=(e,t)=>t.isSVG??vc(e)?new k_(t):new A_(t,{allowProjection:e!==S.Fragment});class iP extends yt{constructor(t){super(t),t.animationState||(t.animationState=$_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let sP=0;class aP extends yt{constructor(){super(...arguments),this.id=sP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const cP={animation:{Feature:iP},exit:{Feature:aP}};function rr(e){return{point:{x:e.pageX,y:e.pageY}}}const uP=e=>t=>dc(t)&&e(t,rr(t));function Pn(e,t,n,r){return Vn(e,t,uP(n),r)}const Ex=({current:e})=>e?e.ownerDocument.defaultView:null,ul=(e,t)=>Math.abs(e-t);function lP(e,t){const n=ul(e.x,t.x),r=ul(e.y,t.y);return Math.sqrt(n**2+r**2)}const ll=new Set(["auto","scroll"]);class bx{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:c=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Hi(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=lP(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:x}=p,{timestamp:y}=ge;this.history.push({...x,timestamp:y});const{onStart:E,onMove:b}=this.handlers;m||(E&&E(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=zi(m,this.transformPagePoint),se.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Hi(p.type==="pointercancel"?this.lastMoveEventInfo:zi(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,E),x&&x(p,E)},!dc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=c,this.contextWindow=o||window;const u=rr(t),i=zi(u,this.transformPagePoint),{point:a}=i,{timestamp:d}=ge;this.history=[{...a,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Hi(i,this.history)),this.removeListeners=er(Pn(this.contextWindow,"pointermove",this.handlePointerMove),Pn(this.contextWindow,"pointerup",this.handlePointerUp),Pn(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(ll.has(r.overflowX)||ll.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),se.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),dt(this.updatePoint)}}function zi(e,t){return t?{point:t(e.point)}:e}function dl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hi({point:e},t){return{point:e,delta:dl(e,wx(t)),offset:dl(e,dP(t)),velocity:fP(t,.1)}}function dP(e){return e[0]}function wx(e){return e[e.length-1]}function fP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ke(t)));)n--;if(!r)return{x:0,y:0};const s=Me(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const c={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function hP(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ue(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ue(n,e,r.max):Math.min(e,n)),e}function fl(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pP(e,{top:t,left:n,bottom:r,right:o}){return{x:fl(e.x,n,o),y:fl(e.y,t,r)}}function hl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function mP(e,t){return{x:hl(e.x,t.x),y:hl(e.y,t.y)}}function gP(e,t){let n=.5;const r=we(e),o=we(t);return o>r?n=Nn(t.min,t.max-r,e.min):r>o&&(n=Nn(e.min,e.max-o,t.min)),Ze(0,1,n)}function xP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ws=.35;function vP(e=Ws){return e===!1?e=0:e===!0&&(e=Ws),{x:pl(e,"left","right"),y:pl(e,"top","bottom")}}function pl(e,t,n){return{min:ml(e,t),max:ml(e,n)}}function ml(e,t){return typeof e=="number"?e:e[t]||0}const yP=new WeakMap;class EP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=d=>{n?(this.stopAnimation(),this.snapToCursor(rr(d).point)):this.pauseAnimation()},c=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=o_(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ae(y=>{let E=this.getAxisMotionValue(y).get()||0;if(Xe.test(E)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[y];w&&(E=we(w)*(parseFloat(E)/100))}}this.originPoint[y]=E}),g&&se.update(()=>g(d,f),!1,!0),Fs(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=bP(y),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),x&&se.update(()=>x(d,f),!1,!0)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},i=()=>Ae(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new bx(t,{onSessionStart:s,onStart:c,onMove:l,onSessionEnd:u,resumeAnimation:i},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:r,contextWindow:Ex(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:l}=this.getProps();l&&se.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!yr(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=hP(c,this.constraints[t],this.elastic[t])),s.set(c)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,o=this.constraints;t&&Cn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=pP(r.layoutBox,t):this.constraints=!1,this.elastic=vP(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ae(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=xP(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Cn(t))return!1;const r=t.current;nt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=S_(r,o.root,this.visualElement.getTransformPagePoint());let c=mP(o.layout.layoutBox,s);if(n){const l=n(b_(c));this.hasMutatedConstraints=!!l,l&&(c=Gg(l))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:c,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},i=Ae(a=>{if(!yr(a,n,this.currentDirection))return;let d=u&&u[a]||{};c&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[a]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(a,m)});return Promise.all(i).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fs(this.visualElement,t),r.start(sc(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ae(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ae(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ae(n=>{const{drag:r}=this.getProps();if(!yr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:l}=o.layout.layoutBox[n],u=s.get()||0;s.set(t[n]-ue(c,l,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Cn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ae(c=>{const l=this.getAxisMotionValue(c);if(l&&this.constraints!==!1){const u=l.get();o[c]=gP({min:u,max:u},this.constraints[c])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ae(c=>{if(!yr(c,t,null))return;const l=this.getAxisMotionValue(c),{min:u,max:i}=this.constraints[c];l.set(ue(u,i,o[c]))})}addListeners(){if(!this.visualElement.current)return;yP.set(this.visualElement,this);const t=this.visualElement.current,n=Pn(t,"pointerdown",u=>{const{drag:i,dragListener:a=!0}=this.getProps(),d=u.target,f=d!==t&&u_(d);i&&a&&!f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Cn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),se.read(r);const c=Vn(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:i})=>{this.isDragging&&i&&(Ae(a=>{const d=this.getAxisMotionValue(a);d&&(this.originPoint[a]+=u[a].translate,d.set(d.get()+u[a].translate))}),this.visualElement.render())}));return()=>{c(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:c=Ws,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:c,dragMomentum:l}}}function yr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class wP extends yt{constructor(t){super(t),this.removeGroupControls=De,this.removeListeners=De,this.controls=new EP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Wi=e=>(t,n)=>{e&&se.update(()=>e(t,n),!1,!0)};class RP extends yt{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(t){this.session=new bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ex(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wi(t),onStart:Wi(n),onMove:Wi(r),onEnd:(s,c)=>{delete this.session,o&&se.postRender(()=>o(s,c))}}}mount(){this.removePointerDownListener=Pn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let qi=!1;class SP extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),qi&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),po.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:c}=r;return c&&(c.isPresent=s,t.layoutDependency!==n&&c.setOptions({...c.options,layoutDependency:n}),qi=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?c.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?c.promote():c.relegate()||se.postRender(()=>{const l=c.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;qi=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rx(e){const[t,n]=dx(),r=S.useContext($a);return h.jsxRuntimeExports.jsx(SP,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(vx),isPresent:t,safeToRemove:n})}const CP={pan:{Feature:RP},drag:{Feature:wP,ProjectionNode:lx,MeasureLayout:Rx}};function gl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&se.postRender(()=>s(t,rr(t)))}class _P extends yt{mount(){const{current:t}=this.node;t&&(this.unmount=i_(t,(n,r)=>(gl(this.node,r,"Start"),o=>gl(this.node,o,"End"))))}unmount(){}}class jP extends yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=er(Vn(this.node.current,"focus",()=>this.onFocus()),Vn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&se.postRender(()=>s(t,rr(t)))}class PP extends yt{mount(){const{current:t}=this.node;t&&(this.unmount=d_(t,(n,r)=>(xl(this.node,r,"Start"),(o,{success:s})=>xl(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qs=new WeakMap,Ki=new WeakMap,TP=e=>{const t=qs.get(e.target);t&&t(e)},AP=e=>{e.forEach(TP)};function OP({root:e,...t}){const n=e||document;Ki.has(n)||Ki.set(n,{});const r=Ki.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(AP,{root:e,...t})),r[o]}function MP(e,t,n){const r=OP(t);return qs.set(e,n),r.observe(e),()=>{qs.delete(e),r.unobserve(e)}}const IP={some:0,all:1};class DP extends yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:IP[o]},l=u=>{const{isIntersecting:i}=u;if(this.isInView===i||(this.isInView=i,s&&!i&&this.hasEnteredView))return;i&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",i);const{onViewportEnter:a,onViewportLeave:d}=this.node.getProps(),f=i?a:d;f&&f(u)};return MP(this.node.current,c,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(NP(t,n))&&this.startObserver()}unmount(){}}function NP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const kP={inView:{Feature:DP},tap:{Feature:PP},focus:{Feature:jP},hover:{Feature:_P}},LP={layout:{ProjectionNode:lx,MeasureLayout:Rx}},FP={...cP,...kP,...CP,...LP},re=rP(FP,oP),VP=S.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},s)=>h.jsxRuntimeExports.jsx($v,{...o,className:M.classNames("overflow-hidden bg-white",t),ref:s,asChild:!0,children:h.jsxRuntimeExports.jsxs(re.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&h.jsxRuntimeExports.jsx("hr",{className:M.classNames("bg-primary-blue h-0.5 border-0",n)}),h.jsxRuntimeExports.jsx("div",{className:"px-5 py-[15px]",children:e})]})})),BP=({items:e,classNames:t,showDivider:n,defaultValue:r})=>h.jsxRuntimeExports.jsx(Lv,{className:M.classNames("flex flex-col space-y-4",t==null?void 0:t.container),type:"single",defaultValue:r,collapsible:!0,children:e==null?void 0:e.map(o=>h.jsxRuntimeExports.jsxs(JR,{className:t==null?void 0:t.item,value:o.id,children:[h.jsxRuntimeExports.jsx(eS,{className:t==null?void 0:t.trigger,triggerIcon:o==null?void 0:o.triggerIcon,children:o.title}),h.jsxRuntimeExports.jsx(VP,{showDivider:n,dividerClassName:t==null?void 0:t.divider,className:t==null?void 0:t.content,children:o.content})]},o.id))}),$P={success:h.jsxRuntimeExports.jsx(ne.SvgIconCheckCircle,{width:24,height:24}),info:h.jsxRuntimeExports.jsx(ne.SvgIconInfoCircle,{width:24,height:24}),warning:h.jsxRuntimeExports.jsx(ne.SvgIconWarningCircle,{width:24,height:24}),error:h.jsxRuntimeExports.jsx(ne.SvgIconErrorCircle,{width:24,height:24})},UP={success:"text-green-6",info:"text-blue-6",warning:"text-gold-6",error:"text-red-6"},GP={success:"text-gray-6 hover:bg-gray-100 cursor-pointer",error:"text-gray-6 hover:bg-gray-100 cursor-pointer",warning:"text-gray-6 hover:bg-gray-100 cursor-pointer",info:"text-gray-6 hover:bg-gray-100 cursor-pointer"},zP={success:"bg-green-1 border border-green-3",info:"bg-blue-1 border border-blue-3",warning:"bg-gold-1 border border-gold-3",error:"bg-red-1 border border-red-3"},HP=({type:e="info",title:t,description:n,showIcon:r=!0,closable:o=!1,onClose:s,className:c="",children:l,...u})=>{const i=!!t&&!n&&!l||!t&&!!n&&!l;return h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:M.classNames("relative border rounded-lg p-4",zP[e],{[c]:c}),...u,children:[h.jsxRuntimeExports.jsxs(Ne,{gap:4,align:i?"center":"start",children:[r&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("shrink-0",UP[e]),children:$P[e]}),h.jsxRuntimeExports.jsxs(Ne,{direction:i?"horizontal":"vertical",gap:0,className:"flex-1 min-w-0",align:i?"center":"start",children:[t&&h.jsxRuntimeExports.jsx("h4",{className:"text-base font-medium leading-tight text-gray-12",children:t}),n&&h.jsxRuntimeExports.jsx("p",{className:M.classNames("text-sm font-medium leading-tight text-gray-12",{"mt-2":!!t&&!i}),children:n}),l&&h.jsxRuntimeExports.jsx("div",{className:"mt-2",children:l})]})]}),o&&h.jsxRuntimeExports.jsx("button",{onClick:s,className:M.classNames("absolute top-4 right-4 p-1 rounded transition-colors",GP[e]),"aria-label":"Cerrar alerta",children:h.jsxRuntimeExports.jsx(ne.SvgClose,{width:16,height:16})})]})},WP={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},qP=({size:e="md",src:t,alt:n="avatar",icon:r=h.jsxRuntimeExports.jsx(ne.SvgUser,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:s="text-white",className:c="",onClick:l,style:u})=>h.jsxRuntimeExports.jsxs(py,{className:M.classNames("inline-flex shrink-0 overflow-hidden rounded-full",WP[e],c),onClick:l,style:u,children:[t&&h.jsxRuntimeExports.jsx(my,{src:t,alt:n,className:"h-full w-full object-cover"}),h.jsxRuntimeExports.jsx(gy,{delayMs:0,className:M.classNames("flex h-full w-full items-center justify-center rounded-full",s,o),children:r})]}),KP={default:M.classNames("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),primary:M.classNames("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),secondary:M.classNames("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),text:M.classNames("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),danger:M.classNames("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10"),withoutColor:"bg-transparent border-transparent shadow-none"},XP={sm:"px-3 text-sm h-6 rounded-md",md:"px-4 py-2 h-8",lg:"px-6 py-[7px] text-base h-10 rounded-lg",xl:"px-6 py-[11px] h-12"},vl=["sm","md","lg","xl"],YP=e=>{const t=vl.indexOf(e);return t===-1?"":M.classNames(vl.slice(0,t+1).map(n=>XP[n]))},ZP={pointer:"cursor-pointer",default:"cursor-default","not-allowed":"cursor-not-allowed",wait:"cursor-wait",text:"cursor-text"},QP=e=>M.classNames("flex items-center justify-center gap-2 border active:scale-95",ZP[e],"disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5 disabled:cursor-not-allowed","transition-all duration-300 ease-in-out","shadow-button"),Ks=({icon:e,children:t,leftIcon:n,rightIcon:r,type:o="button",variant:s="default",size:c="md",className:l="",isLoading:u=!1,positionLoading:i="left",cursor:a="pointer",...d})=>{const f=S.useId(),p=QP(a),{isLeftLoading:m,isRightLoading:g}=S.useMemo(()=>({isLeftLoading:i==="left"&&u,isRightLoading:i==="right"&&u}),[u,i]),x=S.useMemo(()=>["primary","secondary","text","withoutColor"].includes(s)?h.jsxRuntimeExports.jsx(ne.SvgLoaderAnimBlue,{className:"animate-spin"}):h.jsxRuntimeExports.jsx(ne.SvgLoaderAnimWhite,{className:"animate-spin"}),[s]),y=S.useMemo(()=>e??n,[e,n]);return h.jsxRuntimeExports.jsxs(re.button,{id:`${f}-button`,className:M.classNames(p,KP[s],YP(c),l),type:o,...d,children:[h.jsxRuntimeExports.jsx(Ot,{mode:"wait",children:(m||y)&&h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.2},children:m?x:y},"leftIcon")}),typeof t=="string"||typeof t=="number"?h.jsxRuntimeExports.jsx("span",{className:"whitespace-normal",children:t}):t,h.jsxRuntimeExports.jsx(Ot,{mode:"wait",children:(g||r)&&h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,x:8},animate:{opacity:1,x:0},exit:{opacity:0,x:8},transition:{duration:.2},children:g?x:r},"rightIcon")})]})},JP=({children:e,className:t="",align:n="horizontal",shadow:r=!0,rounded:o=!0,bordered:s=!0,...c})=>{const{...l}=c,u=M.classNames("bg-white p-4",{"flex flex-col":n==="horizontal","flex flex-col md:flex-row md:max-w-xl":n==="vertical"},{"shadow-lg":r},{"rounded-2xl":o},{"border border-gray-200":s},{[t]:t});return h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:u,...l,children:e})},eT={sm:"h-4 w-4",md:"h-6 w-6"},tT={sm:"h-3 w-3",md:"h-4 w-4"},nT={sm:"h-2 w-2",md:"h-4 w-4"},rT={sm:"text-sm",md:"text-base"},oT=({size:e,disabled:t})=>({checked:h.jsxRuntimeExports.jsx(ne.SvgCheckv2,{className:M.classNames(tT[e],t?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:h.jsxRuntimeExports.jsx(ne.SvgIndeterminate,{className:M.classNames(nT[e],t?"text-stone-300 fill-stone-300":"text-blue-800")})}),iT=({size:e,disabled:t,children:n,checkboxId:r})=>n?h.jsxRuntimeExports.jsx("label",{htmlFor:r,className:M.classNames(rT[e],t&&"text-gray-400","cursor-pointer"),children:n}):null,Sx=S.forwardRef(({size:e="md",checked:t,indeterminate:n=!1,disabled:r=!1,onCheckedChange:o,className:s,children:c,...l},u)=>{const i=S.useId(),a=n?"indeterminate":t?"checked":"none",d=f=>{r||o==null||o(f===!0)};return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("flex gap-2 items-start sm:items-center select-none",r?"pointer-events-none":"cursor-pointer",s),children:[h.jsxRuntimeExports.jsx($f,{id:i,ref:u,checked:t,"aria-checked":n?"mixed":t,disabled:r,onCheckedChange:d,className:M.classNames("flex justify-center items-center rounded-sm border relative transition-[background-color] cursor-pointer",eT[e],{"bg-white border-gray-300 hover:border-blue-800":!t&&!r,"bg-blue-800 border-blue-800":t&&!n&&!r||n&&!r,"bg-neutral-100 border-stone-300":r}),...l,children:a!=="none"&&oT({size:e,disabled:r})[a]}),h.jsxRuntimeExports.jsx(iT,{size:e,disabled:r,children:c,checkboxId:i})]})});Sx.displayName="Checkbox";const sT=({children:e,className:t,width:n="min-w-full w-full",type:r="horizontal",align:o="center"})=>{const s={left:"before:w-[5%] after:w-full",center:"before:w-full after:w-full",right:"before:w-full after:w-[5%]"};return h.jsxRuntimeExports.jsx("div",{className:M.classNames("p-0 m-0 box-border",{"flex h-px items-center":r==="horizontal","inline-block border-s border-s-gray-5 min-h-[1em] h-full":r==="vertical","bg-grays-Macropay-05":r==="horizontal"&&!e,"whitespace-nowrap before:h-px after:h-px before:bg-grays-Macropay-05 after:bg-grays-Macropay-05":r==="horizontal"&&e,[`${s[o]}`]:o,[n]:n&&r==="horizontal",[`${t}`]:t}),children:e&&r==="horizontal"&&h.jsxRuntimeExports.jsx("span",{className:M.classNames("inline-block ps-4 pe-4",{[`text-${o}`]:o}),children:e})})},aT=({children:e,id:t,className:n=""})=>{const r=S.useRef(null),[o,s]=S.useState(!1);return S.useEffect(()=>{const c=document.getElementById(t)||document.createElement("div");return r.current=c,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),s(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?Vd.createPortal(e,r.current):null},Cx=S.memo(aT),mn={backdrop:"fixed inset-0 bg-black/50",drawer:"fixed top-0 h-full w-80 bg-white shadow-xl",header:"flex justify-end absolute right-7",closeButton:"text-gray-500 hover:text-gray-700",children:"overflow-y-auto h-[calc(100%-3rem)]"},cT={right:"right-0",left:"left-0"},Er={backdrop:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},drawer:{transition:{type:"tween",duration:.2}}},uT=({open:e,onClose:t,children:n,position:r="right",className:o="",classNames:s={backdrop:"",drawer:"",header:"",children:""}})=>(S.useEffect(()=>{const c=l=>{l.key==="Escape"&&t()};return e&&document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[e,t]),h.jsxRuntimeExports.jsx(Cx,{id:"drawer",children:h.jsxRuntimeExports.jsx(Ot,{children:e&&h.jsxRuntimeExports.jsxs(h.jsxRuntimeExports.Fragment,{children:[h.jsxRuntimeExports.jsx(re.div,{className:M.classNames(mn.backdrop,s.backdrop),initial:Er.backdrop.initial,animate:Er.backdrop.animate,exit:Er.backdrop.exit,onClick:t}),h.jsxRuntimeExports.jsxs(re.div,{className:M.classNames(mn.drawer,cT[r],s.drawer,o),initial:{x:r==="right"?"100%":"-100%"},animate:{x:0},exit:{x:r==="right"?"100%":"-100%"},transition:Er.drawer.transition,children:[h.jsxRuntimeExports.jsx("div",{className:M.classNames(mn.header,s.header),children:h.jsxRuntimeExports.jsx("button",{onClick:t,className:mn.closeButton,children:"✕"})}),h.jsxRuntimeExports.jsx("div",{className:M.classNames(mn.children,s.children),children:n})]})]})})})),lT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(u1,{className:M.classNames("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),dT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(l1,{children:h.jsxRuntimeExports.jsx(d1,{...n,className:M.classNames("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:h.jsxRuntimeExports.jsx("div",{className:"p-1",children:e})})})})),fT=S.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},s)=>h.jsxRuntimeExports.jsxs(h1,{className:M.classNames("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:s,...o,children:[h.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[n&&h.jsxRuntimeExports.jsx("span",{className:"inline-flex shrink-0",children:n}),h.jsxRuntimeExports.jsx("span",{children:e})]}),r&&h.jsxRuntimeExports.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),hT=S.forwardRef(({className:e,...t},n)=>h.jsxRuntimeExports.jsx(p1,{className:M.classNames("my-1 h-px bg-gray-3",e),ref:n,...t})),pT=S.forwardRef(({children:e,className:t,...n},r)=>h.jsxRuntimeExports.jsx(f1,{className:M.classNames("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),mT=(e,t)=>{const n={separator:()=>h.jsxRuntimeExports.jsx(hT,{className:t==null?void 0:t.separator},e.id),label:()=>h.jsxRuntimeExports.jsx(pT,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>h.jsxRuntimeExports.jsx(fT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},gT=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>h.jsxRuntimeExports.jsxs(c1,{children:[h.jsxRuntimeExports.jsx(lT,{children:e}),h.jsxRuntimeExports.jsx(dT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(s=>h.jsxRuntimeExports.jsx("div",{children:mT(s,o)},s.id))})]}),br={container:"container mx-auto",wrapper:"flex flex-col items-center",icon:"text-3xl text-gray-300",text:"mt-3 text-base text-gray-300 font-normal"},xT=({text:e="No hay datos para mostrar",className:t="",icon:n=h.jsxRuntimeExports.jsx(ne.SvgEmpty,{})})=>h.jsxRuntimeExports.jsx(h.Slot,{children:h.jsxRuntimeExports.jsx(re.section,{"data-cy":"empty-component",initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},className:M.classNames(br.container,t),children:h.jsxRuntimeExports.jsxs("div",{className:br.wrapper,children:[h.jsxRuntimeExports.jsx(re.div,{initial:{scale:.9},animate:{scale:1},transition:{duration:.2},children:S.cloneElement(n,{className:M.classNames(br.icon,n.props.className),...n.props})}),h.jsxRuntimeExports.jsx(re.h1,{"data-cy":"empty-text",className:br.text,initial:{opacity:0},animate:{opacity:1},transition:{delay:.1},children:e})]})})});var _x=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(_x||{});const{align:vT,justify:yT,gap:ET}=_x,bT={horizontal:"flex-row",vertical:"flex-col"},wT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},Ne=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:s=!1,style:c,className:l="",onClick:u,wrap:i,...a})=>h.jsxRuntimeExports.jsx(re.div,{"aria-hidden":!0,className:M.classNames(`flex ${s?wT[o]:bT[o]}`,Oe.generateClasses(ET,r),Oe.generateClasses(yT,t),Oe.generateClasses(vT,n),{[l]:l,"flex-wrap":i}),onClick:u,style:c,children:e,...a}),RT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},jx=(e,t,n,r,o)=>{const s=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],c=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],l={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:RT[t],stateStyles:l,baseStyles:s,variantStyles:c}},Px=({onClick:e,disabled:t})=>h.jsxRuntimeExports.jsx(re.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{})},"clear-button"),ST=({error:e,size:t="md",check:n,icon:r,leftIcon:o,clear:s=!0,disabled:c=!1,variant:l="default",className:u,...i})=>{const[a,d]=S.useState(i.value??""),{baseStyles:f,variantStyles:p,sizeStyles:m,stateStyles:g}=jx(l,t,e,n,!!r),x=S.useMemo(()=>s&&a?h.jsxRuntimeExports.jsx(Px,{disabled:c,onClick:()=>d("")}):o?h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:o}):null,[s,a,o,c]);return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("relative",u),children:[r&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:r}),h.jsxRuntimeExports.jsx(re.input,{...i,value:a,disabled:c,onChange:y=>d(y.target.value),className:M.classNames(...f,...p,m,g,u)}),h.jsxRuntimeExports.jsx(Ot,{children:x})]})},CT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:s,currency:c,currencyDisplay:l,locale:u,prefix:i="",suffix:a=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...s==="currency"&&{style:"currency",currency:c,currencyDisplay:l}},f=new Intl.NumberFormat(u,d).format(e);return`${i} ${f} ${a}`.trim()},_T=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),s=Number.parseFloat(o);return Number.isNaN(s)?null:s},jT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),PT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:s="decimal",currency:c="MXN",currencyDisplay:l="symbol",useGrouping:u=!0,minFractionDigits:i,maxFractionDigits:a,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:g,...x}=e,[y,E]=S.useState(Number((x==null?void 0:x.value)??null)),[b,w]=S.useState(""),[R,_]=S.useState(!1),j=S.useMemo(()=>({format:r,useGrouping:u,minFractionDigits:i,maxFractionDigits:a,mode:s,currency:c,currencyDisplay:l,locale:o,prefix:m,suffix:g}),[r,u,i,a,s,c,l,o,m,g]),P=S.useCallback(B=>CT({num:B,...j}),[j]),T=S.useCallback(B=>_T(B,m,g,p),[m,g,p]);S.useEffect(()=>{R||w(P(y))},[y,P,R]);const C=S.useCallback(B=>{const q=B.target.value;w(q);const U=T(q);jT(U,d,f)&&(E(U),t==null||t(U),n==null||n({originalEvent:B.nativeEvent,value:U}))},[T,d,f,t,n]),O=S.useCallback(B=>{var q;_(!0),y!=null&&w(y.toString()),(q=x.onFocus)==null||q.call(x,B)},[y,x]),I=S.useCallback(B=>{var q;_(!1),w(P(y)),(q=x.onBlur)==null||q.call(x,B)},[P,y,x]),k=S.useCallback(()=>{w(""),E(null),t==null||t(null)},[t]);return{displayValue:b,handleChange:C,handleFocus:O,handleBlur:I,handleClear:k,...x}},Tx=S.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:s,leftIcon:c,clear:l=!0,disabled:u=!1,variant:i="default",className:a,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:g,...x}=PT(e),{baseStyles:y,variantStyles:E,sizeStyles:b,stateStyles:w}=jx(i,r,n,o,!!s),R=S.useMemo(()=>l&&d?h.jsxRuntimeExports.jsx(Px,{disabled:u,onClick:g}):c?h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:c}):null,[l,d,c,u,g]);return h.jsxRuntimeExports.jsxs("div",{className:M.classNames("relative",a),children:[s&&h.jsxRuntimeExports.jsx("div",{className:M.classNames("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:s}),h.jsxRuntimeExports.jsx(re.input,{...x,ref:t,type:"text",value:d,disabled:u,onChange:f,onFocus:p,onBlur:m,className:M.classNames(...y,...E,b,w,a)}),h.jsxRuntimeExports.jsx(Ot,{children:R})]})});Tx.displayName="InputNumber";const TT={Text:ST,Number:Tx},yl=(e,t)=>`${e}-${t}`,mi=S.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:s="base",weight:c="normal",...l},u)=>{if(!e)return null;const i=yl("text",s),a=yl("font",c),d=n?h.Slot:t??"p";return h.jsxRuntimeExports.jsx(d,{ref:u,className:M.classNames("text-grays-Macropay-10",i,a,r,{italic:o}),...l,children:e})});mi.displayName="Typography";const AT=({children:e,as:t="p",className:n,...r})=>h.jsxRuntimeExports.jsx(mi,{as:t,className:n,...r,children:e}),OT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},MT={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},IT=({children:e,className:t="",level:n=1,...r})=>{const o=MT[n];return h.jsxRuntimeExports.jsx(mi,{as:o,weight:"bold",className:`${OT[n]} ${t}`,...r,children:e})},dn=mi;dn.Text=AT;dn.Title=IT;const DT=({title:e,className:t=""})=>h.jsxRuntimeExports.jsx(dn.Title,{level:3,className:t,children:e}),NT={sm:"12rem",md:"16rem",lg:"20rem",xl:"24rem"},kT={sm:"w-56",md:"w-64",lg:"w-80",xl:"w-96"},LT={sm:"px-2 py-1.5",md:"px-3 py-2",lg:"px-4 py-2.5",xl:"px-5 py-3"},Ax={sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},FT=({item:e,index:t,isLast:n,size:r,itemClassName:o=""})=>{const s=e.href?"a":"button",c=e.href?{href:e.href}:{onClick:e.onClick,type:"button"};return h.jsxRuntimeExports.jsx(re.li,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:t*.05},className:M.classNames("border-gray-5 transition-colors duration-200",{"border-b":!n,"hover:bg-gray-3":!e.disabled,"opacity-50 cursor-not-allowed":e.disabled}),children:h.jsxRuntimeExports.jsx(s,{...c,disabled:e.disabled,className:M.classNames("w-full text-left block",LT[r],Ax[r],"text-gray-12 no-underline","focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-inset",{"cursor-pointer":!e.disabled,"cursor-not-allowed":e.disabled,[o]:o}),children:e.content})},e.id)},VT=({message:e,size:t})=>h.jsxRuntimeExports.jsx("li",{className:M.classNames("flex items-center justify-center h-full text-gray-9",Ax[t]),children:e}),BT=({paginatedItems:e,containerHeight:t,size:n,withPagination:r,showBorder:o,showShadow:s,emptyMessage:c,itemClassName:l=""})=>h.jsxRuntimeExports.jsx("ul",{style:{height:r?"auto":t},className:M.classNames(kT[n],"rounded-lg",{"border border-gray-6":o,"shadow-md":s,"overflow-y-auto scroll-smooth":!r}),children:e.length===0?h.jsxRuntimeExports.jsx(VT,{message:c,size:n}):e.map((u,i)=>h.jsxRuntimeExports.jsx(FT,{item:u,index:i,isLast:i===e.length-1,size:n,itemClassName:l},u.id))}),$T=(e,t,n,r)=>S.useMemo(()=>{if(!t)return e;const o=(n-1)*r,s=o+r;return e.slice(o,s)},[e,t,n,r]),UT=(e,t)=>S.useMemo(()=>Math.ceil(e/t),[e,t]),GT=(e,t)=>t||NT[e],zT=e=>t=>{e&&e(t)},HT=({items:e,title:t,size:n="md",withPagination:r=!1,currentPage:o=1,itemsPerPage:s=10,onPageChange:c,showBorder:l=!0,showShadow:u=!0,height:i,className:a="",titleClassName:d="",itemClassName:f="",emptyMessage:p="No items to display",onAnimationStart:m,onAnimationEnd:g,onAnimationIteration:x,...y})=>{const E=$T(e,r,o,s),b=UT(e.length,s),w=GT(n,i),R=zT(c);return h.jsxRuntimeExports.jsx("div",{onAnimationStart:m,onAnimationEnd:g,onAnimationIteration:x,...y,children:h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},className:M.classNames("flex flex-col",{[a]:a}),children:[t&&h.jsxRuntimeExports.jsx(DT,{title:t,size:n,className:d}),h.jsxRuntimeExports.jsx(BT,{paginatedItems:E,containerHeight:w,size:n,withPagination:r,showBorder:l,showShadow:u,emptyMessage:p,itemClassName:f}),r&&b>1&&h.jsxRuntimeExports.jsx(Ox,{currentPage:o,totalPages:b,onPageChange:R,size:n})]})})},WT={hidden:{opacity:0},visible:{opacity:1},exit:{opacity:0}},qT={hidden:{opacity:0,scale:.95,y:8},visible:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:8}},KT=({blur:e=!0})=>h.jsxRuntimeExports.jsx(ty,{asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{className:`
|
|
75
|
+
fixed inset-0 z-10 bg-opacity-75
|
|
76
|
+
transition-opacity
|
|
77
|
+
backdrop-filter${e?" backdrop-blur-sm":""}
|
|
78
|
+
`,variants:WT,initial:"hidden",animate:"visible",exit:"exit",onClick:t=>t.stopPropagation()})}),XT=({children:e,panelClassName:t,isCloseAble:n,onClose:r})=>h.jsxRuntimeExports.jsx("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:h.jsxRuntimeExports.jsx(Ne,{align:"center",justify:"center",className:"min-h-full p-4 text-center items-center",children:h.jsxRuntimeExports.jsx(ny,{asChild:!0,children:h.jsxRuntimeExports.jsx(re.div,{variants:qT,initial:"hidden",animate:"visible",exit:"exit",transition:{duration:.2,ease:"easeOut"},className:M.classNames("relative min-w-full md:min-w-104.5 p-6 md:p-8 transform rounded-lg bg-white text-left shadow-xl outline-none max-w-lg",{[t]:t}),children:h.jsxRuntimeExports.jsxs(Ne,{className:"relative gap-6",direction:"vertical",align:"center",children:[n&&h.jsxRuntimeExports.jsx("button",{className:"absolute -right-4 -top-4 md:-right-5 w-auto h-auto",onClick:r,children:h.jsxRuntimeExports.jsx(ne.SvgClose,{className:"cursor-pointer text-gray-7 text-2xl"})}),e]})})})})}),YT=({type:e="default",title:t,message:n,titleAlign:r="left",children:o})=>!t&&!n?null:h.jsxRuntimeExports.jsxs(Ne,{gap:4,className:M.classNames("w-full",{hidden:!t&&!n}),children:[e!=="default"&&h.jsxRuntimeExports.jsxs(Ne,{align:"center",justify:"center",className:M.classNames("w-6 h-6 md:h-7 md:w-7 shrink-0 rounded-full text-white",{"bg-error":e==="error","bg-success":e==="success","bg-warning":e==="warning","bg-info":e==="info"}),children:[e==="error"&&h.jsxRuntimeExports.jsx(ne.SvgClose,{}),e==="success"&&h.jsxRuntimeExports.jsx(ne.SvgDone,{}),e==="warning"&&h.jsxRuntimeExports.jsx(ne.SvgExclamation,{}),e==="info"&&h.jsxRuntimeExports.jsx(ne.SvgInfo,{})]}),h.jsxRuntimeExports.jsxs(Ne,{direction:"vertical",gap:2,className:"w-full",children:[typeof t!="string"?t:h.jsxRuntimeExports.jsx(ry,{asChild:!0,children:h.jsxRuntimeExports.jsx(dn.Title,{weight:"semibold",level:4,...typeof t!="string"?t:{},className:M.classNames("inline-block",{[`text-${r}`]:r}),children:typeof t=="string"?t:o})}),n&&h.jsxRuntimeExports.jsx(oy,{asChild:!0,children:h.jsxRuntimeExports.jsx("span",{className:"text-base font-normal text-black text-opacity-85",children:n})})]})]}),ZT=({buttonCancel:e,buttonOk:t})=>!e&&!t?null:h.jsxRuntimeExports.jsxs("div",{className:"w-full max-[400px]:grid grid-cols-1 flex flex-wrap justify-end gap-4",children:[t&&h.jsxRuntimeExports.jsx(Ks,{className:"outline-none inline-flex max-[400px]:order-1 order-2",variant:"primary",size:"xl",...t}),e&&h.jsxRuntimeExports.jsx(Ks,{className:"outline-none inline-flex max-[400px]:order-2 order-1",variant:"secondary",size:"xl",...e})]}),QT=({isOpen:e,onClose:t=()=>{},children:n,header:r,title:o,message:s,type:c,titleAlign:l,buttonOk:u,buttonCancel:i,isCloseAble:a,className:d="",blur:f=!0})=>h.jsxRuntimeExports.jsx(J0,{open:e,children:h.jsxRuntimeExports.jsx(Ot,{children:e&&h.jsxRuntimeExports.jsxs(ey,{forceMount:!0,children:[h.jsxRuntimeExports.jsx(KT,{blur:f}),h.jsxRuntimeExports.jsxs(XT,{panelClassName:d,isCloseAble:a,onClose:t,children:[r,h.jsxRuntimeExports.jsx(YT,{type:c,title:o,message:s,titleAlign:l,children:n}),n&&h.jsxRuntimeExports.jsx("div",{children:n,className:"w-full"}),h.jsxRuntimeExports.jsx(ZT,{buttonOk:u,buttonCancel:i})]})]})})}),JT={success:{icon:h.jsxRuntimeExports.jsx(ne.SvgCheckCircle,{className:"size-6"}),borderColor:"border-green-6",iconColor:"text-green-6"},error:{icon:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{className:"size-6"}),borderColor:"border-primary-red",iconColor:"text-primary-red"},warning:{icon:h.jsxRuntimeExports.jsx(ne.SvgIconWarning,{className:"size-6"}),borderColor:"border-gold-6",iconColor:"text-gold-6"},info:{icon:h.jsxRuntimeExports.jsx(ne.SvgInfoCircle,{className:"size-6"}),borderColor:"border-blue-500",iconColor:"text-blue-500"},default:{icon:h.jsxRuntimeExports.jsx(ne.SvgCloseCircle,{className:"size-6"}),borderColor:"border-gray-300",iconColor:"text-primary-blue"}},eA=e=>({"top-left":{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-100,scale:.95}},"top-right":{initial:{opacity:0,x:100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:100,scale:.95}},"top-center":{initial:{opacity:0,y:-50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-50,scale:.95}},"bottom-left":{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-100,scale:.95}},"bottom-right":{initial:{opacity:0,x:100,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:100,scale:.95}},"bottom-center":{initial:{opacity:0,y:50,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:50,scale:.95}}})[e||"top-right"],tA=({onClose:e,id:t})=>h.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>e==null?void 0:e(t),className:"absolute top-2 right-2 shrink-0 p-1 rounded-md transition-colors text-gray-10 hover:text-gray-12 hover:bg-gray-4 focus:outline-none focus:ring-2 focus:ring-gray-7 cursor-pointer","aria-label":"Close notification",children:h.jsxRuntimeExports.jsx(ne.SvgClose,{className:"size-6"})}),nA=({IconComponent:e,iconColor:t,defaultIconColor:n})=>e?h.jsxRuntimeExports.jsx(Ne,{align:"center",justify:"center",className:M.classNames("w-7 h-7 shrink-0 sm:w-6 sm:h-6",t||n),children:e}):null,{Title:rA,Text:oA}=dn,iA=({title:e,message:t,children:n})=>h.jsxRuntimeExports.jsxs(Ne,{gap:2,direction:"vertical",justify:"center",className:"w-full",children:[e&&h.jsxRuntimeExports.jsx(rA,{level:6,weight:"medium",children:e}),t&&h.jsxRuntimeExports.jsx(oA,{className:"leading-5",size:"sm",children:t}),n]}),sA=({type:e="default",title:t,message:n,duration:r=4e3,id:o,placement:s="top-right",showIcon:c=!0,closable:l=!1,onClose:u,className:i="",children:a,borderColor:d,iconColor:f,...p})=>{const{initial:m,animate:g,exit:x}=eA(s);S.useEffect(()=>{if(r>0){const w=setTimeout(()=>{u==null||u(o)},r);return()=>clearTimeout(w)}},[r,o,u]);const y=e?JT[e]:null,E=y==null?void 0:y.icon,b=M.classNames("px-6 py-4 rounded flex gap-4 max-w-96 shadow-md relative border bg-white",d||(y==null?void 0:y.borderColor),i);return h.jsxRuntimeExports.jsxs(re.div,{layout:!0,initial:m,animate:g,exit:x,transition:{duration:.35,ease:"easeOut"},className:b,role:"alert","aria-live":"polite",...p,children:[l&&h.jsxRuntimeExports.jsx(tA,{onClose:u,id:o}),c&&h.jsxRuntimeExports.jsx(nA,{IconComponent:E,iconColor:f,defaultIconColor:y==null?void 0:y.iconColor}),h.jsxRuntimeExports.jsx(iA,{title:t,message:n,children:a})]})},yc={sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},Ec={sm:"min-w-8 h-8",md:"min-w-9 h-9",lg:"min-w-10 h-10",xl:"min-w-12 h-12"},aA=5,El=({onClick:e,disabled:t,size:n,label:r,children:o})=>h.jsxRuntimeExports.jsx(re.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:e,disabled:t,className:M.classNames(Ec[n],yc[n],"flex items-center justify-center rounded-md border border-gray-6","transition-colors duration-200","hover:bg-gray-3 active:bg-gray-4","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent"),"aria-label":r,children:o}),cA=({pageNumber:e,isActive:t,onPageChange:n,size:r})=>h.jsxRuntimeExports.jsx(re.button,{whileHover:{scale:t?1:1.05},whileTap:{scale:.95},onClick:()=>n(e),className:M.classNames(Ec[r],yc[r],"flex items-center justify-center rounded-md border transition-colors duration-200",{"bg-primary-blue text-white border-primary-blue":t,"border-gray-6 hover:bg-gray-3 active:bg-gray-4":!t}),"aria-label":`Page ${e}`,"aria-current":t?"page":void 0,children:e},e),uA=({prevPage:e,nextPage:t,size:n})=>h.jsxRuntimeExports.jsx("span",{className:M.classNames(Ec[n],yc[n],"flex items-center justify-center"),children:"..."},`ellipsis-${e}-${t}`),lA=(e,t)=>t<=aA?Array.from({length:t},(n,r)=>r+1):e<=3?[1,2,3,4,"...",t]:e>=t-2?[1,"...",t-3,t-2,t-1,t]:[1,"...",e-1,e,e+1,"...",t],dA=(e,t)=>()=>{e>1&&t(e-1)},fA=(e,t,n)=>()=>{e<t&&n(e+1)},Ox=({currentPage:e,totalPages:t,onPageChange:n,size:r="md",className:o=""})=>{const s=dA(e,n),c=fA(e,t,n),l=lA(e,t);return h.jsxRuntimeExports.jsxs(re.div,{initial:{opacity:0},animate:{opacity:1},className:M.classNames("flex items-center justify-center gap-1 mt-3",{[o]:o}),children:[h.jsxRuntimeExports.jsx(El,{onClick:s,disabled:e===1,size:r,label:"Previous page",children:"←"}),l.map((u,i,a)=>{if(u==="..."){const p=a[i-1]||"start",m=a[i+1]||"end";return h.jsxRuntimeExports.jsx(uA,{prevPage:p,nextPage:m,size:r},`ellipsis-${p}-${m}`)}const d=u,f=d===e;return h.jsxRuntimeExports.jsx(cA,{pageNumber:d,isActive:f,onPageChange:n,size:r},d)}),h.jsxRuntimeExports.jsx(El,{onClick:c,disabled:e===t,size:r,label:"Next page",children:"→"})]})},hA=e=>{const t=S.createContext(void 0);return[({value:o,children:s})=>h.jsxRuntimeExports.jsx(t.Provider,{value:o,children:s}),()=>{const o=S.useContext(t);if(o===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return o}]},[pA]=hA("PopoverContext"),mA=e=>{const[t,n]=Bd.useControlledState({value:e==null?void 0:e.open,defaultValue:e==null?void 0:e.defaultOpen,onChange:e==null?void 0:e.onOpenChange});return h.jsxRuntimeExports.jsx(pA,{value:{open:t,setOpen:n},children:h.jsxRuntimeExports.jsx(q1,{"data-slot":"popover",...e,onOpenChange:n})})},gA={sm:"h-1",md:"h-2",lg:"h-3",xl:"h-4"},xA={primary:"bg-primary-blue",success:"bg-green-500",warning:"bg-yellow-500",error:"bg-red-500",info:"bg-blue-400"},vA=({value:e=0,classNames:t,indicatorColor:n="primary",customIndicatorClass:r,size:o="md",showLabel:s=!1,labelClassName:c,...l})=>h.jsxRuntimeExports.jsxs("div",{className:"w-full",children:[h.jsxRuntimeExports.jsx(ew,{className:M.classNames("relative w-full overflow-hidden rounded-full bg-gray-200",gA[o],t==null?void 0:t.root),value:e,...l,children:h.jsxRuntimeExports.jsx(tw,{className:M.classNames("h-full transition-transform duration-300 ease-in-out",r||xA[n],t==null?void 0:t.indicator),style:{transform:`translateX(-${100-(e||0)}%)`}})}),s&&h.jsxRuntimeExports.jsxs("div",{className:M.classNames("mt-1 text-right text-sm text-gray-600",c),children:[e,"%"]})]});var yA=Object.defineProperty,Do=Object.getOwnPropertySymbols,Mx=Object.prototype.hasOwnProperty,Ix=Object.prototype.propertyIsEnumerable,bl=(e,t,n)=>t in e?yA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xs=(e,t)=>{for(var n in t||(t={}))Mx.call(t,n)&&bl(e,n,t[n]);if(Do)for(var n of Do(t))Ix.call(t,n)&&bl(e,n,t[n]);return e},Ys=(e,t)=>{var n={};for(var r in e)Mx.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Do)for(var r of Do(e))t.indexOf(r)<0&&Ix.call(e,r)&&(n[r]=e[r]);return n};/**
|
|
80
79
|
* @license QR Code generator library (TypeScript)
|
|
81
80
|
* Copyright (c) Project Nayuki.
|
|
82
81
|
* SPDX-License-Identifier: MIT
|
|
@@ -13593,20 +13593,19 @@ const bO = ({ title: e, className: t = "" }) => /* @__PURE__ */ m.jsx(gr.Title,
|
|
|
13593
13593
|
hidden: { opacity: 0, scale: 0.95, y: 8 },
|
|
13594
13594
|
visible: { opacity: 1, scale: 1, y: 0 },
|
|
13595
13595
|
exit: { opacity: 0, scale: 0.95, y: 8 }
|
|
13596
|
-
}, DO = () => /* @__PURE__ */ m.jsx(Kx, { asChild: !0, children: /* @__PURE__ */ m.jsx(
|
|
13596
|
+
}, DO = ({ blur: e = !0 }) => /* @__PURE__ */ m.jsx(Kx, { asChild: !0, children: /* @__PURE__ */ m.jsx(
|
|
13597
13597
|
oe.div,
|
|
13598
13598
|
{
|
|
13599
|
-
className:
|
|
13600
|
-
fixed inset-0 z-10
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
backdrop-filter backdrop-blur-sm\r
|
|
13599
|
+
className: `
|
|
13600
|
+
fixed inset-0 z-10 bg-opacity-75
|
|
13601
|
+
transition-opacity
|
|
13602
|
+
backdrop-filter${e ? " backdrop-blur-sm" : ""}
|
|
13604
13603
|
`,
|
|
13605
13604
|
variants: MO,
|
|
13606
13605
|
initial: "hidden",
|
|
13607
13606
|
animate: "visible",
|
|
13608
13607
|
exit: "exit",
|
|
13609
|
-
onClick: (
|
|
13608
|
+
onClick: (t) => t.stopPropagation()
|
|
13610
13609
|
}
|
|
13611
13610
|
) }), jO = ({
|
|
13612
13611
|
children: e,
|
|
@@ -13738,9 +13737,10 @@ const bO = ({ title: e, className: t = "" }) => /* @__PURE__ */ m.jsx(gr.Title,
|
|
|
13738
13737
|
buttonOk: l,
|
|
13739
13738
|
buttonCancel: i,
|
|
13740
13739
|
isCloseAble: a,
|
|
13741
|
-
className: d = ""
|
|
13740
|
+
className: d = "",
|
|
13741
|
+
blur: f = !0
|
|
13742
13742
|
}) => /* @__PURE__ */ m.jsx(Wx, { open: e, children: /* @__PURE__ */ m.jsx($t, { children: e && /* @__PURE__ */ m.jsxs(qx, { forceMount: !0, children: [
|
|
13743
|
-
/* @__PURE__ */ m.jsx(DO, {}),
|
|
13743
|
+
/* @__PURE__ */ m.jsx(DO, { blur: f }),
|
|
13744
13744
|
/* @__PURE__ */ m.jsxs(
|
|
13745
13745
|
jO,
|
|
13746
13746
|
{
|