@neuctra/ui 0.2.4 → 0.2.5

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/index.cjs.js CHANGED
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var we;function Pe(){return we||(we=1,process.env.NODE_ENV!=="production"&&(function(){function t(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===D?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case h:return"Fragment";case l:return"Profiler";case p:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case I:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case b:return"Portal";case $:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case S:var C=o.render;return o=o.displayName,o||(o=C.displayName||C.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return C=o.displayName||null,C!==null?C:t(o.type)||"Memo";case F:C=o._payload,o=o._init;try{return t(o(C))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var C=!1}catch{C=!0}if(C){C=console;var N=C.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return N.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),r(o)}}function s(o){if(o===h)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===F)return"<...>";try{var C=t(o);return C?"<"+C+">":"<...>"}catch{return"<...>"}}function i(){var o=B.A;return o===null?null:o.getOwner()}function a(){return Error("react-stack-top-frame")}function x(o){if(H.call(o,"key")){var C=Object.getOwnPropertyDescriptor(o,"key").get;if(C&&C.isReactWarning)return!1}return o.key!==void 0}function f(o,C){function N(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",C))}N.isReactWarning=!0,Object.defineProperty(o,"key",{get:N,configurable:!0})}function g(){var o=t(this.type);return V[o]||(V[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function y(o,C,N,Y,K,ne){var A=N.ref;return o={$$typeof:m,type:o,key:C,props:N,_owner:Y},(A!==void 0?A:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:g}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function v(o,C,N,Y,K,ne){var A=C.children;if(A!==void 0)if(Y)if(W(A)){for(Y=0;Y<A.length;Y++)c(A[Y]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(A);if(H.call(C,"key")){A=t(o);var P=Object.keys(C).filter(function(R){return R!=="key"});Y=0<P.length?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}",re[A+Y]||(P=0<P.length?"{"+P.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var we;function Pe(){return we||(we=1,process.env.NODE_ENV!=="production"&&(function(){function t(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===D?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case h:return"Fragment";case l:return"Profiler";case p:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case I:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case b:return"Portal";case R:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case S:var C=o.render;return o=o.displayName,o||(o=C.displayName||C.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return C=o.displayName||null,C!==null?C:t(o.type)||"Memo";case F:C=o._payload,o=o._init;try{return t(o(C))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var C=!1}catch{C=!0}if(C){C=console;var N=C.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return N.call(C,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),r(o)}}function s(o){if(o===h)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===F)return"<...>";try{var C=t(o);return C?"<"+C+">":"<...>"}catch{return"<...>"}}function i(){var o=B.A;return o===null?null:o.getOwner()}function a(){return Error("react-stack-top-frame")}function x(o){if(H.call(o,"key")){var C=Object.getOwnPropertyDescriptor(o,"key").get;if(C&&C.isReactWarning)return!1}return o.key!==void 0}function f(o,C){function N(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",C))}N.isReactWarning=!0,Object.defineProperty(o,"key",{get:N,configurable:!0})}function g(){var o=t(this.type);return V[o]||(V[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function y(o,C,N,Y,K,ne){var A=N.ref;return o={$$typeof:m,type:o,key:C,props:N,_owner:Y},(A!==void 0?A:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:g}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ne}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function v(o,C,N,Y,K,ne){var A=C.children;if(A!==void 0)if(Y)if(W(A)){for(Y=0;Y<A.length;Y++)c(A[Y]);Object.freeze&&Object.freeze(A)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(A);if(H.call(C,"key")){A=t(o);var P=Object.keys(C).filter(function($){return $!=="key"});Y=0<P.length?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}",re[A+Y]||(P=0<P.length?"{"+P.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,Y,A,P,A),re[A+Y]=!0)}if(A=null,N!==void 0&&(n(N),A=""+N),x(C)&&(n(C.key),A=""+C.key),"key"in C){N={};for(var G in C)G!=="key"&&(N[G]=C[G])}else N=C;return A&&f(N,typeof o=="function"?o.displayName||o.name||"Unknown":o),y(o,A,N,i(),K,ne)}function c(o){u(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===F&&(o._payload.status==="fulfilled"?u(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function u(o){return typeof o=="object"&&o!==null&&o.$$typeof===m}var j=d,m=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),$=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),B=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,W=Array.isArray,E=console.createTask?console.createTask:function(){return null};j={react_stack_bottom_frame:function(o){return o()}};var T,V={},U=j.react_stack_bottom_frame.bind(j,a)(),q=E(s(a)),re={};ue.Fragment=h,ue.jsx=function(o,C,N){var Y=1e4>B.recentlyCreatedOwnerStacks++;return v(o,C,N,!1,Y?Error("react-stack-top-frame"):U,Y?E(s(o)):q)},ue.jsxs=function(o,C,N){var Y=1e4>B.recentlyCreatedOwnerStacks++;return v(o,C,N,!0,Y?Error("react-stack-top-frame"):U,Y?E(s(o)):q)}})()),ue}var ke;function Oe(){return ke||(ke=1,process.env.NODE_ENV==="production"?xe.exports=Ne():xe.exports=Pe()),xe.exports}var e=Oe();/**
22
+ <%s key={someKey} {...props} />`,Y,A,P,A),re[A+Y]=!0)}if(A=null,N!==void 0&&(n(N),A=""+N),x(C)&&(n(C.key),A=""+C.key),"key"in C){N={};for(var X in C)X!=="key"&&(N[X]=C[X])}else N=C;return A&&f(N,typeof o=="function"?o.displayName||o.name||"Unknown":o),y(o,A,N,i(),K,ne)}function c(o){u(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===F&&(o._payload.status==="fulfilled"?u(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function u(o){return typeof o=="object"&&o!==null&&o.$$typeof===m}var j=d,m=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),R=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),B=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,W=Array.isArray,E=console.createTask?console.createTask:function(){return null};j={react_stack_bottom_frame:function(o){return o()}};var T,V={},U=j.react_stack_bottom_frame.bind(j,a)(),q=E(s(a)),re={};ue.Fragment=h,ue.jsx=function(o,C,N){var Y=1e4>B.recentlyCreatedOwnerStacks++;return v(o,C,N,!1,Y?Error("react-stack-top-frame"):U,Y?E(s(o)):q)},ue.jsxs=function(o,C,N){var Y=1e4>B.recentlyCreatedOwnerStacks++;return v(o,C,N,!0,Y?Error("react-stack-top-frame"):U,Y?E(s(o)):q)}})()),ue}var ke;function Oe(){return ke||(ke=1,process.env.NODE_ENV==="production"?xe.exports=Ne():xe.exports=Pe()),xe.exports}var e=Oe();/**
23
23
  * @license lucide-react v0.536.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const We=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ye=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,n,s)=>s?s.toUpperCase():n.toLowerCase()),Se=t=>{const r=Ye(t);return r.charAt(0).toUpperCase()+r.slice(1)},$e=(...t)=>t.filter((r,n,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===n).join(" ").trim(),Fe=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
27
+ */const We=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ye=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,n,s)=>s?s.toUpperCase():n.toLowerCase()),Se=t=>{const r=Ye(t);return r.charAt(0).toUpperCase()+r.slice(1)},Re=(...t)=>t.filter((r,n,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===n).join(" ").trim(),Fe=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
28
28
  * @license lucide-react v0.536.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
@@ -34,112 +34,112 @@ React keys must be passed directly to JSX without using spread:
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const He=d.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:a,iconNode:x,...f},g)=>d.createElement("svg",{ref:g,...De,width:r,height:r,stroke:t,strokeWidth:s?Number(n)*24/Number(r):n,className:$e("lucide",i),...!a&&!Fe(f)&&{"aria-hidden":"true"},...f},[...x.map(([y,v])=>d.createElement(y,v)),...Array.isArray(a)?a:[a]]));/**
37
+ */const He=d.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:a,iconNode:x,...f},g)=>d.createElement("svg",{ref:g,...De,width:r,height:r,stroke:t,strokeWidth:s?Number(n)*24/Number(r):n,className:Re("lucide",i),...!a&&!Fe(f)&&{"aria-hidden":"true"},...f},[...x.map(([y,v])=>d.createElement(y,v)),...Array.isArray(a)?a:[a]]));/**
38
38
  * @license lucide-react v0.536.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const X=(t,r)=>{const n=d.forwardRef(({className:s,...i},a)=>d.createElement(He,{ref:a,iconNode:r,className:$e(`lucide-${We(Se(t))}`,`lucide-${t}`,s),...i}));return n.displayName=Se(t),n};/**
42
+ */const G=(t,r)=>{const n=d.forwardRef(({className:s,...i},a)=>d.createElement(He,{ref:a,iconNode:r,className:Re(`lucide-${We(Se(t))}`,`lucide-${t}`,s),...i}));return n.displayName=Se(t),n};/**
43
43
  * @license lucide-react v0.536.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Ve=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ue=X("circle-alert",Ve);/**
47
+ */const Ve=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ue=G("circle-alert",Ve);/**
48
48
  * @license lucide-react v0.536.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const qe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ge=X("circle-check-big",qe);/**
52
+ */const qe=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Xe=G("circle-check-big",qe);/**
53
53
  * @license lucide-react v0.536.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Xe=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Je=X("eye-off",Xe);/**
57
+ */const Ge=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Je=G("eye-off",Ge);/**
58
58
  * @license lucide-react v0.536.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Ze=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ke=X("eye",Ze);/**
62
+ */const Ze=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ke=G("eye",Ze);/**
63
63
  * @license lucide-react v0.536.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const Qe=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],et=X("heart",Qe);/**
67
+ */const Qe=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],et=G("heart",Qe);/**
68
68
  * @license lucide-react v0.536.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const tt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rt=X("info",tt);/**
72
+ */const tt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],rt=G("info",tt);/**
73
73
  * @license lucide-react v0.536.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */const nt=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],st=X("maximize",nt);/**
77
+ */const nt=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],st=G("maximize",nt);/**
78
78
  * @license lucide-react v0.536.0 - ISC
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const ot=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],at=X("minimize",ot);/**
82
+ */const ot=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],at=G("minimize",ot);/**
83
83
  * @license lucide-react v0.536.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */const lt=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Te=X("music",lt);/**
87
+ */const lt=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Te=G("music",lt);/**
88
88
  * @license lucide-react v0.536.0 - ISC
89
89
  *
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
- */const it=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],he=X("pause",it);/**
92
+ */const it=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],he=G("pause",it);/**
93
93
  * @license lucide-react v0.536.0 - ISC
94
94
  *
95
95
  * This source code is licensed under the ISC license.
96
96
  * See the LICENSE file in the root directory of this source tree.
97
- */const ct=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ge=X("play",ct);/**
97
+ */const ct=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ge=G("play",ct);/**
98
98
  * @license lucide-react v0.536.0 - ISC
99
99
  *
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
- */const dt=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Re=X("rotate-ccw",dt);/**
102
+ */const dt=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],$e=G("rotate-ccw",dt);/**
103
103
  * @license lucide-react v0.536.0 - ISC
104
104
  *
105
105
  * This source code is licensed under the ISC license.
106
106
  * See the LICENSE file in the root directory of this source tree.
107
- */const ut=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],ft=X("shuffle",ut);/**
107
+ */const ut=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],ft=G("shuffle",ut);/**
108
108
  * @license lucide-react v0.536.0 - ISC
109
109
  *
110
110
  * This source code is licensed under the ISC license.
111
111
  * See the LICENSE file in the root directory of this source tree.
112
- */const pt=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],me=X("skip-back",pt);/**
112
+ */const pt=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],me=G("skip-back",pt);/**
113
113
  * @license lucide-react v0.536.0 - ISC
114
114
  *
115
115
  * This source code is licensed under the ISC license.
116
116
  * See the LICENSE file in the root directory of this source tree.
117
- */const xt=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],be=X("skip-forward",xt);/**
117
+ */const xt=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],be=G("skip-forward",xt);/**
118
118
  * @license lucide-react v0.536.0 - ISC
119
119
  *
120
120
  * This source code is licensed under the ISC license.
121
121
  * See the LICENSE file in the root directory of this source tree.
122
- */const ht=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gt=X("triangle-alert",ht);/**
122
+ */const ht=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gt=G("triangle-alert",ht);/**
123
123
  * @license lucide-react v0.536.0 - ISC
124
124
  *
125
125
  * This source code is licensed under the ISC license.
126
126
  * See the LICENSE file in the root directory of this source tree.
127
- */const mt=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],bt=X("user",mt);/**
127
+ */const mt=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],bt=G("user",mt);/**
128
128
  * @license lucide-react v0.536.0 - ISC
129
129
  *
130
130
  * This source code is licensed under the ISC license.
131
131
  * See the LICENSE file in the root directory of this source tree.
132
- */const yt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ee=X("volume-2",yt);/**
132
+ */const yt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Ee=G("volume-2",yt);/**
133
133
  * @license lucide-react v0.536.0 - ISC
134
134
  *
135
135
  * This source code is licensed under the ISC license.
136
136
  * See the LICENSE file in the root directory of this source tree.
137
- */const vt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Me=X("volume-x",vt);/**
137
+ */const vt=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Me=G("volume-x",vt);/**
138
138
  * @license lucide-react v0.536.0 - ISC
139
139
  *
140
140
  * This source code is licensed under the ISC license.
141
141
  * See the LICENSE file in the root directory of this source tree.
142
- */const jt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ye=X("x",jt),wt={success:{bg:"#ecfdf5",border:"#34d399",iconColor:"#059669",Icon:e.jsx(Ge,{size:20})},error:{bg:"#fef2f2",border:"#f87171",iconColor:"#dc2626",Icon:e.jsx(Ue,{size:20})},warning:{bg:"#fffbeb",border:"#facc15",iconColor:"#d97706",Icon:e.jsx(gt,{size:20})},info:{bg:"#eff6ff",border:"#3b82f6",iconColor:"#2563eb",Icon:e.jsx(rt,{size:20})}},kt=t=>{const r={position:"fixed",zIndex:9999,pointerEvents:"auto"};switch(t){case"top-left":return{...r,top:"1.25rem",left:"1.25rem"};case"top-center":return{...r,top:"1.25rem",left:"50%",transform:"translateX(-50%)"};case"top-right":return{...r,top:"1.25rem",right:"1.25rem"};case"bottom-left":return{...r,bottom:"1.25rem",left:"1.25rem"};case"bottom-center":return{...r,bottom:"1.25rem",left:"50%",transform:"translateX(-50%)"};case"bottom-right":default:return{...r,bottom:"1.25rem",right:"1.25rem"}}},ze=({title:t,description:r,type:n="info",dismissible:s=!0,duration:i,onClose:a,icon:x,actionButton:f,position:g="top-right",backgroundColor:y,borderColor:v,textColor:c="#111827",borderRadius:u="0.75rem",shadow:j="0 4px 14px rgba(0,0,0,0.1)",padding:m="1rem",fontSize:b="0.95rem",fontWeight:h=500,descriptionColor:p="#374151",animationDuration:l="300ms",maxWidth:w="480px",className:$="",style:S})=>{const[z,L]=d.useState(!1),[M,F]=d.useState(!1);d.useEffect(()=>{if(L(!0),i){const T=setTimeout(()=>{F(!0),setTimeout(()=>{L(!1),a?.()},parseInt(l))},i);return()=>clearTimeout(T)}},[i,a,l]);const{bg:I,border:D,iconColor:B,Icon:H}=wt[n],W=kt(g),E=d.useMemo(()=>({...W,display:"flex",alignItems:"flex-start",gap:"0.75rem",backgroundColor:y??I,borderLeft:`4px solid ${v??D}`,borderRadius:u,color:c,boxShadow:j,padding:m,maxWidth:w,width:"calc(100% - 2.5rem)",opacity:z&&!M?1:0,transform:z&&!M?"translateY(0)":g.includes("bottom")?"translateY(20px)":"translateY(-20px)",transition:`opacity ${l} ease, transform ${l} ease`,fontWeight:h,fontSize:b,...S}),[z,M,I,D,v,u,g,j,m,c,w,y,l,S,b,h]);return z?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
142
+ */const jt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ye=G("x",jt),wt={success:{bg:"#ecfdf5",border:"#34d399",iconColor:"#059669",Icon:e.jsx(Xe,{size:20})},error:{bg:"#fef2f2",border:"#f87171",iconColor:"#dc2626",Icon:e.jsx(Ue,{size:20})},warning:{bg:"#fffbeb",border:"#facc15",iconColor:"#d97706",Icon:e.jsx(gt,{size:20})},info:{bg:"#eff6ff",border:"#3b82f6",iconColor:"#2563eb",Icon:e.jsx(rt,{size:20})}},kt=t=>{const r={position:"fixed",zIndex:9999,pointerEvents:"auto"};switch(t){case"top-left":return{...r,top:"1.25rem",left:"1.25rem"};case"top-center":return{...r,top:"1.25rem",left:"50%",transform:"translateX(-50%)"};case"top-right":return{...r,top:"1.25rem",right:"1.25rem"};case"bottom-left":return{...r,bottom:"1.25rem",left:"1.25rem"};case"bottom-center":return{...r,bottom:"1.25rem",left:"50%",transform:"translateX(-50%)"};case"bottom-right":default:return{...r,bottom:"1.25rem",right:"1.25rem"}}},ze=({title:t,description:r,type:n="info",dismissible:s=!0,duration:i,onClose:a,icon:x,actionButton:f,position:g="top-right",backgroundColor:y,borderColor:v,textColor:c="#111827",borderRadius:u="0.75rem",shadow:j="0 4px 14px rgba(0,0,0,0.1)",padding:m="1rem",fontSize:b="0.95rem",fontWeight:h=500,descriptionColor:p="#374151",animationDuration:l="300ms",maxWidth:w="480px",className:R="",style:S})=>{const[z,L]=d.useState(!1),[M,F]=d.useState(!1);d.useEffect(()=>{if(L(!0),i){const T=setTimeout(()=>{F(!0),setTimeout(()=>{L(!1),a?.()},parseInt(l))},i);return()=>clearTimeout(T)}},[i,a,l]);const{bg:I,border:D,iconColor:B,Icon:H}=wt[n],W=kt(g),E=d.useMemo(()=>({...W,display:"flex",alignItems:"flex-start",gap:"0.75rem",backgroundColor:y??I,borderLeft:`4px solid ${v??D}`,borderRadius:u,color:c,boxShadow:j,padding:m,maxWidth:w,width:"calc(100% - 2.5rem)",opacity:z&&!M?1:0,transform:z&&!M?"translateY(0)":g.includes("bottom")?"translateY(20px)":"translateY(-20px)",transition:`opacity ${l} ease, transform ${l} ease`,fontWeight:h,fontSize:b,...S}),[z,M,I,D,v,u,g,j,m,c,w,y,l,S,b,h]);return z?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
143
143
  @keyframes alert-slide-in-top {
144
144
  from { opacity: 0; transform: translateY(-20px); }
145
145
  to { opacity: 1; transform: translateY(0); }
@@ -148,7 +148,7 @@ React keys must be passed directly to JSX without using spread:
148
148
  from { opacity: 0; transform: translateY(20px); }
149
149
  to { opacity: 1; transform: translateY(0); }
150
150
  }
151
- `}),e.jsxs("div",{className:$,style:{...E,animation:`${g.includes("bottom")?"alert-slide-in-bottom":"alert-slide-in-top"} ${l} ease`},role:"alert",children:[e.jsx("div",{style:{color:B,marginTop:"2px"},children:x||H}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&e.jsx("div",{style:{fontWeight:600,fontSize:b,marginBottom:"4px"},children:t}),r&&e.jsx("div",{style:{fontSize:"0.875rem",color:p,lineHeight:1.4},children:r}),f&&e.jsx("div",{style:{marginTop:"8px"},children:f})]}),s&&e.jsx("button",{onClick:()=>{F(!0),setTimeout(()=>{L(!1),a?.()},parseInt(l))},style:{background:"transparent",border:"none",color:"#6b7280",cursor:"pointer",marginLeft:"8px",padding:0,lineHeight:0},"aria-label":"Close alert",children:e.jsx(ye,{size:16})})]})]}):null};ze.displayName="Alert";const _e=d.memo(({items:t,allowMultiple:r=!1,defaultOpen:n=[],borderColor:s="#e5e7eb",backgroundColor:i="#fff",textColor:a="#111827",hoverBgColor:x="#f9fafb",hoverTextColor:f="#111827",contentBgColor:g="#fff",contentTextColor:y="#374151",paddingY:v="1rem",paddingX:c="1rem",marginY:u="0.75rem",borderRadius:j="0.5rem",contentPadding:m="1rem",fontSize:b="1rem",fontWeight:h=600,contentFontSize:p="0.95rem",contentFontWeight:l=400,iconOpen:w="−",iconClose:$="+",iconSize:S="1.25rem",transitionDuration:z="300ms",shadow:L="0 1px 4px rgba(0,0,0,0.08)",className:M="",style:F})=>{const[I,D]=d.useState(n),B=d.useRef([]);d.useEffect(()=>{B.current.forEach((W,E)=>{W&&(W.style.maxHeight=I.includes(E)?`${W.scrollHeight}px`:"0px")})},[I]);const H=W=>{D(E=>r?E.includes(W)?E.filter(T=>T!==W):[...E,W]:E.includes(W)?[]:[W])};return e.jsx("div",{className:M,style:{width:"100%",...F},children:t.map((W,E)=>{const T=I.includes(E);return e.jsxs("div",{style:{border:`1px solid ${s}`,borderRadius:j,margin:`${u} 0`,boxShadow:L,overflow:"hidden",transition:`all ${z} ease`},children:[e.jsxs("button",{onClick:()=>H(E),style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:i,color:a,padding:`${v} ${c}`,fontWeight:h,fontSize:b,cursor:"pointer",border:"none",outline:"none",transition:`all ${z}`},onMouseEnter:V=>{V.currentTarget.style.backgroundColor=x,V.currentTarget.style.color=f},onMouseLeave:V=>{V.currentTarget.style.backgroundColor=i,V.currentTarget.style.color=a},children:[e.jsx("span",{children:W.title}),e.jsx("span",{style:{fontSize:S},children:T?w:$})]}),e.jsx("div",{ref:V=>{B.current[E]=V},style:{overflow:"hidden",maxHeight:T?`${B.current[E]?.scrollHeight}px`:"0px",transition:`max-height ${z} ease-in-out`},children:e.jsx("div",{style:{borderTop:`1px solid ${s}`,backgroundColor:g,color:y,padding:m,fontSize:p,fontWeight:l},children:W.content})})]},E)})})});_e.displayName="Accordion";const Ie={xs:24,sm:32,md:40,lg:48,xl:56,"2xl":64},Ae={xs:10,sm:12,md:14,lg:16,xl:18,"2xl":20},St={xs:6,sm:8,md:10,lg:12,xl:14,"2xl":16},Tt=t=>{switch(t){case"square":return"0px";case"rounded":return"8px";default:return"50%"}},Ct=(t,r)=>{switch(t){case"top-left":return{top:2,left:2};case"top-right":return{top:2,right:2};case"bottom-left":return{bottom:2,left:2};default:return{bottom:2,right:2}}},$t=(t,r)=>{switch(t){case"tight":return-(r*.5);case"loose":return-(r*.15);default:return-(r*.35)}},Le=({src:t,alt:r="User avatar",size:n="md",variant:s="circular",isOnline:i=!1,isOffline:a=!1,className:x="",style:f,statusClassName:g="",statusStyle:y,statusPosition:v="bottom-right",fallback:c,ring:u=!1,ringColor:j="#3b82f6",onClick:m})=>{const[b,h]=d.useState(!1),[p,l]=d.useState(!1),w=n==="responsive",$=w?void 0:Ie[n],S=w?"clamp(10px, 2vw, 16px)":Ae[n],z=w?10:St[n],L=Tt(s),M=c||r.split(" ").map(H=>H[0]).join("").toUpperCase().slice(0,2),F=i?"#10b981":a?"#6b7280":"",I=i?"Online":a?"Offline":"",D=t&&!b,B=!!m;return e.jsxs("div",{className:x,role:B?"button":"img",tabIndex:B?0:-1,"aria-label":r,onClick:m,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onKeyDown:H=>{B&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),m?.())},style:{position:"relative",width:w?"100%":$,height:w?"100%":$,borderRadius:L,overflow:"visible",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:B?"pointer":"default",transition:"all 0.25s cubic-bezier(0.4, 0, 0.2, 1)",transform:p&&B?"scale(1.05)":"scale(1)",boxShadow:u?`0 0 0 3px ${j}22, 0 0 0 1px ${j}`:p&&B?"0 6px 16px rgba(0, 0, 0, 0.15)":"0 1px 3px rgba(0, 0, 0, 0.1)",...f},children:[D?e.jsx("img",{src:t,alt:r,onError:()=>h(!0),loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:L,transition:"opacity 0.3s ease-in-out"}}):e.jsx("div",{style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",color:"#fff",fontSize:S,fontWeight:600,borderRadius:L,display:"flex",alignItems:"center",justifyContent:"center"},children:M||e.jsx(bt,{size:$?$*.5:20})}),(i||a)&&e.jsx("div",{className:g,"aria-label":I,title:I,style:{position:"absolute",width:z,height:z,borderRadius:"50%",backgroundColor:F,border:"2px solid white",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12)",...Ct(v),...y}})]})},Rt=({avatars:t,max:r=4,size:n="md",className:s="",style:i,spacing:a="normal",direction:x="left"})=>{const f=n==="responsive",g=f?40:Ie[n],y=f?"clamp(10px, 2vw, 14px)":Ae[n],v=$t(a,g),c=t.slice(0,r),u=t.length-r;return e.jsxs("div",{className:s,style:{display:"flex",alignItems:"center",flexDirection:x==="right"?"row-reverse":"row",flexWrap:"wrap",...i},role:"group","aria-label":`Avatar group with ${t.length} members`,children:[c.map((j,m)=>{const b=x==="left"?m===0:m===c.length-1,h=x==="left"?c.length-m:m+1;return e.jsx("div",{style:{marginLeft:x==="left"&&!b?v:0,marginRight:x==="right"&&!b?v:0,zIndex:h,position:"relative",transition:"transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)"},onMouseEnter:p=>{p.currentTarget.style.transform="translateY(-3px) scale(1.05)",p.currentTarget.style.zIndex="100"},onMouseLeave:p=>{p.currentTarget.style.transform="translateY(0) scale(1)",p.currentTarget.style.zIndex=h.toString()},children:e.jsx(Le,{...j,size:n})},m)}),u>0&&e.jsxs("div",{style:{marginLeft:x==="left"?v:0,marginRight:x==="right"?v:0,width:g,height:g,borderRadius:"50%",background:"linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)",color:"#374151",fontSize:y,fontWeight:600,display:"flex",justifyContent:"center",alignItems:"center",border:"3px solid white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",userSelect:"none"},title:`${u} more members`,children:["+",u]})]})},Et=({src:t,thumbnail:r,autoPlay:n=!1,loop:s=!1,backgroundColor:i="#000000",primaryColor:a="#10b981",secondaryColor:x="#ffffff",borderRadius:f="12px",padding:g="16px",width:y="100%",className:v})=>{const c=d.useRef(null),u=d.useRef(null),[j,m]=d.useState(n),[b,h]=d.useState(0),[p,l]=d.useState(0),[w,$]=d.useState(.5),[S,z]=d.useState(!1),[L,M]=d.useState(s);d.useEffect(()=>{c.current&&(c.current.volume=w)},[w]),d.useEffect(()=>{c.current&&(c.current.loop=L)},[L]);const F=()=>{c.current&&(j?c.current.pause():c.current.play(),m(!j))},I=()=>{c.current&&(h(c.current.currentTime),l(c.current.duration))},D=E=>{if(!c.current||!E.currentTarget)return;const T=E.currentTarget.getBoundingClientRect(),U=(E.clientX-T.left)/T.width*p;c.current.currentTime=U,h(U)},B=E=>{c.current&&(c.current.currentTime+=E)},H=()=>{u.current&&(S?document.exitFullscreen?.():u.current.requestFullscreen?.(),z(!S))},W=E=>{const T=Math.floor(E/60),V=Math.floor(E%60);return`${T}:${V<10?"0":""}${V}`};return e.jsxs("div",{ref:u,className:v,style:{position:"relative",width:y,backgroundColor:i,borderRadius:f,color:x,boxShadow:"0 4px 12px rgba(0,0,0,0.3)",overflow:"hidden",padding:g,boxSizing:"border-box",maxWidth:"100%"},children:[e.jsx("audio",{ref:c,src:t,autoPlay:n,loop:s,onTimeUpdate:I,onLoadedMetadata:I}),r&&e.jsx("img",{src:r,alt:"Audio Thumbnail",style:{width:"100%",objectFit:"cover",borderRadius:f,marginBottom:"16px",maxHeight:"150px"}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",flexShrink:0,marginTop:"10px"},children:[e.jsx("button",{onClick:()=>B(-10),"aria-label":"Skip Back 10s",children:e.jsx(me,{size:20})}),e.jsx("button",{onClick:F,style:{background:a,borderRadius:"9999px",padding:"10px",color:"#fff",border:"none",cursor:"pointer"},"aria-label":j?"Pause":"Play",children:j?e.jsx(he,{size:20}):e.jsx(ge,{size:20})}),e.jsx("button",{onClick:()=>B(10),"aria-label":"Skip Forward 10s",children:e.jsx(be,{size:20})})]}),e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"12px",width:"100%"},children:[e.jsxs("div",{style:{flexShrink:0,minWidth:"60px",textAlign:"center"},children:[e.jsx("span",{style:{fontSize:"14px",marginRight:"4px"},children:W(b)}),e.jsxs("span",{style:{fontSize:"14px",color:"#aaa"},children:["/ ",W(p)]})]}),e.jsx("div",{onClick:D,style:{flex:1,height:"8px",background:"#444",borderRadius:"4px",cursor:"pointer",position:"relative",minWidth:"100px"},children:e.jsx("div",{style:{width:`${b/p*100||0}%`,height:"100%",background:a,borderRadius:"4px"}})}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",flexShrink:0},children:[e.jsx("button",{onClick:()=>M(!L),"aria-label":"Toggle Loop",children:e.jsx(Re,{size:18,color:L?a:void 0})}),e.jsx("button",{onClick:()=>$(w>0?0:.5),"aria-label":"Toggle Mute",children:w>0?e.jsx(Ee,{size:18}):e.jsx(Me,{size:18})}),e.jsx("button",{onClick:H,"aria-label":"Toggle Fullscreen",children:S?e.jsx(at,{size:18}):e.jsx(st,{size:18})})]})]})]})},Mt=[{src:"https://www.soundjay.com/misc/sounds/bell-ringing-05.wav",title:"Morning Bell",artist:"Nature Sounds",duration:"0:15",thumbnail:"https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=300&h=300&fit=crop"},{src:"https://www.soundjay.com/buttons/sounds/button-4.wav",title:"Digital Click",artist:"Tech Audio",duration:"0:05",thumbnail:"https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=300&h=300&fit=crop"},{src:"https://www.soundjay.com/buttons/sounds/button-10.wav",title:"Soft Chime",artist:"Ambient Studio",duration:"0:08",thumbnail:"https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=300&h=300&fit=crop"}];function zt({tracks:t=Mt,className:r="",galleryTitle:n="Audio Gallery",primaryColor:s="#8b5cf6",backgroundColor:i="#0f0f23",textColor:a="#e4e4e7",secondaryColor:x="#1a1a2e",border:f=0,borderColor:g,maxWidth:y=420,autoplay:v=!1,loop:c=!1}){const[u,j]=d.useState(null),[m,b]=d.useState(!1),[h,p]=d.useState(0),[l,w]=d.useState(0),[$,S]=d.useState(.7),[z,L]=d.useState(!1),[M,F]=d.useState(c),[I,D]=d.useState(!1),[B,H]=d.useState(!1),[W,E]=d.useState(!1),T=d.useRef(null),V=d.useRef(null),U=d.useRef(null);d.useEffect(()=>{T.current&&(T.current.volume=$)},[$]),d.useEffect(()=>{T.current&&(T.current.loop=M)},[M]),d.useEffect(()=>{u===null&&T.current&&(T.current.pause(),b(!1),p(0),w(0))},[u]);const q=R=>{if(u===R){if(!T.current)return;T.current.paused?(T.current.play().catch(()=>{}),b(!0)):(T.current.pause(),b(!1))}else j(R),setTimeout(()=>{T.current&&(T.current.play().catch(()=>{}),b(!0))},100)},re=()=>{T.current&&(p(T.current.currentTime),T.current.duration&&w(T.current.duration))},o=R=>{if(!T.current||!l)return;const k=R.currentTarget.getBoundingClientRect(),Z=(R.clientX-k.left)/k.width*l;T.current.currentTime=Z,p(Z)},C=R=>{const k=R.currentTarget.getBoundingClientRect(),J=(R.clientX-k.left)/k.width,Z=Math.max(0,Math.min(1,J));S(Z)},N=R=>{if(T.current&&l){let k=T.current.currentTime+R;k=Math.min(Math.max(k,0),l),T.current.currentTime=k,p(k)}},Y=()=>{if(u===null)return;let R;I?R=Math.floor(Math.random()*t.length):R=(u+1)%t.length,q(R)},K=()=>{if(u===null)return;let R;I?R=Math.floor(Math.random()*t.length):R=(u-1+t.length)%t.length,q(R)},ne=()=>{S(R=>R>0?0:.7)},A=()=>{E(!0),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{E(!1)},3e3)},P=R=>{if(isNaN(R))return"0:00";const k=Math.floor(R/60),_=Math.floor(R%60);return`${k}:${_<10?"0":""}${_}`},G=u!==null?t[u]:null;return e.jsxs("div",{className:r,style:{maxWidth:`${y}px`,margin:"20px auto",background:`linear-gradient(145deg, ${i}, ${x})`,color:a,borderRadius:"24px",padding:"24px 16px",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",userSelect:"none",backdropFilter:"blur(20px)",border:`${f}px solid ${g}40`},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"24px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"12px",background:`linear-gradient(135deg, ${s}, ${x})`,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(Te,{size:20,color:"white"})}),e.jsxs("div",{children:[e.jsx("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:"700",color:s},children:n}),e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",opacity:.7},children:[t.length," tracks"]})]})]}),e.jsx("button",{onClick:()=>D(!I),style:{background:I?s:"transparent",border:"none",borderRadius:"12px",padding:"8px",cursor:"pointer",transition:"all 0.3s ease",opacity:I?1:.6},"aria-label":"Toggle Shuffle",children:e.jsx(ft,{size:18,color:I?"white":a})})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",marginBottom:"20px",maxHeight:"240px",overflowY:"auto",paddingRight:"4px"},children:t.map((R,k)=>{const _=u===k,J=_&&m;return e.jsxs("div",{onClick:()=>q(k),style:{display:"flex",alignItems:"center",padding:"12px 16px",borderRadius:"16px",background:_?`linear-gradient(135deg, ${s}20, ${s}10)`:"rgba(255,255,255,0.05)",border:_?`1px solid ${s}40`:"1px solid transparent",cursor:"pointer",transition:"all 0.3s ease",backdropFilter:_?"blur(20px)":"none"},children:[e.jsxs("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:R.thumbnail?`url(${R.thumbnail}) center/cover`:s,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",position:"relative",overflow:"hidden"},children:[!R.thumbnail&&e.jsx(Te,{size:20,color:"white"}),J&&e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("div",{style:{width:"16px",height:"16px",display:"flex",gap:"2px",alignItems:"end",justifyContent:"center"},children:[0,1,2].map(Z=>e.jsx("div",{style:{width:"3px",background:"white",borderRadius:"2px",animation:`equalizer 1s ease-in-out infinite ${Z*.2}s`,height:"12px"}},Z))})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:"600",fontSize:"0.95rem",color:_?s:a,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:R.title}),R.artist&&e.jsx("div",{style:{fontSize:"0.8rem",opacity:.7,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:R.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[R.duration&&e.jsx("span",{style:{fontSize:"0.8rem",opacity:.6},children:R.duration}),e.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",background:_?s:"rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"},children:J?e.jsx(he,{size:16,color:"white"}):e.jsx(ge,{size:16,color:"white"})})]})]},k)})}),G&&e.jsxs("div",{ref:V,style:{background:`linear-gradient(135deg, ${x}, ${i})`,borderRadius:"20px",padding:"20px",border:`1px solid ${s}40`,backdropFilter:"blur(20px)",position:"relative",overflow:"hidden"},children:[G.thumbnail&&e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url(${G.thumbnail})`,backgroundSize:"cover",backgroundPosition:"center",filter:"blur(60px) opacity(0.1)",transform:"scale(1.1)"}}),e.jsxs("div",{style:{position:"relative",zIndex:1},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"20px"},children:[e.jsx("h3",{style:{margin:"0 0 4px 0",fontSize:"1.1rem",fontWeight:"700",color:s},children:G.title}),G.artist&&e.jsx("p",{style:{margin:0,opacity:.7,fontSize:"0.9rem"},children:G.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"20px",marginBottom:"20px"},children:[e.jsx("button",{onClick:K,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Previous Track",children:e.jsx(me,{size:20})}),e.jsxs("button",{onClick:()=>N(-10),style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Skip back 10 seconds",children:[e.jsx(me,{size:16}),e.jsx("span",{style:{fontSize:"0.7rem",marginLeft:"2px"},children:"10"})]}),e.jsx("button",{onClick:()=>{T.current&&(m?(T.current.pause(),b(!1)):(T.current.play().catch(()=>{}),b(!0)))},style:{...ie("#fff",s),width:"60px",height:"60px",borderRadius:"50%",boxShadow:`0 8px 25px ${s}40`},"aria-label":m?"Pause":"Play",children:m?e.jsx(he,{size:24}):e.jsx(ge,{size:24})}),e.jsxs("button",{onClick:()=>N(10),style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Skip forward 10 seconds",children:[e.jsx("span",{style:{fontSize:"0.7rem",marginRight:"2px"},children:"10"}),e.jsx(be,{size:16})]}),e.jsx("button",{onClick:Y,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Next Track",children:e.jsx(be,{size:20})})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",fontSize:"0.8rem",opacity:.7},children:[e.jsx("span",{children:P(h)}),e.jsx("span",{children:P(l)})]}),e.jsx("div",{onClick:o,style:{height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px",cursor:"pointer",position:"relative",overflow:"hidden"},children:e.jsx("div",{style:{width:`${h/l*100||0}%`,height:"100%",background:`linear-gradient(90deg, ${s}, #ec4899)`,borderRadius:"3px",position:"relative"},children:e.jsx("div",{style:{position:"absolute",right:"-6px",top:"50%",transform:"translateY(-50%)",width:"12px",height:"12px",background:s,borderRadius:"50%",boxShadow:`0 2px 8px ${s}60`}})})})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx("button",{onClick:()=>H(!B),style:ie(B?"#ec4899":a,"rgba(255,255,255,0.1)"),"aria-label":"Like",children:e.jsx(et,{size:16,fill:B?"#ec4899":"none"})}),e.jsx("button",{onClick:()=>F(!M),style:ie(M?s:a,"rgba(255,255,255,0.1)"),"aria-label":"Toggle Loop",children:e.jsx(Re,{size:16})})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",position:"relative"},children:[W&&e.jsx("div",{onClick:C,style:{width:"80px",height:"4px",background:"rgba(255,255,255,0.2)",borderRadius:"2px",cursor:"pointer",position:"relative"},children:e.jsx("div",{style:{width:`${$*100}%`,height:"100%",background:s,borderRadius:"2px"}})}),e.jsx("button",{onClick:ne,onMouseEnter:A,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":$>0?"Mute":"Unmute",children:$>0?e.jsx(Ee,{size:16}):e.jsx(Me,{size:16})})]})]})]}),e.jsx("audio",{ref:T,src:G.src,autoPlay:v,loop:M,onTimeUpdate:re,onEnded:()=>{b(!1),M||Y()},onLoadedMetadata:re,preload:"metadata",style:{display:"none"}})]}),e.jsx("style",{children:`
151
+ `}),e.jsxs("div",{className:R,style:{...E,animation:`${g.includes("bottom")?"alert-slide-in-bottom":"alert-slide-in-top"} ${l} ease`},role:"alert",children:[e.jsx("div",{style:{color:B,marginTop:"2px"},children:x||H}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&e.jsx("div",{style:{fontWeight:600,fontSize:b,marginBottom:"4px"},children:t}),r&&e.jsx("div",{style:{fontSize:"0.875rem",color:p,lineHeight:1.4},children:r}),f&&e.jsx("div",{style:{marginTop:"8px"},children:f})]}),s&&e.jsx("button",{onClick:()=>{F(!0),setTimeout(()=>{L(!1),a?.()},parseInt(l))},style:{background:"transparent",border:"none",color:"#6b7280",cursor:"pointer",marginLeft:"8px",padding:0,lineHeight:0},"aria-label":"Close alert",children:e.jsx(ye,{size:16})})]})]}):null};ze.displayName="Alert";const _e=d.memo(({items:t,allowMultiple:r=!1,defaultOpen:n=[],borderColor:s="#e5e7eb",backgroundColor:i="#fff",textColor:a="#111827",hoverBgColor:x="#f9fafb",hoverTextColor:f="#111827",contentBgColor:g="#fff",contentTextColor:y="#374151",paddingY:v="1rem",paddingX:c="1rem",marginY:u="0.75rem",borderRadius:j="0.5rem",contentPadding:m="1rem",fontSize:b="1rem",fontWeight:h=600,contentFontSize:p="0.95rem",contentFontWeight:l=400,iconOpen:w="−",iconClose:R="+",iconSize:S="1.25rem",transitionDuration:z="300ms",shadow:L="0 1px 4px rgba(0,0,0,0.08)",className:M="",style:F})=>{const[I,D]=d.useState(n),B=d.useRef([]);d.useEffect(()=>{B.current.forEach((W,E)=>{W&&(W.style.maxHeight=I.includes(E)?`${W.scrollHeight}px`:"0px")})},[I]);const H=W=>{D(E=>r?E.includes(W)?E.filter(T=>T!==W):[...E,W]:E.includes(W)?[]:[W])};return e.jsx("div",{className:M,style:{width:"100%",...F},children:t.map((W,E)=>{const T=I.includes(E);return e.jsxs("div",{style:{border:`1px solid ${s}`,borderRadius:j,margin:`${u} 0`,boxShadow:L,overflow:"hidden",transition:`all ${z} ease`},children:[e.jsxs("button",{onClick:()=>H(E),style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:i,color:a,padding:`${v} ${c}`,fontWeight:h,fontSize:b,cursor:"pointer",border:"none",outline:"none",transition:`all ${z}`},onMouseEnter:V=>{V.currentTarget.style.backgroundColor=x,V.currentTarget.style.color=f},onMouseLeave:V=>{V.currentTarget.style.backgroundColor=i,V.currentTarget.style.color=a},children:[e.jsx("span",{children:W.title}),e.jsx("span",{style:{fontSize:S},children:T?w:R})]}),e.jsx("div",{ref:V=>{B.current[E]=V},style:{overflow:"hidden",maxHeight:T?`${B.current[E]?.scrollHeight}px`:"0px",transition:`max-height ${z} ease-in-out`},children:e.jsx("div",{style:{borderTop:`1px solid ${s}`,backgroundColor:g,color:y,padding:m,fontSize:p,fontWeight:l},children:W.content})})]},E)})})});_e.displayName="Accordion";const Ie={xs:24,sm:32,md:40,lg:48,xl:56,"2xl":64},Ae={xs:10,sm:12,md:14,lg:16,xl:18,"2xl":20},St={xs:6,sm:8,md:10,lg:12,xl:14,"2xl":16},Tt=t=>{switch(t){case"square":return"0px";case"rounded":return"8px";default:return"50%"}},Ct=(t,r)=>{switch(t){case"top-left":return{top:2,left:2};case"top-right":return{top:2,right:2};case"bottom-left":return{bottom:2,left:2};default:return{bottom:2,right:2}}},Rt=(t,r)=>{switch(t){case"tight":return-(r*.5);case"loose":return-(r*.15);default:return-(r*.35)}},Le=({src:t,alt:r="User avatar",size:n="md",variant:s="circular",isOnline:i=!1,isOffline:a=!1,className:x="",style:f,statusClassName:g="",statusStyle:y,statusPosition:v="bottom-right",fallback:c,ring:u=!1,ringColor:j="#3b82f6",onClick:m})=>{const[b,h]=d.useState(!1),[p,l]=d.useState(!1),w=n==="responsive",R=w?void 0:Ie[n],S=w?"clamp(10px, 2vw, 16px)":Ae[n],z=w?10:St[n],L=Tt(s),M=c||r.split(" ").map(H=>H[0]).join("").toUpperCase().slice(0,2),F=i?"#10b981":a?"#6b7280":"",I=i?"Online":a?"Offline":"",D=t&&!b,B=!!m;return e.jsxs("div",{className:x,role:B?"button":"img",tabIndex:B?0:-1,"aria-label":r,onClick:m,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onKeyDown:H=>{B&&(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),m?.())},style:{position:"relative",width:w?"100%":R,height:w?"100%":R,borderRadius:L,overflow:"visible",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:B?"pointer":"default",transition:"all 0.25s cubic-bezier(0.4, 0, 0.2, 1)",transform:p&&B?"scale(1.05)":"scale(1)",boxShadow:u?`0 0 0 3px ${j}22, 0 0 0 1px ${j}`:p&&B?"0 6px 16px rgba(0, 0, 0, 0.15)":"0 1px 3px rgba(0, 0, 0, 0.1)",...f},children:[D?e.jsx("img",{src:t,alt:r,onError:()=>h(!0),loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:L,transition:"opacity 0.3s ease-in-out"}}):e.jsx("div",{style:{width:"100%",height:"100%",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",color:"#fff",fontSize:S,fontWeight:600,borderRadius:L,display:"flex",alignItems:"center",justifyContent:"center"},children:M||e.jsx(bt,{size:R?R*.5:20})}),(i||a)&&e.jsx("div",{className:g,"aria-label":I,title:I,style:{position:"absolute",width:z,height:z,borderRadius:"50%",backgroundColor:F,border:"2px solid white",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12)",...Ct(v),...y}})]})},$t=({avatars:t,max:r=4,size:n="md",className:s="",style:i,spacing:a="normal",direction:x="left"})=>{const f=n==="responsive",g=f?40:Ie[n],y=f?"clamp(10px, 2vw, 14px)":Ae[n],v=Rt(a,g),c=t.slice(0,r),u=t.length-r;return e.jsxs("div",{className:s,style:{display:"flex",alignItems:"center",flexDirection:x==="right"?"row-reverse":"row",flexWrap:"wrap",...i},role:"group","aria-label":`Avatar group with ${t.length} members`,children:[c.map((j,m)=>{const b=x==="left"?m===0:m===c.length-1,h=x==="left"?c.length-m:m+1;return e.jsx("div",{style:{marginLeft:x==="left"&&!b?v:0,marginRight:x==="right"&&!b?v:0,zIndex:h,position:"relative",transition:"transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)"},onMouseEnter:p=>{p.currentTarget.style.transform="translateY(-3px) scale(1.05)",p.currentTarget.style.zIndex="100"},onMouseLeave:p=>{p.currentTarget.style.transform="translateY(0) scale(1)",p.currentTarget.style.zIndex=h.toString()},children:e.jsx(Le,{...j,size:n})},m)}),u>0&&e.jsxs("div",{style:{marginLeft:x==="left"?v:0,marginRight:x==="right"?v:0,width:g,height:g,borderRadius:"50%",background:"linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)",color:"#374151",fontSize:y,fontWeight:600,display:"flex",justifyContent:"center",alignItems:"center",border:"3px solid white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",userSelect:"none"},title:`${u} more members`,children:["+",u]})]})},Et=({src:t,thumbnail:r,autoPlay:n=!1,loop:s=!1,backgroundColor:i="#000000",primaryColor:a="#10b981",secondaryColor:x="#ffffff",borderRadius:f="12px",padding:g="16px",width:y="100%",className:v})=>{const c=d.useRef(null),u=d.useRef(null),[j,m]=d.useState(n),[b,h]=d.useState(0),[p,l]=d.useState(0),[w,R]=d.useState(.5),[S,z]=d.useState(!1),[L,M]=d.useState(s);d.useEffect(()=>{c.current&&(c.current.volume=w)},[w]),d.useEffect(()=>{c.current&&(c.current.loop=L)},[L]);const F=()=>{c.current&&(j?c.current.pause():c.current.play(),m(!j))},I=()=>{c.current&&(h(c.current.currentTime),l(c.current.duration))},D=E=>{if(!c.current||!E.currentTarget)return;const T=E.currentTarget.getBoundingClientRect(),U=(E.clientX-T.left)/T.width*p;c.current.currentTime=U,h(U)},B=E=>{c.current&&(c.current.currentTime+=E)},H=()=>{u.current&&(S?document.exitFullscreen?.():u.current.requestFullscreen?.(),z(!S))},W=E=>{const T=Math.floor(E/60),V=Math.floor(E%60);return`${T}:${V<10?"0":""}${V}`};return e.jsxs("div",{ref:u,className:v,style:{position:"relative",width:y,backgroundColor:i,borderRadius:f,color:x,boxShadow:"0 4px 12px rgba(0,0,0,0.3)",overflow:"hidden",padding:g,boxSizing:"border-box",maxWidth:"100%"},children:[e.jsx("audio",{ref:c,src:t,autoPlay:n,loop:s,onTimeUpdate:I,onLoadedMetadata:I}),r&&e.jsx("img",{src:r,alt:"Audio Thumbnail",style:{width:"100%",objectFit:"cover",borderRadius:f,marginBottom:"16px",maxHeight:"150px"}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",flexShrink:0,marginTop:"10px"},children:[e.jsx("button",{onClick:()=>B(-10),"aria-label":"Skip Back 10s",children:e.jsx(me,{size:20})}),e.jsx("button",{onClick:F,style:{background:a,borderRadius:"9999px",padding:"10px",color:"#fff",border:"none",cursor:"pointer"},"aria-label":j?"Pause":"Play",children:j?e.jsx(he,{size:20}):e.jsx(ge,{size:20})}),e.jsx("button",{onClick:()=>B(10),"aria-label":"Skip Forward 10s",children:e.jsx(be,{size:20})})]}),e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"12px",width:"100%"},children:[e.jsxs("div",{style:{flexShrink:0,minWidth:"60px",textAlign:"center"},children:[e.jsx("span",{style:{fontSize:"14px",marginRight:"4px"},children:W(b)}),e.jsxs("span",{style:{fontSize:"14px",color:"#aaa"},children:["/ ",W(p)]})]}),e.jsx("div",{onClick:D,style:{flex:1,height:"8px",background:"#444",borderRadius:"4px",cursor:"pointer",position:"relative",minWidth:"100px"},children:e.jsx("div",{style:{width:`${b/p*100||0}%`,height:"100%",background:a,borderRadius:"4px"}})}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",flexShrink:0},children:[e.jsx("button",{onClick:()=>M(!L),"aria-label":"Toggle Loop",children:e.jsx($e,{size:18,color:L?a:void 0})}),e.jsx("button",{onClick:()=>R(w>0?0:.5),"aria-label":"Toggle Mute",children:w>0?e.jsx(Ee,{size:18}):e.jsx(Me,{size:18})}),e.jsx("button",{onClick:H,"aria-label":"Toggle Fullscreen",children:S?e.jsx(at,{size:18}):e.jsx(st,{size:18})})]})]})]})},Mt=[{src:"https://www.soundjay.com/misc/sounds/bell-ringing-05.wav",title:"Morning Bell",artist:"Nature Sounds",duration:"0:15",thumbnail:"https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=300&h=300&fit=crop"},{src:"https://www.soundjay.com/buttons/sounds/button-4.wav",title:"Digital Click",artist:"Tech Audio",duration:"0:05",thumbnail:"https://images.unsplash.com/photo-1514525253161-7a46d19cd819?w=300&h=300&fit=crop"},{src:"https://www.soundjay.com/buttons/sounds/button-10.wav",title:"Soft Chime",artist:"Ambient Studio",duration:"0:08",thumbnail:"https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=300&h=300&fit=crop"}];function zt({tracks:t=Mt,className:r="",galleryTitle:n="Audio Gallery",primaryColor:s="#8b5cf6",backgroundColor:i="#0f0f23",textColor:a="#e4e4e7",secondaryColor:x="#1a1a2e",border:f=0,borderColor:g,maxWidth:y=420,autoplay:v=!1,loop:c=!1}){const[u,j]=d.useState(null),[m,b]=d.useState(!1),[h,p]=d.useState(0),[l,w]=d.useState(0),[R,S]=d.useState(.7),[z,L]=d.useState(!1),[M,F]=d.useState(c),[I,D]=d.useState(!1),[B,H]=d.useState(!1),[W,E]=d.useState(!1),T=d.useRef(null),V=d.useRef(null),U=d.useRef(null);d.useEffect(()=>{T.current&&(T.current.volume=R)},[R]),d.useEffect(()=>{T.current&&(T.current.loop=M)},[M]),d.useEffect(()=>{u===null&&T.current&&(T.current.pause(),b(!1),p(0),w(0))},[u]);const q=$=>{if(u===$){if(!T.current)return;T.current.paused?(T.current.play().catch(()=>{}),b(!0)):(T.current.pause(),b(!1))}else j($),setTimeout(()=>{T.current&&(T.current.play().catch(()=>{}),b(!0))},100)},re=()=>{T.current&&(p(T.current.currentTime),T.current.duration&&w(T.current.duration))},o=$=>{if(!T.current||!l)return;const k=$.currentTarget.getBoundingClientRect(),Z=($.clientX-k.left)/k.width*l;T.current.currentTime=Z,p(Z)},C=$=>{const k=$.currentTarget.getBoundingClientRect(),J=($.clientX-k.left)/k.width,Z=Math.max(0,Math.min(1,J));S(Z)},N=$=>{if(T.current&&l){let k=T.current.currentTime+$;k=Math.min(Math.max(k,0),l),T.current.currentTime=k,p(k)}},Y=()=>{if(u===null)return;let $;I?$=Math.floor(Math.random()*t.length):$=(u+1)%t.length,q($)},K=()=>{if(u===null)return;let $;I?$=Math.floor(Math.random()*t.length):$=(u-1+t.length)%t.length,q($)},ne=()=>{S($=>$>0?0:.7)},A=()=>{E(!0),U.current&&clearTimeout(U.current),U.current=setTimeout(()=>{E(!1)},3e3)},P=$=>{if(isNaN($))return"0:00";const k=Math.floor($/60),_=Math.floor($%60);return`${k}:${_<10?"0":""}${_}`},X=u!==null?t[u]:null;return e.jsxs("div",{className:r,style:{maxWidth:`${y}px`,margin:"20px auto",background:`linear-gradient(145deg, ${i}, ${x})`,color:a,borderRadius:"24px",padding:"24px 16px",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",userSelect:"none",backdropFilter:"blur(20px)",border:`${f}px solid ${g}40`},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"24px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"12px",background:`linear-gradient(135deg, ${s}, ${x})`,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(Te,{size:20,color:"white"})}),e.jsxs("div",{children:[e.jsx("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:"700",color:s},children:n}),e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",opacity:.7},children:[t.length," tracks"]})]})]}),e.jsx("button",{onClick:()=>D(!I),style:{background:I?s:"transparent",border:"none",borderRadius:"12px",padding:"8px",cursor:"pointer",transition:"all 0.3s ease",opacity:I?1:.6},"aria-label":"Toggle Shuffle",children:e.jsx(ft,{size:18,color:I?"white":a})})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",marginBottom:"20px",maxHeight:"240px",overflowY:"auto",paddingRight:"4px"},children:t.map(($,k)=>{const _=u===k,J=_&&m;return e.jsxs("div",{onClick:()=>q(k),style:{display:"flex",alignItems:"center",padding:"12px 16px",borderRadius:"16px",background:_?`linear-gradient(135deg, ${s}20, ${s}10)`:"rgba(255,255,255,0.05)",border:_?`1px solid ${s}40`:"1px solid transparent",cursor:"pointer",transition:"all 0.3s ease",backdropFilter:_?"blur(20px)":"none"},children:[e.jsxs("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:$.thumbnail?`url(${$.thumbnail}) center/cover`:s,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",position:"relative",overflow:"hidden"},children:[!$.thumbnail&&e.jsx(Te,{size:20,color:"white"}),J&&e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("div",{style:{width:"16px",height:"16px",display:"flex",gap:"2px",alignItems:"end",justifyContent:"center"},children:[0,1,2].map(Z=>e.jsx("div",{style:{width:"3px",background:"white",borderRadius:"2px",animation:`equalizer 1s ease-in-out infinite ${Z*.2}s`,height:"12px"}},Z))})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:"600",fontSize:"0.95rem",color:_?s:a,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:$.title}),$.artist&&e.jsx("div",{style:{fontSize:"0.8rem",opacity:.7,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:$.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[$.duration&&e.jsx("span",{style:{fontSize:"0.8rem",opacity:.6},children:$.duration}),e.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",background:_?s:"rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"},children:J?e.jsx(he,{size:16,color:"white"}):e.jsx(ge,{size:16,color:"white"})})]})]},k)})}),X&&e.jsxs("div",{ref:V,style:{background:`linear-gradient(135deg, ${x}, ${i})`,borderRadius:"20px",padding:"20px",border:`1px solid ${s}40`,backdropFilter:"blur(20px)",position:"relative",overflow:"hidden"},children:[X.thumbnail&&e.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url(${X.thumbnail})`,backgroundSize:"cover",backgroundPosition:"center",filter:"blur(60px) opacity(0.1)",transform:"scale(1.1)"}}),e.jsxs("div",{style:{position:"relative",zIndex:1},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"20px"},children:[e.jsx("h3",{style:{margin:"0 0 4px 0",fontSize:"1.1rem",fontWeight:"700",color:s},children:X.title}),X.artist&&e.jsx("p",{style:{margin:0,opacity:.7,fontSize:"0.9rem"},children:X.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"20px",marginBottom:"20px"},children:[e.jsx("button",{onClick:K,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Previous Track",children:e.jsx(me,{size:20})}),e.jsxs("button",{onClick:()=>N(-10),style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Skip back 10 seconds",children:[e.jsx(me,{size:16}),e.jsx("span",{style:{fontSize:"0.7rem",marginLeft:"2px"},children:"10"})]}),e.jsx("button",{onClick:()=>{T.current&&(m?(T.current.pause(),b(!1)):(T.current.play().catch(()=>{}),b(!0)))},style:{...ie("#fff",s),width:"60px",height:"60px",borderRadius:"50%",boxShadow:`0 8px 25px ${s}40`},"aria-label":m?"Pause":"Play",children:m?e.jsx(he,{size:24}):e.jsx(ge,{size:24})}),e.jsxs("button",{onClick:()=>N(10),style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Skip forward 10 seconds",children:[e.jsx("span",{style:{fontSize:"0.7rem",marginRight:"2px"},children:"10"}),e.jsx(be,{size:16})]}),e.jsx("button",{onClick:Y,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":"Next Track",children:e.jsx(be,{size:20})})]}),e.jsxs("div",{style:{marginBottom:"16px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",fontSize:"0.8rem",opacity:.7},children:[e.jsx("span",{children:P(h)}),e.jsx("span",{children:P(l)})]}),e.jsx("div",{onClick:o,style:{height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px",cursor:"pointer",position:"relative",overflow:"hidden"},children:e.jsx("div",{style:{width:`${h/l*100||0}%`,height:"100%",background:`linear-gradient(90deg, ${s}, #ec4899)`,borderRadius:"3px",position:"relative"},children:e.jsx("div",{style:{position:"absolute",right:"-6px",top:"50%",transform:"translateY(-50%)",width:"12px",height:"12px",background:s,borderRadius:"50%",boxShadow:`0 2px 8px ${s}60`}})})})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx("button",{onClick:()=>H(!B),style:ie(B?"#ec4899":a,"rgba(255,255,255,0.1)"),"aria-label":"Like",children:e.jsx(et,{size:16,fill:B?"#ec4899":"none"})}),e.jsx("button",{onClick:()=>F(!M),style:ie(M?s:a,"rgba(255,255,255,0.1)"),"aria-label":"Toggle Loop",children:e.jsx($e,{size:16})})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",position:"relative"},children:[W&&e.jsx("div",{onClick:C,style:{width:"80px",height:"4px",background:"rgba(255,255,255,0.2)",borderRadius:"2px",cursor:"pointer",position:"relative"},children:e.jsx("div",{style:{width:`${R*100}%`,height:"100%",background:s,borderRadius:"2px"}})}),e.jsx("button",{onClick:ne,onMouseEnter:A,style:ie(a,"rgba(255,255,255,0.1)"),"aria-label":R>0?"Mute":"Unmute",children:R>0?e.jsx(Ee,{size:16}):e.jsx(Me,{size:16})})]})]})]}),e.jsx("audio",{ref:T,src:X.src,autoPlay:v,loop:M,onTimeUpdate:re,onEnded:()=>{b(!1),M||Y()},onLoadedMetadata:re,preload:"metadata",style:{display:"none"}})]}),e.jsx("style",{children:`
152
152
  @keyframes equalizer {
153
153
  0%, 100% { height: 4px; }
154
154
  50% { height: 12px; }
@@ -172,17 +172,17 @@ React keys must be passed directly to JSX without using spread:
172
172
  div::-webkit-scrollbar-thumb:hover {
173
173
  background: ${s}dd;
174
174
  }
175
- `})]})}function ie(t,r){return{border:"none",backgroundColor:r,color:t,cursor:"pointer",padding:"10px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",backdropFilter:"blur(10px)"}}const _t=d.memo(({text:t,color:r="#2563eb",textColor:n="#fff",borderColor:s="#2563eb",borderWidth:i="0",icon:a,iconPosition:x="left",rounded:f=!1,borderRadius:g,fontSize:y="13px",fontWeight:v=500,horizontalPadding:c="10px",verticalPadding:u="4px",margin:j="0",shadow:m="0 1px 3px rgba(0,0,0,0.1)",notificationDot:b=!1,dotColor:h="#ef4444",count:p,pulse:l=!1,style:w,className:$="",onClick:S})=>{const z={display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:r,color:n,border:`${i} solid ${s}`,borderRadius:g||(f?"9999px":"6px"),padding:`${u} ${c}`,fontSize:y,fontWeight:v,margin:j,boxShadow:m,position:"relative",cursor:S?"pointer":"default",userSelect:"none",lineHeight:1,transition:"all 0.2s ease",...w},L={position:"absolute",top:"-4px",right:"-4px",height:"8px",width:"8px",backgroundColor:h,borderRadius:"50%",animation:l?"pulseAnim 1.2s infinite":void 0},M={position:"absolute",top:"-8px",right:"-8px",backgroundColor:h,color:"#fff",borderRadius:"50%",minWidth:"18px",height:"18px",fontSize:"11px",padding:"0 5px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1},F={display:"flex",alignItems:"center",margin:a&&t?x==="left"?"0 6px 0 0":"0 0 0 6px":0};return e.jsxs("span",{style:z,className:$,onClick:S,children:[b&&e.jsx("span",{style:L}),typeof p<"u"&&e.jsx("span",{style:M,children:p}),a&&x==="left"&&e.jsx("span",{style:F,children:a}),t&&e.jsx("span",{children:t}),a&&x==="right"&&e.jsx("span",{style:F,children:a}),e.jsx("style",{children:`
175
+ `})]})}function ie(t,r){return{border:"none",backgroundColor:r,color:t,cursor:"pointer",padding:"10px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",backdropFilter:"blur(10px)"}}const _t=d.memo(({text:t,color:r="#2563eb",textColor:n="#fff",borderColor:s="#2563eb",borderWidth:i="0",icon:a,iconPosition:x="left",rounded:f=!1,borderRadius:g,fontSize:y="13px",fontWeight:v=500,horizontalPadding:c="10px",verticalPadding:u="4px",margin:j="0",shadow:m="0 1px 3px rgba(0,0,0,0.1)",notificationDot:b=!1,dotColor:h="#ef4444",count:p,pulse:l=!1,style:w,className:R="",onClick:S})=>{const z={display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:r,color:n,border:`${i} solid ${s}`,borderRadius:g||(f?"9999px":"6px"),padding:`${u} ${c}`,fontSize:y,fontWeight:v,margin:j,boxShadow:m,position:"relative",cursor:S?"pointer":"default",userSelect:"none",lineHeight:1,transition:"all 0.2s ease",...w},L={position:"absolute",top:"-4px",right:"-4px",height:"8px",width:"8px",backgroundColor:h,borderRadius:"50%",animation:l?"pulseAnim 1.2s infinite":void 0},M={position:"absolute",top:"-8px",right:"-8px",backgroundColor:h,color:"#fff",borderRadius:"50%",minWidth:"18px",height:"18px",fontSize:"11px",padding:"0 5px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1},F={display:"flex",alignItems:"center",margin:a&&t?x==="left"?"0 6px 0 0":"0 0 0 6px":0};return e.jsxs("span",{style:z,className:R,onClick:S,children:[b&&e.jsx("span",{style:L}),typeof p<"u"&&e.jsx("span",{style:M,children:p}),a&&x==="left"&&e.jsx("span",{style:F,children:a}),t&&e.jsx("span",{children:t}),a&&x==="right"&&e.jsx("span",{style:F,children:a}),e.jsx("style",{children:`
176
176
  @keyframes pulseAnim {
177
177
  0% { transform: scale(1); opacity: 1; }
178
178
  50% { transform: scale(1.5); opacity: 0.5; }
179
179
  100% { transform: scale(1); opacity: 1; }
180
180
  }
181
- `})]})}),It={light:{default:"#111",primary:"#2563eb",success:"#16a34a",danger:"#dc2626",white:"#ffffff",muted:"#6b7280",border:"#d1d5db",hover:"#1d4ed8",text:"#ffffff"},dark:{default:"#f8fafc",primary:"#60a5fa",success:"#22c55e",danger:"#f87171",white:"#ffffff",muted:"#9ca3af",border:"#374151",hover:"#3b82f6",text:"#000000"}};function fe(t,r){return!t.startsWith("#")||t.length!==7?t:"#"+t.replace(/^#/,"").replace(/../g,n=>("0"+Math.min(255,Math.max(0,parseInt(n,16)+r)).toString(16)).slice(-2))}const At=({children:t,type:r="button",onClick:n,iconBefore:s,iconAfter:i,className:a="",style:x,fullWidth:f=!1,disabled:g=!1,loading:y=!1,loadingText:v="Loading...",darkMode:c=!1,baseColor:u,size:j="md",rounded:m=!0,showBorder:b=!1})=>{const[h,p]=d.useState(!1),l=d.useMemo(()=>{if(!u)return It[c?"dark":"light"];const z={primary:u,hover:fe(u,-40),text:"#ffffff",border:fe(u,-60)},L={primary:fe(u,60),hover:fe(u,80),text:"#000000",border:fe(u,40)};return c?L:z},[u,c]),$={sm:{px:16,py:6,font:"0.85rem"},md:{px:24,py:10,font:"1rem"},lg:{px:32,py:14,font:"1.125rem"}}[j],S={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:`${$.py}px ${$.px}px`,fontSize:$.font,fontWeight:500,borderRadius:m?8:3,border:b?`1px solid ${l.border}`:"none",width:f?"100%":"auto",backgroundColor:h&&!g?l.hover:l.primary,color:l.text,cursor:g?"not-allowed":"pointer",opacity:g?.6:1,transition:"all 0.25s ease-in-out",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.15)",...x};return e.jsxs("button",{type:r,className:a,style:S,onClick:!g&&!y?n:void 0,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),disabled:g,children:[y?e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{width:"16px",height:"16px",border:"2px solid currentColor",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 1s linear infinite"}}),e.jsx("span",{children:v})]}):e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{children:s}),e.jsx("span",{children:t}),i&&e.jsx("span",{children:i})]}),e.jsx("style",{children:`
181
+ `})]})}),It={light:{default:"#111",primary:"#2563eb",success:"#16a34a",danger:"#dc2626",white:"#ffffff",muted:"#6b7280",border:"#d1d5db",hover:"#1d4ed8",text:"#ffffff"},dark:{default:"#f8fafc",primary:"#60a5fa",success:"#22c55e",danger:"#f87171",white:"#ffffff",muted:"#9ca3af",border:"#374151",hover:"#3b82f6",text:"#000000"}};function fe(t,r){return!t.startsWith("#")||t.length!==7?t:"#"+t.replace(/^#/,"").replace(/../g,n=>("0"+Math.min(255,Math.max(0,parseInt(n,16)+r)).toString(16)).slice(-2))}const At=({children:t,type:r="button",onClick:n,iconBefore:s,iconAfter:i,className:a="",style:x,fullWidth:f=!1,disabled:g=!1,loading:y=!1,loadingText:v="Loading...",darkMode:c=!1,baseColor:u,size:j="md",rounded:m=!0,showBorder:b=!1})=>{const[h,p]=d.useState(!1),l=d.useMemo(()=>{if(!u)return It[c?"dark":"light"];const z={primary:u,hover:fe(u,-40),text:"#ffffff",border:fe(u,-60)},L={primary:fe(u,60),hover:fe(u,80),text:"#000000",border:fe(u,40)};return c?L:z},[u,c]),R={sm:{px:16,py:6,font:"0.85rem"},md:{px:24,py:10,font:"1rem"},lg:{px:32,py:14,font:"1.125rem"}}[j],S={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:`${R.py}px ${R.px}px`,fontSize:R.font,fontWeight:500,borderRadius:m?8:3,border:b?`1px solid ${l.border}`:"none",width:f?"100%":"auto",backgroundColor:h&&!g?l.hover:l.primary,color:l.text,cursor:g?"not-allowed":"pointer",opacity:g?.6:1,transition:"all 0.25s ease-in-out",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.15)",...x};return e.jsxs("button",{type:r,className:a,style:S,onClick:!g&&!y?n:void 0,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),disabled:g,children:[y?e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{width:"16px",height:"16px",border:"2px solid currentColor",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 1s linear infinite"}}),e.jsx("span",{children:v})]}):e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{children:s}),e.jsx("span",{children:t}),i&&e.jsx("span",{children:i})]}),e.jsx("style",{children:`
182
182
  @keyframes spin {
183
183
  to { transform: rotate(360deg); }
184
184
  }
185
- `})]})},Lt=({as:t,children:r,className:n="",variant:s="elevated",background:i="#fff",textColor:a="#000",borderRadius:x=12,border:f,boxShadow:g,hoverShadow:y,padding:v=16,margin:c,width:u,height:j,style:m={},hoverStyle:b={},onClick:h,...p},l)=>{const w=t||"div",$={elevated:{boxShadow:g||"0 4px 12px rgba(0,0,0,0.08)",border:f||"none"},outline:{border:f||"1px solid rgba(0,0,0,0.1)",boxShadow:"none"},flat:{border:"none",boxShadow:"none"}},S={background:i,color:a,borderRadius:x,padding:v,margin:c,width:u,height:j,transition:"all 0.25s ease",cursor:h?"pointer":void 0,boxSizing:"border-box",...$[s]||{},...m},z=M=>{Object.assign(M.currentTarget.style,y?{boxShadow:y}:b)},L=M=>{Object.assign(M.currentTarget.style,{...S,...$[s]||{}})};return e.jsx(w,{ref:l,className:`ui-card ${n}`,style:S,onClick:h,onMouseEnter:z,onMouseLeave:L,...p,children:r})},Bt=d.forwardRef(Lt),Nt=Object.assign(Bt,{displayName:"Card"}),Pt=({name:t,options:r,selectedValues:n=[],onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",customIcon:y,style:v,labelStyle:c,iconSize:u=20,iconCheckedBgColor:j="#2563eb",iconUncheckedBorderColor:m="#9ca3af",textColor:b="#374151",errorStyle:h})=>{const p=l=>{if(!s)return;const w=n.includes(l)?n.filter($=>$!==l):[...n,l];s(w)};return e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...v},role:"group","aria-disabled":i,children:[r.map(l=>{const w=n.includes(l.value);return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...c},children:[e.jsx("span",{style:{color:b,fontSize:14},children:l.label}),e.jsx("input",{type:"checkbox",name:t,value:l.value,checked:w,disabled:i||a,required:x,onChange:()=>p(l.value),style:{display:"none"}}),y?y(w):e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:u,height:u,borderRadius:4,border:`2px solid ${w?j:m}`,backgroundColor:w?j:"transparent",transition:"all 0.25s ease"},children:w&&e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{width:u*.6,height:u*.6},children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},l.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...h},children:f})]})},Ot=({name:t,options:r,selectedValue:n,onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",style:y,labelStyle:v,iconSize:c=20,iconCheckedBgColor:u="#2563eb",iconUncheckedBorderColor:j="#9ca3af",textColor:m="#374151",errorStyle:b})=>e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...y},role:"radiogroup","aria-disabled":i,children:[r.map(h=>{const p=n===h.value;return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...v},children:[e.jsx("span",{style:{color:m,fontSize:14},children:h.label}),e.jsx("input",{type:"radio",name:t,value:h.value,checked:p,disabled:i||a,required:x,onChange:()=>s&&s(h.value),style:{display:"none"}}),e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:c,height:c,borderRadius:"50%",border:`2px solid ${p?u:j}`,backgroundColor:p?u:"transparent",transition:"all 0.25s ease"},children:p&&e.jsx("span",{style:{width:c/2,height:c/2,borderRadius:"50%",backgroundColor:"white"}})})]},h.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...b},children:f})]}),Wt=({name:t,options:r,selectedValues:n=[],onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",style:y,labelStyle:v,iconSize:c=20,iconCheckedBgColor:u="#2563eb",switchBgColor:j="#d1d5db",textColor:m="#374151",errorStyle:b})=>{const h=p=>{if(!s)return;const l=n.includes(p)?n.filter(w=>w!==p):[...n,p];s(l)};return e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...y},role:"group","aria-disabled":i,children:[r.map(p=>{const l=n.includes(p.value);return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...v},children:[e.jsx("span",{style:{color:m,fontSize:14},children:p.label}),e.jsx("input",{type:"checkbox",name:t,value:p.value,checked:l,disabled:i||a,required:x,onChange:()=>h(p.value),style:{display:"none"}}),e.jsx("span",{style:{position:"relative",width:c*2,height:c*1.1,borderRadius:9999,backgroundColor:l?u:j,transition:"background-color 0.25s ease"},children:e.jsx("span",{style:{position:"absolute",top:"50%",left:l?`calc(100% - ${c-4}px - 2px)`:"2px",transform:"translateY(-50%)",width:c-4,height:c-4,borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.3)",transition:"left 0.25s ease"}})})]},p.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...b},children:f})]})},Yt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px",full:"100%"},Ft=({size:t="lg",padding:r=0,margin:n="0 auto",backgroundColor:s="transparent",center:i=!0,width:a,height:x="auto",borderRadius:f=0,style:g,className:y="",children:v})=>{const c=d.useMemo(()=>{const u=typeof r=="number"?`${r}px`:r,j=i&&n==="0 auto"?"0 auto":n,m=typeof f=="number"?`${f}px`:f;return{maxWidth:a??Yt[t],margin:j,padding:u,backgroundColor:s,height:x,borderRadius:m,boxSizing:"border-box",width:a??"100%",...g}},[t,r,n,s,a,x,f,i,g]);return e.jsx("div",{className:y,style:c,children:v})},Dt=t=>t<768?"sm":t<1024?"md":"lg",Q=(t,r,n)=>t==null?n:typeof t!="object"?t:t[r]??n,Ht=({direction:t={sm:"column",md:"row",lg:"row"},align:r="center",justify:n="space-between",wrap:s="wrap",gap:i=16,padding:a,margin:x,backgroundColor:f="transparent",width:g="100%",maxWidth:y="100%",height:v="auto",borderRadius:c,border:u,boxShadow:j,overflow:m,children:b,style:h,className:p})=>{const[l,w]=d.useState("lg");d.useEffect(()=>{const S=()=>w(Dt(window.innerWidth));return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const $=d.useMemo(()=>{const S=z=>typeof z=="number"?`${z}px`:z;return{display:"flex",flexDirection:Q(t,l,"row"),alignItems:Q(r,l,"center"),justifyContent:Q(n,l,"flex-start"),flexWrap:Q(s,l,"wrap"),gap:S(Q(i,l,void 0)),padding:S(Q(a,l,void 0)),margin:S(Q(x,l,void 0)),backgroundColor:Q(f,l,void 0),width:Q(g,l,"100%"),maxWidth:Q(y,l,void 0),height:Q(v,l,void 0),borderRadius:Q(c,l,void 0),border:Q(u,l,void 0),boxShadow:Q(j,l,void 0),overflow:Q(m,l,void 0),boxSizing:"border-box",...h}},[t,r,n,s,i,a,x,f,g,y,v,c,u,j,m,l,h]);return e.jsx("div",{className:p,style:$,children:b})},Vt=t=>t<768?"sm":t<1024?"md":"lg",ee=(t,r,n)=>t==null?n:typeof t!="object"?t:t[r]??n,ve=({direction:t={sm:"vertical",md:"horizontal",lg:"horizontal"},gap:r=12,align:n="center",justify:s="flex-start",wrap:i="nowrap",padding:a,margin:x,width:f="100%",maxWidth:g,height:y="auto",backgroundColor:v="transparent",borderRadius:c,border:u,boxShadow:j,overflow:m,className:b,style:h,children:p})=>{const[l,w]=d.useState("lg");d.useEffect(()=>{const S=()=>w(Vt(window.innerWidth));return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const $=d.useMemo(()=>{const S=M=>typeof M=="number"?`${M}px`:M;return{display:"flex",flexDirection:ee(t,l,"vertical")==="vertical"?"column":"row",alignItems:ee(n,l,"center"),justifyContent:ee(s,l,"flex-start"),flexWrap:ee(i,l,"nowrap"),gap:S(ee(r,l,12)),padding:S(ee(a,l,void 0)),margin:S(ee(x,l,void 0)),width:ee(f,l,"100%"),maxWidth:ee(g,l,void 0),height:ee(y,l,void 0),backgroundColor:ee(v,l,void 0),borderRadius:ee(c,l,void 0),border:ee(u,l,void 0),boxShadow:ee(j,l,void 0),overflow:ee(m,l,void 0),boxSizing:"border-box",...h}},[t,r,n,s,i,a,x,f,g,y,v,c,u,j,m,h,l]);return e.jsx("div",{className:b,style:$,children:p})},Ut=t=>e.jsx(ve,{direction:"horizontal",...t}),qt=t=>e.jsx(ve,{direction:"vertical",...t}),Ce=t=>t<768?"sm":t<1024?"md":"lg",Gt=({columns:t={sm:1,md:2,lg:3},gap:r=16,padding:n=0,alignItems:s="stretch",justifyItems:i="stretch",backgroundColor:a="transparent",width:x="100%",maxWidth:f="100%",height:g="auto",margin:y=0,style:v,className:c="",children:u})=>{const[j,m]=d.useState("lg");d.useEffect(()=>{m(Ce(window.innerWidth));const p=()=>m(Ce(window.innerWidth));return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const b=d.useMemo(()=>typeof t=="number"?t:t[j]??1,[t,j]),h=d.useMemo(()=>({display:"grid",gridTemplateColumns:`repeat(${b}, 1fr)`,gap:typeof r=="number"?`${r}px`:r,padding:typeof n=="number"?`${n}px`:n,margin:typeof y=="number"?`${y}px`:y,alignItems:s,justifyItems:i,backgroundColor:a,width:x,maxWidth:f,height:g,boxSizing:"border-box",...v}),[b,r,n,y,s,i,a,x,f,g,v]);return e.jsx("div",{style:h,className:c,children:u})},Xt=({label:t="Open Drawer",icon:r,iconPosition:n="left",onClick:s,color:i="#2563eb",textColor:a="#fff",borderRadius:x="6px",padding:f="10px 16px",fontSize:g="14px",gap:y="8px",style:v,className:c=""})=>e.jsxs("button",{onClick:s,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:i,color:a,border:"none",borderRadius:x,padding:f,fontSize:g,gap:y,cursor:"pointer",fontWeight:500,transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",...v},className:c,children:[r&&n==="left"&&r,t,r&&n==="right"&&r]}),Jt=({open:t,onClose:r,position:n="right",width:s="320px",height:i="320px",backgroundColor:a="#fff",backdropColor:x="rgba(0,0,0,0.5)",transitionDuration:f=300,style:g,className:y="",children:v,showCloseButton:c=!0,closeIconColor:u="#000",closeButtonStyle:j})=>{const[m,b]=d.useState(t);d.useEffect(()=>{t?b(!0):setTimeout(()=>b(!1),f)},[t,f]);const h=d.useMemo(()=>{if(t)return"translate(0, 0)";switch(n){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)";default:return"translate(0, 0)"}},[t,n]),p={position:"fixed",backgroundColor:a,transition:`transform ${f}ms ease, opacity ${f}ms ease`,transform:h,opacity:t?1:0,zIndex:1001,...g,...n==="left"||n==="right"?{top:0,bottom:0,[n]:0,width:s,height:"100%"}:{left:0,right:0,[n]:0,height:i,width:"100%"}},l={position:"fixed",inset:0,backgroundColor:x,opacity:t?1:0,transition:`opacity ${f}ms ease`,zIndex:1e3,display:m?"block":"none",pointerEvents:t?"auto":"none"},w={position:"absolute",top:"12px",right:"12px",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease, opacity 0.2s ease"};return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:l,onClick:r}),e.jsxs("div",{style:{...p,display:"flex",flexDirection:"column",visibility:m?"visible":"hidden",pointerEvents:t?"auto":"none",boxShadow:"0 0 20px rgba(0,0,0,0.15)"},className:y,children:[c&&e.jsx("button",{onClick:r,style:{...w,...j},"aria-label":"Close drawer",children:e.jsx(ye,{size:22,color:u})}),e.jsx("div",{style:{flex:1,overflowY:"auto",padding:"16px",scrollbarWidth:"thin"},children:v})]})]})},Zt={light:{controlBg:"#ffffff",menuBg:"#ffffff",textColor:"#111827",placeholderColor:"#6b7280",hoverBg:"#f9fafb",selectedBg:"#eff6ff",disabledBg:"#f3f4f6",disabledTextColor:"#9ca3af",borderColor:"#e5e7eb",accentColor:"#3b82f6"},dark:{controlBg:"#1f2937",menuBg:"#111827",textColor:"#f9fafb",placeholderColor:"#9ca3af",hoverBg:"#374151",selectedBg:"#2563eb33",disabledBg:"#374151",disabledTextColor:"#6b7280",borderColor:"#374151",accentColor:"#60a5fa"},custom:{}},Kt=(t,r)=>{d.useId();const{options:n,value:s,values:i,defaultValue:a,defaultValues:x,onChange:f,placeholder:g="Select...",disabled:y=!1,searchable:v=!1,multiSelect:c=!1,clearable:u=!1,virtualized:j=!1,width:m="100%",dropdownMaxHeight:b="320px",borderRadius:h="8px",boxShadow:p="0 8px 28px rgba(0,0,0,0.1)",borderColor:l,accentColor:w,theme:$="light",menuBg:S,controlBg:z,textColor:L,hoverBg:M,selectedBg:F,disabledBg:I,disabledTextColor:D,placeholderColor:B,transitionDuration:H="180ms",className:W,controlClassName:E,menuClassName:T,optionClassName:V,style:U,controlStyle:q,menuStyle:re,optionStyle:o,iconPrefix:C,iconSuffix:N,clearIcon:Y="×",dropdownIcon:K="▾",checkIcon:ne="✓"}=t,A={...Zt[$],...$==="custom"?{}:{}},P={borderColor:l??A.borderColor,accentColor:w??A.accentColor,controlBg:z??A.controlBg,menuBg:S??A.menuBg,textColor:L??A.textColor,hoverBg:M??A.hoverBg,selectedBg:F??A.selectedBg,disabledBg:I??A.disabledBg,disabledTextColor:D??A.disabledTextColor,placeholderColor:B??A.placeholderColor},[G,R]=d.useState(!1),[k,_]=d.useState(x??(a?[a]:[]));d.useEffect(()=>{s&&_([s]),i&&_(i)},[s,i]);const J=d.useMemo(()=>n.filter(O=>k.includes(O.value)),[n,k]),Z=()=>!y&&R(O=>!O),se=O=>{if(c){const ae=k.includes(O)?k.filter(te=>te!==O):[...k,O];_(ae),f?.(ae)}else _([O]),f?.(O),R(!1)},le=O=>{O?.stopPropagation(),_([]),f?.(c?[]:"")};return e.jsxs("div",{ref:r,className:W,style:{position:"relative",width:m,fontFamily:"Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial",...U},children:[e.jsxs("div",{className:E,role:"button",tabIndex:0,onClick:Z,style:{display:"flex",justifyContent:"space-between",alignItems:"center",background:P.controlBg,color:P.textColor,padding:"0.5rem 0.75rem",border:`1px solid ${G?P.accentColor:P.borderColor}`,borderRadius:h,cursor:y?"not-allowed":"pointer",boxShadow:G?`0 0 0 3px ${P.accentColor}33`:void 0,transition:`all ${H} ease`,...q},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[C,J.length?e.jsx("span",{children:J.map(O=>O.label).join(", ")}):e.jsx("span",{style:{color:P.placeholderColor},children:g})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[u&&k.length>0&&e.jsx("button",{onClick:le,style:{background:"transparent",border:"none",color:P.textColor,cursor:"pointer"},children:Y}),N,e.jsx("div",{style:{transform:G?"rotate(180deg)":"rotate(0deg)",transition:`transform ${H}`},children:K})]})]}),G&&e.jsx("ul",{className:T,style:{position:"absolute",zIndex:100,top:"calc(100% + 4px)",left:0,right:0,background:P.menuBg,border:`1px solid ${P.borderColor}`,borderRadius:h,boxShadow:p,maxHeight:b,overflowY:"auto",transition:`opacity ${H} ease`,...re},children:n.map(O=>{const oe=k.includes(O.value);return e.jsxs("li",{onClick:()=>!O.disabled&&se(O.value),className:V,style:{display:"flex",alignItems:"center",gap:8,padding:"0.5rem 0.75rem",background:O.disabled?P.disabledBg:oe?P.selectedBg:"transparent",color:O.disabled?P.disabledTextColor:P.textColor,cursor:O.disabled?"not-allowed":"pointer",borderRadius:6,userSelect:"none",...o},onMouseEnter:ae=>{!O.disabled&&!oe&&(ae.currentTarget.style.backgroundColor=P.hoverBg)},onMouseLeave:ae=>{!O.disabled&&!oe&&(ae.currentTarget.style.backgroundColor="transparent")},children:[c&&e.jsx("span",{style:{width:18,textAlign:"center"},children:oe?ne:"○"}),O.icon&&e.jsx("span",{children:O.icon}),e.jsxs("div",{style:{flex:1},children:[O.label,O.description&&e.jsx("div",{style:{fontSize:12,color:P.placeholderColor,marginTop:2},children:O.description})]})]},O.value)})})]})},Qt=d.forwardRef(Kt),er=d.forwardRef((t,r)=>{const{type:n="text",label:s,placeholder:i="",name:a="",value:x,defaultValue:f,onChange:g,disabled:y=!1,readOnly:v=!1,required:c=!1,error:u,success:j=!1,autoFocus:m=!1,iconLeft:b,iconRight:h,labelColor:p="#374151",placeholderColor:l="#9ca3af",backgroundColor:w="#ffffff",textColor:$="#111827",borderColor:S="#d1d5db",hoverBorderColor:z="#9ca3af",focusBorderColor:L="#2563eb",errorColor:M="#dc2626",successColor:F="#16a34a",iconColor:I="#6b7280",shadow:D="0 1px 2px rgba(0,0,0,0.05)",size:B="md",fontSize:H="14px",fontFamily:W="Inter, system-ui, sans-serif",radius:E="8px",rows:T=4,cols:V,maxLength:U,resize:q=!0,showCharacterCount:re=!0,paddingX:o,paddingY:C,className:N,style:Y}=t,K=d.useRef(null),[ne,A]=d.useState(f||""),[P,G]=d.useState(!1);d.useImperativeHandle(r,()=>K.current);const R=te=>{const ce=te.target.value;U&&ce.length>U||(A(ce),g&&g(a,ce))},k=x!==void 0?x:ne,_=u?M:j?F:S,J={sm:{paddingY:"6px",paddingX:"10px",font:"13px"},md:{paddingY:"10px",paddingX:"14px",font:"14px"},lg:{paddingY:"14px",paddingX:"18px",font:"16px"}}[B],Z=o||J.paddingX,se=C||J.paddingY,le={width:"100%",border:`1px solid ${_}`,borderRadius:E,backgroundColor:w,color:$,fontFamily:W,fontSize:H,padding:`${se} ${Z}`,paddingLeft:b?"40px":Z,paddingRight:h||n==="password"?"40px":Z,outline:"none",transition:"border-color 0.25s ease, box-shadow 0.25s ease",resize:n==="textarea"&&!q?"none":void 0,boxShadow:D,...Y},O={"::placeholder":{color:l,opacity:1}},oe=(te,ce)=>{te&&(te.style.borderColor=ce)},ae={onFocus:te=>oe(te.currentTarget,L),onBlur:te=>oe(te.currentTarget,_),onMouseEnter:te=>oe(te.currentTarget,z),onMouseLeave:te=>oe(te.currentTarget,_)};return e.jsxs("div",{className:N,style:{width:"100%",display:"flex",flexDirection:"column",fontFamily:W},children:[s&&e.jsxs("label",{htmlFor:a,style:{marginBottom:6,color:p,fontWeight:500,fontSize:"14px"},children:[s,c&&e.jsx("span",{style:{color:M},children:" *"})]}),e.jsxs("div",{style:{position:"relative",width:"100%"},children:[b&&e.jsx("span",{style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",color:I,pointerEvents:"none"},children:b}),n==="textarea"?e.jsx("textarea",{ref:K,name:a,value:k,placeholder:i,disabled:y,readOnly:v,rows:T,cols:V,maxLength:U,autoFocus:m,style:{...le,...O},onChange:R,...ae}):e.jsx("input",{ref:K,id:a,type:n==="password"?P?"text":"password":n,name:a,value:k,placeholder:i,disabled:y,readOnly:v,autoFocus:m,style:{...le,...O},onChange:R,...ae}),n==="password"&&e.jsx("button",{type:"button",onClick:()=>G(!P),style:{position:"absolute",right:10,top:"50%",transform:"translateY(-50%)",background:"transparent",border:"none",cursor:"pointer",color:I,padding:0},children:P?e.jsx(Je,{size:18}):e.jsx(Ke,{size:18})}),h&&n!=="password"&&e.jsx("span",{style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",color:I,pointerEvents:"none"},children:h})]}),n==="textarea"&&re&&U&&e.jsxs("div",{style:{textAlign:"right",fontSize:"12px",color:"#6b7280",marginTop:4},children:[k.length,"/",U]}),u&&e.jsx("div",{style:{color:M,fontSize:"12px",marginTop:4},children:u})]})}),tr=({src:t,alt:r="Image",title:n,width:s="100%",height:i="auto",borderRadius:a="8px",borderColor:x="transparent",borderStyle:f="solid",borderWidth:g="0px",shadow:y=!1,boxShadow:v,opacity:c=1,objectFit:u="cover",overlayText:j,overlayColor:m="rgba(0,0,0,0.5)",svgIcon:b,responsive:h=!1,padding:p,margin:l,lazyLoad:w=!0,hoverOpacity:$,hoverShadow:S=!1,hoverScale:z=1,hoverRotate:L=0,transitionDuration:M="0.3s",overflow:F="hidden",className:I,style:D,onClick:B,onLoad:H,onError:W})=>{const E=d.useMemo(()=>({width:h?"100%":s,height:h?"auto":i,borderRadius:a,border:`${g} ${f} ${x}`,objectFit:u,opacity:c,boxShadow:y?v||"0 4px 12px rgba(0,0,0,0.15)":"none",transition:`all ${M} ease`,display:"block"}),[h,s,i,a,x,f,g,u,c,y,v,M]),T=d.useCallback(q=>{q.currentTarget.style.opacity=$!==void 0?$.toString():"1",q.currentTarget.style.boxShadow=S?"0 8px 20px rgba(0,0,0,0.3)":E.boxShadow||"none",q.currentTarget.style.transform=`scale(${z}) rotate(${L}deg)`},[$,S,z,L,E.boxShadow]),V=d.useCallback(q=>{q.currentTarget.style.opacity=E.opacity?.toString()||"1",q.currentTarget.style.boxShadow=E.boxShadow||"none",q.currentTarget.style.transform="scale(1) rotate(0deg)"},[E]),U=d.useMemo(()=>{switch(F){case"x":return{overflowX:"hidden"};case"y":return{overflowY:"hidden"};default:return{overflow:F}}},[F]);return e.jsxs("div",{className:I,role:"img","aria-label":r,title:n||r,onClick:B,style:{width:h?"100%":s,height:h?"auto":i,padding:p,margin:l,position:"relative",cursor:B?"pointer":"default",display:"inline-block",transition:`all ${M} ease`,...U,...D},children:[b?e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:b}):e.jsx("img",{src:t,alt:r,title:n||r,loading:w?"lazy":"eager",style:E,onClick:B,onMouseEnter:T,onMouseLeave:V,onLoad:H,onError:W,decoding:"async",fetchPriority:"high"}),j&&e.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:m,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.1rem",textAlign:"center",padding:"1rem",boxSizing:"border-box"},children:j})]})},Be=({text:t,icon:r,onClick:n,subItems:s,bulletColor:i="#2563eb",textColor:a="#111827",fontSize:x="15px",fontWeight:f=500,spacing:g="12px",isInline:y=!1})=>{const v={display:"flex",flexDirection:"column",gap:"6px",marginBottom:y?"0":g},c={display:"flex",alignItems:"center",gap:"8px",fontSize:x,fontWeight:f,color:a,cursor:n?"pointer":"default",transition:"color 0.2s ease, transform 0.2s ease"},u={width:"8px",height:"8px",backgroundColor:i,borderRadius:"50%",flexShrink:0},j={listStyleType:"disc",paddingLeft:"20px",margin:0};return e.jsxs("li",{style:v,children:[e.jsxs("div",{style:c,onClick:n,onMouseEnter:m=>m.currentTarget.style.color=i,onMouseLeave:m=>m.currentTarget.style.color=a,children:[r?e.jsx("span",{style:{fontSize:"16px",color:a},children:r}):!y&&e.jsx("span",{style:u}),e.jsx("span",{children:t})]}),s&&s.length>0&&e.jsx("ul",{style:j,children:s.map((m,b)=>e.jsx(Be,{...m,bulletColor:i,textColor:a,fontSize:x,fontWeight:f,spacing:g,isInline:!1},b))})]})},rr=({title:t,titleIcon:r,items:n,type:s="unordered",bulletColor:i="#2563eb",textColor:a="#111827",backgroundColor:x="#fff",borderColor:f="#e5e7eb",fontSize:g="15px",fontWeight:y=500,borderRadius:v="12px",padding:c="16px",spacing:u="12px",className:j,style:m})=>{const b=s==="ordered",h=s==="inline",p={backgroundColor:x,borderColor:f,color:a,borderWidth:f?"1px":"0px",borderStyle:"solid",borderRadius:v,padding:c,...m},l=h?{display:"flex",gap:u,paddingLeft:0,listStyleType:"none",margin:0}:{listStyleType:b?"decimal":"none",paddingLeft:b?"20px":"0",margin:0},w=b?"ol":"ul";return e.jsxs("div",{className:j,style:p,children:[t&&e.jsxs("div",{style:{display:"flex",alignItems:"center",fontSize:"17px",fontWeight:600,marginBottom:"10px",gap:"8px"},children:[r&&e.jsx("span",{style:{fontSize:"18px"},children:r}),e.jsx("span",{children:t})]}),e.jsx(w,{style:l,children:n.map(($,S)=>e.jsx(Be,{...$,bulletColor:i,textColor:a,fontSize:g,fontWeight:y,spacing:u,isInline:h},S))})]})},nr=({isOpen:t,onClose:r,children:n,ariaLabel:s,title:i,overlayStyle:a,modalStyle:x,closeButtonStyle:f,disableOverlayClose:g=!1,transitionDuration:y=200,className:v,darkMode:c=!1})=>{const u=d.useRef(null);d.useEffect(()=>{const p=l=>{l.key==="Escape"&&r()};return t&&document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[t,r]),d.useEffect(()=>{if(t){const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}}},[t]);const j=d.useCallback(()=>{g||r()},[g,r]);if(!t)return null;const m={position:"fixed",inset:0,backgroundColor:c?"rgba(0,0,0,0.8)":"rgba(0,0,0,0.6)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3,opacity:t?1:0,transition:`opacity ${y}ms ease`,...a},b={position:"relative",backgroundColor:c?"#1f1f1f":"#fff",color:c?"#f5f5f5":"#111",borderRadius:12,width:"90vw",maxWidth:700,maxHeight:"90vh",overflowY:"auto",padding:24,boxShadow:c?"0 10px 40px rgba(0,0,0,0.7)":"0 10px 40px rgba(0,0,0,0.25)",transform:t?"scale(1)":"scale(0.95)",transition:`transform ${y}ms ease, opacity ${y}ms ease`,...x},h={position:"absolute",top:16,right:16,background:"transparent",border:"none",cursor:"pointer",padding:4,color:c?"#f5f5f5":"#444",transition:"color 0.2s ease, transform 0.2s ease",...f};return e.jsx("div",{role:"dialog","aria-modal":"true","aria-label":s||i||"Modal",style:m,onClick:j,className:v,children:e.jsxs("div",{ref:u,style:b,onClick:p=>p.stopPropagation(),children:[e.jsx("button",{onClick:r,"aria-label":"Close modal",style:h,onMouseEnter:p=>{p.currentTarget.style.color=c?"#fff":"#000",p.currentTarget.style.transform="scale(1.1)"},onMouseLeave:p=>{p.currentTarget.style.color=c?"#f5f5f5":"#444",p.currentTarget.style.transform="scale(1)"},children:e.jsx(ye,{size:24})}),i&&e.jsx("h2",{style:{fontSize:"1.25rem",fontWeight:600,marginBottom:"1rem"},children:i}),n]})})},sr=({children:t,style:r,className:n})=>e.jsx("table",{className:n,style:{width:"100%",borderCollapse:"collapse",borderSpacing:0,...r},children:t}),or=({children:t,style:r,className:n})=>e.jsx("thead",{className:n,style:{backgroundColor:"#f9fafb",borderBottom:"2px solid #e5e7eb",...r},children:t}),ar=({children:t,style:r,className:n})=>e.jsx("tbody",{className:n,style:r,children:t}),lr=({children:t,style:r,className:n})=>e.jsx("tr",{className:n,style:{borderBottom:"1px solid #e5e7eb",transition:"background 0.2s ease",...r},children:t}),ir=({children:t,style:r,className:n})=>e.jsx("th",{className:n,style:{textAlign:"left",padding:"12px 16px",fontWeight:600,fontSize:"0.875rem",color:"#374151",...r},children:t}),cr=({children:t,style:r,className:n})=>e.jsx("td",{className:n,style:{padding:"12px 16px",fontSize:"0.875rem",color:"#4b5563",...r},children:t}),dr=({tabs:t,defaultActive:r=0,position:n="top",variant:s="solid",fullWidth:i=!1,gap:a=8,radius:x=8,padding:f="12px 18px",transitionDuration:g=200,elevation:y=1,bordered:v=!1,primaryColor:c="#2563eb",backgroundColor:u="transparent",textColor:j="#374151",hoverColor:m="#1d4ed8",activeColor:b="#ffffff",borderColor:h="#e5e7eb",disabledColor:p="#9ca3af",responsiveBreakpoint:l=768,showDrawerLabel:w="Select Tab",drawerIcon:$="☰",onTabChange:S,className:z="",style:L,tabClassName:M="",contentClassName:F="",activeTabStyle:I,inactiveTabStyle:D,contentStyle:B})=>{const[H,W]=d.useState(r),[E,T]=d.useState(null),[V,U]=d.useState(!1),[q,re]=d.useState(!1),o=d.useRef(null);d.useEffect(()=>{const k=()=>U(window.innerWidth<=l);return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[l]);const C=k=>{t[k].disabled||(W(k),S?.(k),V&&re(!1))},N=(k,_)=>{k.key==="ArrowRight"||k.key==="ArrowDown"?(k.preventDefault(),C((_+1)%t.length)):(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(k.preventDefault(),C((_-1+t.length)%t.length))},Y={padding:f,borderRadius:x,cursor:"pointer",display:"flex",alignItems:"center",gap:8,justifyContent:"center",fontWeight:500,transition:`all ${g}ms ease`,background:"transparent",border:s==="outline"?`1px solid ${h}`:"none",borderBottom:s==="underline"?"2px solid transparent":void 0,color:j,width:i?"100%":"auto",userSelect:"none"},K={background:s==="solid"?c:"transparent",color:b,borderBottom:s==="underline"?`2px solid ${c}`:void 0,boxShadow:y>0?`0 ${y}px ${y*4}px ${c}33`:void 0,...I},ne={...s==="outline"?{borderColor:h}:s==="underline"?{borderBottomColor:"transparent"}:{},...D},A={color:m,background:s==="solid"?`${c}11`:s==="outline"?`${c}11`:"transparent"},P={color:p,cursor:"not-allowed",opacity:.6},G={flexGrow:1,borderTop:v&&n==="top"?`1px solid ${h}`:void 0,borderLeft:v&&n==="left"?`1px solid ${h}`:void 0,borderRight:v&&n==="right"?`1px solid ${h}`:void 0,borderRadius:x,...B},R=n==="left"||n==="right";return e.jsxs("div",{ref:o,className:`modern-tabs ${z}`,style:{display:"flex",flexDirection:R?n==="right"?"row-reverse":"row":"column",background:u,border:v?`1px solid ${h}`:void 0,borderRadius:x,overflow:"hidden",...L},children:[e.jsx("style",{children:`
185
+ `})]})},Lt=({as:t,children:r,className:n="",variant:s="elevated",background:i="#fff",textColor:a="#000",borderRadius:x=12,border:f,boxShadow:g,hoverShadow:y,padding:v=16,margin:c,width:u,height:j,style:m={},hoverStyle:b={},onClick:h,...p},l)=>{const w=t||"div",R={elevated:{boxShadow:g||"0 4px 12px rgba(0,0,0,0.08)",border:f||"none"},outline:{border:f||"1px solid rgba(0,0,0,0.1)",boxShadow:"none"},flat:{border:"none",boxShadow:"none"}},S={background:i,color:a,borderRadius:x,padding:v,margin:c,width:u,height:j,transition:"all 0.25s ease",cursor:h?"pointer":void 0,boxSizing:"border-box",...R[s]||{},...m},z=M=>{Object.assign(M.currentTarget.style,y?{boxShadow:y}:b)},L=M=>{Object.assign(M.currentTarget.style,{...S,...R[s]||{}})};return e.jsx(w,{ref:l,className:`ui-card ${n}`,style:S,onClick:h,onMouseEnter:z,onMouseLeave:L,...p,children:r})},Bt=d.forwardRef(Lt),Nt=Object.assign(Bt,{displayName:"Card"}),Pt=({name:t,options:r,selectedValues:n=[],onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",customIcon:y,style:v,labelStyle:c,iconSize:u=20,iconCheckedBgColor:j="#2563eb",iconUncheckedBorderColor:m="#9ca3af",textColor:b="#374151",errorStyle:h})=>{const p=l=>{if(!s)return;const w=n.includes(l)?n.filter(R=>R!==l):[...n,l];s(w)};return e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...v},role:"group","aria-disabled":i,children:[r.map(l=>{const w=n.includes(l.value);return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...c},children:[e.jsx("span",{style:{color:b,fontSize:14},children:l.label}),e.jsx("input",{type:"checkbox",name:t,value:l.value,checked:w,disabled:i||a,required:x,onChange:()=>p(l.value),style:{display:"none"}}),y?y(w):e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:u,height:u,borderRadius:4,border:`2px solid ${w?j:m}`,backgroundColor:w?j:"transparent",transition:"all 0.25s ease"},children:w&&e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{width:u*.6,height:u*.6},children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},l.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...h},children:f})]})},Ot=({name:t,options:r,selectedValue:n,onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",style:y,labelStyle:v,iconSize:c=20,iconCheckedBgColor:u="#2563eb",iconUncheckedBorderColor:j="#9ca3af",textColor:m="#374151",errorStyle:b})=>e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...y},role:"radiogroup","aria-disabled":i,children:[r.map(h=>{const p=n===h.value;return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...v},children:[e.jsx("span",{style:{color:m,fontSize:14},children:h.label}),e.jsx("input",{type:"radio",name:t,value:h.value,checked:p,disabled:i||a,required:x,onChange:()=>s&&s(h.value),style:{display:"none"}}),e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:c,height:c,borderRadius:"50%",border:`2px solid ${p?u:j}`,backgroundColor:p?u:"transparent",transition:"all 0.25s ease"},children:p&&e.jsx("span",{style:{width:c/2,height:c/2,borderRadius:"50%",backgroundColor:"white"}})})]},h.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...b},children:f})]}),Wt=({name:t,options:r,selectedValues:n=[],onChange:s,disabled:i=!1,readOnly:a=!1,required:x=!1,error:f,className:g="",style:y,labelStyle:v,iconSize:c=20,iconCheckedBgColor:u="#2563eb",switchBgColor:j="#d1d5db",textColor:m="#374151",errorStyle:b})=>{const h=p=>{if(!s)return;const l=n.includes(p)?n.filter(w=>w!==p):[...n,p];s(l)};return e.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",gap:8,...y},role:"group","aria-disabled":i,children:[r.map(p=>{const l=n.includes(p.value);return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",cursor:i?"not-allowed":"pointer",opacity:i?.6:1,gap:8,userSelect:"none",...v},children:[e.jsx("span",{style:{color:m,fontSize:14},children:p.label}),e.jsx("input",{type:"checkbox",name:t,value:p.value,checked:l,disabled:i||a,required:x,onChange:()=>h(p.value),style:{display:"none"}}),e.jsx("span",{style:{position:"relative",width:c*2,height:c*1.1,borderRadius:9999,backgroundColor:l?u:j,transition:"background-color 0.25s ease"},children:e.jsx("span",{style:{position:"absolute",top:"50%",left:l?`calc(100% - ${c-4}px - 2px)`:"2px",transform:"translateY(-50%)",width:c-4,height:c-4,borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.3)",transition:"left 0.25s ease"}})})]},p.value)}),f&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...b},children:f})]})},Yt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px",full:"100%"},Ft=({size:t="lg",padding:r=0,margin:n="0 auto",backgroundColor:s="transparent",center:i=!0,width:a,height:x="auto",borderRadius:f=0,style:g,className:y="",children:v})=>{const c=d.useMemo(()=>{const u=typeof r=="number"?`${r}px`:r,j=i&&n==="0 auto"?"0 auto":n,m=typeof f=="number"?`${f}px`:f;return{maxWidth:a??Yt[t],margin:j,padding:u,backgroundColor:s,height:x,borderRadius:m,boxSizing:"border-box",width:a??"100%",...g}},[t,r,n,s,a,x,f,i,g]);return e.jsx("div",{className:y,style:c,children:v})},Dt=t=>t<768?"sm":t<1024?"md":"lg",Q=(t,r,n)=>t==null?n:typeof t!="object"?t:t[r]??n,Ht=({direction:t={sm:"column",md:"row",lg:"row"},align:r="center",justify:n="space-between",wrap:s="wrap",gap:i=16,padding:a,margin:x,backgroundColor:f="transparent",width:g="100%",maxWidth:y="100%",height:v="auto",borderRadius:c,border:u,boxShadow:j,overflow:m,children:b,style:h,className:p})=>{const[l,w]=d.useState("lg");d.useEffect(()=>{const S=()=>w(Dt(window.innerWidth));return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const R=d.useMemo(()=>{const S=z=>typeof z=="number"?`${z}px`:z;return{display:"flex",flexDirection:Q(t,l,"row"),alignItems:Q(r,l,"center"),justifyContent:Q(n,l,"flex-start"),flexWrap:Q(s,l,"wrap"),gap:S(Q(i,l,void 0)),padding:S(Q(a,l,void 0)),margin:S(Q(x,l,void 0)),backgroundColor:Q(f,l,void 0),width:Q(g,l,"100%"),maxWidth:Q(y,l,void 0),height:Q(v,l,void 0),borderRadius:Q(c,l,void 0),border:Q(u,l,void 0),boxShadow:Q(j,l,void 0),overflow:Q(m,l,void 0),boxSizing:"border-box",...h}},[t,r,n,s,i,a,x,f,g,y,v,c,u,j,m,l,h]);return e.jsx("div",{className:p,style:R,children:b})},Vt=t=>t<768?"sm":t<1024?"md":"lg",ee=(t,r,n)=>t==null?n:typeof t!="object"?t:t[r]??n,ve=({direction:t={sm:"vertical",md:"horizontal",lg:"horizontal"},gap:r=12,align:n="center",justify:s="flex-start",wrap:i="nowrap",padding:a,margin:x,width:f="100%",maxWidth:g,height:y="auto",backgroundColor:v="transparent",borderRadius:c,border:u,boxShadow:j,overflow:m,className:b,style:h,children:p})=>{const[l,w]=d.useState("lg");d.useEffect(()=>{const S=()=>w(Vt(window.innerWidth));return S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)},[]);const R=d.useMemo(()=>{const S=M=>typeof M=="number"?`${M}px`:M;return{display:"flex",flexDirection:ee(t,l,"vertical")==="vertical"?"column":"row",alignItems:ee(n,l,"center"),justifyContent:ee(s,l,"flex-start"),flexWrap:ee(i,l,"nowrap"),gap:S(ee(r,l,12)),padding:S(ee(a,l,void 0)),margin:S(ee(x,l,void 0)),width:ee(f,l,"100%"),maxWidth:ee(g,l,void 0),height:ee(y,l,void 0),backgroundColor:ee(v,l,void 0),borderRadius:ee(c,l,void 0),border:ee(u,l,void 0),boxShadow:ee(j,l,void 0),overflow:ee(m,l,void 0),boxSizing:"border-box",...h}},[t,r,n,s,i,a,x,f,g,y,v,c,u,j,m,h,l]);return e.jsx("div",{className:b,style:R,children:p})},Ut=t=>e.jsx(ve,{direction:"horizontal",...t}),qt=t=>e.jsx(ve,{direction:"vertical",...t}),Ce=t=>t<768?"sm":t<1024?"md":"lg",Xt=({columns:t={sm:1,md:2,lg:3},gap:r=16,padding:n=0,alignItems:s="stretch",justifyItems:i="stretch",backgroundColor:a="transparent",width:x="100%",maxWidth:f="100%",height:g="auto",margin:y=0,style:v,className:c="",children:u})=>{const[j,m]=d.useState("lg");d.useEffect(()=>{m(Ce(window.innerWidth));const p=()=>m(Ce(window.innerWidth));return window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const b=d.useMemo(()=>typeof t=="number"?t:t[j]??1,[t,j]),h=d.useMemo(()=>({display:"grid",gridTemplateColumns:`repeat(${b}, 1fr)`,gap:typeof r=="number"?`${r}px`:r,padding:typeof n=="number"?`${n}px`:n,margin:typeof y=="number"?`${y}px`:y,alignItems:s,justifyItems:i,backgroundColor:a,width:x,maxWidth:f,height:g,boxSizing:"border-box",...v}),[b,r,n,y,s,i,a,x,f,g,v]);return e.jsx("div",{style:h,className:c,children:u})},Gt=({label:t="Open Drawer",icon:r,iconPosition:n="left",onClick:s,color:i="#2563eb",textColor:a="#fff",borderRadius:x="6px",padding:f="10px 16px",fontSize:g="14px",gap:y="8px",style:v,className:c=""})=>e.jsxs("button",{onClick:s,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:i,color:a,border:"none",borderRadius:x,padding:f,fontSize:g,gap:y,cursor:"pointer",fontWeight:500,transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",...v},className:c,children:[r&&n==="left"&&r,t,r&&n==="right"&&r]}),Jt=({open:t,onClose:r,position:n="right",width:s="320px",height:i="320px",backgroundColor:a="#fff",backdropColor:x="rgba(0,0,0,0.5)",transitionDuration:f=300,style:g,className:y="",children:v,showCloseButton:c=!0,closeIconColor:u="#000",closeButtonStyle:j})=>{const[m,b]=d.useState(t);d.useEffect(()=>{t?b(!0):setTimeout(()=>b(!1),f)},[t,f]);const h=d.useMemo(()=>{if(t)return"translate(0, 0)";switch(n){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)";default:return"translate(0, 0)"}},[t,n]),p={position:"fixed",backgroundColor:a,transition:`transform ${f}ms ease, opacity ${f}ms ease`,transform:h,opacity:t?1:0,zIndex:1001,...g,...n==="left"||n==="right"?{top:0,bottom:0,[n]:0,width:s,height:"100%"}:{left:0,right:0,[n]:0,height:i,width:"100%"}},l={position:"fixed",inset:0,backgroundColor:x,opacity:t?1:0,transition:`opacity ${f}ms ease`,zIndex:1e3,display:m?"block":"none",pointerEvents:t?"auto":"none"},w={position:"absolute",top:"12px",right:"12px",background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease, opacity 0.2s ease"};return e.jsxs(e.Fragment,{children:[e.jsx("div",{style:l,onClick:r}),e.jsxs("div",{style:{...p,display:"flex",flexDirection:"column",visibility:m?"visible":"hidden",pointerEvents:t?"auto":"none",boxShadow:"0 0 20px rgba(0,0,0,0.15)"},className:y,children:[c&&e.jsx("button",{onClick:r,style:{...w,...j},"aria-label":"Close drawer",children:e.jsx(ye,{size:22,color:u})}),e.jsx("div",{style:{flex:1,overflowY:"auto",padding:"16px",scrollbarWidth:"thin"},children:v})]})]})},Zt={light:{controlBg:"#ffffff",menuBg:"#ffffff",textColor:"#111827",placeholderColor:"#6b7280",hoverBg:"#f9fafb",selectedBg:"#eff6ff",disabledBg:"#f3f4f6",disabledTextColor:"#9ca3af",borderColor:"#e5e7eb",accentColor:"#3b82f6"},dark:{controlBg:"#1f2937",menuBg:"#111827",textColor:"#f9fafb",placeholderColor:"#9ca3af",hoverBg:"#374151",selectedBg:"#2563eb33",disabledBg:"#374151",disabledTextColor:"#6b7280",borderColor:"#374151",accentColor:"#60a5fa"},custom:{}},Kt=(t,r)=>{d.useId();const{options:n,value:s,values:i,defaultValue:a,defaultValues:x,onChange:f,placeholder:g="Select...",disabled:y=!1,searchable:v=!1,multiSelect:c=!1,clearable:u=!1,virtualized:j=!1,width:m="100%",dropdownMaxHeight:b="320px",borderRadius:h="8px",boxShadow:p="0 8px 28px rgba(0,0,0,0.1)",borderColor:l,accentColor:w,theme:R="light",menuBg:S,controlBg:z,textColor:L,hoverBg:M,selectedBg:F,disabledBg:I,disabledTextColor:D,placeholderColor:B,transitionDuration:H="180ms",className:W,controlClassName:E,menuClassName:T,optionClassName:V,style:U,controlStyle:q,menuStyle:re,optionStyle:o,iconPrefix:C,iconSuffix:N,clearIcon:Y="×",dropdownIcon:K="▾",checkIcon:ne="✓"}=t,A={...Zt[R],...R==="custom"?{}:{}},P={borderColor:l??A.borderColor,accentColor:w??A.accentColor,controlBg:z??A.controlBg,menuBg:S??A.menuBg,textColor:L??A.textColor,hoverBg:M??A.hoverBg,selectedBg:F??A.selectedBg,disabledBg:I??A.disabledBg,disabledTextColor:D??A.disabledTextColor,placeholderColor:B??A.placeholderColor},[X,$]=d.useState(!1),[k,_]=d.useState(x??(a?[a]:[]));d.useEffect(()=>{s&&_([s]),i&&_(i)},[s,i]);const J=d.useMemo(()=>n.filter(O=>k.includes(O.value)),[n,k]),Z=()=>!y&&$(O=>!O),se=O=>{if(c){const ae=k.includes(O)?k.filter(te=>te!==O):[...k,O];_(ae),f?.(ae)}else _([O]),f?.(O),$(!1)},le=O=>{O?.stopPropagation(),_([]),f?.(c?[]:"")};return e.jsxs("div",{ref:r,className:W,style:{position:"relative",width:m,fontFamily:"Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial",...U},children:[e.jsxs("div",{className:E,role:"button",tabIndex:0,onClick:Z,style:{display:"flex",justifyContent:"space-between",alignItems:"center",background:P.controlBg,color:P.textColor,padding:"0.5rem 0.75rem",border:`1px solid ${X?P.accentColor:P.borderColor}`,borderRadius:h,cursor:y?"not-allowed":"pointer",boxShadow:X?`0 0 0 3px ${P.accentColor}33`:void 0,transition:`all ${H} ease`,...q},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[C,J.length?e.jsx("span",{children:J.map(O=>O.label).join(", ")}):e.jsx("span",{style:{color:P.placeholderColor},children:g})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[u&&k.length>0&&e.jsx("button",{onClick:le,style:{background:"transparent",border:"none",color:P.textColor,cursor:"pointer"},children:Y}),N,e.jsx("div",{style:{transform:X?"rotate(180deg)":"rotate(0deg)",transition:`transform ${H}`},children:K})]})]}),X&&e.jsx("ul",{className:T,style:{position:"absolute",zIndex:100,top:"calc(100% + 4px)",left:0,right:0,background:P.menuBg,border:`1px solid ${P.borderColor}`,borderRadius:h,boxShadow:p,maxHeight:b,overflowY:"auto",transition:`opacity ${H} ease`,...re},children:n.map(O=>{const oe=k.includes(O.value);return e.jsxs("li",{onClick:()=>!O.disabled&&se(O.value),className:V,style:{display:"flex",alignItems:"center",gap:8,padding:"0.5rem 0.75rem",background:O.disabled?P.disabledBg:oe?P.selectedBg:"transparent",color:O.disabled?P.disabledTextColor:P.textColor,cursor:O.disabled?"not-allowed":"pointer",borderRadius:6,userSelect:"none",...o},onMouseEnter:ae=>{!O.disabled&&!oe&&(ae.currentTarget.style.backgroundColor=P.hoverBg)},onMouseLeave:ae=>{!O.disabled&&!oe&&(ae.currentTarget.style.backgroundColor="transparent")},children:[c&&e.jsx("span",{style:{width:18,textAlign:"center"},children:oe?ne:"○"}),O.icon&&e.jsx("span",{children:O.icon}),e.jsxs("div",{style:{flex:1},children:[O.label,O.description&&e.jsx("div",{style:{fontSize:12,color:P.placeholderColor,marginTop:2},children:O.description})]})]},O.value)})})]})},Qt=d.forwardRef(Kt),er=d.forwardRef((t,r)=>{const{type:n="text",label:s,placeholder:i="",name:a="",value:x,defaultValue:f,onChange:g,disabled:y=!1,readOnly:v=!1,required:c=!1,error:u,success:j=!1,autoFocus:m=!1,iconLeft:b,iconRight:h,labelColor:p="#374151",placeholderColor:l="#9ca3af",backgroundColor:w="#ffffff",textColor:R="#111827",borderColor:S="#d1d5db",hoverBorderColor:z="#9ca3af",focusBorderColor:L="#2563eb",errorColor:M="#dc2626",successColor:F="#16a34a",iconColor:I="#6b7280",shadow:D="0 1px 2px rgba(0,0,0,0.05)",size:B="md",fontSize:H="14px",fontFamily:W="Inter, system-ui, sans-serif",radius:E="8px",rows:T=4,cols:V,maxLength:U,resize:q=!0,showCharacterCount:re=!0,paddingX:o,paddingY:C,className:N,style:Y}=t,K=d.useRef(null),[ne,A]=d.useState(f||""),[P,X]=d.useState(!1);d.useImperativeHandle(r,()=>K.current);const $=te=>{const ce=te.target.value;U&&ce.length>U||(A(ce),g&&g(a,ce))},k=x!==void 0?x:ne,_=u?M:j?F:S,J={sm:{paddingY:"6px",paddingX:"10px",font:"13px"},md:{paddingY:"10px",paddingX:"14px",font:"14px"},lg:{paddingY:"14px",paddingX:"18px",font:"16px"}}[B],Z=o||J.paddingX,se=C||J.paddingY,le={width:"100%",border:`1px solid ${_}`,borderRadius:E,backgroundColor:w,color:R,fontFamily:W,fontSize:H,padding:`${se} ${Z}`,paddingLeft:b?"40px":Z,paddingRight:h||n==="password"?"40px":Z,outline:"none",transition:"border-color 0.25s ease, box-shadow 0.25s ease",resize:n==="textarea"&&!q?"none":void 0,boxShadow:D,...Y},O={"::placeholder":{color:l,opacity:1}},oe=(te,ce)=>{te&&(te.style.borderColor=ce)},ae={onFocus:te=>oe(te.currentTarget,L),onBlur:te=>oe(te.currentTarget,_),onMouseEnter:te=>oe(te.currentTarget,z),onMouseLeave:te=>oe(te.currentTarget,_)};return e.jsxs("div",{className:N,style:{width:"100%",display:"flex",flexDirection:"column",fontFamily:W},children:[s&&e.jsxs("label",{htmlFor:a,style:{marginBottom:6,color:p,fontWeight:500,fontSize:"14px"},children:[s,c&&e.jsx("span",{style:{color:M},children:" *"})]}),e.jsxs("div",{style:{position:"relative",width:"100%"},children:[b&&e.jsx("span",{style:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",color:I,pointerEvents:"none"},children:b}),n==="textarea"?e.jsx("textarea",{ref:K,name:a,value:k,placeholder:i,disabled:y,readOnly:v,rows:T,cols:V,maxLength:U,autoFocus:m,style:{...le,...O},onChange:$,...ae}):e.jsx("input",{ref:K,id:a,type:n==="password"?P?"text":"password":n,name:a,value:k,placeholder:i,disabled:y,readOnly:v,autoFocus:m,style:{...le,...O},onChange:$,...ae}),n==="password"&&e.jsx("button",{type:"button",onClick:()=>X(!P),style:{position:"absolute",right:10,top:"50%",transform:"translateY(-50%)",background:"transparent",border:"none",cursor:"pointer",color:I,padding:0},children:P?e.jsx(Je,{size:18}):e.jsx(Ke,{size:18})}),h&&n!=="password"&&e.jsx("span",{style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",color:I,pointerEvents:"none"},children:h})]}),n==="textarea"&&re&&U&&e.jsxs("div",{style:{textAlign:"right",fontSize:"12px",color:"#6b7280",marginTop:4},children:[k.length,"/",U]}),u&&e.jsx("div",{style:{color:M,fontSize:"12px",marginTop:4},children:u})]})}),tr=({src:t,alt:r="Image",title:n,width:s="100%",height:i="auto",borderRadius:a="8px",borderColor:x="transparent",borderStyle:f="solid",borderWidth:g="0px",shadow:y=!1,boxShadow:v,opacity:c=1,objectFit:u="cover",overlayText:j,overlayColor:m="rgba(0,0,0,0.5)",svgIcon:b,responsive:h=!1,padding:p,margin:l,lazyLoad:w=!0,hoverOpacity:R,hoverShadow:S=!1,hoverScale:z=1,hoverRotate:L=0,transitionDuration:M="0.3s",overflow:F="hidden",className:I,style:D,onClick:B,onLoad:H,onError:W})=>{const E=d.useMemo(()=>({width:h?"100%":s,height:h?"auto":i,borderRadius:a,border:`${g} ${f} ${x}`,objectFit:u,opacity:c,boxShadow:y?v||"0 4px 12px rgba(0,0,0,0.15)":"none",transition:`all ${M} ease`,display:"block"}),[h,s,i,a,x,f,g,u,c,y,v,M]),T=d.useCallback(q=>{q.currentTarget.style.opacity=R!==void 0?R.toString():"1",q.currentTarget.style.boxShadow=S?"0 8px 20px rgba(0,0,0,0.3)":E.boxShadow||"none",q.currentTarget.style.transform=`scale(${z}) rotate(${L}deg)`},[R,S,z,L,E.boxShadow]),V=d.useCallback(q=>{q.currentTarget.style.opacity=E.opacity?.toString()||"1",q.currentTarget.style.boxShadow=E.boxShadow||"none",q.currentTarget.style.transform="scale(1) rotate(0deg)"},[E]),U=d.useMemo(()=>{switch(F){case"x":return{overflowX:"hidden"};case"y":return{overflowY:"hidden"};default:return{overflow:F}}},[F]);return e.jsxs("div",{className:I,role:"img","aria-label":r,title:n||r,onClick:B,style:{width:h?"100%":s,height:h?"auto":i,padding:p,margin:l,position:"relative",cursor:B?"pointer":"default",display:"inline-block",transition:`all ${M} ease`,...U,...D},children:[b?e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:b}):e.jsx("img",{src:t,alt:r,title:n||r,loading:w?"lazy":"eager",style:E,onClick:B,onMouseEnter:T,onMouseLeave:V,onLoad:H,onError:W,decoding:"async",fetchPriority:"high"}),j&&e.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:m,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"bold",fontSize:"1.1rem",textAlign:"center",padding:"1rem",boxSizing:"border-box"},children:j})]})},Be=({text:t,icon:r,onClick:n,subItems:s,bulletColor:i="#2563eb",textColor:a="#111827",fontSize:x="15px",fontWeight:f=500,spacing:g="12px",isInline:y=!1})=>{const v={display:"flex",flexDirection:"column",gap:"6px",marginBottom:y?"0":g},c={display:"flex",alignItems:"center",gap:"8px",fontSize:x,fontWeight:f,color:a,cursor:n?"pointer":"default",transition:"color 0.2s ease, transform 0.2s ease"},u={width:"8px",height:"8px",backgroundColor:i,borderRadius:"50%",flexShrink:0},j={listStyleType:"disc",paddingLeft:"20px",margin:0};return e.jsxs("li",{style:v,children:[e.jsxs("div",{style:c,onClick:n,onMouseEnter:m=>m.currentTarget.style.color=i,onMouseLeave:m=>m.currentTarget.style.color=a,children:[r?e.jsx("span",{style:{fontSize:"16px",color:a},children:r}):!y&&e.jsx("span",{style:u}),e.jsx("span",{children:t})]}),s&&s.length>0&&e.jsx("ul",{style:j,children:s.map((m,b)=>e.jsx(Be,{...m,bulletColor:i,textColor:a,fontSize:x,fontWeight:f,spacing:g,isInline:!1},b))})]})},rr=({title:t,titleIcon:r,items:n,type:s="unordered",bulletColor:i="#2563eb",textColor:a="#111827",backgroundColor:x="#fff",borderColor:f="#e5e7eb",fontSize:g="15px",fontWeight:y=500,borderRadius:v="12px",padding:c="16px",spacing:u="12px",className:j,style:m})=>{const b=s==="ordered",h=s==="inline",p={backgroundColor:x,borderColor:f,color:a,borderWidth:f?"1px":"0px",borderStyle:"solid",borderRadius:v,padding:c,...m},l=h?{display:"flex",gap:u,paddingLeft:0,listStyleType:"none",margin:0}:{listStyleType:b?"decimal":"none",paddingLeft:b?"20px":"0",margin:0},w=b?"ol":"ul";return e.jsxs("div",{className:j,style:p,children:[t&&e.jsxs("div",{style:{display:"flex",alignItems:"center",fontSize:"17px",fontWeight:600,marginBottom:"10px",gap:"8px"},children:[r&&e.jsx("span",{style:{fontSize:"18px"},children:r}),e.jsx("span",{children:t})]}),e.jsx(w,{style:l,children:n.map((R,S)=>e.jsx(Be,{...R,bulletColor:i,textColor:a,fontSize:g,fontWeight:y,spacing:u,isInline:h},S))})]})},nr=({isOpen:t,onClose:r,children:n,ariaLabel:s,title:i,overlayStyle:a,modalStyle:x,closeButtonStyle:f,disableOverlayClose:g=!1,transitionDuration:y=200,className:v,darkMode:c=!1})=>{const u=d.useRef(null);d.useEffect(()=>{const p=l=>{l.key==="Escape"&&r()};return t&&document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[t,r]),d.useEffect(()=>{if(t){const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}}},[t]);const j=d.useCallback(()=>{g||r()},[g,r]);if(!t)return null;const m={position:"fixed",inset:0,backgroundColor:c?"rgba(0,0,0,0.8)":"rgba(0,0,0,0.6)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3,opacity:t?1:0,transition:`opacity ${y}ms ease`,...a},b={position:"relative",backgroundColor:c?"#1f1f1f":"#fff",color:c?"#f5f5f5":"#111",borderRadius:12,width:"90vw",maxWidth:700,maxHeight:"90vh",overflowY:"auto",padding:24,boxShadow:c?"0 10px 40px rgba(0,0,0,0.7)":"0 10px 40px rgba(0,0,0,0.25)",transform:t?"scale(1)":"scale(0.95)",transition:`transform ${y}ms ease, opacity ${y}ms ease`,...x},h={position:"absolute",top:16,right:16,background:"transparent",border:"none",cursor:"pointer",padding:4,color:c?"#f5f5f5":"#444",transition:"color 0.2s ease, transform 0.2s ease",...f};return e.jsx("div",{role:"dialog","aria-modal":"true","aria-label":s||i||"Modal",style:m,onClick:j,className:v,children:e.jsxs("div",{ref:u,style:b,onClick:p=>p.stopPropagation(),children:[e.jsx("button",{onClick:r,"aria-label":"Close modal",style:h,onMouseEnter:p=>{p.currentTarget.style.color=c?"#fff":"#000",p.currentTarget.style.transform="scale(1.1)"},onMouseLeave:p=>{p.currentTarget.style.color=c?"#f5f5f5":"#444",p.currentTarget.style.transform="scale(1)"},children:e.jsx(ye,{size:24})}),i&&e.jsx("h2",{style:{fontSize:"1.25rem",fontWeight:600,marginBottom:"1rem"},children:i}),n]})})},sr=({children:t,style:r,className:n})=>e.jsx("div",{style:{overflowX:"auto",background:"#ffffff",borderRadius:12,boxShadow:"0 2px 6px rgba(0,0,0,0.05)",border:"1px solid #e5e7eb",...r},className:n,children:e.jsx("table",{style:{width:"100%",borderCollapse:"collapse",borderSpacing:0,borderRadius:12,overflow:"hidden"},children:t})}),or=({children:t,style:r,className:n})=>e.jsx("thead",{className:n,style:{backgroundColor:"#f3f4f6",color:"#111827",fontWeight:600,...r},children:t}),ar=({children:t,style:r,className:n})=>e.jsx("tbody",{className:n,style:{backgroundColor:"#ffffff",...r},children:t}),lr=({children:t,style:r,className:n})=>e.jsx("tr",{className:n,style:{borderBottom:"1px solid #e5e7eb",transition:"background 0.2s ease",cursor:"default",...r},onMouseEnter:s=>s.currentTarget.style.backgroundColor="#f9fafb",onMouseLeave:s=>s.currentTarget.style.backgroundColor="transparent",children:t}),ir=({children:t,style:r,className:n})=>e.jsx("th",{className:n,style:{textAlign:"left",padding:"12px 16px",fontSize:"0.875rem",color:"#374151",borderBottom:"2px solid #e5e7eb",...r},children:t}),cr=({children:t,style:r,className:n})=>e.jsx("td",{className:n,style:{padding:"12px 16px",fontSize:"0.875rem",color:"#4b5563",...r},children:t}),dr=({tabs:t,defaultActive:r=0,position:n="top",variant:s="solid",fullWidth:i=!1,gap:a=8,radius:x=8,padding:f="12px 18px",transitionDuration:g=200,elevation:y=1,bordered:v=!1,primaryColor:c="#2563eb",backgroundColor:u="transparent",textColor:j="#374151",hoverColor:m="#1d4ed8",activeColor:b="#ffffff",borderColor:h="#e5e7eb",disabledColor:p="#9ca3af",responsiveBreakpoint:l=768,showDrawerLabel:w="Select Tab",drawerIcon:R="☰",onTabChange:S,className:z="",style:L,tabClassName:M="",contentClassName:F="",activeTabStyle:I,inactiveTabStyle:D,contentStyle:B})=>{const[H,W]=d.useState(r),[E,T]=d.useState(null),[V,U]=d.useState(!1),[q,re]=d.useState(!1),o=d.useRef(null);d.useEffect(()=>{const k=()=>U(window.innerWidth<=l);return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[l]);const C=k=>{t[k].disabled||(W(k),S?.(k),V&&re(!1))},N=(k,_)=>{k.key==="ArrowRight"||k.key==="ArrowDown"?(k.preventDefault(),C((_+1)%t.length)):(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(k.preventDefault(),C((_-1+t.length)%t.length))},Y={padding:f,borderRadius:x,cursor:"pointer",display:"flex",alignItems:"center",gap:8,justifyContent:"center",fontWeight:500,transition:`all ${g}ms ease`,background:"transparent",border:s==="outline"?`1px solid ${h}`:"none",borderBottom:s==="underline"?"2px solid transparent":void 0,color:j,width:i?"100%":"auto",userSelect:"none"},K={background:s==="solid"?c:"transparent",color:b,borderBottom:s==="underline"?`2px solid ${c}`:void 0,boxShadow:y>0?`0 ${y}px ${y*4}px ${c}33`:void 0,...I},ne={...s==="outline"?{borderColor:h}:s==="underline"?{borderBottomColor:"transparent"}:{},...D},A={color:m,background:s==="solid"?`${c}11`:s==="outline"?`${c}11`:"transparent"},P={color:p,cursor:"not-allowed",opacity:.6},X={flexGrow:1,borderTop:v&&n==="top"?`1px solid ${h}`:void 0,borderLeft:v&&n==="left"?`1px solid ${h}`:void 0,borderRight:v&&n==="right"?`1px solid ${h}`:void 0,borderRadius:x,...B},$=n==="left"||n==="right";return e.jsxs("div",{ref:o,className:`modern-tabs ${z}`,style:{display:"flex",flexDirection:$?n==="right"?"row-reverse":"row":"column",background:u,border:v?`1px solid ${h}`:void 0,borderRadius:x,overflow:"hidden",...L},children:[e.jsx("style",{children:`
186
186
  @keyframes tab-fade {
187
187
  from { opacity: 0; transform: translateY(5px); }
188
188
  to { opacity: 1; transform: translateY(0); }
@@ -190,5 +190,5 @@ React keys must be passed directly to JSX without using spread:
190
190
  .modern-tabs__content {
191
191
  animation: tab-fade ${g}ms ease;
192
192
  }
193
- `}),V?e.jsxs("div",{style:{width:"100%",padding:8},children:[e.jsxs("button",{onClick:()=>re(!q),style:{...Y,...K,justifyContent:"space-between",width:"100%",fontSize:16},children:[w,e.jsx("span",{children:$})]}),q&&e.jsx("div",{style:{display:"flex",flexDirection:"column",marginTop:8,gap:a},children:t.map((k,_)=>{const J=_===H,Z=E===_,se=k.disabled;return e.jsxs("button",{disabled:se,onClick:()=>C(_),onKeyDown:le=>N(le,_),onMouseEnter:()=>T(_),onMouseLeave:()=>T(null),className:M,style:{...Y,...J?K:ne,...Z&&!J&&!se?A:{},...se?P:{}},children:[k.icon&&e.jsx("span",{children:k.icon}),k.label]},_)})})]}):e.jsx("div",{style:{display:"flex",flexDirection:R?"column":"row",gap:a,padding:8,minWidth:R?200:void 0},children:t.map((k,_)=>{const J=_===H,Z=E===_,se=k.disabled;return e.jsxs("button",{disabled:se,onClick:()=>C(_),onKeyDown:le=>N(le,_),onMouseEnter:()=>T(_),onMouseLeave:()=>T(null),className:M,style:{...Y,...J?K:ne,...Z&&!J&&!se?A:{},...se?P:{}},role:"tab","aria-selected":J,children:[k.icon&&e.jsx("span",{children:k.icon}),k.label]},_)})}),e.jsx("div",{className:`modern-tabs__content ${F}`,style:G,role:"tabpanel",children:t[H]?.content})]})};function pe(t,r){return"#"+t.replace(/^#/,"").replace(/../g,n=>("0"+Math.min(255,Math.max(0,parseInt(n,16)+r)).toString(16)).slice(-2))}const ur={light:{default:"#111",primary:"#2563eb",secondary:"#64748b",success:"#16a34a",danger:"#dc2626",white:"#ffffff",muted:"#6b7280"},dark:{default:"#f8fafc",primary:"#60a5fa",secondary:"#94a3b8",success:"#22c55e",danger:"#f87171",white:"#ffffff",muted:"#9ca3af"}};function fr({as:t,children:r,color:n="default",size:s="md",weight:i="normal",align:a="left",transform:x="none",italic:f=!1,underline:g=!1,strikethrough:y=!1,truncate:v=!1,selectable:c=!0,hoverable:u=!1,onClick:j,darkMode:m=!1,baseColor:b,className:h="",style:p={},...l}){const w=t||"p",$=d.useMemo(()=>{if(!b)return ur[m?"dark":"light"];const I={default:"#111",primary:b,secondary:pe(b,-50),success:pe(b,-30),danger:"#dc2626",white:"#ffffff",muted:"#6b7280"},D={default:"#f8fafc",primary:pe(b,80),secondary:pe(b,120),success:pe(b,100),danger:"#f87171",white:"#ffffff",muted:"#9ca3af"};return m?D:I},[b,m]),S={xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem","2xl":"2rem"},z={color:$[n]||n,fontSize:S[s]||s,fontWeight:i,textAlign:a,textTransform:x,fontStyle:f?"italic":"normal",textDecoration:g?"underline":y?"line-through":"none",userSelect:c?"text":"none",overflow:v?"hidden":void 0,whiteSpace:v?"nowrap":void 0,textOverflow:v?"ellipsis":void 0,cursor:j?"pointer":"default",transition:"all 0.25s ease-in-out",...p},F={className:h,style:z,onClick:j,onMouseEnter:I=>{if(!u)return;const D=I.currentTarget;D instanceof HTMLElement&&(D.style.opacity="0.8")},onMouseLeave:I=>{if(!u)return;const D=I.currentTarget;D instanceof HTMLElement&&(D.style.opacity="1")},...l};return d.createElement(w,F,r)}exports.Accordion=_e;exports.Alert=ze;exports.AudioGallery=zt;exports.AudioPlayer=Et;exports.Avatar=Le;exports.AvatarGroup=Rt;exports.Badge=_t;exports.Button=At;exports.Card=Nt;exports.CheckboxGroup=Pt;exports.Container=Ft;exports.Drawer=Jt;exports.DrawerButton=Xt;exports.Dropdown=Qt;exports.Flexbox=Ht;exports.GridView=Gt;exports.HStack=Ut;exports.Image=tr;exports.Input=er;exports.List=rr;exports.Modal=nr;exports.RadioGroup=Ot;exports.Stack=ve;exports.SwitchGroup=Wt;exports.TBody=ar;exports.TD=cr;exports.TH=ir;exports.THead=or;exports.TRow=lr;exports.Table=sr;exports.Tabs=dr;exports.Text=fr;exports.VStack=qt;
193
+ `}),V?e.jsxs("div",{style:{width:"100%",padding:8},children:[e.jsxs("button",{onClick:()=>re(!q),style:{...Y,...K,justifyContent:"space-between",width:"100%",fontSize:16},children:[w,e.jsx("span",{children:R})]}),q&&e.jsx("div",{style:{display:"flex",flexDirection:"column",marginTop:8,gap:a},children:t.map((k,_)=>{const J=_===H,Z=E===_,se=k.disabled;return e.jsxs("button",{disabled:se,onClick:()=>C(_),onKeyDown:le=>N(le,_),onMouseEnter:()=>T(_),onMouseLeave:()=>T(null),className:M,style:{...Y,...J?K:ne,...Z&&!J&&!se?A:{},...se?P:{}},children:[k.icon&&e.jsx("span",{children:k.icon}),k.label]},_)})})]}):e.jsx("div",{style:{display:"flex",flexDirection:$?"column":"row",gap:a,padding:8,minWidth:$?200:void 0},children:t.map((k,_)=>{const J=_===H,Z=E===_,se=k.disabled;return e.jsxs("button",{disabled:se,onClick:()=>C(_),onKeyDown:le=>N(le,_),onMouseEnter:()=>T(_),onMouseLeave:()=>T(null),className:M,style:{...Y,...J?K:ne,...Z&&!J&&!se?A:{},...se?P:{}},role:"tab","aria-selected":J,children:[k.icon&&e.jsx("span",{children:k.icon}),k.label]},_)})}),e.jsx("div",{className:`modern-tabs__content ${F}`,style:X,role:"tabpanel",children:t[H]?.content})]})};function pe(t,r){return"#"+t.replace(/^#/,"").replace(/../g,n=>("0"+Math.min(255,Math.max(0,parseInt(n,16)+r)).toString(16)).slice(-2))}const ur={light:{default:"#111",primary:"#2563eb",secondary:"#64748b",success:"#16a34a",danger:"#dc2626",white:"#ffffff",muted:"#6b7280"},dark:{default:"#f8fafc",primary:"#60a5fa",secondary:"#94a3b8",success:"#22c55e",danger:"#f87171",white:"#ffffff",muted:"#9ca3af"}};function fr({as:t,children:r,color:n="default",size:s="md",weight:i="normal",align:a="left",transform:x="none",italic:f=!1,underline:g=!1,strikethrough:y=!1,truncate:v=!1,selectable:c=!0,hoverable:u=!1,onClick:j,darkMode:m=!1,baseColor:b,className:h="",style:p={},...l}){const w=t||"p",R=d.useMemo(()=>{if(!b)return ur[m?"dark":"light"];const I={default:"#111",primary:b,secondary:pe(b,-50),success:pe(b,-30),danger:"#dc2626",white:"#ffffff",muted:"#6b7280"},D={default:"#f8fafc",primary:pe(b,80),secondary:pe(b,120),success:pe(b,100),danger:"#f87171",white:"#ffffff",muted:"#9ca3af"};return m?D:I},[b,m]),S={xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem","2xl":"2rem"},z={color:R[n]||n,fontSize:S[s]||s,fontWeight:i,textAlign:a,textTransform:x,fontStyle:f?"italic":"normal",textDecoration:g?"underline":y?"line-through":"none",userSelect:c?"text":"none",overflow:v?"hidden":void 0,whiteSpace:v?"nowrap":void 0,textOverflow:v?"ellipsis":void 0,cursor:j?"pointer":"default",transition:"all 0.25s ease-in-out",...p},F={className:h,style:z,onClick:j,onMouseEnter:I=>{if(!u)return;const D=I.currentTarget;D instanceof HTMLElement&&(D.style.opacity="0.8")},onMouseLeave:I=>{if(!u)return;const D=I.currentTarget;D instanceof HTMLElement&&(D.style.opacity="1")},...l};return d.createElement(w,F,r)}exports.Accordion=_e;exports.Alert=ze;exports.AudioGallery=zt;exports.AudioPlayer=Et;exports.Avatar=Le;exports.AvatarGroup=$t;exports.Badge=_t;exports.Button=At;exports.Card=Nt;exports.CheckboxGroup=Pt;exports.Container=Ft;exports.Drawer=Jt;exports.DrawerButton=Gt;exports.Dropdown=Qt;exports.Flexbox=Ht;exports.GridView=Xt;exports.HStack=Ut;exports.Image=tr;exports.Input=er;exports.List=rr;exports.Modal=nr;exports.RadioGroup=Ot;exports.Stack=ve;exports.SwitchGroup=Wt;exports.TBody=ar;exports.TD=cr;exports.TH=ir;exports.THead=or;exports.TRow=lr;exports.Table=sr;exports.Tabs=dr;exports.Text=fr;exports.VStack=qt;
194
194
  //# sourceMappingURL=index.cjs.js.map