@neuctra/ui 0.2.6 → 0.2.7

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
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");var le={exports:{}},se={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");var oe={exports:{}},ne={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ge;function Ce(){if(ge)return se;ge=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(r,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var u in o)u!=="key"&&(l[u]=o[u])}else l=o;return o=l.ref,{$$typeof:n,type:r,key:c,ref:o!==void 0?o:null,props:l}}return se.Fragment=t,se.jsx=s,se.jsxs=s,se}var ae={};/**
9
+ */var me;function Ie(){if(me)return ne;me=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,o,l){var c=null;if(l!==void 0&&(c=""+l),o.key!==void 0&&(c=""+o.key),"key"in o){l={};for(var u in o)u!=="key"&&(l[u]=o[u])}else l=o;return o=l.ref,{$$typeof:s,type:t,key:c,ref:o!==void 0?o:null,props:l}}return ne.Fragment=r,ne.jsx=n,ne.jsxs=n,ne}var ae={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,142 +14,142 @@
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 be;function Pe(){return be||(be=1,process.env.NODE_ENV!=="production"&&(function(){function n(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===F?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case M:return"Fragment";case _:return"Profiler";case j:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList";case L:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case m:return"Portal";case R:return a.displayName||"Context";case I:return(a._context.displayName||"Context")+".Consumer";case w:var v=a.render;return a=a.displayName,a||(a=v.displayName||v.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case p:return v=a.displayName||null,v!==null?v:n(a.type)||"Memo";case P:v=a._payload,a=a._init;try{return n(a(v))}catch{}}return null}function t(a){return""+a}function s(a){try{t(a);var v=!1}catch{v=!0}if(v){v=console;var k=v.error,C=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return k.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",C),t(a)}}function r(a){if(a===M)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===P)return"<...>";try{var v=n(a);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function o(){var a=Y.A;return a===null?null:a.getOwner()}function l(){return Error("react-stack-top-frame")}function c(a){if(W.call(a,"key")){var v=Object.getOwnPropertyDescriptor(a,"key").get;if(v&&v.isReactWarning)return!1}return a.key!==void 0}function u(a,v){function k(){x||(x=!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)",v))}k.isReactWarning=!0,Object.defineProperty(a,"key",{get:k,configurable:!0})}function N(){var a=n(this.type);return A[a]||(A[a]=!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.")),a=this.props.ref,a!==void 0?a:null}function g(a,v,k,C,q,Q){var V=k.ref;return a={$$typeof:T,type:a,key:v,props:k,_owner:C},(V!==void 0?V:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:N}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function y(a,v,k,C,q,Q){var V=v.children;if(V!==void 0)if(C)if(B(V)){for(C=0;C<V.length;C++)d(V[C]);Object.freeze&&Object.freeze(V)}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 d(V);if(W.call(v,"key")){V=n(a);var K=Object.keys(v).filter(function(z){return z!=="key"});C=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",J[V+C]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var be;function Ce(){return be||(be=1,process.env.NODE_ENV!=="production"&&(function(){function s(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===H?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case A:return"Fragment";case z:return"Profiler";case $:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList";case O:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case k:return"Portal";case R:return a.displayName||"Context";case I:return(a._context.displayName||"Context")+".Consumer";case v:var g=a.render;return a=a.displayName,a||(a=g.displayName||g.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case p:return g=a.displayName||null,g!==null?g:s(a.type)||"Memo";case L:g=a._payload,a=a._init;try{return s(a(g))}catch{}}return null}function r(a){return""+a}function n(a){try{r(a);var g=!1}catch{g=!0}if(g){g=console;var w=g.error,C=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",C),r(a)}}function t(a){if(a===A)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===L)return"<...>";try{var g=s(a);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function o(){var a=V.A;return a===null?null:a.getOwner()}function l(){return Error("react-stack-top-frame")}function c(a){if(W.call(a,"key")){var g=Object.getOwnPropertyDescriptor(a,"key").get;if(g&&g.isReactWarning)return!1}return a.key!==void 0}function u(a,g){function w(){f||(f=!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)",g))}w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function j(){var a=s(this.type);return M[a]||(M[a]=!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.")),a=this.props.ref,a!==void 0?a:null}function m(a,g,w,C,q,Q){var B=w.ref;return a={$$typeof:_,type:a,key:g,props:w,_owner:C},(B!==void 0?B:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:j}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function y(a,g,w,C,q,Q){var B=g.children;if(B!==void 0)if(C)if(F(B)){for(C=0;C<B.length;C++)d(B[C]);Object.freeze&&Object.freeze(B)}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 d(B);if(W.call(g,"key")){B=s(a);var K=Object.keys(g).filter(function(E){return E!=="key"});C=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",J[B+C]||(K=0<K.length?"{"+K.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} />`,C,V,K,V),J[V+C]=!0)}if(V=null,k!==void 0&&(s(k),V=""+k),c(v)&&(s(v.key),V=""+v.key),"key"in v){k={};for(var X in v)X!=="key"&&(k[X]=v[X])}else k=v;return V&&u(k,typeof a=="function"?a.displayName||a.name||"Unknown":a),g(a,V,k,o(),q,Q)}function d(a){f(a)?a._store&&(a._store.validated=1):typeof a=="object"&&a!==null&&a.$$typeof===P&&(a._payload.status==="fulfilled"?f(a._payload.value)&&a._payload.value._store&&(a._payload.value._store.validated=1):a._store&&(a._store.validated=1))}function f(a){return typeof a=="object"&&a!==null&&a.$$typeof===T}var $=i,T=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),R=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),Y=$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,B=Array.isArray,S=console.createTask?console.createTask:function(){return null};$={react_stack_bottom_frame:function(a){return a()}};var x,A={},H=$.react_stack_bottom_frame.bind($,l)(),G=S(r(l)),J={};ae.Fragment=M,ae.jsx=function(a,v,k){var C=1e4>Y.recentlyCreatedOwnerStacks++;return y(a,v,k,!1,C?Error("react-stack-top-frame"):H,C?S(r(a)):G)},ae.jsxs=function(a,v,k){var C=1e4>Y.recentlyCreatedOwnerStacks++;return y(a,v,k,!0,C?Error("react-stack-top-frame"):H,C?S(r(a)):G)}})()),ae}var ye;function Le(){return ye||(ye=1,process.env.NODE_ENV==="production"?le.exports=Ce():le.exports=Pe()),le.exports}var e=Le();/**
22
+ <%s key={someKey} {...props} />`,C,B,K,B),J[B+C]=!0)}if(B=null,w!==void 0&&(n(w),B=""+w),c(g)&&(n(g.key),B=""+g.key),"key"in g){w={};for(var X in g)X!=="key"&&(w[X]=g[X])}else w=g;return B&&u(w,typeof a=="function"?a.displayName||a.name||"Unknown":a),m(a,B,w,o(),q,Q)}function d(a){x(a)?a._store&&(a._store.validated=1):typeof a=="object"&&a!==null&&a.$$typeof===L&&(a._payload.status==="fulfilled"?x(a._payload.value)&&a._payload.value._store&&(a._payload.value._store.validated=1):a._store&&(a._store.validated=1))}function x(a){return typeof a=="object"&&a!==null&&a.$$typeof===_}var S=i,_=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),R=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),V=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,F=Array.isArray,N=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(a){return a()}};var f,M={},Y=S.react_stack_bottom_frame.bind(S,l)(),G=N(t(l)),J={};ae.Fragment=A,ae.jsx=function(a,g,w){var C=1e4>V.recentlyCreatedOwnerStacks++;return y(a,g,w,!1,C?Error("react-stack-top-frame"):Y,C?N(t(a)):G)},ae.jsxs=function(a,g,w){var C=1e4>V.recentlyCreatedOwnerStacks++;return y(a,g,w,!0,C?Error("react-stack-top-frame"):Y,C?N(t(a)):G)}})()),ae}var ge;function Pe(){return ge||(ge=1,process.env.NODE_ENV==="production"?oe.exports=Ie():oe.exports=Ce()),oe.exports}var e=Pe();/**
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 De=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Oe=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,r)=>r?r.toUpperCase():s.toLowerCase()),ve=n=>{const t=Oe(n);return t.charAt(0).toUpperCase()+t.slice(1)},ke=(...n)=>n.filter((t,s,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===s).join(" ").trim(),Fe=n=>{for(const t in n)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Le=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),De=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,n,t)=>t?t.toUpperCase():n.toLowerCase()),ye=s=>{const r=De(s);return r.charAt(0).toUpperCase()+r.slice(1)},je=(...s)=>s.filter((r,n,t)=>!!r&&r.trim()!==""&&t.indexOf(r)===n).join(" ").trim(),Oe=s=>{for(const r in s)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.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var Be={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
32
+ */var Fe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
33
33
  * @license lucide-react v0.536.0 - ISC
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 Ve=i.forwardRef(({color:n="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:o="",children:l,iconNode:c,...u},N)=>i.createElement("svg",{ref:N,...Be,width:t,height:t,stroke:n,strokeWidth:r?Number(s)*24/Number(t):s,className:ke("lucide",o),...!l&&!Fe(u)&&{"aria-hidden":"true"},...u},[...c.map(([g,y])=>i.createElement(g,y)),...Array.isArray(l)?l:[l]]));/**
37
+ */const Be=i.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:t,className:o="",children:l,iconNode:c,...u},j)=>i.createElement("svg",{ref:j,...Fe,width:r,height:r,stroke:s,strokeWidth:t?Number(n)*24/Number(r):n,className:je("lucide",o),...!l&&!Oe(u)&&{"aria-hidden":"true"},...u},[...c.map(([m,y])=>i.createElement(m,y)),...Array.isArray(l)?l:[l]]));/**
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 U=(n,t)=>{const s=i.forwardRef(({className:r,...o},l)=>i.createElement(Ve,{ref:l,iconNode:t,className:ke(`lucide-${De(ve(n))}`,`lucide-${n}`,r),...o}));return s.displayName=ve(n),s};/**
42
+ */const U=(s,r)=>{const n=i.forwardRef(({className:t,...o},l)=>i.createElement(Be,{ref:l,iconNode:r,className:je(`lucide-${Le(ye(s))}`,`lucide-${s}`,t),...o}));return n.displayName=ye(s),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 Ye=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$e=U("chevron-down",Ye);/**
47
+ */const Ve=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ke=U("chevron-down",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 He=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ue=U("chevron-up",He);/**
52
+ */const Ye=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ue=U("chevron-up",Ye);/**
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 We=[["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"}]],qe=U("circle-alert",We);/**
57
+ */const We=[["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"}]],He=U("circle-alert",We);/**
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 Ge=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Xe=U("circle-check-big",Ge);/**
62
+ */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=U("circle-check-big",qe);/**
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 Je=[["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"}]],Ke=U("eye-off",Je);/**
67
+ */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=U("eye-off",Xe);/**
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 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"}]],Qe=U("eye",Ze);/**
72
+ */const Ke=[["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"}]],Ze=U("eye",Ke);/**
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 et=[["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"}]],tt=U("heart",et);/**
77
+ */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=U("heart",Qe);/**
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 rt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],nt=U("info",rt);/**
82
+ */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=U("info",tt);/**
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 st=[["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"}]],at=U("maximize",st);/**
87
+ */const st=[["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"}]],nt=U("maximize",st);/**
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 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"}]],lt=U("minimize",ot);/**
92
+ */const at=[["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"}]],ot=U("minimize",at);/**
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 it=[["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"}]],we=U("music",it);/**
97
+ */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"}]],ve=U("music",lt);/**
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 ct=[["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"}]],ue=U("pause",ct);/**
102
+ */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"}]],de=U("pause",it);/**
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 dt=[["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"}]],fe=U("play",dt);/**
107
+ */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"}]],ue=U("play",ct);/**
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 ut=[["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"}]],Ne=U("rotate-ccw",ut);/**
112
+ */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=U("rotate-ccw",dt);/**
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 ft=[["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"}]],xt=U("shuffle",ft);/**
117
+ */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=U("shuffle",ut);/**
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 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"}]],xe=U("skip-back",pt);/**
122
+ */const xt=[["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"}]],fe=U("skip-back",xt);/**
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 ht=[["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"}]],pe=U("skip-forward",ht);/**
127
+ */const pt=[["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"}]],xe=U("skip-forward",pt);/**
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 mt=[["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=U("triangle-alert",mt);/**
132
+ */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"}]],mt=U("triangle-alert",ht);/**
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 bt=[["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"}]],yt=U("user",bt);/**
137
+ */const bt=[["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"}]],gt=U("user",bt);/**
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 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"}],["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"}]],Se=U("volume-2",vt);/**
142
+ */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"}]],Ne=U("volume-2",yt);/**
143
143
  * @license lucide-react v0.536.0 - ISC
144
144
  *
145
145
  * This source code is licensed under the ISC license.
146
146
  * See the LICENSE file in the root directory of this source tree.
147
- */const wt=[["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"}]],Te=U("volume-x",wt);/**
147
+ */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"}]],Se=U("volume-x",vt);/**
148
148
  * @license lucide-react v0.536.0 - ISC
149
149
  *
150
150
  * This source code is licensed under the ISC license.
151
151
  * See the LICENSE file in the root directory of this source tree.
152
- */const jt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],he=U("x",jt),Re=i.createContext(void 0),kt=()=>{const n=i.useContext(Re);if(!n)throw new Error("useToast must be used within ToastProvider");return n},$t=({children:n})=>{const[t,s]=i.useState([]),r=i.useCallback(l=>{s(c=>c.filter(u=>u.id!==l))},[]),o=i.useCallback(l=>{const c=Date.now()+Math.random();s(u=>[...u,{...l,id:c}]),l.duration!==0&&setTimeout(()=>r(c),l.duration??4e3)},[r]);return e.jsxs(Re.Provider,{value:{addToast:o},children:[n,e.jsx("div",{className:"fixed top-5 right-5 flex flex-col gap-3 z-50",children:t.map(l=>e.jsx(St,{toast:l,onClose:()=>r(l.id)},l.id))})]})},Nt={success:{bg:"bg-green-50",border:"border-green-400",icon:e.jsx(Xe,{size:20,className:"text-green-600"})},error:{bg:"bg-red-50",border:"border-red-400",icon:e.jsx(qe,{size:20,className:"text-red-600"})},warning:{bg:"bg-yellow-50",border:"border-yellow-400",icon:e.jsx(gt,{size:20,className:"text-yellow-600"})},info:{bg:"bg-blue-50",border:"border-blue-400",icon:e.jsx(nt,{size:20,className:"text-blue-600"})}},St=({toast:n,onClose:t})=>{const{title:s,description:r,type:o="info"}=n,{bg:l,border:c,icon:u}=Nt[o];return e.jsxs("div",{className:`flex items-start gap-3 p-4 border-l-4 rounded shadow ${l} ${c} animate-slide-in-right`,role:"alert",children:[e.jsx("div",{children:u}),e.jsxs("div",{className:"flex-1 min-w-0",children:[s&&e.jsx("div",{className:"font-semibold text-sm mb-1",children:s}),r&&e.jsx("div",{className:"text-sm text-gray-700",children:r})]}),e.jsx("button",{onClick:t,className:"text-gray-500 hover:text-gray-700",children:e.jsx(he,{size:16})})]})},Ee=i.memo(({items:n,allowMultiple:t=!1,defaultOpen:s=[],borderColor:r="#e5e7eb",backgroundColor:o="#fff",textColor:l="#111827",hoverBgColor:c="#f3f4f6",hoverTextColor:u="#111827",contentBgColor:N="#fff",contentTextColor:g="#374151",paddingY:y="1rem",paddingX:d="1rem",marginY:f="0.5rem",borderRadius:$="0.5rem",contentPadding:T="1rem",fontSize:m="1rem",fontWeight:M=600,contentFontSize:j="0.95rem",contentFontWeight:_=400,iconOpen:I,iconClose:R,iconSize:w="1.25rem",transitionDuration:b="300ms",shadow:h="0 1px 4px rgba(0,0,0,0.08)",className:p="",style:P})=>{const[L,F]=i.useState(s),Y=i.useRef([]);i.useEffect(()=>{Y.current.forEach((S,x)=>{S&&(S.style.maxHeight=L.includes(x)?`${S.scrollHeight}px`:"0px")})},[L]);const W=S=>{F(x=>t?x.includes(S)?x.filter(A=>A!==S):[...x,S]:x.includes(S)?[]:[S])},B=S=>S!==void 0?typeof S=="number"?`${S}px`:S:void 0;return e.jsx("div",{className:`space-y-2 ${p}`,style:{width:"100%",...P},children:n.map((S,x)=>{const A=L.includes(x);return e.jsxs("div",{className:"border shadow-sm overflow-hidden transition-all duration-300",style:{borderColor:r,borderRadius:B($),margin:`${B(f)} 0`,boxShadow:h},children:[e.jsxs("button",{onClick:()=>W(x),className:"w-full flex justify-between items-center transition-colors duration-300",style:{backgroundColor:o,color:l,padding:`${B(y)} ${B(d)}`,fontWeight:M,fontSize:B(m),cursor:"pointer",border:"none",outline:"none"},onMouseEnter:H=>{H.currentTarget.style.backgroundColor=c,H.currentTarget.style.color=u},onMouseLeave:H=>{H.currentTarget.style.backgroundColor=o,H.currentTarget.style.color=l},children:[e.jsx("span",{children:S.title}),e.jsx("span",{style:{fontSize:B(w)},children:A?I||e.jsx(Ue,{size:16}):R||e.jsx($e,{size:16})})]}),e.jsx("div",{ref:H=>{Y.current[x]=H},className:"overflow-hidden transition-all duration-300",style:{maxHeight:A?`${Y.current[x]?.scrollHeight??0}px`:"0px",transition:`max-height ${b} ease-in-out`},children:e.jsx("div",{style:{borderTop:`1px solid ${r}`,backgroundColor:N,color:g,padding:B(T),fontSize:B(j),fontWeight:_},children:S.content})})]},x)})})});Ee.displayName="Accordion";const Tt={xs:24,sm:32,md:40,lg:48,xl:56,"2xl":64},Rt={xs:"text-[10px]",sm:"text-[12px]",md:"text-[14px]",lg:"text-[16px]",xl:"text-[18px]","2xl":"text-[20px]"},Et={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-14 h-14","2xl":"w-16 h-16"},ce={circular:"rounded-full",rounded:"rounded-lg",square:"rounded-none"},_t={"top-left":"top-0 left-0","top-right":"top-0 right-0","bottom-left":"bottom-0 left-0","bottom-right":"bottom-0 right-0"},zt=({src:n,alt:t="User avatar",size:s="md",variant:r="circular",isOnline:o=!1,isOffline:l=!1,fallback:c,ring:u=!1,ringColor:N="#3b82f6",onClick:g,statusPosition:y="bottom-right",className:d="",statusClassName:f="",style:$,statusStyle:T})=>{const[m,M]=i.useState(!1),j=!!g,_=c||t.split(" ").map(w=>w[0]).join("").toUpperCase().slice(0,2),I=o?"bg-green-500":l?"bg-gray-400":"",R=Tt[s];return e.jsxs("div",{role:j?"button":"img",tabIndex:j?0:-1,"aria-label":t,onClick:g,className:`relative inline-flex items-center justify-center overflow-hidden ${Et[s]} ${ce[r]} transition-all duration-200 ${j?"cursor-pointer hover:scale-105":""} ${u?"ring-2":""} ${d}`,style:{...$,...u?{boxShadow:`0 0 0 2px ${N}`}:{}},onKeyDown:w=>{j&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g?.())},children:[n&&!m?e.jsx("img",{src:n,alt:t,onError:()=>M(!0),className:`w-full h-full object-cover ${ce[r]} transition-opacity duration-300`}):e.jsx("div",{className:`w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${Rt[s]} ${ce[r]}`,children:_||e.jsx(yt,{className:"text-white"})}),(o||l)&&e.jsx("span",{"aria-label":o?"Online":"Offline",title:o?"Online":"Offline",className:`absolute ${_t[y]} ${I} border-2 border-white rounded-full shadow-sm ${f}`,style:{width:R/3,height:R/3,...T}})]})},Mt=({src:n,thumbnail:t,autoPlay:s=!1,loop:r=!1,backgroundColor:o="#0a0a0a",primaryColor:l="#10b981",secondaryColor:c="#ffffff",borderRadius:u="12px",padding:N="12px",width:g="100%",className:y})=>{const d=i.useRef(null),f=i.useRef(null),[$,T]=i.useState(s),[m,M]=i.useState(0),[j,_]=i.useState(0),[I,R]=i.useState(.7),[w,b]=i.useState(!1),[h,p]=i.useState(r);i.useEffect(()=>{d.current&&(d.current.volume=I)},[I]),i.useEffect(()=>{d.current&&(d.current.loop=h)},[h]);const P=()=>{d.current&&($?d.current.pause():d.current.play(),T(!$))},L=()=>{d.current&&(M(d.current.currentTime),_(d.current.duration))},F=S=>{if(!d.current)return;const x=S.currentTarget.getBoundingClientRect(),A=(S.clientX-x.left)/x.width;d.current.currentTime=A*j,M(A*j)},Y=S=>{d.current&&(d.current.currentTime+=S)},W=()=>{f.current&&(w?document.exitFullscreen?.():f.current.requestFullscreen?.(),b(!w))},B=S=>{const x=Math.floor(S/60),A=Math.floor(S%60);return`${x}:${A<10?"0":""}${A}`};return e.jsxs("div",{ref:f,className:y,style:{display:"flex",alignItems:"center",gap:"12px",width:g,backgroundColor:o,borderRadius:u,padding:N,boxSizing:"border-box",color:c,boxShadow:"0 6px 16px rgba(0,0,0,0.2)",flexWrap:"wrap"},children:[e.jsx("audio",{ref:d,src:n,autoPlay:s,loop:r,onTimeUpdate:L,onLoadedMetadata:L}),t&&e.jsx("img",{src:t,alt:"Audio Thumbnail",style:{width:"60px",height:"60px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:"0"},children:[e.jsx("button",{onClick:()=>Y(-10),style:{background:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Skip Back 10s",children:e.jsx(xe,{size:20})}),e.jsx("button",{onClick:P,style:{background:l,borderRadius:"50%",padding:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":$?"Pause":"Play",children:$?e.jsx(ue,{size:20}):e.jsx(fe,{size:20})}),e.jsx("button",{onClick:()=>Y(10),style:{background:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Skip Forward 10s",children:e.jsx(pe,{size:20})}),e.jsx("div",{onClick:F,style:{flex:1,height:"6px",background:"#444",borderRadius:"3px",cursor:"pointer",position:"relative"},children:e.jsx("div",{style:{width:`${m/j*100||0}%`,height:"100%",background:l,borderRadius:"3px"}})}),e.jsxs("div",{style:{minWidth:"70px",textAlign:"right",fontSize:"0.8rem"},children:[B(m)," / ",B(j)]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("button",{onClick:()=>p(!h),style:{background:"transparent",border:"none",cursor:"pointer",color:h?l:c},"aria-label":"Toggle Loop",children:e.jsx(Ne,{size:18})}),e.jsx("button",{onClick:()=>R(I>0?0:.7),style:{background:"transparent",border:"none",cursor:"pointer",color:c},"aria-label":"Toggle Mute",children:I>0?e.jsx(Se,{size:18}):e.jsx(Te,{size:18})}),e.jsx("button",{onClick:W,style:{background:"transparent",border:"none",cursor:"pointer",color:c},"aria-label":"Toggle Fullscreen",children:w?e.jsx(lt,{size:18}):e.jsx(at,{size:18})})]})]})]})},At=[{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 It({tracks:n=At,className:t="",galleryTitle:s="Audio Gallery",primaryColor:r="#8b5cf6",backgroundColor:o="#0f0f23",textColor:l="#e4e4e7",secondaryColor:c="#1a1a2e",border:u=0,borderColor:N,maxWidth:g=420,autoplay:y=!1,loop:d=!1}){const[f,$]=i.useState(null),[T,m]=i.useState(!1),[M,j]=i.useState(0),[_,I]=i.useState(0),[R,w]=i.useState(.7),[b,h]=i.useState(!1),[p,P]=i.useState(d),[L,F]=i.useState(!1),[Y,W]=i.useState(!1),[B,S]=i.useState(!1),x=i.useRef(null),A=i.useRef(null),H=i.useRef(null);i.useEffect(()=>{x.current&&(x.current.volume=R)},[R]),i.useEffect(()=>{x.current&&(x.current.loop=p)},[p]),i.useEffect(()=>{f===null&&x.current&&(x.current.pause(),m(!1),j(0),I(0))},[f]);const G=z=>{if(f===z){if(!x.current)return;x.current.paused?(x.current.play().catch(()=>{}),m(!0)):(x.current.pause(),m(!1))}else $(z),setTimeout(()=>{x.current&&(x.current.play().catch(()=>{}),m(!0))},100)},J=()=>{x.current&&(j(x.current.currentTime),x.current.duration&&I(x.current.duration))},a=z=>{if(!x.current||!_)return;const E=z.currentTarget.getBoundingClientRect(),ee=(z.clientX-E.left)/E.width*_;x.current.currentTime=ee,j(ee)},v=z=>{const E=z.currentTarget.getBoundingClientRect(),Z=(z.clientX-E.left)/E.width,ee=Math.max(0,Math.min(1,Z));w(ee)},k=z=>{if(x.current&&_){let E=x.current.currentTime+z;E=Math.min(Math.max(E,0),_),x.current.currentTime=E,j(E)}},C=()=>{if(f===null)return;let z;L?z=Math.floor(Math.random()*n.length):z=(f+1)%n.length,G(z)},q=()=>{if(f===null)return;let z;L?z=Math.floor(Math.random()*n.length):z=(f-1+n.length)%n.length,G(z)},Q=()=>{w(z=>z>0?0:.7)},V=()=>{S(!0),H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{S(!1)},3e3)},K=z=>{if(isNaN(z))return"0:00";const E=Math.floor(z/60),O=Math.floor(z%60);return`${E}:${O<10?"0":""}${O}`},X=f!==null?n[f]:null;return e.jsxs("div",{className:t,style:{maxWidth:`${g}px`,margin:"20px auto",background:`linear-gradient(145deg, ${o}, ${c})`,color:l,borderRadius:"24px",padding:"24px 16px",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",userSelect:"none",backdropFilter:"blur(20px)",border:`${u}px solid ${N}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, ${r}, ${c})`,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(we,{size:20,color:"white"})}),e.jsxs("div",{children:[e.jsx("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:"700",color:r},children:s}),e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",opacity:.7},children:[n.length," tracks"]})]})]}),e.jsx("button",{onClick:()=>F(!L),style:{background:L?r:"transparent",border:"none",borderRadius:"12px",padding:"8px",cursor:"pointer",transition:"all 0.3s ease",opacity:L?1:.6},"aria-label":"Toggle Shuffle",children:e.jsx(xt,{size:18,color:L?"white":l})})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",marginBottom:"20px",maxHeight:"240px",overflowY:"auto",paddingRight:"4px"},children:n.map((z,E)=>{const O=f===E,Z=O&&T;return e.jsxs("div",{onClick:()=>G(E),style:{display:"flex",alignItems:"center",padding:"12px 16px",borderRadius:"16px",background:O?`linear-gradient(135deg, ${r}20, ${r}10)`:"rgba(255,255,255,0.05)",border:O?`1px solid ${r}40`:"1px solid transparent",cursor:"pointer",transition:"all 0.3s ease",backdropFilter:O?"blur(20px)":"none"},children:[e.jsxs("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:z.thumbnail?`url(${z.thumbnail}) center/cover`:r,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",position:"relative",overflow:"hidden"},children:[!z.thumbnail&&e.jsx(we,{size:20,color:"white"}),Z&&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(ee=>e.jsx("div",{style:{width:"3px",background:"white",borderRadius:"2px",animation:`equalizer 1s ease-in-out infinite ${ee*.2}s`,height:"12px"}},ee))})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:"600",fontSize:"0.95rem",color:O?r:l,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:z.title}),z.artist&&e.jsx("div",{style:{fontSize:"0.8rem",opacity:.7,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:z.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[z.duration&&e.jsx("span",{style:{fontSize:"0.8rem",opacity:.6},children:z.duration}),e.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",background:O?r:"rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"},children:Z?e.jsx(ue,{size:16,color:"white"}):e.jsx(fe,{size:16,color:"white"})})]})]},E)})}),X&&e.jsxs("div",{ref:A,style:{background:`linear-gradient(135deg, ${c}, ${o})`,borderRadius:"20px",padding:"20px",border:`1px solid ${r}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:r},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:q,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Previous Track",children:e.jsx(xe,{size:20})}),e.jsxs("button",{onClick:()=>k(-10),style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Skip back 10 seconds",children:[e.jsx(xe,{size:16}),e.jsx("span",{style:{fontSize:"0.7rem",marginLeft:"2px"},children:"10"})]}),e.jsx("button",{onClick:()=>{x.current&&(T?(x.current.pause(),m(!1)):(x.current.play().catch(()=>{}),m(!0)))},style:{...te("#fff",r),width:"60px",height:"60px",borderRadius:"50%",boxShadow:`0 8px 25px ${r}40`},"aria-label":T?"Pause":"Play",children:T?e.jsx(ue,{size:24}):e.jsx(fe,{size:24})}),e.jsxs("button",{onClick:()=>k(10),style:te(l,"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(pe,{size:16})]}),e.jsx("button",{onClick:C,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Next Track",children:e.jsx(pe,{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:K(M)}),e.jsx("span",{children:K(_)})]}),e.jsx("div",{onClick:a,style:{height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px",cursor:"pointer",position:"relative",overflow:"hidden"},children:e.jsx("div",{style:{width:`${M/_*100||0}%`,height:"100%",background:`linear-gradient(90deg, ${r}, #ec4899)`,borderRadius:"3px",position:"relative"},children:e.jsx("div",{style:{position:"absolute",right:"-6px",top:"50%",transform:"translateY(-50%)",width:"12px",height:"12px",background:r,borderRadius:"50%",boxShadow:`0 2px 8px ${r}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:()=>W(!Y),style:te(Y?"#ec4899":l,"rgba(255,255,255,0.1)"),"aria-label":"Like",children:e.jsx(tt,{size:16,fill:Y?"#ec4899":"none"})}),e.jsx("button",{onClick:()=>P(!p),style:te(p?r:l,"rgba(255,255,255,0.1)"),"aria-label":"Toggle Loop",children:e.jsx(Ne,{size:16})})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",position:"relative"},children:[B&&e.jsx("div",{onClick:v,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:r,borderRadius:"2px"}})}),e.jsx("button",{onClick:Q,onMouseEnter:V,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":R>0?"Mute":"Unmute",children:R>0?e.jsx(Se,{size:16}):e.jsx(Te,{size:16})})]})]})]}),e.jsx("audio",{ref:x,src:X.src,autoPlay:y,loop:p,onTimeUpdate:J,onEnded:()=>{m(!1),p||C()},onLoadedMetadata:J,preload:"metadata",style:{display:"none"}})]}),e.jsx("style",{children:`
152
+ */const wt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pe=U("x",wt),Te=i.createContext(void 0),jt=()=>{const s=i.useContext(Te);if(!s)throw new Error("useToast must be used within ToastProvider");return s},kt=({children:s})=>{const[r,n]=i.useState([]),t=i.useCallback(l=>{n(c=>c.filter(u=>u.id!==l))},[]),o=i.useCallback(l=>{const c=Date.now()+Math.random();n(u=>[...u,{...l,id:c}]),l.duration!==0&&setTimeout(()=>t(c),l.duration??4e3)},[t]);return e.jsxs(Te.Provider,{value:{addToast:o},children:[s,e.jsx("div",{className:"fixed top-5 right-5 flex flex-col gap-3 z-50",children:r.map(l=>e.jsx(Nt,{toast:l,onClose:()=>t(l.id)},l.id))})]})},$t={success:{bg:"bg-green-50",border:"border-green-400",icon:e.jsx(Ge,{size:20,className:"text-green-600"})},error:{bg:"bg-red-50",border:"border-red-400",icon:e.jsx(He,{size:20,className:"text-red-600"})},warning:{bg:"bg-yellow-50",border:"border-yellow-400",icon:e.jsx(mt,{size:20,className:"text-yellow-600"})},info:{bg:"bg-blue-50",border:"border-blue-400",icon:e.jsx(rt,{size:20,className:"text-blue-600"})}},Nt=({toast:s,onClose:r})=>{const{title:n,description:t,type:o="info"}=s,{bg:l,border:c,icon:u}=$t[o];return e.jsxs("div",{className:`flex items-start gap-3 p-4 border-l-4 rounded shadow ${l} ${c} animate-slide-in-right`,role:"alert",children:[e.jsx("div",{children:u}),e.jsxs("div",{className:"flex-1 min-w-0",children:[n&&e.jsx("div",{className:"font-semibold text-sm mb-1",children:n}),t&&e.jsx("div",{className:"text-sm text-gray-700",children:t})]}),e.jsx("button",{onClick:r,className:"text-gray-500 hover:text-gray-700",children:e.jsx(pe,{size:16})})]})},Re=i.memo(({items:s,allowMultiple:r=!1,defaultOpen:n=[],borderColor:t="#e5e7eb",backgroundColor:o="#fff",textColor:l="#111827",hoverBgColor:c="#f3f4f6",hoverTextColor:u="#111827",contentBgColor:j="#fff",contentTextColor:m="#374151",paddingY:y="1rem",paddingX:d="1rem",marginY:x="0.5rem",borderRadius:S="0.5rem",contentPadding:_="1rem",fontSize:k="1rem",fontWeight:A=600,contentFontSize:$="0.95rem",contentFontWeight:z=400,iconOpen:I,iconClose:R,iconSize:v="1.25rem",transitionDuration:b="300ms",shadow:h="0 1px 4px rgba(0,0,0,0.08)",className:p="",style:L})=>{const[O,H]=i.useState(n),V=i.useRef([]);i.useEffect(()=>{V.current.forEach((N,f)=>{N&&(N.style.maxHeight=O.includes(f)?`${N.scrollHeight}px`:"0px")})},[O]);const W=N=>{H(f=>r?f.includes(N)?f.filter(M=>M!==N):[...f,N]:f.includes(N)?[]:[N])},F=N=>N!==void 0?typeof N=="number"?`${N}px`:N:void 0;return e.jsx("div",{className:`space-y-2 ${p}`,style:{width:"100%",...L},children:s.map((N,f)=>{const M=O.includes(f);return e.jsxs("div",{className:"border shadow-sm overflow-hidden transition-all duration-300",style:{borderColor:t,borderRadius:F(S),margin:`${F(x)} 0`,boxShadow:h},children:[e.jsxs("button",{onClick:()=>W(f),className:"w-full flex justify-between items-center transition-colors duration-300",style:{backgroundColor:o,color:l,padding:`${F(y)} ${F(d)}`,fontWeight:A,fontSize:F(k),cursor:"pointer",border:"none",outline:"none"},onMouseEnter:Y=>{Y.currentTarget.style.backgroundColor=c,Y.currentTarget.style.color=u},onMouseLeave:Y=>{Y.currentTarget.style.backgroundColor=o,Y.currentTarget.style.color=l},children:[e.jsx("span",{children:N.title}),e.jsx("span",{style:{fontSize:F(v)},children:M?I||e.jsx(Ue,{size:16}):R||e.jsx(ke,{size:16})})]}),e.jsx("div",{ref:Y=>{V.current[f]=Y},className:"overflow-hidden transition-all duration-300",style:{maxHeight:M?`${V.current[f]?.scrollHeight??0}px`:"0px",transition:`max-height ${b} ease-in-out`},children:e.jsx("div",{style:{borderTop:`1px solid ${t}`,backgroundColor:j,color:m,padding:F(_),fontSize:F($),fontWeight:z},children:N.content})})]},f)})})});Re.displayName="Accordion";const St={xs:24,sm:32,md:40,lg:48,xl:56,"2xl":64},Tt={xs:"text-[10px]",sm:"text-[12px]",md:"text-[14px]",lg:"text-[16px]",xl:"text-[18px]","2xl":"text-[20px]"},Rt={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12",xl:"w-14 h-14","2xl":"w-16 h-16"},ie={circular:"rounded-full",rounded:"rounded-lg",square:"rounded-none"},Et={"top-left":"top-0 left-0","top-right":"top-0 right-0","bottom-left":"bottom-0 left-0","bottom-right":"bottom-0 right-0"},_t=({src:s,alt:r="User avatar",size:n="md",variant:t="circular",isOnline:o=!1,isOffline:l=!1,fallback:c,ring:u=!1,ringColor:j="#3b82f6",onClick:m,statusPosition:y="bottom-right",className:d="",statusClassName:x="",style:S,statusStyle:_})=>{const[k,A]=i.useState(!1),$=!!m,z=c||r.split(" ").map(v=>v[0]).join("").toUpperCase().slice(0,2),I=o?"bg-green-500":l?"bg-gray-400":"",R=St[n];return e.jsxs("div",{role:$?"button":"img",tabIndex:$?0:-1,"aria-label":r,onClick:m,className:`relative inline-flex items-center justify-center overflow-hidden ${Rt[n]} ${ie[t]} transition-all duration-200 ${$?"cursor-pointer hover:scale-105":""} ${u?"ring-2":""} ${d}`,style:{...S,...u?{boxShadow:`0 0 0 2px ${j}`}:{}},onKeyDown:v=>{$&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),m?.())},children:[s&&!k?e.jsx("img",{src:s,alt:r,onError:()=>A(!0),className:`w-full h-full object-cover ${ie[t]} transition-opacity duration-300`}):e.jsx("div",{className:`w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${Tt[n]} ${ie[t]}`,children:z||e.jsx(gt,{className:"text-white"})}),(o||l)&&e.jsx("span",{"aria-label":o?"Online":"Offline",title:o?"Online":"Offline",className:`absolute ${Et[y]} ${I} border-2 border-white rounded-full shadow-sm ${x}`,style:{width:R/3,height:R/3,..._}})]})},zt=({src:s,thumbnail:r,autoPlay:n=!1,loop:t=!1,backgroundColor:o="#0a0a0a",primaryColor:l="#10b981",secondaryColor:c="#ffffff",borderRadius:u="12px",padding:j="12px",width:m="100%",className:y})=>{const d=i.useRef(null),x=i.useRef(null),[S,_]=i.useState(n),[k,A]=i.useState(0),[$,z]=i.useState(0),[I,R]=i.useState(.7),[v,b]=i.useState(!1),[h,p]=i.useState(t);i.useEffect(()=>{d.current&&(d.current.volume=I)},[I]),i.useEffect(()=>{d.current&&(d.current.loop=h)},[h]);const L=()=>{d.current&&(S?d.current.pause():d.current.play(),_(!S))},O=()=>{d.current&&(A(d.current.currentTime),z(d.current.duration))},H=N=>{if(!d.current)return;const f=N.currentTarget.getBoundingClientRect(),M=(N.clientX-f.left)/f.width;d.current.currentTime=M*$,A(M*$)},V=N=>{d.current&&(d.current.currentTime+=N)},W=()=>{x.current&&(v?document.exitFullscreen?.():x.current.requestFullscreen?.(),b(!v))},F=N=>{const f=Math.floor(N/60),M=Math.floor(N%60);return`${f}:${M<10?"0":""}${M}`};return e.jsxs("div",{ref:x,className:y,style:{display:"flex",alignItems:"center",gap:"12px",width:m,backgroundColor:o,borderRadius:u,padding:j,boxSizing:"border-box",color:c,boxShadow:"0 6px 16px rgba(0,0,0,0.2)",flexWrap:"wrap"},children:[e.jsx("audio",{ref:d,src:s,autoPlay:n,loop:t,onTimeUpdate:O,onLoadedMetadata:O}),r&&e.jsx("img",{src:r,alt:"Audio Thumbnail",style:{width:"60px",height:"60px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:"0"},children:[e.jsx("button",{onClick:()=>V(-10),style:{background:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Skip Back 10s",children:e.jsx(fe,{size:20})}),e.jsx("button",{onClick:L,style:{background:l,borderRadius:"50%",padding:"10px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":S?"Pause":"Play",children:S?e.jsx(de,{size:20}):e.jsx(ue,{size:20})}),e.jsx("button",{onClick:()=>V(10),style:{background:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":"Skip Forward 10s",children:e.jsx(xe,{size:20})}),e.jsx("div",{onClick:H,style:{flex:1,height:"6px",background:"#444",borderRadius:"3px",cursor:"pointer",position:"relative"},children:e.jsx("div",{style:{width:`${k/$*100||0}%`,height:"100%",background:l,borderRadius:"3px"}})}),e.jsxs("div",{style:{minWidth:"70px",textAlign:"right",fontSize:"0.8rem"},children:[F(k)," / ",F($)]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("button",{onClick:()=>p(!h),style:{background:"transparent",border:"none",cursor:"pointer",color:h?l:c},"aria-label":"Toggle Loop",children:e.jsx($e,{size:18})}),e.jsx("button",{onClick:()=>R(I>0?0:.7),style:{background:"transparent",border:"none",cursor:"pointer",color:c},"aria-label":"Toggle Mute",children:I>0?e.jsx(Ne,{size:18}):e.jsx(Se,{size:18})}),e.jsx("button",{onClick:W,style:{background:"transparent",border:"none",cursor:"pointer",color:c},"aria-label":"Toggle Fullscreen",children:v?e.jsx(ot,{size:18}):e.jsx(nt,{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 At({tracks:s=Mt,className:r="",galleryTitle:n="Audio Gallery",primaryColor:t="#8b5cf6",backgroundColor:o="#0f0f23",textColor:l="#e4e4e7",secondaryColor:c="#1a1a2e",border:u=0,borderColor:j,maxWidth:m=420,autoplay:y=!1,loop:d=!1}){const[x,S]=i.useState(null),[_,k]=i.useState(!1),[A,$]=i.useState(0),[z,I]=i.useState(0),[R,v]=i.useState(.7),[b,h]=i.useState(!1),[p,L]=i.useState(d),[O,H]=i.useState(!1),[V,W]=i.useState(!1),[F,N]=i.useState(!1),f=i.useRef(null),M=i.useRef(null),Y=i.useRef(null);i.useEffect(()=>{f.current&&(f.current.volume=R)},[R]),i.useEffect(()=>{f.current&&(f.current.loop=p)},[p]),i.useEffect(()=>{x===null&&f.current&&(f.current.pause(),k(!1),$(0),I(0))},[x]);const G=E=>{if(x===E){if(!f.current)return;f.current.paused?(f.current.play().catch(()=>{}),k(!0)):(f.current.pause(),k(!1))}else S(E),setTimeout(()=>{f.current&&(f.current.play().catch(()=>{}),k(!0))},100)},J=()=>{f.current&&($(f.current.currentTime),f.current.duration&&I(f.current.duration))},a=E=>{if(!f.current||!z)return;const T=E.currentTarget.getBoundingClientRect(),ee=(E.clientX-T.left)/T.width*z;f.current.currentTime=ee,$(ee)},g=E=>{const T=E.currentTarget.getBoundingClientRect(),Z=(E.clientX-T.left)/T.width,ee=Math.max(0,Math.min(1,Z));v(ee)},w=E=>{if(f.current&&z){let T=f.current.currentTime+E;T=Math.min(Math.max(T,0),z),f.current.currentTime=T,$(T)}},C=()=>{if(x===null)return;let E;O?E=Math.floor(Math.random()*s.length):E=(x+1)%s.length,G(E)},q=()=>{if(x===null)return;let E;O?E=Math.floor(Math.random()*s.length):E=(x-1+s.length)%s.length,G(E)},Q=()=>{v(E=>E>0?0:.7)},B=()=>{N(!0),Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{N(!1)},3e3)},K=E=>{if(isNaN(E))return"0:00";const T=Math.floor(E/60),D=Math.floor(E%60);return`${T}:${D<10?"0":""}${D}`},X=x!==null?s[x]:null;return e.jsxs("div",{className:r,style:{maxWidth:`${m}px`,margin:"20px auto",background:`linear-gradient(145deg, ${o}, ${c})`,color:l,borderRadius:"24px",padding:"24px 16px",fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",userSelect:"none",backdropFilter:"blur(20px)",border:`${u}px solid ${j}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, ${t}, ${c})`,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(ve,{size:20,color:"white"})}),e.jsxs("div",{children:[e.jsx("h2",{style:{margin:0,fontSize:"1.25rem",fontWeight:"700",color:t},children:n}),e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",opacity:.7},children:[s.length," tracks"]})]})]}),e.jsx("button",{onClick:()=>H(!O),style:{background:O?t:"transparent",border:"none",borderRadius:"12px",padding:"8px",cursor:"pointer",transition:"all 0.3s ease",opacity:O?1:.6},"aria-label":"Toggle Shuffle",children:e.jsx(ft,{size:18,color:O?"white":l})})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",marginBottom:"20px",maxHeight:"240px",overflowY:"auto",paddingRight:"4px"},children:s.map((E,T)=>{const D=x===T,Z=D&&_;return e.jsxs("div",{onClick:()=>G(T),style:{display:"flex",alignItems:"center",padding:"12px 16px",borderRadius:"16px",background:D?`linear-gradient(135deg, ${t}20, ${t}10)`:"rgba(255,255,255,0.05)",border:D?`1px solid ${t}40`:"1px solid transparent",cursor:"pointer",transition:"all 0.3s ease",backdropFilter:D?"blur(20px)":"none"},children:[e.jsxs("div",{style:{width:"48px",height:"48px",borderRadius:"12px",background:E.thumbnail?`url(${E.thumbnail}) center/cover`:t,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",position:"relative",overflow:"hidden"},children:[!E.thumbnail&&e.jsx(ve,{size:20,color:"white"}),Z&&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(ee=>e.jsx("div",{style:{width:"3px",background:"white",borderRadius:"2px",animation:`equalizer 1s ease-in-out infinite ${ee*.2}s`,height:"12px"}},ee))})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:"600",fontSize:"0.95rem",color:D?t:l,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:E.title}),E.artist&&e.jsx("div",{style:{fontSize:"0.8rem",opacity:.7,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:E.artist})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[E.duration&&e.jsx("span",{style:{fontSize:"0.8rem",opacity:.6},children:E.duration}),e.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",background:D?t:"rgba(255,255,255,0.1)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease"},children:Z?e.jsx(de,{size:16,color:"white"}):e.jsx(ue,{size:16,color:"white"})})]})]},T)})}),X&&e.jsxs("div",{ref:M,style:{background:`linear-gradient(135deg, ${c}, ${o})`,borderRadius:"20px",padding:"20px",border:`1px solid ${t}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:t},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:q,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Previous Track",children:e.jsx(fe,{size:20})}),e.jsxs("button",{onClick:()=>w(-10),style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Skip back 10 seconds",children:[e.jsx(fe,{size:16}),e.jsx("span",{style:{fontSize:"0.7rem",marginLeft:"2px"},children:"10"})]}),e.jsx("button",{onClick:()=>{f.current&&(_?(f.current.pause(),k(!1)):(f.current.play().catch(()=>{}),k(!0)))},style:{...te("#fff",t),width:"60px",height:"60px",borderRadius:"50%",boxShadow:`0 8px 25px ${t}40`},"aria-label":_?"Pause":"Play",children:_?e.jsx(de,{size:24}):e.jsx(ue,{size:24})}),e.jsxs("button",{onClick:()=>w(10),style:te(l,"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(xe,{size:16})]}),e.jsx("button",{onClick:C,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":"Next Track",children:e.jsx(xe,{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:K(A)}),e.jsx("span",{children:K(z)})]}),e.jsx("div",{onClick:a,style:{height:"6px",background:"rgba(255,255,255,0.2)",borderRadius:"3px",cursor:"pointer",position:"relative",overflow:"hidden"},children:e.jsx("div",{style:{width:`${A/z*100||0}%`,height:"100%",background:`linear-gradient(90deg, ${t}, #ec4899)`,borderRadius:"3px",position:"relative"},children:e.jsx("div",{style:{position:"absolute",right:"-6px",top:"50%",transform:"translateY(-50%)",width:"12px",height:"12px",background:t,borderRadius:"50%",boxShadow:`0 2px 8px ${t}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:()=>W(!V),style:te(V?"#ec4899":l,"rgba(255,255,255,0.1)"),"aria-label":"Like",children:e.jsx(et,{size:16,fill:V?"#ec4899":"none"})}),e.jsx("button",{onClick:()=>L(!p),style:te(p?t:l,"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:[F&&e.jsx("div",{onClick:g,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:t,borderRadius:"2px"}})}),e.jsx("button",{onClick:Q,onMouseEnter:B,style:te(l,"rgba(255,255,255,0.1)"),"aria-label":R>0?"Mute":"Unmute",children:R>0?e.jsx(Ne,{size:16}):e.jsx(Se,{size:16})})]})]})]}),e.jsx("audio",{ref:f,src:X.src,autoPlay:y,loop:p,onTimeUpdate:J,onEnded:()=>{k(!1),p||C()},onLoadedMetadata:J,preload:"metadata",style:{display:"none"}})]}),e.jsx("style",{children:`
153
153
  @keyframes equalizer {
154
154
  0%, 100% { height: 4px; }
155
155
  50% { height: 12px; }
@@ -166,32 +166,32 @@ React keys must be passed directly to JSX without using spread:
166
166
  }
167
167
 
168
168
  div::-webkit-scrollbar-thumb {
169
- background: ${r};
169
+ background: ${t};
170
170
  border-radius: 2px;
171
171
  }
172
172
 
173
173
  div::-webkit-scrollbar-thumb:hover {
174
- background: ${r}dd;
174
+ background: ${t}dd;
175
175
  }
176
- `})]})}function te(n,t){return{border:"none",backgroundColor:t,color:n,cursor:"pointer",padding:"10px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",backdropFilter:"blur(10px)"}}function _e(n){var t,s,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(t=0;t<o;t++)n[t]&&(s=_e(n[t]))&&(r&&(r+=" "),r+=s)}else for(s in n)n[s]&&(r&&(r+=" "),r+=s);return r}function D(){for(var n,t,s=0,r="",o=arguments.length;s<o;s++)(n=arguments[s])&&(t=_e(n))&&(r&&(r+=" "),r+=t);return r}const ze=i.memo(({text:n,icon:t,iconPosition:s="left",primaryTheme:r=!0,primaryColor:o="#3b82f6",size:l="md",rounded:c=!0,notificationDot:u=!1,dotColor:N="#ef4444",count:g,pulse:y=!1,className:d,onClick:f})=>{const $={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-xs",lg:"px-4 py-1.5 text-sm"},T=r?"bg-[var(--primary)] text-white":"",m=r?{}:{backgroundColor:o,color:"#fff"};return e.jsxs("span",{onClick:f,style:r?void 0:m,className:D("relative inline-flex items-center justify-center gap-1 font-medium","transition-all duration-200 select-none",c?"rounded-full":"rounded-md",$[l],T,f&&"cursor-pointer hover:opacity-90",d),children:[u&&e.jsx("span",{style:r?void 0:{backgroundColor:N},className:D("absolute -top-1 -right-1 w-2 h-2 rounded-full",y&&"animate-ping",r?"bg-red-500":"")}),g!==void 0&&e.jsx("span",{style:r?void 0:{backgroundColor:N},className:D("absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 text-[10px]","flex items-center justify-center rounded-full text-white",r?"bg-red-500":""),children:g}),t&&s==="left"&&e.jsx("span",{className:"flex items-center",children:t}),n&&e.jsx("span",{children:n}),t&&s==="right"&&e.jsx("span",{className:"flex items-center",children:t})]})});ze.displayName="Badge";const Me=i.forwardRef(({children:n,iconBefore:t,iconAfter:s,loading:r=!1,loadingText:o="Loading...",fullWidth:l=!1,primaryTheme:c=!0,primaryColor:u="#3b82f6",size:N="md",disabled:g,className:y,...d},f)=>{const $={sm:"px-3 py-1.5 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-6 py-3 text-base"},T=c?"bg-[var(--primary)] text-white hover:bg-[var(--primary)]/90 focus:ring-[var(--primary)]/30":"",m=c?{}:{backgroundColor:u,color:"#fff"};return e.jsx("button",{ref:f,disabled:g||r,style:c?void 0:m,className:D("inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-offset-1",$[N],T,l&&"w-full",(g||r)&&"opacity-60 cursor-not-allowed",y),...d,children:r?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:o})]}):e.jsxs(e.Fragment,{children:[t&&e.jsx("span",{className:"flex items-center justify-center",children:t}),e.jsx("span",{children:n}),s&&e.jsx("span",{className:"flex items-center justify-center",children:s})]})})});Me.displayName="Button";const Ct=({name:n,options:t,selectedValues:s=[],onChange:r,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:N,customIcon:g,style:y,labelStyle:d,iconSize:f=20,iconCheckedBgColor:$="#2563eb",iconUncheckedBorderColor:T="#9ca3af",textColor:m="#374151",errorStyle:M,darkMode:j=!1})=>{const _=i.useRef(null),[I,R]=i.useState(null),w=b=>{if(!r||o||l)return;const h=s.includes(b)?s.filter(p=>p!==b):[...s,b];r(h)};return i.useEffect(()=>{const b=_.current;if(!b)return;const h=p=>{if(o||I===null)return;const P=I;(p.key==="ArrowDown"||p.key==="ArrowRight")&&(p.preventDefault(),R((P+1)%t.length)),(p.key==="ArrowUp"||p.key==="ArrowLeft")&&(p.preventDefault(),R((P-1+t.length)%t.length)),(p.key===" "||p.key==="Enter")&&(p.preventDefault(),w(t[P].value))};return b.addEventListener("keydown",h),()=>b.removeEventListener("keydown",h)},[I,t,s,o]),e.jsxs("div",{ref:_,role:"group","aria-disabled":o,"aria-invalid":!!u,tabIndex:0,className:D("flex flex-col gap-2",N),style:{...y},children:[t.map((b,h)=>{const p=s.includes(b.value),P=I===h;return e.jsxs("label",{className:D("flex items-center justify-between cursor-pointer select-none transition-opacity",o?"opacity-50 cursor-not-allowed":"opacity-100",P?"ring-2 ring-blue-400":""),style:{...d},onFocus:()=>R(h),children:[e.jsx("span",{style:{color:m,fontSize:14},children:b.label}),e.jsx("input",{type:"checkbox",name:n,value:b.value,checked:p,disabled:o||l,required:c,onChange:()=>w(b.value),style:{display:"none"}}),g?g(p):e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:f,height:f,borderRadius:4,border:`2px solid ${p?$:T}`,backgroundColor:p?$:"transparent",transition:"all 0.25s ease"},children:p&&e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{width:f*.6,height:f*.6},children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},b.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...M},children:u})]})},Pt=({name:n,options:t,selectedValue:s,onChange:r,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:N,style:g,labelStyle:y,iconSize:d=20,iconCheckedBgColor:f="#2563eb",iconUncheckedBorderColor:$="#9ca3af",textColor:T="#374151",errorStyle:m,darkMode:M=!1})=>{const j=i.useRef(null),[_,I]=i.useState(null);return i.useEffect(()=>{const R=j.current;if(!R)return;const w=b=>{if(o)return;const h=_??t.findIndex(p=>p.value===s)??0;if(b.key==="ArrowDown"||b.key==="ArrowRight"){b.preventDefault();const p=(h+1)%t.length;r&&r(t[p].value),I(p)}if(b.key==="ArrowUp"||b.key==="ArrowLeft"){b.preventDefault();const p=(h-1+t.length)%t.length;r&&r(t[p].value),I(p)}};return R.addEventListener("keydown",w),()=>R.removeEventListener("keydown",w)},[_,t,s,r,o]),e.jsxs("div",{ref:j,role:"radiogroup","aria-disabled":o,"aria-invalid":!!u,className:D("flex flex-col gap-2",N),style:{...g},tabIndex:0,children:[t.map((R,w)=>{const b=s===R.value,h=_===w;return e.jsxs("label",{className:D("flex items-center justify-between cursor-pointer select-none gap-2",o?"opacity-50 cursor-not-allowed":"opacity-100",h?"ring-2 ring-blue-400":""),style:{...y},children:[e.jsx("span",{style:{color:T,fontSize:14},children:R.label}),e.jsx("input",{type:"radio",name:n,value:R.value,checked:b,disabled:o||l,required:c,onChange:()=>r&&r(R.value),style:{display:"none"}}),e.jsx("span",{className:D("inline-flex items-center justify-center rounded-full transition-all"),style:{width:d,height:d,border:`2px solid ${b?f:$}`,backgroundColor:b?f:"transparent",transition:"all 0.2s ease"},children:b&&e.jsx("span",{style:{width:d/2,height:d/2,borderRadius:"50%",backgroundColor:"#fff"}})})]},R.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...m},children:u})]})},Lt=({name:n,options:t,selectedValues:s=[],onChange:r,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:N,style:g,labelStyle:y,iconSize:d=20,iconCheckedBgColor:f="#2563eb",switchBgColor:$="#d1d5db",textColor:T="#374151",errorStyle:m,darkMode:M=!1})=>{const j=i.useRef(null),[_,I]=i.useState(null),R=w=>{if(!r||o||l)return;const b=s.includes(w)?s.filter(h=>h!==w):[...s,w];r(b)};return i.useEffect(()=>{const w=j.current;if(!w)return;const b=h=>{if(o||_===null)return;const p=_;if(h.key==="ArrowRight"||h.key==="ArrowDown"){h.preventDefault();const P=(p+1)%t.length;I(P)}if(h.key==="ArrowLeft"||h.key==="ArrowUp"){h.preventDefault();const P=(p-1+t.length)%t.length;I(P)}(h.key===" "||h.key==="Enter")&&(h.preventDefault(),R(t[p].value))};return w.addEventListener("keydown",b),()=>w.removeEventListener("keydown",b)},[_,t,s,o]),e.jsxs("div",{ref:j,role:"group","aria-disabled":o,"aria-invalid":!!u,tabIndex:0,className:D("flex flex-col gap-2",N),style:{...g},children:[t.map((w,b)=>{const h=s.includes(w.value),p=_===b;return e.jsxs("label",{className:D("flex items-center justify-between cursor-pointer select-none transition-opacity",o?"opacity-50 cursor-not-allowed":"opacity-100",p?"ring-2 ring-blue-400":""),style:{...y},onFocus:()=>I(b),children:[e.jsx("span",{style:{color:T,fontSize:14},children:w.label}),e.jsx("input",{type:"checkbox",name:n,value:w.value,checked:h,disabled:o||l,required:c,onChange:()=>R(w.value),style:{display:"none"}}),e.jsx("span",{className:D("relative inline-flex rounded-full transition-colors"),style:{width:d*2,height:d*1.1,backgroundColor:h?f:$,transition:"background-color 0.25s ease",borderRadius:9999},children:e.jsx("span",{style:{position:"absolute",top:"50%",left:h?`calc(100% - ${d-4}px - 2px)`:"2px",transform:"translateY(-50%)",width:d-4,height:d-4,borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.3)",transition:"left 0.25s ease"}})})]},w.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...m},children:u})]})},Dt={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl",full:"w-full"},Ot={none:"p-0",sm:"p-4",md:"p-6",lg:"p-8",xl:"p-12"},Ft=({size:n="lg",padding:t="md",center:s=!0,className:r="",children:o})=>{const l=D("w-full box-border",Dt[n],Ot[t],s&&"mx-auto",r);return e.jsx("div",{className:l,children:o})},ne=(n,t)=>t==null?"":typeof t!="object"?`${n}-${t}`:Object.entries(t).map(([s,r])=>`${s}:${n}-${r}`).join(" "),Bt=({direction:n={sm:"column",md:"row"},align:t="center",justify:s="between",wrap:r="wrap",gap:o,padding:l,margin:c,className:u,children:N})=>{const g=D("flex",ne("flex",n),ne("items",t),ne("justify",s),ne("flex",r),o?ne("gap",o):"",l?ne("p",l):"",c?ne("m",c):"",u);return e.jsx("div",{className:g,children:N})},je=(n,t)=>t==null?"":typeof t!="object"?`${n}-${t}`:Object.entries(t).map(([s,r])=>`${s}:${n}-${r}`).join(" "),me=({direction:n={sm:"vertical",md:"horizontal"},gap:t=4,align:s="center",justify:r="start",wrap:o="nowrap",className:l,children:c})=>{const u=D("flex",je("flex",n),je("gap",t),s!=="stretch"?`items-${s}`:"items-stretch",r!=="start"?`justify-${r}`:"justify-start",o!=="nowrap"?`flex-${o}`:"flex-nowrap",l);return e.jsx("div",{className:u,children:c})},Vt=n=>e.jsx(me,{direction:"horizontal",...n}),Yt=n=>e.jsx(me,{direction:"vertical",...n}),de=(n,t)=>t==null?"":typeof t!="object"?`${n}-${t}`:Object.entries(t).map(([s,r])=>`${s}:${n}-${r}`).join(" "),Ht=({columns:n={sm:1,md:2,lg:3},gap:t=4,padding:s=4,alignItems:r="stretch",justifyItems:o="stretch",className:l,children:c})=>{const u=D("grid",de("grid-cols",n),de("gap",t),de("p",s),r!=="stretch"?`items-${r}`:"items-stretch",o!=="stretch"?`justify-items-${o}`:"justify-items-stretch",l);return e.jsx("div",{className:u,children:c})},Ut=({label:n="Open Drawer",icon:t,iconPosition:s="left",onClick:r,className:o=""})=>e.jsxs("button",{type:"button",onClick:r,className:`inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md font-medium text-white bg-blue-600 hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400 ${o}`,children:[t&&s==="left"&&t,n,t&&s==="right"&&t]}),Wt=({open:n,onClose:t,position:s="right",size:r="320px",children:o,showCloseButton:l=!0,className:c="",overlayClassName:u="",closeButtonClassName:N=""})=>{const[g,y]=i.useState(n);i.useEffect(()=>{n?y(!0):setTimeout(()=>y(!1),300)},[n]);const d=i.useMemo(()=>{if(n)return"translate(0,0)";switch(s){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)"}},[n,s]);return!g&&!n?null:e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:t,className:`fixed inset-0 bg-black/50 transition-opacity ${n?"opacity-100":"opacity-0"} ${u}`}),e.jsxs("div",{className:`fixed bg-white shadow-lg flex flex-col transition-transform duration-300 ${c}`,style:{width:s==="left"||s==="right"?r:"100%",height:s==="top"||s==="bottom"?r:"100%",top:(s==="bottom"||s==="top")&&s==="bottom"?"auto":0,bottom:s==="bottom"?0:"auto",left:s==="left"?0:s==="right"?"auto":0,right:s==="right"?0:s==="left"?"auto":0,transform:d},children:[l&&e.jsx("button",{onClick:t,className:`absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${N}`,"aria-label":"Close drawer",children:e.jsx(he,{size:20})}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:o})]})]})},Ae=i.forwardRef((n,t)=>{const{label:s,name:r="",value:o,defaultValue:l,onChange:c,options:u=[],placeholder:N="Select an option",required:g,disabled:y,error:d,success:f,helperText:$,labelIcon:T,prefixIcon:m,variant:M="dark",primaryTheme:j=!0,primaryColor:_="#3b82f6",containerClassName:I="",labelClassName:R="",triggerClassName:w="",dropdownClassName:b="",optionClassName:h="",className:p=""}=n,P=i.useRef(null);i.useImperativeHandle(t,()=>P.current);const[L,F]=i.useState(!1),[Y,W]=i.useState(l||""),B=o!==void 0?o:Y,S=u.find(k=>k.value===B);i.useEffect(()=>{const k=C=>{P.current&&!P.current.contains(C.target)&&F(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]);const x=k=>{W(k.value),c?.(r,k.value),F(!1)},A={dark:{bg:"bg-zinc-900",text:"text-white",border:"border-zinc-800",dropdown:"bg-black border-zinc-800",option:"text-zinc-300 hover:bg-zinc-800"},light:{bg:"bg-white",text:"text-gray-900",border:"border-gray-300",dropdown:"bg-white border-gray-200",option:"text-gray-700 hover:bg-gray-100"}}[M],H=j?{}:{color:_},G=j?{}:{borderColor:_},J=j?{}:{backgroundColor:`${_}20`},a=d?"border-rose-500":f?"border-emerald-500":A.border,v=m?"pl-12 pr-10":"px-4";return e.jsxs("div",{ref:P,className:`w-full space-y-1 ${I} ${p}`,children:[s&&e.jsxs("label",{className:`flex items-center gap-2 text-[13px] font-medium ${R}`,children:[T&&e.jsx(T,{className:j?"w-4 h-4 text-[var(--primary)]":"w-4 h-4",style:j?void 0:H}),s,g&&e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative group",children:[m&&e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 z-10",children:e.jsx(m,{className:j?"w-4 h-4 text-zinc-500 group-focus-within:text-[var(--primary)]":"w-4 h-4 text-zinc-500",style:j?void 0:H})}),e.jsxs("button",{type:"button",disabled:y,onClick:()=>F(k=>!k),style:j?void 0:G,className:`
176
+ `})]})}function te(s,r){return{border:"none",backgroundColor:r,color:s,cursor:"pointer",padding:"10px",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease",backdropFilter:"blur(10px)"}}function Ee(s){var r,n,t="";if(typeof s=="string"||typeof s=="number")t+=s;else if(typeof s=="object")if(Array.isArray(s)){var o=s.length;for(r=0;r<o;r++)s[r]&&(n=Ee(s[r]))&&(t&&(t+=" "),t+=n)}else for(n in s)s[n]&&(t&&(t+=" "),t+=n);return t}function P(){for(var s,r,n=0,t="",o=arguments.length;n<o;n++)(s=arguments[n])&&(r=Ee(s))&&(t&&(t+=" "),t+=r);return t}const _e=i.memo(({text:s,icon:r,iconPosition:n="left",primaryTheme:t=!0,primaryColor:o="#3b82f6",size:l="md",rounded:c=!0,notificationDot:u=!1,dotColor:j="#ef4444",count:m,pulse:y=!1,className:d,onClick:x})=>{const S={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-xs",lg:"px-4 py-1.5 text-sm"},_=t?"bg-[var(--primary)] text-white":"",k=t?{}:{backgroundColor:o,color:"#fff"};return e.jsxs("span",{onClick:x,style:t?void 0:k,className:P("relative inline-flex items-center justify-center gap-1 font-medium","transition-all duration-200 select-none",c?"rounded-full":"rounded-md",S[l],_,x&&"cursor-pointer hover:opacity-90",d),children:[u&&e.jsx("span",{style:t?void 0:{backgroundColor:j},className:P("absolute -top-1 -right-1 w-2 h-2 rounded-full",y&&"animate-ping",t?"bg-red-500":"")}),m!==void 0&&e.jsx("span",{style:t?void 0:{backgroundColor:j},className:P("absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 text-[10px]","flex items-center justify-center rounded-full text-white",t?"bg-red-500":""),children:m}),r&&n==="left"&&e.jsx("span",{className:"flex items-center",children:r}),s&&e.jsx("span",{children:s}),r&&n==="right"&&e.jsx("span",{className:"flex items-center",children:r})]})});_e.displayName="Badge";const ze=i.forwardRef(({children:s,iconBefore:r,iconAfter:n,loading:t=!1,loadingText:o="Loading...",fullWidth:l=!1,primaryTheme:c=!0,primaryColor:u="#3b82f6",size:j="md",disabled:m,className:y,...d},x)=>{const S={sm:"px-3 py-1.5 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-6 py-3 text-base"},_=c?"bg-[var(--primary)] text-white hover:bg-[var(--primary)]/90 focus:ring-[var(--primary)]/30":"",k=c?{}:{backgroundColor:u,color:"#fff"};return e.jsx("button",{ref:x,disabled:m||t,style:c?void 0:k,className:P("inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-offset-1",S[j],_,l&&"w-full",(m||t)&&"opacity-60 cursor-not-allowed",y),...d,children:t?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:o})]}):e.jsxs(e.Fragment,{children:[r&&e.jsx("span",{className:"flex items-center justify-center",children:r}),e.jsx("span",{children:s}),n&&e.jsx("span",{className:"flex items-center justify-center",children:n})]})})});ze.displayName="Button";const It=({name:s,options:r,selectedValues:n=[],onChange:t,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:j,customIcon:m,style:y,labelStyle:d,iconSize:x=20,iconCheckedBgColor:S="#2563eb",iconUncheckedBorderColor:_="#9ca3af",textColor:k="#374151",errorStyle:A,darkMode:$=!1})=>{const z=i.useRef(null),[I,R]=i.useState(null),v=b=>{if(!t||o||l)return;const h=n.includes(b)?n.filter(p=>p!==b):[...n,b];t(h)};return i.useEffect(()=>{const b=z.current;if(!b)return;const h=p=>{if(o||I===null)return;const L=I;(p.key==="ArrowDown"||p.key==="ArrowRight")&&(p.preventDefault(),R((L+1)%r.length)),(p.key==="ArrowUp"||p.key==="ArrowLeft")&&(p.preventDefault(),R((L-1+r.length)%r.length)),(p.key===" "||p.key==="Enter")&&(p.preventDefault(),v(r[L].value))};return b.addEventListener("keydown",h),()=>b.removeEventListener("keydown",h)},[I,r,n,o]),e.jsxs("div",{ref:z,role:"group","aria-disabled":o,"aria-invalid":!!u,tabIndex:0,className:P("flex flex-col gap-2",j),style:{...y},children:[r.map((b,h)=>{const p=n.includes(b.value),L=I===h;return e.jsxs("label",{className:P("flex items-center justify-between cursor-pointer select-none transition-opacity",o?"opacity-50 cursor-not-allowed":"opacity-100",L?"ring-2 ring-blue-400":""),style:{...d},onFocus:()=>R(h),children:[e.jsx("span",{style:{color:k,fontSize:14},children:b.label}),e.jsx("input",{type:"checkbox",name:s,value:b.value,checked:p,disabled:o||l,required:c,onChange:()=>v(b.value),style:{display:"none"}}),m?m(p):e.jsx("span",{style:{display:"inline-flex",justifyContent:"center",alignItems:"center",width:x,height:x,borderRadius:4,border:`2px solid ${p?S:_}`,backgroundColor:p?S:"transparent",transition:"all 0.25s ease"},children:p&&e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{width:x*.6,height:x*.6},children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})})]},b.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...A},children:u})]})},Ct=({name:s,options:r,selectedValue:n,onChange:t,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:j,style:m,labelStyle:y,iconSize:d=20,iconCheckedBgColor:x="#2563eb",iconUncheckedBorderColor:S="#9ca3af",textColor:_="#374151",errorStyle:k,darkMode:A=!1})=>{const $=i.useRef(null),[z,I]=i.useState(null);return i.useEffect(()=>{const R=$.current;if(!R)return;const v=b=>{if(o)return;const h=z??r.findIndex(p=>p.value===n)??0;if(b.key==="ArrowDown"||b.key==="ArrowRight"){b.preventDefault();const p=(h+1)%r.length;t&&t(r[p].value),I(p)}if(b.key==="ArrowUp"||b.key==="ArrowLeft"){b.preventDefault();const p=(h-1+r.length)%r.length;t&&t(r[p].value),I(p)}};return R.addEventListener("keydown",v),()=>R.removeEventListener("keydown",v)},[z,r,n,t,o]),e.jsxs("div",{ref:$,role:"radiogroup","aria-disabled":o,"aria-invalid":!!u,className:P("flex flex-col gap-2",j),style:{...m},tabIndex:0,children:[r.map((R,v)=>{const b=n===R.value,h=z===v;return e.jsxs("label",{className:P("flex items-center justify-between cursor-pointer select-none gap-2",o?"opacity-50 cursor-not-allowed":"opacity-100",h?"ring-2 ring-blue-400":""),style:{...y},children:[e.jsx("span",{style:{color:_,fontSize:14},children:R.label}),e.jsx("input",{type:"radio",name:s,value:R.value,checked:b,disabled:o||l,required:c,onChange:()=>t&&t(R.value),style:{display:"none"}}),e.jsx("span",{className:P("inline-flex items-center justify-center rounded-full transition-all"),style:{width:d,height:d,border:`2px solid ${b?x:S}`,backgroundColor:b?x:"transparent",transition:"all 0.2s ease"},children:b&&e.jsx("span",{style:{width:d/2,height:d/2,borderRadius:"50%",backgroundColor:"#fff"}})})]},R.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...k},children:u})]})},Pt=({name:s,options:r,selectedValues:n=[],onChange:t,disabled:o=!1,readOnly:l=!1,required:c=!1,error:u,className:j,style:m,labelStyle:y,iconSize:d=20,iconCheckedBgColor:x="#2563eb",switchBgColor:S="#d1d5db",textColor:_="#374151",errorStyle:k,darkMode:A=!1})=>{const $=i.useRef(null),[z,I]=i.useState(null),R=v=>{if(!t||o||l)return;const b=n.includes(v)?n.filter(h=>h!==v):[...n,v];t(b)};return i.useEffect(()=>{const v=$.current;if(!v)return;const b=h=>{if(o||z===null)return;const p=z;if(h.key==="ArrowRight"||h.key==="ArrowDown"){h.preventDefault();const L=(p+1)%r.length;I(L)}if(h.key==="ArrowLeft"||h.key==="ArrowUp"){h.preventDefault();const L=(p-1+r.length)%r.length;I(L)}(h.key===" "||h.key==="Enter")&&(h.preventDefault(),R(r[p].value))};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)},[z,r,n,o]),e.jsxs("div",{ref:$,role:"group","aria-disabled":o,"aria-invalid":!!u,tabIndex:0,className:P("flex flex-col gap-2",j),style:{...m},children:[r.map((v,b)=>{const h=n.includes(v.value),p=z===b;return e.jsxs("label",{className:P("flex items-center justify-between cursor-pointer select-none transition-opacity",o?"opacity-50 cursor-not-allowed":"opacity-100",p?"ring-2 ring-blue-400":""),style:{...y},onFocus:()=>I(b),children:[e.jsx("span",{style:{color:_,fontSize:14},children:v.label}),e.jsx("input",{type:"checkbox",name:s,value:v.value,checked:h,disabled:o||l,required:c,onChange:()=>R(v.value),style:{display:"none"}}),e.jsx("span",{className:P("relative inline-flex rounded-full transition-colors"),style:{width:d*2,height:d*1.1,backgroundColor:h?x:S,transition:"background-color 0.25s ease",borderRadius:9999},children:e.jsx("span",{style:{position:"absolute",top:"50%",left:h?`calc(100% - ${d-4}px - 2px)`:"2px",transform:"translateY(-50%)",width:d-4,height:d-4,borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0 1px 2px rgba(0,0,0,0.3)",transition:"left 0.25s ease"}})})]},v.value)}),u&&e.jsx("p",{role:"alert",style:{color:"#dc2626",fontSize:12,marginTop:4,...k},children:u})]})},Lt={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl",full:"w-full"},Dt={none:"p-0",sm:"p-4",md:"p-6",lg:"p-8",xl:"p-12"},Ot=({size:s="lg",padding:r="md",center:n=!0,className:t="",children:o})=>{const l=P("w-full box-border",Lt[s],Dt[r],n&&"mx-auto",t);return e.jsx("div",{className:l,children:o})},se=(s,r)=>r==null?"":typeof r!="object"?`${s}-${r}`:Object.entries(r).map(([n,t])=>`${n}:${s}-${t}`).join(" "),Ft=({direction:s={sm:"column",md:"row"},align:r="center",justify:n="between",wrap:t="wrap",gap:o,padding:l,margin:c,className:u,children:j})=>{const m=P("flex",se("flex",s),se("items",r),se("justify",n),se("flex",t),o?se("gap",o):"",l?se("p",l):"",c?se("m",c):"",u);return e.jsx("div",{className:m,children:j})},we=(s,r)=>r==null?"":typeof r!="object"?`${s}-${r}`:Object.entries(r).map(([n,t])=>`${n}:${s}-${t}`).join(" "),he=({direction:s={sm:"vertical",md:"horizontal"},gap:r=4,align:n="center",justify:t="start",wrap:o="nowrap",className:l,children:c})=>{const u=P("flex",we("flex",s),we("gap",r),n!=="stretch"?`items-${n}`:"items-stretch",t!=="start"?`justify-${t}`:"justify-start",o!=="nowrap"?`flex-${o}`:"flex-nowrap",l);return e.jsx("div",{className:u,children:c})},Bt=s=>e.jsx(he,{direction:"horizontal",...s}),Vt=s=>e.jsx(he,{direction:"vertical",...s}),ce=(s,r)=>r==null?"":typeof r!="object"?`${s}-${r}`:Object.entries(r).map(([n,t])=>`${n}:${s}-${t}`).join(" "),Yt=({columns:s={sm:1,md:2,lg:3},gap:r=4,padding:n=4,alignItems:t="stretch",justifyItems:o="stretch",className:l,children:c})=>{const u=P("grid",ce("grid-cols",s),ce("gap",r),ce("p",n),t!=="stretch"?`items-${t}`:"items-stretch",o!=="stretch"?`justify-items-${o}`:"justify-items-stretch",l);return e.jsx("div",{className:u,children:c})},Ut=({label:s="Open Drawer",icon:r,iconPosition:n="left",onClick:t,className:o=""})=>e.jsxs("button",{type:"button",onClick:t,className:`inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md font-medium text-white bg-blue-600 hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400 ${o}`,children:[r&&n==="left"&&r,s,r&&n==="right"&&r]}),Wt=({open:s,onClose:r,position:n="right",size:t="320px",children:o,showCloseButton:l=!0,className:c="",overlayClassName:u="",closeButtonClassName:j=""})=>{const[m,y]=i.useState(s);i.useEffect(()=>{s?y(!0):setTimeout(()=>y(!1),300)},[s]);const d=i.useMemo(()=>{if(s)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)"}},[s,n]);return!m&&!s?null:e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:r,className:`fixed inset-0 bg-black/50 transition-opacity ${s?"opacity-100":"opacity-0"} ${u}`}),e.jsxs("div",{className:`fixed bg-white shadow-lg flex flex-col transition-transform duration-300 ${c}`,style:{width:n==="left"||n==="right"?t:"100%",height:n==="top"||n==="bottom"?t:"100%",top:(n==="bottom"||n==="top")&&n==="bottom"?"auto":0,bottom:n==="bottom"?0:"auto",left:n==="left"?0:n==="right"?"auto":0,right:n==="right"?0:n==="left"?"auto":0,transform:d},children:[l&&e.jsx("button",{onClick:r,className:`absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${j}`,"aria-label":"Close drawer",children:e.jsx(pe,{size:20})}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:o})]})]})},Me=i.forwardRef((s,r)=>{const{label:n,name:t="",value:o,defaultValue:l,onChange:c,options:u=[],placeholder:j="Select an option",required:m,disabled:y,error:d,success:x,helperText:S,labelIcon:_,prefixIcon:k,variant:A="dark",primaryTheme:$=!0,primaryColor:z="#3b82f6",containerClassName:I="",labelClassName:R="",triggerClassName:v="",dropdownClassName:b="",optionClassName:h="",className:p=""}=s,L=i.useRef(null);i.useImperativeHandle(r,()=>L.current);const[O,H]=i.useState(!1),[V,W]=i.useState(l||""),F=o!==void 0?o:V,N=u.find(w=>w.value===F);i.useEffect(()=>{const w=C=>{L.current&&!L.current.contains(C.target)&&H(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const f=w=>{W(w.value),c?.(t,w.value),H(!1)},M={dark:{bg:"bg-zinc-900",text:"text-white",border:"border-zinc-800",dropdown:"bg-black border-zinc-800",option:"text-zinc-300 hover:bg-zinc-800"},light:{bg:"bg-white",text:"text-gray-900",border:"border-gray-300",dropdown:"bg-white border-gray-200",option:"text-gray-700 hover:bg-gray-100"}}[A],Y=$?{}:{color:z},G=$?{}:{borderColor:z},J=$?{}:{backgroundColor:`${z}20`},a=d?"border-rose-500":x?"border-emerald-500":M.border,g=k?"pl-12 pr-10":"px-4";return e.jsxs("div",{ref:L,className:`w-full space-y-1 ${I} ${p}`,children:[n&&e.jsxs("label",{className:`flex items-center gap-2 text-[13px] font-medium ${R}`,children:[_&&e.jsx(_,{className:$?"w-4 h-4 text-[var(--primary)]":"w-4 h-4",style:$?void 0:Y}),n,m&&e.jsx("span",{className:"text-rose-500",children:"*"})]}),e.jsxs("div",{className:"relative group",children:[k&&e.jsx("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 z-10",children:e.jsx(k,{className:$?"w-4 h-4 text-zinc-500 group-focus-within:text-[var(--primary)]":"w-4 h-4 text-zinc-500",style:$?void 0:Y})}),e.jsxs("button",{type:"button",disabled:y,onClick:()=>H(w=>!w),style:$?void 0:G,className:`
177
177
  w-full py-2.5 rounded-lg text-left text-sm
178
178
  border transition-all duration-200
179
- ${A.bg} ${A.text}
180
- ${v}
179
+ ${M.bg} ${M.text}
180
+ ${g}
181
181
  ${a}
182
182
  focus:ring-2
183
- ${j?"focus:ring-[var(--primary)]/30 focus:border-[var(--primary)]":""}
183
+ ${$?"focus:ring-[var(--primary)]/30 focus:border-[var(--primary)]":""}
184
184
  disabled:opacity-50 disabled:cursor-not-allowed
185
- ${w}
186
- `,children:[e.jsx("span",{className:S?A.text:"text-zinc-500",children:S?S.label:N}),e.jsx($e,{className:`absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 transition-transform ${L?"rotate-180":""} text-zinc-400`})]}),L&&e.jsx("div",{className:`
185
+ ${v}
186
+ `,children:[e.jsx("span",{className:N?M.text:"text-zinc-500",children:N?N.label:j}),e.jsx(ke,{className:`absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 transition-transform ${O?"rotate-180":""} text-zinc-400`})]}),O&&e.jsx("div",{className:`
187
187
  absolute z-50 mt-2 w-full rounded-xl border shadow-xl overflow-hidden
188
- ${A.dropdown}
188
+ ${M.dropdown}
189
189
  ${b}
190
- `,children:e.jsx("ul",{className:"max-h-60 overflow-y-auto",children:u.map(k=>{const C=B===k.value;return e.jsxs("li",{onClick:()=>x(k),style:!j&&C?J:void 0,className:`
190
+ `,children:e.jsx("ul",{className:"max-h-60 overflow-y-auto",children:u.map(w=>{const C=F===w.value;return e.jsxs("li",{onClick:()=>f(w),style:!$&&C?J:void 0,className:`
191
191
  px-4 py-3 cursor-pointer text-sm flex items-center gap-2
192
- ${C?j?"bg-[var(--primary)]/15 text-[var(--primary)]":"":A.option}
192
+ ${C?$?"bg-[var(--primary)]/15 text-[var(--primary)]":"":M.option}
193
193
  ${h}
194
- `,children:[k.icon&&e.jsx("span",{children:k.icon}),k.label]},k.value)})})})]}),($||d)&&e.jsx("p",{className:`text-xs ${d?"text-rose-500":f?"text-emerald-500":"text-zinc-500"}`,children:typeof d=="string"?d:$})]})});Ae.displayName="Dropdown";const qt=i.forwardRef((n,t)=>{const{label:s,name:r="",type:o="text",placeholder:l="",value:c,defaultValue:u,onChange:N,required:g,disabled:y,readOnly:d,error:f,success:$,helperText:T,icon:m,prefix:M,prefixIcon:j,suffixIcon:_,min:I,max:R,step:w,rows:b=4,primaryTheme:h=!0,primaryColor:p="#3b82f6",className:P=""}=n,L=i.useRef(null);i.useImperativeHandle(t,()=>L.current);const[F,Y]=i.useState(u||""),[W,B]=i.useState(!1),S=!!j,x=!!M,A=S||x,H=c!==void 0?c:F,G=q=>{const Q=q.target.value;Y(Q),N?.(r,Q)},J=q=>{o==="number"&&q.key==="-"&&q.preventDefault()},a=()=>A?S&&x?"pl-20 pr-4":x?"pl-14 pr-4":S?"pl-10 pr-4":"px-4":"px-4",v=h?{}:{borderColor:p,boxShadow:`0 0 0 1px ${p}`},k=h?{}:{color:p},C=f?"border-red-500":$?"border-emerald-500":"border-zinc-300 dark:border-zinc-800";return e.jsxs("div",{className:`w-full space-y-1 ${P}`,children:[s&&e.jsxs("label",{className:"flex items-center gap-2 text-[12px] font-medium text-gray-700 dark:text-zinc-100",children:[m&&e.jsx(m,{size:16,className:h?"text-[var(--primary)]":"",style:h?void 0:k}),s,g&&e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[A&&e.jsxs("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 gap-2 text-sm text-zinc-400 pointer-events-none",children:[j&&e.jsx(j,{size:14}),x&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium text-zinc-600 dark:text-zinc-200",children:M}),e.jsx("span",{className:"h-4 w-px bg-zinc-300 dark:bg-zinc-700"})]})]}),o==="textarea"?e.jsx("textarea",{ref:L,name:r,value:H,onChange:G,placeholder:l,required:g,disabled:y,readOnly:d,rows:b,style:h?void 0:v,className:`
194
+ `,children:[w.icon&&e.jsx("span",{children:w.icon}),w.label]},w.value)})})})]}),(S||d)&&e.jsx("p",{className:`text-xs ${d?"text-rose-500":x?"text-emerald-500":"text-zinc-500"}`,children:typeof d=="string"?d:S})]})});Me.displayName="Dropdown";const Ht=i.forwardRef((s,r)=>{const{label:n,name:t="",type:o="text",placeholder:l="",value:c,defaultValue:u,onChange:j,required:m,disabled:y,readOnly:d,error:x,success:S,helperText:_,icon:k,prefix:A,prefixIcon:$,suffixIcon:z,min:I,max:R,step:v,rows:b=4,primaryTheme:h=!0,primaryColor:p="#3b82f6",className:L=""}=s,O=i.useRef(null);i.useImperativeHandle(r,()=>O.current);const[H,V]=i.useState(u||""),[W,F]=i.useState(!1),N=!!$,f=!!A,M=N||f,Y=c!==void 0?c:H,G=q=>{const Q=q.target.value;V(Q),j?.(t,Q)},J=q=>{o==="number"&&q.key==="-"&&q.preventDefault()},a=()=>M?N&&f?"pl-20 pr-4":f?"pl-14 pr-4":N?"pl-10 pr-4":"px-4":"px-4",g=h?{}:{borderColor:p,boxShadow:`0 0 0 1px ${p}`},w=h?{}:{color:p},C=x?"border-red-500":S?"border-emerald-500":"border-zinc-300 dark:border-zinc-800";return e.jsxs("div",{className:`w-full space-y-1 ${L}`,children:[n&&e.jsxs("label",{className:"flex items-center gap-2 text-[12px] font-medium text-gray-700 dark:text-zinc-100",children:[k&&e.jsx(k,{size:16,className:h?"text-[var(--primary)]":"",style:h?void 0:w}),n,m&&e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[M&&e.jsxs("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 gap-2 text-sm text-zinc-400 pointer-events-none",children:[$&&e.jsx($,{size:14}),f&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"font-medium text-zinc-600 dark:text-zinc-200",children:A}),e.jsx("span",{className:"h-4 w-px bg-zinc-300 dark:bg-zinc-700"})]})]}),o==="textarea"?e.jsx("textarea",{ref:O,name:t,value:Y,onChange:G,placeholder:l,required:m,disabled:y,readOnly:d,rows:b,style:h?void 0:g,className:`
195
195
  w-full rounded-lg text-sm
196
196
  bg-white dark:bg-zinc-900 border
197
197
  text-gray-900 dark:text-white
@@ -201,7 +201,7 @@ React keys must be passed directly to JSX without using spread:
201
201
  ${h&&"focus:ring-[var(--primary)] focus:border-[var(--primary)]"}
202
202
  ${a()}
203
203
  ${C}
204
- `}):e.jsx("input",{ref:L,type:o==="password"?W?"text":"password":o,name:r,value:H,onChange:G,onKeyDown:J,placeholder:l,required:g,disabled:y,readOnly:d,min:o==="number"?I??0:void 0,max:R,step:w,style:h?void 0:v,className:`
204
+ `}):e.jsx("input",{ref:O,type:o==="password"?W?"text":"password":o,name:t,value:Y,onChange:G,onKeyDown:J,placeholder:l,required:m,disabled:y,readOnly:d,min:o==="number"?I??0:void 0,max:R,step:v,style:h?void 0:g,className:`
205
205
  w-full rounded-lg text-sm
206
206
  bg-white dark:bg-zinc-900 border
207
207
  text-gray-900 dark:text-white
@@ -212,13 +212,13 @@ React keys must be passed directly to JSX without using spread:
212
212
  ${h&&"focus:ring-[var(--primary)] focus:border-[var(--primary)]"}
213
213
  ${a()}
214
214
  ${C}
215
- `}),o==="password"&&e.jsx("button",{type:"button",onClick:()=>B(!W),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400",children:W?e.jsx(Ke,{size:18}):e.jsx(Qe,{size:18})}),_&&o!=="password"&&e.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400",children:_})]}),(T||f)&&e.jsx("p",{className:`text-xs ${f?"text-red-500":$?"text-emerald-500":"text-zinc-500"}`,children:f&&typeof f=="string"?f:T})]})}),Gt=({src:n,alt:t="Image",title:s,width:r="w-full",height:o="h-auto",rounded:l="rounded-lg",borderColor:c="transparent",borderWidth:u="0",shadow:N=!1,opacity:g=1,objectFit:y="cover",overlayText:d,overlayColor:f="rgba(0,0,0,0.5)",svgIcon:$,responsive:T=!1,p:m,m:M,hoverScale:j=1.05,hoverRotate:_=0,hoverOpacity:I,hoverShadow:R=!1,transitionDuration:w="300ms",overflow:b="hidden",className:h="",style:p,onClick:P,onLoad:L,onError:F})=>{const Y=i.useMemo(()=>["relative inline-block transition-all",N?"shadow-md":"",l,m??"",M??"",T?"w-full h-auto":"",h].join(" "),[N,l,m,M,T,h]),W=i.useMemo(()=>({width:typeof r=="number"?r:void 0,height:typeof o=="number"?o:void 0,objectFit:y,opacity:g,borderColor:c,borderWidth:u,transition:`all ${w} ease`,...p}),[r,o,y,g,c,u,w,p]),B=i.useMemo(()=>{switch(b){case"x":return{overflowX:"hidden"};case"y":return{overflowY:"hidden"};default:return{overflow:b}}},[b]),S=A=>{I!==void 0&&(A.currentTarget.style.opacity=I.toString()),A.currentTarget.style.transform=`scale(${j}) rotate(${_}deg)`,R&&(A.currentTarget.style.boxShadow="0 8px 20px rgba(0,0,0,0.3)")},x=A=>{A.currentTarget.style.opacity=g.toString(),A.currentTarget.style.transform="scale(1) rotate(0deg)",R&&(A.currentTarget.style.boxShadow="")};return e.jsxs("div",{role:"img","aria-label":t,title:s||t,onClick:P,className:Y,style:{position:"relative",cursor:P?"pointer":"default",...B},children:[$?e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:$}):e.jsx("img",{src:n,alt:t,title:s||t,loading:"lazy",style:W,className:"block",onLoad:L,onError:F,onMouseEnter:S,onMouseLeave:x}),d&&e.jsx("div",{style:{backgroundColor:f},className:"absolute inset-0 flex items-center justify-center text-white font-bold text-center p-4",children:d})]})},Ie=({text:n,icon:t,onClick:s,subItems:r,isInline:o,isOrdered:l,primaryTheme:c=!0,primaryColor:u="#3b82f6",itemClassName:N,bulletClassName:g})=>{const y=c?{}:{color:u},d=c?{}:{backgroundColor:u};return e.jsxs("li",{className:D(!o&&"mb-3"),children:[e.jsxs("div",{onClick:s,style:c?void 0:y,className:D("flex items-center gap-2 text-sm text-zinc-800 dark:text-zinc-200 transition-all",s&&(c?"cursor-pointer hover:text-[var(--primary)]":"cursor-pointer"),N),children:[t?e.jsx("span",{className:"text-base",children:t}):!o&&!l&&e.jsx("span",{style:c?void 0:d,className:D("w-2 h-2 rounded-full",c&&"bg-[var(--primary)]",g)}),e.jsx("span",{children:n})]}),r&&r.length>0&&e.jsx("ul",{className:D("pl-5 mt-2 space-y-2",l?"list-decimal":"list-none"),children:r.map((f,$)=>e.jsx(Ie,{...f,isInline:!1,isOrdered:l,primaryTheme:c,primaryColor:u,itemClassName:N,bulletClassName:g},$))})]})},Xt=({title:n,titleIcon:t,items:s,type:r="unordered",primaryTheme:o=!0,primaryColor:l="#3b82f6",className:c,itemClassName:u,titleClassName:N,bulletClassName:g})=>{const y=r==="ordered",d=r==="inline",f=y?"ol":"ul";return e.jsxs("div",{className:D("bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl p-4",c),children:[n&&e.jsxs("div",{className:D("flex items-center gap-2 mb-3 text-base font-semibold text-zinc-900 dark:text-white",N),children:[t&&e.jsx("span",{children:t}),e.jsx("span",{children:n})]}),e.jsx(f,{className:D(d?"flex flex-wrap gap-4":y?"list-decimal pl-5 space-y-2":"list-none p-0"),children:s.map(($,T)=>e.jsx(Ie,{...$,isInline:d,isOrdered:y,primaryTheme:o,primaryColor:l,itemClassName:u,bulletClassName:g},T))})]})},Jt=({isOpen:n,onClose:t,children:s,title:r,icon:o,ariaLabel:l,className:c,overlayClassName:u,contentClassName:N,closeButtonClassName:g,disableOverlayClose:y=!1,darkMode:d=!1,transitionDuration:f=200})=>{const $=i.useRef(null);i.useEffect(()=>{const m=M=>{M.key==="Escape"&&t()};return n&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[n,t]),i.useEffect(()=>{if(n){const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}}},[n]);const T=i.useCallback(()=>{y||t()},[y,t]);return n?e.jsx("div",{role:"dialog","aria-modal":"true","aria-label":l||r||"Modal",className:D("fixed inset-0 flex items-center justify-center z-50 transition-opacity",d?"bg-black/80":"bg-black/60",u),style:{transitionDuration:`${f}ms`},onClick:T,children:e.jsxs("div",{ref:$,className:D("relative w-[90vw] max-w-2xl max-h-[90vh] overflow-y-auto p-6 rounded-lg shadow-lg transition-transform",d?"bg-zinc-900 text-white":"bg-white text-gray-900","scale-100",N),style:{transitionDuration:`${f}ms`},onClick:m=>m.stopPropagation(),children:[e.jsx("button",{onClick:t,"aria-label":"Close modal",className:D("absolute top-4 right-4 p-1 rounded-full hover:scale-110 transition-transform",d?"text-white hover:text-gray-200":"text-gray-700 hover:text-gray-900",g),children:e.jsx(he,{size:24})}),r&&e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o&&e.jsx("span",{className:"flex-shrink-0",children:o}),e.jsx("h2",{className:"text-xl font-semibold",children:r})]}),s]})}):null},Kt=({children:n,style:t,className:s})=>e.jsx("div",{className:D("overflow-x-auto rounded-lg shadow-sm border border-gray-200",s),style:{background:"#ffffff",...t},children:e.jsx("table",{className:"w-full border-collapse",style:{borderSpacing:0,borderRadius:12,overflow:"hidden"},children:n})}),Zt=({children:n,style:t,className:s})=>e.jsx("thead",{className:D("bg-gray-100 text-gray-900 font-semibold",s),style:{...t},children:n}),Qt=({children:n,style:t,className:s})=>e.jsx("tbody",{className:D("bg-white",s),style:{...t},children:n}),er=({children:n,style:t,className:s,onClick:r,hoverBgColor:o="#f9fafb",darkMode:l=!1})=>e.jsx("tr",{className:D("transition-colors duration-200 cursor-default",r?"hover:cursor-pointer":"",s),style:{borderBottom:"1px solid #e5e7eb",...t},onClick:r,onMouseEnter:c=>{l?c.currentTarget.style.backgroundColor="#1f2937":c.currentTarget.style.backgroundColor=o},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="transparent"},children:n}),tr=({children:n,style:t,className:s})=>e.jsx("th",{className:D("text-left px-4 py-3 text-sm text-gray-700 border-b-2 border-gray-200",s),style:{...t},children:n}),rr=({children:n,style:t,className:s})=>e.jsx("td",{className:D("px-4 py-3 text-sm text-gray-600",s),style:{...t},children:n}),nr=({tabs:n,defaultActive:t=0,position:s="top",variant:r="solid",fullWidth:o=!1,gap:l=8,radius:c=8,padding:u="12px 18px",transitionDuration:N=200,elevation:g=1,bordered:y=!1,primaryColor:d="#2563eb",backgroundColor:f="transparent",textColor:$="#374151",hoverColor:T="#1d4ed8",activeColor:m="#ffffff",borderColor:M="#e5e7eb",disabledColor:j="#9ca3af",responsiveBreakpoint:_=768,showDrawerLabel:I="Select Tab",drawerIcon:R="☰",onTabChange:w,className:b="",style:h,tabClassName:p="",contentClassName:P="",activeTabStyle:L,inactiveTabStyle:F,contentStyle:Y})=>{const[W,B]=i.useState(t),[S,x]=i.useState(null),[A,H]=i.useState(!1),[G,J]=i.useState(!1),a=i.useRef(null);i.useEffect(()=>{const E=()=>H(window.innerWidth<=_);return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[_]);const v=E=>{n[E].disabled||(B(E),w?.(E),A&&J(!1))},k=(E,O)=>{E.key==="ArrowRight"||E.key==="ArrowDown"?(E.preventDefault(),v((O+1)%n.length)):(E.key==="ArrowLeft"||E.key==="ArrowUp")&&(E.preventDefault(),v((O-1+n.length)%n.length))},C={padding:u,borderRadius:c,cursor:"pointer",display:"flex",alignItems:"center",gap:8,justifyContent:"center",fontWeight:500,transition:`all ${N}ms ease`,background:"transparent",border:r==="outline"?`1px solid ${M}`:"none",borderBottom:r==="underline"?"2px solid transparent":void 0,color:$,width:o?"100%":"auto",userSelect:"none"},q={background:r==="solid"?d:"transparent",color:m,borderBottom:r==="underline"?`2px solid ${d}`:void 0,boxShadow:g>0?`0 ${g}px ${g*4}px ${d}33`:void 0,...L},Q={...r==="outline"?{borderColor:M}:{},...r==="underline"?{borderBottomColor:"transparent"}:{},...F},V={color:T,background:r==="solid"?`${d}11`:r==="outline"?`${d}11`:"transparent"},K={color:j,cursor:"not-allowed",opacity:.6},X={flexGrow:1,borderTop:y&&s==="top"?`1px solid ${M}`:void 0,borderLeft:y&&s==="left"?`1px solid ${M}`:void 0,borderRight:y&&s==="right"?`1px solid ${M}`:void 0,borderRadius:c,...Y},z=s==="left"||s==="right";return e.jsxs("div",{ref:a,className:`modern-tabs ${b}`,style:{display:"flex",flexDirection:z?s==="right"?"row-reverse":"row":"column",background:f,border:y?`1px solid ${M}`:void 0,borderRadius:c,overflow:"hidden",...h},children:[e.jsx("style",{children:`
215
+ `}),o==="password"&&e.jsx("button",{type:"button",onClick:()=>F(!W),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400",children:W?e.jsx(Je,{size:18}):e.jsx(Ze,{size:18})}),z&&o!=="password"&&e.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400",children:z})]}),(_||x)&&e.jsx("p",{className:`text-xs ${x?"text-red-500":S?"text-emerald-500":"text-zinc-500"}`,children:x&&typeof x=="string"?x:_})]})}),qt=({src:s,alt:r="Image",title:n,width:t="w-full",height:o="h-auto",rounded:l="rounded-lg",borderColor:c="transparent",borderWidth:u="0",shadow:j=!1,opacity:m=1,objectFit:y="cover",overlayText:d,overlayColor:x="rgba(0,0,0,0.5)",svgIcon:S,responsive:_=!1,p:k,m:A,hoverScale:$=1.05,hoverRotate:z=0,hoverOpacity:I,hoverShadow:R=!1,transitionDuration:v="300ms",overflow:b="hidden",className:h="",style:p,onClick:L,onLoad:O,onError:H})=>{const V=i.useMemo(()=>["relative inline-block transition-all",j?"shadow-md":"",l,k??"",A??"",_?"w-full h-auto":"",h].join(" "),[j,l,k,A,_,h]),W=i.useMemo(()=>({width:typeof t=="number"?t:void 0,height:typeof o=="number"?o:void 0,objectFit:y,opacity:m,borderColor:c,borderWidth:u,transition:`all ${v} ease`,...p}),[t,o,y,m,c,u,v,p]),F=i.useMemo(()=>{switch(b){case"x":return{overflowX:"hidden"};case"y":return{overflowY:"hidden"};default:return{overflow:b}}},[b]),N=M=>{I!==void 0&&(M.currentTarget.style.opacity=I.toString()),M.currentTarget.style.transform=`scale(${$}) rotate(${z}deg)`,R&&(M.currentTarget.style.boxShadow="0 8px 20px rgba(0,0,0,0.3)")},f=M=>{M.currentTarget.style.opacity=m.toString(),M.currentTarget.style.transform="scale(1) rotate(0deg)",R&&(M.currentTarget.style.boxShadow="")};return e.jsxs("div",{role:"img","aria-label":r,title:n||r,onClick:L,className:V,style:{position:"relative",cursor:L?"pointer":"default",...F},children:[S?e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:S}):e.jsx("img",{src:s,alt:r,title:n||r,loading:"lazy",style:W,className:"block",onLoad:O,onError:H,onMouseEnter:N,onMouseLeave:f}),d&&e.jsx("div",{style:{backgroundColor:x},className:"absolute inset-0 flex items-center justify-center text-white font-bold text-center p-4",children:d})]})},Ae=({text:s,icon:r,onClick:n,subItems:t,isInline:o,isOrdered:l,primaryTheme:c=!0,primaryColor:u="#3b82f6",itemClassName:j,bulletClassName:m})=>{const y=c?{}:{color:u},d=c?{}:{backgroundColor:u};return e.jsxs("li",{className:P(!o&&"mb-3"),children:[e.jsxs("div",{onClick:n,style:c?void 0:y,className:P("flex items-center gap-2 text-sm text-zinc-800 dark:text-zinc-200 transition-all",n&&(c?"cursor-pointer hover:text-[var(--primary)]":"cursor-pointer"),j),children:[r?e.jsx("span",{className:"text-base",children:r}):!o&&!l&&e.jsx("span",{style:c?void 0:d,className:P("w-2 h-2 rounded-full",c&&"bg-[var(--primary)]",m)}),e.jsx("span",{children:s})]}),t&&t.length>0&&e.jsx("ul",{className:P("pl-5 mt-2 space-y-2",l?"list-decimal":"list-none"),children:t.map((x,S)=>e.jsx(Ae,{...x,isInline:!1,isOrdered:l,primaryTheme:c,primaryColor:u,itemClassName:j,bulletClassName:m},S))})]})},Gt=({title:s,titleIcon:r,items:n,type:t="unordered",primaryTheme:o=!0,primaryColor:l="#3b82f6",className:c,itemClassName:u,titleClassName:j,bulletClassName:m})=>{const y=t==="ordered",d=t==="inline",x=y?"ol":"ul";return e.jsxs("div",{className:P("bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl p-4",c),children:[s&&e.jsxs("div",{className:P("flex items-center gap-2 mb-3 text-base font-semibold text-zinc-900 dark:text-white",j),children:[r&&e.jsx("span",{children:r}),e.jsx("span",{children:s})]}),e.jsx(x,{className:P(d?"flex flex-wrap gap-4":y?"list-decimal pl-5 space-y-2":"list-none p-0"),children:n.map((S,_)=>e.jsx(Ae,{...S,isInline:d,isOrdered:y,primaryTheme:o,primaryColor:l,itemClassName:u,bulletClassName:m},_))})]})},Xt=({isOpen:s,onClose:r,children:n,title:t,icon:o,ariaLabel:l,className:c,overlayClassName:u,contentClassName:j,closeButtonClassName:m,disableOverlayClose:y=!1,darkMode:d=!1,transitionDuration:x=200})=>{const S=i.useRef(null);i.useEffect(()=>{const k=A=>{A.key==="Escape"&&r()};return s&&document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[s,r]),i.useEffect(()=>{if(s){const k=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=k}}},[s]);const _=i.useCallback(()=>{y||r()},[y,r]);return s?e.jsx("div",{role:"dialog","aria-modal":"true","aria-label":l||t||"Modal",className:P("fixed inset-0 flex items-center justify-center z-50 transition-opacity",d?"bg-black/80":"bg-black/60",u),style:{transitionDuration:`${x}ms`},onClick:_,children:e.jsxs("div",{ref:S,className:P("relative w-[90vw] max-w-2xl max-h-[90vh] overflow-y-auto p-6 rounded-lg shadow-lg transition-transform",d?"bg-zinc-900 text-white":"bg-white text-gray-900","scale-100",j),style:{transitionDuration:`${x}ms`},onClick:k=>k.stopPropagation(),children:[e.jsx("button",{onClick:r,"aria-label":"Close modal",className:P("absolute top-4 right-4 p-1 rounded-full hover:scale-110 transition-transform",d?"text-white hover:text-gray-200":"text-gray-700 hover:text-gray-900",m),children:e.jsx(pe,{size:24})}),t&&e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o&&e.jsx("span",{className:"flex-shrink-0",children:o}),e.jsx("h2",{className:"text-xl font-semibold",children:t})]}),n]})}):null},Jt=({children:s,style:r,className:n})=>e.jsx("div",{className:P("overflow-x-auto rounded-lg shadow-sm border border-gray-200",n),style:{background:"#ffffff",...r},children:e.jsx("table",{className:"w-full border-collapse",style:{borderSpacing:0,borderRadius:12,overflow:"hidden"},children:s})}),Kt=({children:s,style:r,className:n})=>e.jsx("thead",{className:P("bg-gray-100 text-gray-900 font-semibold",n),style:{...r},children:s}),Zt=({children:s,style:r,className:n})=>e.jsx("tbody",{className:P("bg-white",n),style:{...r},children:s}),Qt=({children:s,style:r,className:n,onClick:t,hoverBgColor:o="#f9fafb",darkMode:l=!1})=>e.jsx("tr",{className:P("transition-colors duration-200 cursor-default",t?"hover:cursor-pointer":"",n),style:{borderBottom:"1px solid #e5e7eb",...r},onClick:t,onMouseEnter:c=>{l?c.currentTarget.style.backgroundColor="#1f2937":c.currentTarget.style.backgroundColor=o},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="transparent"},children:s}),er=({children:s,style:r,className:n})=>e.jsx("th",{className:P("text-left px-4 py-3 text-sm text-gray-700 border-b-2 border-gray-200",n),style:{...r},children:s}),tr=({children:s,style:r,className:n})=>e.jsx("td",{className:P("px-4 py-3 text-sm text-gray-600",n),style:{...r},children:s}),rr=({tabs:s,defaultActive:r=0,position:n="top",variant:t="solid",fullWidth:o=!1,gap:l=8,radius:c=8,padding:u="12px 18px",transitionDuration:j=200,elevation:m=1,bordered:y=!1,primaryColor:d="#2563eb",backgroundColor:x="transparent",textColor:S="#374151",hoverColor:_="#1d4ed8",activeColor:k="#ffffff",borderColor:A="#e5e7eb",disabledColor:$="#9ca3af",responsiveBreakpoint:z=768,showDrawerLabel:I="Select Tab",drawerIcon:R="☰",onTabChange:v,className:b="",style:h,tabClassName:p="",contentClassName:L="",activeTabStyle:O,inactiveTabStyle:H,contentStyle:V})=>{const[W,F]=i.useState(r),[N,f]=i.useState(null),[M,Y]=i.useState(!1),[G,J]=i.useState(!1),a=i.useRef(null);i.useEffect(()=>{const T=()=>Y(window.innerWidth<=z);return T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[z]);const g=T=>{s[T].disabled||(F(T),v?.(T),M&&J(!1))},w=(T,D)=>{T.key==="ArrowRight"||T.key==="ArrowDown"?(T.preventDefault(),g((D+1)%s.length)):(T.key==="ArrowLeft"||T.key==="ArrowUp")&&(T.preventDefault(),g((D-1+s.length)%s.length))},C={padding:u,borderRadius:c,cursor:"pointer",display:"flex",alignItems:"center",gap:8,justifyContent:"center",fontWeight:500,transition:`all ${j}ms ease`,background:"transparent",border:t==="outline"?`1px solid ${A}`:"none",borderBottom:t==="underline"?"2px solid transparent":void 0,color:S,width:o?"100%":"auto",userSelect:"none"},q={background:t==="solid"?d:"transparent",color:k,borderBottom:t==="underline"?`2px solid ${d}`:void 0,boxShadow:m>0?`0 ${m}px ${m*4}px ${d}33`:void 0,...O},Q={...t==="outline"?{borderColor:A}:{},...t==="underline"?{borderBottomColor:"transparent"}:{},...H},B={color:_,background:t==="solid"?`${d}11`:t==="outline"?`${d}11`:"transparent"},K={color:$,cursor:"not-allowed",opacity:.6},X={flexGrow:1,borderTop:y&&n==="top"?`1px solid ${A}`:void 0,borderLeft:y&&n==="left"?`1px solid ${A}`:void 0,borderRight:y&&n==="right"?`1px solid ${A}`:void 0,borderRadius:c,...V},E=n==="left"||n==="right";return e.jsxs("div",{ref:a,className:`modern-tabs ${b}`,style:{display:"flex",flexDirection:E?n==="right"?"row-reverse":"row":"column",background:x,border:y?`1px solid ${A}`:void 0,borderRadius:c,overflow:"hidden",...h},children:[e.jsx("style",{children:`
216
216
  @keyframes tab-fade {
217
217
  from { opacity: 0; transform: translateY(5px); }
218
218
  to { opacity: 1; transform: translateY(0); }
219
219
  }
220
220
  .modern-tabs__content {
221
- animation: tab-fade ${N}ms ease;
221
+ animation: tab-fade ${j}ms ease;
222
222
  }
223
- `}),A?e.jsxs("div",{style:{width:"100%",padding:8},children:[e.jsxs("button",{onClick:()=>J(!G),style:{...C,...q,justifyContent:"space-between",width:"100%",fontSize:16},children:[I,e.jsx("span",{children:R})]}),G&&e.jsx("div",{style:{display:"flex",flexDirection:"column",marginTop:8,gap:l},children:n.map((E,O)=>{const Z=O===W,ee=S===O,re=E.disabled;return e.jsxs("button",{disabled:re,onClick:()=>v(O),onKeyDown:ie=>k(ie,O),onMouseEnter:()=>x(O),onMouseLeave:()=>x(null),className:p,style:{...C,...Z?q:Q,...ee&&!Z&&!re?V:{},...re?K:{}},children:[E.icon&&e.jsx("span",{children:E.icon}),E.label]},O)})})]}):e.jsx("div",{style:{display:"flex",flexDirection:z?"column":"row",gap:l,padding:8,minWidth:z?200:void 0},children:n.map((E,O)=>{const Z=O===W,ee=S===O,re=E.disabled;return e.jsxs("button",{disabled:re,onClick:()=>v(O),onKeyDown:ie=>k(ie,O),onMouseEnter:()=>x(O),onMouseLeave:()=>x(null),className:p,style:{...C,...Z?q:Q,...ee&&!Z&&!re?V:{},...re?K:{}},role:"tab","aria-selected":Z,children:[E.icon&&e.jsx("span",{children:E.icon}),E.label]},O)})}),e.jsx("div",{className:`modern-tabs__content ${P}`,style:X,role:"tabpanel",children:n[W]?.content})]})};function oe(n,t){return"#"+n.replace(/^#/,"").replace(/../g,s=>("0"+Math.min(255,Math.max(0,parseInt(s,16)+t)).toString(16)).slice(-2))}const sr={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 ar({as:n,children:t,color:s="default",size:r="md",weight:o="normal",align:l="left",transform:c="none",italic:u=!1,underline:N=!1,strikethrough:g=!1,truncate:y=!1,selectable:d=!0,hoverable:f=!1,onClick:$,darkMode:T=!1,baseColor:m,className:M="",style:j={},..._}){const I=n||"p",R=i.useMemo(()=>{if(!m)return sr[T?"dark":"light"];const L={default:"#111",primary:m,secondary:oe(m,-50),success:oe(m,-30),danger:"#dc2626",white:"#ffffff",muted:"#6b7280"},F={default:"#f8fafc",primary:oe(m,80),secondary:oe(m,120),success:oe(m,100),danger:"#f87171",white:"#ffffff",muted:"#9ca3af"};return T?F:L},[m,T]),w={xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.25rem",xl:"1.5rem","2xl":"2rem"},b={color:R[s]||s,fontSize:w[r]||r,fontWeight:o,textAlign:l,textTransform:c,fontStyle:u?"italic":"normal",textDecoration:N?"underline":g?"line-through":"none",userSelect:d?"text":"none",overflow:y?"hidden":void 0,whiteSpace:y?"nowrap":void 0,textOverflow:y?"ellipsis":void 0,cursor:$?"pointer":"default",transition:"all 0.25s ease-in-out",...j},P={className:M,style:b,onClick:$,onMouseEnter:L=>{if(!f)return;const F=L.currentTarget;F instanceof HTMLElement&&(F.style.opacity="0.8")},onMouseLeave:L=>{if(!f)return;const F=L.currentTarget;F instanceof HTMLElement&&(F.style.opacity="1")},..._};return i.createElement(I,P,t)}exports.Accordion=Ee;exports.AudioGallery=It;exports.AudioPlayer=Mt;exports.Avatar=zt;exports.Badge=ze;exports.Button=Me;exports.CheckboxGroup=Ct;exports.Container=Ft;exports.Drawer=Wt;exports.DrawerButton=Ut;exports.Dropdown=Ae;exports.FlexView=Bt;exports.GridView=Ht;exports.HStack=Vt;exports.Image=Gt;exports.Input=qt;exports.List=Xt;exports.Modal=Jt;exports.RadioGroup=Pt;exports.Stack=me;exports.SwitchGroup=Lt;exports.TBody=Qt;exports.TD=rr;exports.TH=tr;exports.THead=Zt;exports.TRow=er;exports.Table=Kt;exports.Tabs=nr;exports.Text=ar;exports.ToastProvider=$t;exports.VStack=Yt;exports.useToast=kt;
223
+ `}),M?e.jsxs("div",{style:{width:"100%",padding:8},children:[e.jsxs("button",{onClick:()=>J(!G),style:{...C,...q,justifyContent:"space-between",width:"100%",fontSize:16},children:[I,e.jsx("span",{children:R})]}),G&&e.jsx("div",{style:{display:"flex",flexDirection:"column",marginTop:8,gap:l},children:s.map((T,D)=>{const Z=D===W,ee=N===D,re=T.disabled;return e.jsxs("button",{disabled:re,onClick:()=>g(D),onKeyDown:le=>w(le,D),onMouseEnter:()=>f(D),onMouseLeave:()=>f(null),className:p,style:{...C,...Z?q:Q,...ee&&!Z&&!re?B:{},...re?K:{}},children:[T.icon&&e.jsx("span",{children:T.icon}),T.label]},D)})})]}):e.jsx("div",{style:{display:"flex",flexDirection:E?"column":"row",gap:l,padding:8,minWidth:E?200:void 0},children:s.map((T,D)=>{const Z=D===W,ee=N===D,re=T.disabled;return e.jsxs("button",{disabled:re,onClick:()=>g(D),onKeyDown:le=>w(le,D),onMouseEnter:()=>f(D),onMouseLeave:()=>f(null),className:p,style:{...C,...Z?q:Q,...ee&&!Z&&!re?B:{},...re?K:{}},role:"tab","aria-selected":Z,children:[T.icon&&e.jsx("span",{children:T.icon}),T.label]},D)})}),e.jsx("div",{className:`modern-tabs__content ${L}`,style:X,role:"tabpanel",children:s[W]?.content})]})},sr={xs:"text-xs",sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"};function nr({as:s,children:r,size:n="md",weight:t=400,align:o="left",truncate:l=!1,className:c,style:u,...j}){const m=s||"p";return i.createElement(m,{className:P("text-inherit",sr[n]||"",l&&"truncate",c),style:{fontWeight:t,textAlign:o,...u},...j},r)}exports.Accordion=Re;exports.AudioGallery=At;exports.AudioPlayer=zt;exports.Avatar=_t;exports.Badge=_e;exports.Button=ze;exports.CheckboxGroup=It;exports.Container=Ot;exports.Drawer=Wt;exports.DrawerButton=Ut;exports.Dropdown=Me;exports.FlexView=Ft;exports.GridView=Yt;exports.HStack=Bt;exports.Image=qt;exports.Input=Ht;exports.List=Gt;exports.Modal=Xt;exports.RadioGroup=Ct;exports.Stack=he;exports.SwitchGroup=Pt;exports.TBody=Zt;exports.TD=tr;exports.TH=er;exports.THead=Kt;exports.TRow=Qt;exports.Table=Jt;exports.Tabs=rr;exports.Text=nr;exports.ToastProvider=kt;exports.VStack=Vt;exports.useToast=jt;
224
224
  //# sourceMappingURL=index.cjs.js.map