@igamingcareer/igaming-components 1.0.81 → 1.0.82
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.js +28 -28
- package/dist/index.mjs +1796 -1754
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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 ZS;function CT(){if(ZS)return mc;ZS=1;var t=M,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,h){var u,p={},
|
|
9
|
+
*/var ZS;function CT(){if(ZS)return mc;ZS=1;var t=M,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,h){var u,p={},m=null,y=null;h!==void 0&&(m=""+h),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(y=d.ref);for(u in d)n.call(d,u)&&!i.hasOwnProperty(u)&&(p[u]=d[u]);if(l&&l.defaultProps)for(u in d=l.defaultProps,d)p[u]===void 0&&(p[u]=d[u]);return{$$typeof:a,type:l,key:m,ref:y,props:p,_owner:s.current}}return mc.Fragment=r,mc.jsx=c,mc.jsxs=c,mc}var fc={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,20 +14,20 @@
|
|
|
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 JS;function ST(){return JS||(JS=1,process.env.NODE_ENV!=="production"&&function(){var t=M,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),
|
|
18
|
-
`+Z+I}}var ke=!1,fe;{var ve=typeof WeakMap=="function"?WeakMap:Map;fe=new ve}function le(I,V){if(!I||ke)return"";{var _=fe.get(I);if(_!==void 0)return _}var
|
|
19
|
-
`),ze=
|
|
17
|
+
*/var JS;function ST(){return JS||(JS=1,process.env.NODE_ENV!=="production"&&function(){var t=M,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function v(I){if(I===null||typeof I!="object")return null;var V=x&&I[x]||I[f];return typeof V=="function"?V:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(I){{for(var V=arguments.length,_=new Array(V>1?V-1:0),F=1;F<V;F++)_[F-1]=arguments[F];b("error",I,_)}}function b(I,V,_){{var F=k.ReactDebugCurrentFrame,J=F.getStackAddendum();J!==""&&(V+="%s",_=_.concat([J]));var te=_.map(function(ie){return String(ie)});te.unshift("Warning: "+V),Function.prototype.apply.call(console[I],console,te)}}var S=!1,C=!1,A=!1,L=!1,j=!1,N;N=Symbol.for("react.module.reference");function q(I){return!!(typeof I=="string"||typeof I=="function"||I===n||I===i||j||I===s||I===h||I===u||L||I===y||S||C||A||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===p||I.$$typeof===c||I.$$typeof===l||I.$$typeof===d||I.$$typeof===N||I.getModuleId!==void 0))}function P(I,V,_){var F=I.displayName;if(F)return F;var J=V.displayName||V.name||"";return J!==""?_+"("+J+")":_}function T(I){return I.displayName||"Context"}function R(I){if(I==null)return null;if(typeof I.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case u:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case l:var V=I;return T(V)+".Consumer";case c:var _=I;return T(_._context)+".Provider";case d:return P(I,I.render,"ForwardRef");case p:var F=I.displayName||null;return F!==null?F:R(I.type)||"Memo";case m:{var J=I,te=J._payload,ie=J._init;try{return R(ie(te))}catch{return null}}}return null}var E=Object.assign,$=0,B,U,O,ae,ce,pe,ne;function de(){}de.__reactDisabledLog=!0;function K(){{if($===0){B=console.log,U=console.info,O=console.warn,ae=console.error,ce=console.group,pe=console.groupCollapsed,ne=console.groupEnd;var I={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:I,log:I,warn:I,error:I,group:I,groupCollapsed:I,groupEnd:I})}$++}}function me(){{if($--,$===0){var I={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:E({},I,{value:B}),info:E({},I,{value:U}),warn:E({},I,{value:O}),error:E({},I,{value:ae}),group:E({},I,{value:ce}),groupCollapsed:E({},I,{value:pe}),groupEnd:E({},I,{value:ne})})}$<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var je=k.ReactCurrentDispatcher,Z;function Y(I,V,_){{if(Z===void 0)try{throw Error()}catch(J){var F=J.stack.trim().match(/\n( *(at )?)/);Z=F&&F[1]||""}return`
|
|
18
|
+
`+Z+I}}var ke=!1,fe;{var ve=typeof WeakMap=="function"?WeakMap:Map;fe=new ve}function le(I,V){if(!I||ke)return"";{var _=fe.get(I);if(_!==void 0)return _}var F;ke=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var te;te=je.current,je.current=null,K();try{if(V){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Mt){F=Mt}Reflect.construct(I,[],ie)}else{try{ie.call()}catch(Mt){F=Mt}I.call(ie.prototype)}}else{try{throw Error()}catch(Mt){F=Mt}I()}}catch(Mt){if(Mt&&F&&typeof Mt.stack=="string"){for(var he=Mt.stack.split(`
|
|
19
|
+
`),ze=F.stack.split(`
|
|
20
20
|
`),Me=he.length-1,Ae=ze.length-1;Me>=1&&Ae>=0&&he[Me]!==ze[Ae];)Ae--;for(;Me>=1&&Ae>=0;Me--,Ae--)if(he[Me]!==ze[Ae]){if(Me!==1||Ae!==1)do if(Me--,Ae--,Ae<0||he[Me]!==ze[Ae]){var Ee=`
|
|
21
|
-
`+he[Me].replace(" at new "," at ");return I.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",I.displayName)),typeof I=="function"&&fe.set(I,Ee),Ee}while(Me>=1&&Ae>=0);break}}}finally{ke=!1,je.current=te,me(),Error.prepareStackTrace=J}var lt=I?I.displayName||I.name:"",Wt=lt?Y(lt):"";return typeof I=="function"&&fe.set(I,Wt),Wt}function _e(I,V,_){return le(I,!1)}function Re(I){var V=I.prototype;return!!(V&&V.isReactComponent)}function z(I,V,_){if(I==null)return"";if(typeof I=="function")return le(I,Re(I));if(typeof I=="string")return Y(I);switch(I){case h:return Y("Suspense");case u:return Y("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case d:return _e(I.render);case p:return z(I.type,V,_);case
|
|
21
|
+
`+he[Me].replace(" at new "," at ");return I.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",I.displayName)),typeof I=="function"&&fe.set(I,Ee),Ee}while(Me>=1&&Ae>=0);break}}}finally{ke=!1,je.current=te,me(),Error.prepareStackTrace=J}var lt=I?I.displayName||I.name:"",Wt=lt?Y(lt):"";return typeof I=="function"&&fe.set(I,Wt),Wt}function _e(I,V,_){return le(I,!1)}function Re(I){var V=I.prototype;return!!(V&&V.isReactComponent)}function z(I,V,_){if(I==null)return"";if(typeof I=="function")return le(I,Re(I));if(typeof I=="string")return Y(I);switch(I){case h:return Y("Suspense");case u:return Y("SuspenseList")}if(typeof I=="object")switch(I.$$typeof){case d:return _e(I.render);case p:return z(I.type,V,_);case m:{var F=I,J=F._payload,te=F._init;try{return z(te(J),V,_)}catch{}}}return""}var se=Object.prototype.hasOwnProperty,Ne={},Xe=k.ReactDebugCurrentFrame;function Ye(I){if(I){var V=I._owner,_=z(I.type,I._source,V?V.type:null);Xe.setExtraStackFrame(_)}else Xe.setExtraStackFrame(null)}function Te(I,V,_,F,J){{var te=Function.call.bind(se);for(var ie in I)if(te(I,ie)){var he=void 0;try{if(typeof I[ie]!="function"){var ze=Error((F||"React class")+": "+_+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof I[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}he=I[ie](V,ie,F,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){he=Me}he&&!(he instanceof Error)&&(Ye(J),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",_,ie,typeof he),Ye(null)),he instanceof Error&&!(he.message in Ne)&&(Ne[he.message]=!0,Ye(J),w("Failed %s type: %s",_,he.message),Ye(null))}}}var rt=Array.isArray;function nt(I){return rt(I)}function Ya(I){{var V=typeof Symbol=="function"&&Symbol.toStringTag,_=V&&I[Symbol.toStringTag]||I.constructor.name||"Object";return _}}function At(I){try{return bt(I),!1}catch{return!0}}function bt(I){return""+I}function _a(I){if(At(I))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ya(I)),bt(I)}var H=k.ReactCurrentOwner,G={key:!0,ref:!0,__self:!0,__source:!0},X,Ie,Oe;Oe={};function tt(I){if(se.call(I,"ref")){var V=Object.getOwnPropertyDescriptor(I,"ref").get;if(V&&V.isReactWarning)return!1}return I.ref!==void 0}function Be(I){if(se.call(I,"key")){var V=Object.getOwnPropertyDescriptor(I,"key").get;if(V&&V.isReactWarning)return!1}return I.key!==void 0}function Ut(I,V){if(typeof I.ref=="string"&&H.current&&V&&H.current.stateNode!==V){var _=R(H.current.type);Oe[_]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(H.current.type),I.ref),Oe[_]=!0)}}function Gt(I,V){{var _=function(){X||(X=!0,w("%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://reactjs.org/link/special-props)",V))};_.isReactWarning=!0,Object.defineProperty(I,"key",{get:_,configurable:!0})}}function Tr(I,V){{var _=function(){Ie||(Ie=!0,w("%s: `ref` 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://reactjs.org/link/special-props)",V))};_.isReactWarning=!0,Object.defineProperty(I,"ref",{get:_,configurable:!0})}}var pc=function(I,V,_,F,J,te,ie){var he={$$typeof:a,type:I,key:V,ref:_,props:ie,_owner:te};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function qr(I,V,_,F,J){{var te,ie={},he=null,ze=null;_!==void 0&&(_a(_),he=""+_),Be(V)&&(_a(V.key),he=""+V.key),tt(V)&&(ze=V.ref,Ut(V,J));for(te in V)se.call(V,te)&&!G.hasOwnProperty(te)&&(ie[te]=V[te]);if(I&&I.defaultProps){var Me=I.defaultProps;for(te in Me)ie[te]===void 0&&(ie[te]=Me[te])}if(he||ze){var Ae=typeof I=="function"?I.displayName||I.name||"Unknown":I;he&&Gt(ie,Ae),ze&&Tr(ie,Ae)}return pc(I,he,ze,J,F,H.current,ie)}}var Ka=k.ReactCurrentOwner,Qa=k.ReactDebugCurrentFrame;function sa(I){if(I){var V=I._owner,_=z(I.type,I._source,V?V.type:null);Qa.setExtraStackFrame(_)}else Qa.setExtraStackFrame(null)}var Ra;Ra=!1;function Dr(I){return typeof I=="object"&&I!==null&&I.$$typeof===a}function W(){{if(Ka.current){var I=R(Ka.current.type);if(I)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+I+"`."}return""}}function ee(I){return""}var be={};function qe(I){{var V=
|
|
23
|
+
Check the render method of \``+I+"`."}return""}}function ee(I){return""}var be={};function qe(I){{var V=W();if(!V){var _=typeof I=="string"?I:I.displayName||I.name;_&&(V=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+_+">.")}return V}}function We(I,V){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var _=qe(V);if(be[_])return;be[_]=!0;var
|
|
25
|
+
Check the top-level render call using <`+_+">.")}return V}}function We(I,V){{if(!I._store||I._store.validated||I.key!=null)return;I._store.validated=!0;var _=qe(V);if(be[_])return;be[_]=!0;var F="";I&&I._owner&&I._owner!==Ka.current&&(F=" It was passed a child from "+R(I._owner.type)+"."),sa(I),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,F),sa(null)}}function Ta(I,V){{if(typeof I!="object")return;if(nt(I))for(var _=0;_<I.length;_++){var F=I[_];Dr(F)&&We(F,V)}else if(Dr(I))I._store&&(I._store.validated=!0);else if(I){var J=v(I);if(typeof J=="function"&&J!==I.entries)for(var te=J.call(I),ie;!(ie=te.next()).done;)Dr(ie.value)&&We(ie.value,V)}}}function ct(I){{var V=I.type;if(V==null||typeof V=="string")return;var _;if(typeof V=="function")_=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===d||V.$$typeof===p))_=V.propTypes;else return;if(_){var F=R(V);Te(_,I.props,"prop",F,I)}else if(V.PropTypes!==void 0&&!Ra){Ra=!0;var J=R(V);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ft(I){{for(var V=Object.keys(I.props),_=0;_<V.length;_++){var F=V[_];if(F!=="children"&&F!=="key"){sa(I),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),sa(null);break}}I.ref!==null&&(sa(I),w("Invalid attribute `ref` supplied to `React.Fragment`."),sa(null))}}var er={};function Ze(I,V,_,F,J,te){{var ie=q(I);if(!ie){var he="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).length===0)&&(he+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ze=ee();ze?he+=ze:he+=W();var Me;I===null?Me="null":nt(I)?Me="array":I!==void 0&&I.$$typeof===a?(Me="<"+(R(I.type)||"Unknown")+" />",he=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof I,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,he)}var Ae=qr(I,V,_,J,te);if(Ae==null)return Ae;if(ie){var Ee=V.children;if(Ee!==void 0)if(F)if(nt(Ee)){for(var lt=0;lt<Ee.length;lt++)Ta(Ee[lt],I);Object.freeze&&Object.freeze(Ee)}else w("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 Ta(Ee,I)}if(se.call(V,"key")){var Wt=R(I),Mt=Object.keys(V).filter(function(MT){return MT!=="key"}),uj=Mt.length>0?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}";if(!er[Wt+uj]){var bT=Mt.length>0?"{"+Mt.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,uj,Wt,bT,Wt),er[Wt+uj]=!0}}return I===n?ft(Ae):ct(Ae),Ae}}function xt(I,V,_){return Ze(I,V,_,!0)}function yc(I,V,_){return Ze(I,V,_,!1)}var xl=yc,hj=xt;fc.Fragment=n,fc.jsx=xl,fc.jsxs=hj}()),fc}process.env.NODE_ENV==="production"?Bj.exports=CT():Bj.exports=ST();var e=Bj.exports;function XS(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LT(...t){return a=>{let r=!1;const n=t.map(s=>{const i=XS(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():XS(t[s],null)}}}}function et(t){const a=IT(t),r=g.forwardRef((n,s)=>{const{children:i,...c}=n,l=g.Children.toArray(i),d=l.find(PT);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}var NT=et("Slot");function IT(t){const a=g.forwardRef((r,n)=>{const{children:s,...i}=r;if(g.isValidElement(s)){const c=RT(s),l=_T(i,s.props);return s.type!==g.Fragment&&(l.ref=n?LT(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var CN=Symbol("radix.slottable");function AT(t){const a=({children:r})=>e.jsx(e.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=CN,a}function PT(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===CN}function _T(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function RT(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function SN(t){var a,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(r=SN(t[a]))&&(n&&(n+=" "),n+=r);else for(a in t)t[a]&&(n&&(n+=" "),n+=a);return n}function TT(){for(var t,a,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(a=SN(t))&&(n&&(n+=" "),n+=a);return n}const YS=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,KS=TT,D9=(t,a)=>r=>{var n;if((a==null?void 0:a.variants)==null)return KS(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=a,c=Object.keys(s).map(h=>{const u=r==null?void 0:r[h],p=i==null?void 0:i[h];if(u===null)return null;const y=YS(u)||YS(p);return s[h][y]}),l=r&&Object.entries(r).reduce((h,u)=>{let[p,y]=u;return y===void 0||(h[p]=y),h},{}),d=a==null||(n=a.compoundVariants)===null||n===void 0?void 0:n.reduce((h,u)=>{let{class:p,className:y,...m}=u;return Object.entries(m).every(x=>{let[f,v]=x;return Array.isArray(v)?v.includes({...i,...l}[f]):{...i,...l}[f]===v})?[...h,p,y]:h},[]);return KS(t,c,d,r==null?void 0:r.class,r==null?void 0:r.className)};function LN(t){var a,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(r=LN(t[a]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function qT(){for(var t,a,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(a=LN(t))&&(n&&(n+=" "),n+=a);return n}const NC="-",DT=t=>{const a=ET(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:c=>{const l=c.split(NC);return l[0]===""&&l.length!==1&&l.shift(),NN(l,a)||zT(c)},getConflictingClassGroupIds:(c,l)=>{const d=r[c]||[];return l&&n[c]?[...d,...n[c]]:d}}},NN=(t,a)=>{var c;if(t.length===0)return a.classGroupId;const r=t[0],n=a.nextPart.get(r),s=n?NN(t.slice(1),n):void 0;if(s)return s;if(a.validators.length===0)return;const i=t.join(NC);return(c=a.validators.find(({validator:l})=>l(i)))==null?void 0:c.classGroupId},QS=/^\[(.+)\]$/,zT=t=>{if(QS.test(t)){const a=QS.exec(t)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},ET=t=>{const{theme:a,prefix:r}=t,n={nextPart:new Map,validators:[]};return OT(Object.entries(t.classGroups),r).forEach(([i,c])=>{$j(c,n,i,a)}),n},$j=(t,a,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?a:eL(a,s);i.classGroupId=r;return}if(typeof s=="function"){if(FT(s)){$j(s(n),a,r,n);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,c])=>{$j(c,eL(a,i),r,n)})})},eL=(t,a)=>{let r=t;return a.split(NC).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},FT=t=>t.isThemeGetter,OT=(t,a)=>a?t.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?a+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,l])=>[a+c,l])):i);return[r,s]}):t,HT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,n=new Map;const s=(i,c)=>{r.set(i,c),a++,a>t&&(a=0,n=r,r=new Map)};return{get(i){let c=r.get(i);if(c!==void 0)return c;if((c=n.get(i))!==void 0)return s(i,c),c},set(i,c){r.has(i)?r.set(i,c):s(i,c)}}},IN="!",VT=t=>{const{separator:a,experimentalParseClassName:r}=t,n=a.length===1,s=a[0],i=a.length,c=l=>{const d=[];let h=0,u=0,p;for(let v=0;v<l.length;v++){let k=l[v];if(h===0){if(k===s&&(n||l.slice(v,v+i)===a)){d.push(l.slice(u,v)),u=v+i;continue}if(k==="/"){p=v;continue}}k==="["?h++:k==="]"&&h--}const y=d.length===0?l:l.substring(u),m=y.startsWith(IN),x=m?y.substring(1):y,f=p&&p>u?p-u:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:f}};return r?l=>r({className:l,parseClassName:c}):c},BT=t=>{if(t.length<=1)return t;const a=[];let r=[];return t.forEach(n=>{n[0]==="["?(a.push(...r.sort(),n),r=[]):r.push(n)}),a.push(...r.sort()),a},$T=t=>({cache:HT(t.cacheSize),parseClassName:VT(t),...DT(t)}),UT=/\s+/,GT=(t,a)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=a,i=[],c=t.trim().split(UT);let l="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{modifiers:u,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}=r(h);let x=!!m,f=n(x?y.substring(0,m):y);if(!f){if(!x){l=h+(l.length>0?" "+l:l);continue}if(f=n(y),!f){l=h+(l.length>0?" "+l:l);continue}x=!1}const v=BT(u).join(":"),k=p?v+IN:v,w=k+f;if(i.includes(w))continue;i.push(w);const b=s(f,x);for(let S=0;S<b.length;++S){const C=b[S];i.push(k+C)}l=h+(l.length>0?" "+l:l)}return l};function WT(){let t=0,a,r,n="";for(;t<arguments.length;)(a=arguments[t++])&&(r=AN(a))&&(n&&(n+=" "),n+=r);return n}const AN=t=>{if(typeof t=="string")return t;let a,r="";for(let n=0;n<t.length;n++)t[n]&&(a=AN(t[n]))&&(r&&(r+=" "),r+=a);return r};function ZT(t,...a){let r,n,s,i=c;function c(d){const h=a.reduce((u,p)=>p(u),t());return r=$T(h),n=r.cache.get,s=r.cache.set,i=l,l(d)}function l(d){const h=n(d);if(h)return h;const u=GT(d,r);return s(d,u),u}return function(){return i(WT.apply(null,arguments))}}const He=t=>{const a=r=>r[t]||[];return a.isThemeGetter=!0,a},PN=/^\[(?:([a-z-]+):)?(.+)\]$/i,JT=/^\d+\/\d+$/,XT=new Set(["px","full","screen"]),YT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qa=t=>To(t)||XT.has(t)||JT.test(t),tr=t=>lc(t,"length",lq),To=t=>!!t&&!Number.isNaN(Number(t)),pj=t=>lc(t,"number",To),xc=t=>!!t&&Number.isInteger(Number(t)),aq=t=>t.endsWith("%")&&To(t.slice(0,-1)),we=t=>PN.test(t),ar=t=>YT.test(t),rq=new Set(["length","size","percentage"]),nq=t=>lc(t,rq,_N),sq=t=>lc(t,"position",_N),iq=new Set(["image","url"]),oq=t=>lc(t,iq,hq),cq=t=>lc(t,"",dq),gc=()=>!0,lc=(t,a,r)=>{const n=PN.exec(t);return n?n[1]?typeof a=="string"?n[1]===a:a.has(n[1]):r(n[2]):!1},lq=t=>KT.test(t)&&!QT.test(t),_N=()=>!1,dq=t=>eq.test(t),hq=t=>tq.test(t),uq=()=>{const t=He("colors"),a=He("spacing"),r=He("blur"),n=He("brightness"),s=He("borderColor"),i=He("borderRadius"),c=He("borderSpacing"),l=He("borderWidth"),d=He("contrast"),h=He("grayscale"),u=He("hueRotate"),p=He("invert"),y=He("gap"),m=He("gradientColorStops"),x=He("gradientColorStopPositions"),f=He("inset"),v=He("margin"),k=He("opacity"),w=He("padding"),b=He("saturate"),S=He("scale"),C=He("sepia"),A=He("skew"),L=He("space"),j=He("translate"),N=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",we,a],R=()=>[we,a],T=()=>["",qa,tr],F=()=>["auto",To,we],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",we],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[To,we];return{cacheSize:500,separator:":",theme:{colors:[gc],spacing:[qa,tr],blur:["none","",ar,we],brightness:pe(),borderColor:[t],borderRadius:["none","","full",ar,we],borderSpacing:R(),borderWidth:T(),contrast:pe(),grayscale:ae(),hueRotate:pe(),invert:ae(),gap:R(),gradientColorStops:[t],gradientColorStopPositions:[aq,tr],inset:P(),margin:P(),opacity:pe(),padding:R(),saturate:pe(),scale:pe(),sepia:ae(),skew:pe(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),we]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xc,we]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",xc,we]}],"grid-cols":[{"grid-cols":[gc]}],"col-start-end":[{col:["auto",{span:["full",xc,we]},we]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[gc]}],"row-start-end":[{row:["auto",{span:[xc,we]},we]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,a]}],"min-w":[{"min-w":[we,a,"min","max","fit"]}],"max-w":[{"max-w":[we,a,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[we,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,a,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pj]}],"font-family":[{font:[gc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",To,pj]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qa,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qa,tr]}],"underline-offset":[{"underline-offset":["auto",qa,we]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),sq]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oq]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:$()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[qa,we]}],"outline-w":[{outline:[qa,tr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[qa,tr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ar,cq]}],"shadow-color":[{shadow:[gc]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ar,we]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[xc,we]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[qa,tr,pj]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},pq=ZT(uq);function ue(...t){return pq(qT(t))}const IC=D9("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),D=g.forwardRef(({className:t,variant:a,size:r,asChild:n=!1,...s},i)=>{const c=n?NT:"button";return e.jsx(c,{className:ue(IC({variant:a,size:r,className:t})),ref:i,...s})});D.displayName="Button";const Pe=g.forwardRef(({className:t,type:a,...r},n)=>e.jsx("input",{type:a,className:ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...r}));Pe.displayName="Input";/**
|
|
30
|
+
<%s key={someKey} {...props} />`,uj,Wt,bT,Wt),er[Wt+uj]=!0}}return I===n?ft(Ae):ct(Ae),Ae}}function xt(I,V,_){return Ze(I,V,_,!0)}function yc(I,V,_){return Ze(I,V,_,!1)}var xl=yc,hj=xt;fc.Fragment=n,fc.jsx=xl,fc.jsxs=hj}()),fc}process.env.NODE_ENV==="production"?Bj.exports=CT():Bj.exports=ST();var e=Bj.exports;function XS(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LT(...t){return a=>{let r=!1;const n=t.map(s=>{const i=XS(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():XS(t[s],null)}}}}function et(t){const a=IT(t),r=g.forwardRef((n,s)=>{const{children:i,...c}=n,l=g.Children.toArray(i),d=l.find(PT);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}var NT=et("Slot");function IT(t){const a=g.forwardRef((r,n)=>{const{children:s,...i}=r;if(g.isValidElement(s)){const c=RT(s),l=_T(i,s.props);return s.type!==g.Fragment&&(l.ref=n?LT(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var CN=Symbol("radix.slottable");function AT(t){const a=({children:r})=>e.jsx(e.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=CN,a}function PT(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===CN}function _T(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function RT(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function SN(t){var a,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(a=0;a<t.length;a++)t[a]&&(r=SN(t[a]))&&(n&&(n+=" "),n+=r);else for(a in t)t[a]&&(n&&(n+=" "),n+=a);return n}function TT(){for(var t,a,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(a=SN(t))&&(n&&(n+=" "),n+=a);return n}const YS=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,KS=TT,D9=(t,a)=>r=>{var n;if((a==null?void 0:a.variants)==null)return KS(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=a,c=Object.keys(s).map(h=>{const u=r==null?void 0:r[h],p=i==null?void 0:i[h];if(u===null)return null;const m=YS(u)||YS(p);return s[h][m]}),l=r&&Object.entries(r).reduce((h,u)=>{let[p,m]=u;return m===void 0||(h[p]=m),h},{}),d=a==null||(n=a.compoundVariants)===null||n===void 0?void 0:n.reduce((h,u)=>{let{class:p,className:m,...y}=u;return Object.entries(y).every(x=>{let[f,v]=x;return Array.isArray(v)?v.includes({...i,...l}[f]):{...i,...l}[f]===v})?[...h,p,m]:h},[]);return KS(t,c,d,r==null?void 0:r.class,r==null?void 0:r.className)};function LN(t){var a,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(r=LN(t[a]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function qT(){for(var t,a,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(a=LN(t))&&(n&&(n+=" "),n+=a);return n}const NC="-",DT=t=>{const a=ET(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:c=>{const l=c.split(NC);return l[0]===""&&l.length!==1&&l.shift(),NN(l,a)||zT(c)},getConflictingClassGroupIds:(c,l)=>{const d=r[c]||[];return l&&n[c]?[...d,...n[c]]:d}}},NN=(t,a)=>{var c;if(t.length===0)return a.classGroupId;const r=t[0],n=a.nextPart.get(r),s=n?NN(t.slice(1),n):void 0;if(s)return s;if(a.validators.length===0)return;const i=t.join(NC);return(c=a.validators.find(({validator:l})=>l(i)))==null?void 0:c.classGroupId},QS=/^\[(.+)\]$/,zT=t=>{if(QS.test(t)){const a=QS.exec(t)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},ET=t=>{const{theme:a,prefix:r}=t,n={nextPart:new Map,validators:[]};return OT(Object.entries(t.classGroups),r).forEach(([i,c])=>{$j(c,n,i,a)}),n},$j=(t,a,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?a:eL(a,s);i.classGroupId=r;return}if(typeof s=="function"){if(FT(s)){$j(s(n),a,r,n);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,c])=>{$j(c,eL(a,i),r,n)})})},eL=(t,a)=>{let r=t;return a.split(NC).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},FT=t=>t.isThemeGetter,OT=(t,a)=>a?t.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?a+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,l])=>[a+c,l])):i);return[r,s]}):t,HT=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,n=new Map;const s=(i,c)=>{r.set(i,c),a++,a>t&&(a=0,n=r,r=new Map)};return{get(i){let c=r.get(i);if(c!==void 0)return c;if((c=n.get(i))!==void 0)return s(i,c),c},set(i,c){r.has(i)?r.set(i,c):s(i,c)}}},IN="!",VT=t=>{const{separator:a,experimentalParseClassName:r}=t,n=a.length===1,s=a[0],i=a.length,c=l=>{const d=[];let h=0,u=0,p;for(let v=0;v<l.length;v++){let k=l[v];if(h===0){if(k===s&&(n||l.slice(v,v+i)===a)){d.push(l.slice(u,v)),u=v+i;continue}if(k==="/"){p=v;continue}}k==="["?h++:k==="]"&&h--}const m=d.length===0?l:l.substring(u),y=m.startsWith(IN),x=y?m.substring(1):m,f=p&&p>u?p-u:void 0;return{modifiers:d,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:f}};return r?l=>r({className:l,parseClassName:c}):c},BT=t=>{if(t.length<=1)return t;const a=[];let r=[];return t.forEach(n=>{n[0]==="["?(a.push(...r.sort(),n),r=[]):r.push(n)}),a.push(...r.sort()),a},$T=t=>({cache:HT(t.cacheSize),parseClassName:VT(t),...DT(t)}),UT=/\s+/,GT=(t,a)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=a,i=[],c=t.trim().split(UT);let l="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(h);let x=!!y,f=n(x?m.substring(0,y):m);if(!f){if(!x){l=h+(l.length>0?" "+l:l);continue}if(f=n(m),!f){l=h+(l.length>0?" "+l:l);continue}x=!1}const v=BT(u).join(":"),k=p?v+IN:v,w=k+f;if(i.includes(w))continue;i.push(w);const b=s(f,x);for(let S=0;S<b.length;++S){const C=b[S];i.push(k+C)}l=h+(l.length>0?" "+l:l)}return l};function WT(){let t=0,a,r,n="";for(;t<arguments.length;)(a=arguments[t++])&&(r=AN(a))&&(n&&(n+=" "),n+=r);return n}const AN=t=>{if(typeof t=="string")return t;let a,r="";for(let n=0;n<t.length;n++)t[n]&&(a=AN(t[n]))&&(r&&(r+=" "),r+=a);return r};function ZT(t,...a){let r,n,s,i=c;function c(d){const h=a.reduce((u,p)=>p(u),t());return r=$T(h),n=r.cache.get,s=r.cache.set,i=l,l(d)}function l(d){const h=n(d);if(h)return h;const u=GT(d,r);return s(d,u),u}return function(){return i(WT.apply(null,arguments))}}const He=t=>{const a=r=>r[t]||[];return a.isThemeGetter=!0,a},PN=/^\[(?:([a-z-]+):)?(.+)\]$/i,JT=/^\d+\/\d+$/,XT=new Set(["px","full","screen"]),YT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eq=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qa=t=>To(t)||XT.has(t)||JT.test(t),tr=t=>lc(t,"length",lq),To=t=>!!t&&!Number.isNaN(Number(t)),pj=t=>lc(t,"number",To),xc=t=>!!t&&Number.isInteger(Number(t)),aq=t=>t.endsWith("%")&&To(t.slice(0,-1)),we=t=>PN.test(t),ar=t=>YT.test(t),rq=new Set(["length","size","percentage"]),nq=t=>lc(t,rq,_N),sq=t=>lc(t,"position",_N),iq=new Set(["image","url"]),oq=t=>lc(t,iq,hq),cq=t=>lc(t,"",dq),gc=()=>!0,lc=(t,a,r)=>{const n=PN.exec(t);return n?n[1]?typeof a=="string"?n[1]===a:a.has(n[1]):r(n[2]):!1},lq=t=>KT.test(t)&&!QT.test(t),_N=()=>!1,dq=t=>eq.test(t),hq=t=>tq.test(t),uq=()=>{const t=He("colors"),a=He("spacing"),r=He("blur"),n=He("brightness"),s=He("borderColor"),i=He("borderRadius"),c=He("borderSpacing"),l=He("borderWidth"),d=He("contrast"),h=He("grayscale"),u=He("hueRotate"),p=He("invert"),m=He("gap"),y=He("gradientColorStops"),x=He("gradientColorStopPositions"),f=He("inset"),v=He("margin"),k=He("opacity"),w=He("padding"),b=He("saturate"),S=He("scale"),C=He("sepia"),A=He("skew"),L=He("space"),j=He("translate"),N=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",we,a],T=()=>[we,a],R=()=>["",qa,tr],E=()=>["auto",To,we],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",we],ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[To,we];return{cacheSize:500,separator:":",theme:{colors:[gc],spacing:[qa,tr],blur:["none","",ar,we],brightness:pe(),borderColor:[t],borderRadius:["none","","full",ar,we],borderSpacing:T(),borderWidth:R(),contrast:pe(),grayscale:ae(),hueRotate:pe(),invert:ae(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[aq,tr],inset:P(),margin:P(),opacity:pe(),padding:T(),saturate:pe(),scale:pe(),sepia:ae(),skew:pe(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":ce()}],"break-before":[{"break-before":ce()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),we]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xc,we]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",xc,we]}],"grid-cols":[{"grid-cols":[gc]}],"col-start-end":[{col:["auto",{span:["full",xc,we]},we]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[gc]}],"row-start-end":[{row:["auto",{span:[xc,we]},we]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,a]}],"min-w":[{"min-w":[we,a,"min","max","fit"]}],"max-w":[{"max-w":[we,a,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[we,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,a,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pj]}],"font-family":[{font:[gc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",To,pj]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",qa,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",qa,tr]}],"underline-offset":[{"underline-offset":["auto",qa,we]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),sq]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},oq]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[qa,we]}],"outline-w":[{outline:[qa,tr]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[qa,tr]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ar,cq]}],"shadow-color":[{shadow:[gc]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ar,we]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[p]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[xc,we]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[qa,tr,pj]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},pq=ZT(uq);function ue(...t){return pq(qT(t))}const IC=D9("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",accent:"bg-accent text-accent-foreground hover:bg-accent-hover shadow-accent transform hover:scale-[1.02] hover:shadow-lg",hero:"bg-gradient-accent text-accent-foreground hover:opacity-90 shadow-accent transform hover:scale-[1.05] px-8 py-3 text-base font-bold",gaming:"bg-gaming-gold text-primary hover:bg-gaming-gold/90 shadow-accent transform hover:scale-[1.02]"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),D=g.forwardRef(({className:t,variant:a,size:r,asChild:n=!1,...s},i)=>{const c=n?NT:"button";return e.jsx(c,{className:ue(IC({variant:a,size:r,className:t})),ref:i,...s})});D.displayName="Button";const Pe=g.forwardRef(({className:t,type:a,...r},n)=>e.jsx("input",{type:a,className:ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...r}));Pe.displayName="Input";/**
|
|
31
31
|
* @license lucide-react v0.451.0 - ISC
|
|
32
32
|
*
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
@@ -7722,7 +7722,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7722
7722
|
*
|
|
7723
7723
|
* This source code is licensed under the ISC license.
|
|
7724
7724
|
* See the LICENSE file in the root directory of this source tree.
|
|
7725
|
-
*/const xq=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Rl,AArrowDownIcon:Rl,AArrowUp:Tl,AArrowUpIcon:Tl,ALargeSmall:ql,ALargeSmallIcon:ql,Accessibility:Dl,AccessibilityIcon:Dl,Activity:zl,ActivityIcon:zl,ActivitySquare:Bs,ActivitySquareIcon:Bs,AirVent:El,AirVentIcon:El,Airplay:Fl,AirplayIcon:Fl,AlarmCheck:Fr,AlarmCheckIcon:Fr,AlarmClock:Hl,AlarmClockCheck:Fr,AlarmClockCheckIcon:Fr,AlarmClockIcon:Hl,AlarmClockMinus:Or,AlarmClockMinusIcon:Or,AlarmClockOff:Ol,AlarmClockOffIcon:Ol,AlarmClockPlus:Hr,AlarmClockPlusIcon:Hr,AlarmMinus:Or,AlarmMinusIcon:Or,AlarmPlus:Hr,AlarmPlusIcon:Hr,AlarmSmoke:Vl,AlarmSmokeIcon:Vl,Album:Bl,AlbumIcon:Bl,AlertCircle:Tt,AlertCircleIcon:Tt,AlertOctagon:vs,AlertOctagonIcon:vs,AlertTriangle:Bi,AlertTriangleIcon:Bi,AlignCenter:Gl,AlignCenterHorizontal:$l,AlignCenterHorizontalIcon:$l,AlignCenterIcon:Gl,AlignCenterVertical:Ul,AlignCenterVerticalIcon:Ul,AlignEndHorizontal:Wl,AlignEndHorizontalIcon:Wl,AlignEndVertical:Zl,AlignEndVerticalIcon:Zl,AlignHorizontalDistributeCenter:Jl,AlignHorizontalDistributeCenterIcon:Jl,AlignHorizontalDistributeEnd:Xl,AlignHorizontalDistributeEndIcon:Xl,AlignHorizontalDistributeStart:Yl,AlignHorizontalDistributeStartIcon:Yl,AlignHorizontalJustifyCenter:Kl,AlignHorizontalJustifyCenterIcon:Kl,AlignHorizontalJustifyEnd:Ql,AlignHorizontalJustifyEndIcon:Ql,AlignHorizontalJustifyStart:e1,AlignHorizontalJustifyStartIcon:e1,AlignHorizontalSpaceAround:t1,AlignHorizontalSpaceAroundIcon:t1,AlignHorizontalSpaceBetween:a1,AlignHorizontalSpaceBetweenIcon:a1,AlignJustify:r1,AlignJustifyIcon:r1,AlignLeft:n1,AlignLeftIcon:n1,AlignRight:s1,AlignRightIcon:s1,AlignStartHorizontal:i1,AlignStartHorizontalIcon:i1,AlignStartVertical:o1,AlignStartVerticalIcon:o1,AlignVerticalDistributeCenter:c1,AlignVerticalDistributeCenterIcon:c1,AlignVerticalDistributeEnd:l1,AlignVerticalDistributeEndIcon:l1,AlignVerticalDistributeStart:d1,AlignVerticalDistributeStartIcon:d1,AlignVerticalJustifyCenter:h1,AlignVerticalJustifyCenterIcon:h1,AlignVerticalJustifyEnd:u1,AlignVerticalJustifyEndIcon:u1,AlignVerticalJustifyStart:p1,AlignVerticalJustifyStartIcon:p1,AlignVerticalSpaceAround:y1,AlignVerticalSpaceAroundIcon:y1,AlignVerticalSpaceBetween:m1,AlignVerticalSpaceBetweenIcon:m1,Ambulance:f1,AmbulanceIcon:f1,Ampersand:x1,AmpersandIcon:x1,Ampersands:g1,AmpersandsIcon:g1,Amphora:k1,AmphoraIcon:k1,Anchor:v1,AnchorIcon:v1,Angry:w1,AngryIcon:w1,Annoyed:b1,AnnoyedIcon:b1,Antenna:M1,AntennaIcon:M1,Anvil:j1,AnvilIcon:j1,Aperture:C1,ApertureIcon:C1,AppWindow:L1,AppWindowIcon:L1,AppWindowMac:S1,AppWindowMacIcon:S1,Apple:N1,AppleIcon:N1,Archive:P1,ArchiveIcon:P1,ArchiveRestore:I1,ArchiveRestoreIcon:I1,ArchiveX:A1,ArchiveXIcon:A1,AreaChart:tn,AreaChartIcon:tn,Armchair:_1,ArmchairIcon:_1,ArrowBigDown:T1,ArrowBigDownDash:R1,ArrowBigDownDashIcon:R1,ArrowBigDownIcon:T1,ArrowBigLeft:D1,ArrowBigLeftDash:q1,ArrowBigLeftDashIcon:q1,ArrowBigLeftIcon:D1,ArrowBigRight:E1,ArrowBigRightDash:z1,ArrowBigRightDashIcon:z1,ArrowBigRightIcon:E1,ArrowBigUp:O1,ArrowBigUpDash:F1,ArrowBigUpDashIcon:F1,ArrowBigUpIcon:O1,ArrowDown:X1,ArrowDown01:H1,ArrowDown01Icon:H1,ArrowDown10:V1,ArrowDown10Icon:V1,ArrowDownAZ:Vr,ArrowDownAZIcon:Vr,ArrowDownAz:Vr,ArrowDownAzIcon:Vr,ArrowDownCircle:yn,ArrowDownCircleIcon:yn,ArrowDownFromLine:B1,ArrowDownFromLineIcon:B1,ArrowDownIcon:X1,ArrowDownLeft:$1,ArrowDownLeftFromCircle:fn,ArrowDownLeftFromCircleIcon:fn,ArrowDownLeftFromSquare:Ws,ArrowDownLeftFromSquareIcon:Ws,ArrowDownLeftIcon:$1,ArrowDownLeftSquare:$s,ArrowDownLeftSquareIcon:$s,ArrowDownNarrowWide:U1,ArrowDownNarrowWideIcon:U1,ArrowDownRight:G1,ArrowDownRightFromCircle:xn,ArrowDownRightFromCircleIcon:xn,ArrowDownRightFromSquare:Zs,ArrowDownRightFromSquareIcon:Zs,ArrowDownRightIcon:G1,ArrowDownRightSquare:Us,ArrowDownRightSquareIcon:Us,ArrowDownSquare:Gs,ArrowDownSquareIcon:Gs,ArrowDownToDot:W1,ArrowDownToDotIcon:W1,ArrowDownToLine:Z1,ArrowDownToLineIcon:Z1,ArrowDownUp:J1,ArrowDownUpIcon:J1,ArrowDownWideNarrow:Br,ArrowDownWideNarrowIcon:Br,ArrowDownZA:$r,ArrowDownZAIcon:$r,ArrowDownZa:$r,ArrowDownZaIcon:$r,ArrowLeft:Ha,ArrowLeftCircle:mn,ArrowLeftCircleIcon:mn,ArrowLeftFromLine:Y1,ArrowLeftFromLineIcon:Y1,ArrowLeftIcon:Ha,ArrowLeftRight:K1,ArrowLeftRightIcon:K1,ArrowLeftSquare:Ea,ArrowLeftSquareIcon:Ea,ArrowLeftToLine:Q1,ArrowLeftToLineIcon:Q1,ArrowRight:io,ArrowRightCircle:vn,ArrowRightCircleIcon:vn,ArrowRightFromLine:ed,ArrowRightFromLineIcon:ed,ArrowRightIcon:io,ArrowRightLeft:td,ArrowRightLeftIcon:td,ArrowRightSquare:Fa,ArrowRightSquareIcon:Fa,ArrowRightToLine:ad,ArrowRightToLineIcon:ad,ArrowUp:ud,ArrowUp01:rd,ArrowUp01Icon:rd,ArrowUp10:nd,ArrowUp10Icon:nd,ArrowUpAZ:Ur,ArrowUpAZIcon:Ur,ArrowUpAz:Ur,ArrowUpAzIcon:Ur,ArrowUpCircle:wn,ArrowUpCircleIcon:wn,ArrowUpDown:sd,ArrowUpDownIcon:sd,ArrowUpFromDot:id,ArrowUpFromDotIcon:id,ArrowUpFromLine:od,ArrowUpFromLineIcon:od,ArrowUpIcon:ud,ArrowUpLeft:cd,ArrowUpLeftFromCircle:gn,ArrowUpLeftFromCircleIcon:gn,ArrowUpLeftFromSquare:Js,ArrowUpLeftFromSquareIcon:Js,ArrowUpLeftIcon:cd,ArrowUpLeftSquare:Ys,ArrowUpLeftSquareIcon:Ys,ArrowUpNarrowWide:Gr,ArrowUpNarrowWideIcon:Gr,ArrowUpRight:ld,ArrowUpRightFromCircle:kn,ArrowUpRightFromCircleIcon:kn,ArrowUpRightFromSquare:Xs,ArrowUpRightFromSquareIcon:Xs,ArrowUpRightIcon:ld,ArrowUpRightSquare:Ks,ArrowUpRightSquareIcon:Ks,ArrowUpSquare:Qs,ArrowUpSquareIcon:Qs,ArrowUpToLine:dd,ArrowUpToLineIcon:dd,ArrowUpWideNarrow:hd,ArrowUpWideNarrowIcon:hd,ArrowUpZA:Wr,ArrowUpZAIcon:Wr,ArrowUpZa:Wr,ArrowUpZaIcon:Wr,ArrowsUpFromLine:pd,ArrowsUpFromLineIcon:pd,Asterisk:yd,AsteriskIcon:yd,AsteriskSquare:ei,AsteriskSquareIcon:ei,AtSign:md,AtSignIcon:md,Atom:fd,AtomIcon:fd,AudioLines:xd,AudioLinesIcon:xd,AudioWaveform:gd,AudioWaveformIcon:gd,Award:Jt,AwardIcon:Jt,Axe:kd,AxeIcon:kd,Axis3D:Zr,Axis3DIcon:Zr,Axis3d:Zr,Axis3dIcon:Zr,Baby:vd,BabyIcon:vd,Backpack:wd,BackpackIcon:wd,Badge:Mc,BadgeAlert:bd,BadgeAlertIcon:bd,BadgeCent:Md,BadgeCentIcon:Md,BadgeCheck:Jr,BadgeCheckIcon:Jr,BadgeDollarSign:jd,BadgeDollarSignIcon:jd,BadgeEuro:Cd,BadgeEuroIcon:Cd,BadgeHelp:Sd,BadgeHelpIcon:Sd,BadgeIcon:Mc,BadgeIndianRupee:Ld,BadgeIndianRupeeIcon:Ld,BadgeInfo:Nd,BadgeInfoIcon:Nd,BadgeJapaneseYen:Id,BadgeJapaneseYenIcon:Id,BadgeMinus:Ad,BadgeMinusIcon:Ad,BadgePercent:Pd,BadgePercentIcon:Pd,BadgePlus:_d,BadgePlusIcon:_d,BadgePoundSterling:Rd,BadgePoundSterlingIcon:Rd,BadgeRussianRuble:Td,BadgeRussianRubleIcon:Td,BadgeSwissFranc:qd,BadgeSwissFrancIcon:qd,BadgeX:Dd,BadgeXIcon:Dd,BaggageClaim:zd,BaggageClaimIcon:zd,Ban:Ed,BanIcon:Ed,Banana:Fd,BananaIcon:Fd,Bandage:Od,BandageIcon:Od,Banknote:Hd,BanknoteIcon:Hd,BarChart:sr,BarChart2:dn,BarChart2Icon:dn,BarChart3:cn,BarChart3Icon:cn,BarChart4:on,BarChart4Icon:on,BarChartBig:sn,BarChartBigIcon:sn,BarChartHorizontal:rn,BarChartHorizontalBig:an,BarChartHorizontalBigIcon:an,BarChartHorizontalIcon:rn,BarChartIcon:sr,Barcode:Vd,BarcodeIcon:Vd,Baseline:Bd,BaselineIcon:Bd,Bath:$d,BathIcon:$d,Battery:Xd,BatteryCharging:Ud,BatteryChargingIcon:Ud,BatteryFull:Gd,BatteryFullIcon:Gd,BatteryIcon:Xd,BatteryLow:Wd,BatteryLowIcon:Wd,BatteryMedium:Zd,BatteryMediumIcon:Zd,BatteryWarning:Jd,BatteryWarningIcon:Jd,Beaker:Yd,BeakerIcon:Yd,Bean:Qd,BeanIcon:Qd,BeanOff:Kd,BeanOffIcon:Kd,Bed:a2,BedDouble:e2,BedDoubleIcon:e2,BedIcon:a2,BedSingle:t2,BedSingleIcon:t2,Beef:r2,BeefIcon:r2,Beer:s2,BeerIcon:s2,BeerOff:n2,BeerOffIcon:n2,Bell:qo,BellDot:i2,BellDotIcon:i2,BellElectric:o2,BellElectricIcon:o2,BellIcon:qo,BellMinus:c2,BellMinusIcon:c2,BellOff:l2,BellOffIcon:l2,BellPlus:d2,BellPlusIcon:d2,BellRing:h2,BellRingIcon:h2,BetweenHorizonalEnd:Xr,BetweenHorizonalEndIcon:Xr,BetweenHorizonalStart:Yr,BetweenHorizonalStartIcon:Yr,BetweenHorizontalEnd:Xr,BetweenHorizontalEndIcon:Xr,BetweenHorizontalStart:Yr,BetweenHorizontalStartIcon:Yr,BetweenVerticalEnd:u2,BetweenVerticalEndIcon:u2,BetweenVerticalStart:p2,BetweenVerticalStartIcon:p2,BicepsFlexed:y2,BicepsFlexedIcon:y2,Bike:m2,BikeIcon:m2,Binary:f2,BinaryIcon:f2,Binoculars:x2,BinocularsIcon:x2,Biohazard:g2,BiohazardIcon:g2,Bird:k2,BirdIcon:k2,Bitcoin:v2,BitcoinIcon:v2,Blend:w2,BlendIcon:w2,Blinds:b2,BlindsIcon:b2,Blocks:M2,BlocksIcon:M2,Bluetooth:L2,BluetoothConnected:j2,BluetoothConnectedIcon:j2,BluetoothIcon:L2,BluetoothOff:C2,BluetoothOffIcon:C2,BluetoothSearching:S2,BluetoothSearchingIcon:S2,Bold:N2,BoldIcon:N2,Bolt:I2,BoltIcon:I2,Bomb:A2,BombIcon:A2,Bone:P2,BoneIcon:P2,Book:Q2,BookA:_2,BookAIcon:_2,BookAudio:R2,BookAudioIcon:R2,BookCheck:T2,BookCheckIcon:T2,BookCopy:q2,BookCopyIcon:q2,BookDashed:Kr,BookDashedIcon:Kr,BookDown:D2,BookDownIcon:D2,BookHeadphones:z2,BookHeadphonesIcon:z2,BookHeart:E2,BookHeartIcon:E2,BookIcon:Q2,BookImage:F2,BookImageIcon:F2,BookKey:O2,BookKeyIcon:O2,BookLock:H2,BookLockIcon:H2,BookMarked:V2,BookMarkedIcon:V2,BookMinus:B2,BookMinusIcon:B2,BookOpen:Kt,BookOpenCheck:$2,BookOpenCheckIcon:$2,BookOpenIcon:Kt,BookOpenText:U2,BookOpenTextIcon:U2,BookPlus:G2,BookPlusIcon:G2,BookTemplate:Kr,BookTemplateIcon:Kr,BookText:W2,BookTextIcon:W2,BookType:Z2,BookTypeIcon:Z2,BookUp:X2,BookUp2:J2,BookUp2Icon:J2,BookUpIcon:X2,BookUser:Y2,BookUserIcon:Y2,BookX:K2,BookXIcon:K2,Bookmark:Va,BookmarkCheck:la,BookmarkCheckIcon:la,BookmarkIcon:Va,BookmarkMinus:eh,BookmarkMinusIcon:eh,BookmarkPlus:Do,BookmarkPlusIcon:Do,BookmarkX:th,BookmarkXIcon:th,BoomBox:ah,BoomBoxIcon:ah,Bot:jc,BotIcon:jc,BotMessageSquare:rh,BotMessageSquareIcon:rh,BotOff:nh,BotOffIcon:nh,Box:sh,BoxIcon:sh,BoxSelect:hi,BoxSelectIcon:hi,Boxes:ih,BoxesIcon:ih,Braces:Qr,BracesIcon:Qr,Brackets:oh,BracketsIcon:oh,Brain:dh,BrainCircuit:ch,BrainCircuitIcon:ch,BrainCog:lh,BrainCogIcon:lh,BrainIcon:dh,BrickWall:hh,BrickWallIcon:hh,Briefcase:at,BriefcaseBusiness:uh,BriefcaseBusinessIcon:uh,BriefcaseConveyorBelt:ph,BriefcaseConveyorBeltIcon:ph,BriefcaseIcon:at,BriefcaseMedical:yh,BriefcaseMedicalIcon:yh,BringToFront:mh,BringToFrontIcon:mh,Brush:fh,BrushIcon:fh,Bug:kh,BugIcon:kh,BugOff:xh,BugOffIcon:xh,BugPlay:gh,BugPlayIcon:gh,Building:zo,Building2:pt,Building2Icon:pt,BuildingIcon:zo,Bus:wh,BusFront:vh,BusFrontIcon:vh,BusIcon:wh,Cable:Mh,CableCar:bh,CableCarIcon:bh,CableIcon:Mh,Cake:Ch,CakeIcon:Ch,CakeSlice:jh,CakeSliceIcon:jh,Calculator:Sh,CalculatorIcon:Sh,Calendar:oo,CalendarArrowDown:Lh,CalendarArrowDownIcon:Lh,CalendarArrowUp:Nh,CalendarArrowUpIcon:Nh,CalendarCheck:Ah,CalendarCheck2:Ih,CalendarCheck2Icon:Ih,CalendarCheckIcon:Ah,CalendarClock:Ph,CalendarClockIcon:Ph,CalendarCog:_h,CalendarCogIcon:_h,CalendarDays:Cc,CalendarDaysIcon:Cc,CalendarFold:Rh,CalendarFoldIcon:Rh,CalendarHeart:Th,CalendarHeartIcon:Th,CalendarIcon:oo,CalendarMinus:Dh,CalendarMinus2:qh,CalendarMinus2Icon:qh,CalendarMinusIcon:Dh,CalendarOff:zh,CalendarOffIcon:zh,CalendarPlus:Fh,CalendarPlus2:Eh,CalendarPlus2Icon:Eh,CalendarPlusIcon:Fh,CalendarRange:Oh,CalendarRangeIcon:Oh,CalendarSearch:Hh,CalendarSearchIcon:Hh,CalendarX:Bh,CalendarX2:Vh,CalendarX2Icon:Vh,CalendarXIcon:Bh,Camera:Uh,CameraIcon:Uh,CameraOff:$h,CameraOffIcon:$h,CandlestickChart:nn,CandlestickChartIcon:nn,Candy:Zh,CandyCane:Gh,CandyCaneIcon:Gh,CandyIcon:Zh,CandyOff:Wh,CandyOffIcon:Wh,Cannabis:Jh,CannabisIcon:Jh,Captions:en,CaptionsIcon:en,CaptionsOff:Xh,CaptionsOffIcon:Xh,Car:Qh,CarFront:Yh,CarFrontIcon:Yh,CarIcon:Qh,CarTaxiFront:Kh,CarTaxiFrontIcon:Kh,Caravan:e0,CaravanIcon:e0,Carrot:t0,CarrotIcon:t0,CaseLower:a0,CaseLowerIcon:a0,CaseSensitive:r0,CaseSensitiveIcon:r0,CaseUpper:n0,CaseUpperIcon:n0,CassetteTape:s0,CassetteTapeIcon:s0,Cast:i0,CastIcon:i0,Castle:o0,CastleIcon:o0,Cat:c0,CatIcon:c0,Cctv:l0,CctvIcon:l0,ChartArea:tn,ChartAreaIcon:tn,ChartBar:rn,ChartBarBig:an,ChartBarBigIcon:an,ChartBarDecreasing:d0,ChartBarDecreasingIcon:d0,ChartBarIcon:rn,ChartBarIncreasing:h0,ChartBarIncreasingIcon:h0,ChartBarStacked:u0,ChartBarStackedIcon:u0,ChartCandlestick:nn,ChartCandlestickIcon:nn,ChartColumn:cn,ChartColumnBig:sn,ChartColumnBigIcon:sn,ChartColumnDecreasing:p0,ChartColumnDecreasingIcon:p0,ChartColumnIcon:cn,ChartColumnIncreasing:on,ChartColumnIncreasingIcon:on,ChartColumnStacked:y0,ChartColumnStackedIcon:y0,ChartGantt:m0,ChartGanttIcon:m0,ChartLine:ln,ChartLineIcon:ln,ChartNetwork:f0,ChartNetworkIcon:f0,ChartNoAxesColumn:dn,ChartNoAxesColumnDecreasing:x0,ChartNoAxesColumnDecreasingIcon:x0,ChartNoAxesColumnIcon:dn,ChartNoAxesColumnIncreasing:sr,ChartNoAxesColumnIncreasingIcon:sr,ChartNoAxesCombined:g0,ChartNoAxesCombinedIcon:g0,ChartNoAxesGantt:hn,ChartNoAxesGanttIcon:hn,ChartPie:un,ChartPieIcon:un,ChartScatter:pn,ChartScatterIcon:pn,ChartSpline:k0,ChartSplineIcon:k0,Check:Eo,CheckCheck:v0,CheckCheckIcon:v0,CheckCircle:qt,CheckCircle2:ht,CheckCircle2Icon:ht,CheckCircleIcon:qt,CheckIcon:Eo,CheckSquare:ai,CheckSquare2:ri,CheckSquare2Icon:ri,CheckSquareIcon:ai,ChefHat:w0,ChefHatIcon:w0,Cherry:b0,CherryIcon:b0,ChevronDown:hr,ChevronDownCircle:bn,ChevronDownCircleIcon:bn,ChevronDownIcon:hr,ChevronDownSquare:ni,ChevronDownSquareIcon:ni,ChevronFirst:M0,ChevronFirstIcon:M0,ChevronLast:j0,ChevronLastIcon:j0,ChevronLeft:ur,ChevronLeftCircle:Mn,ChevronLeftCircleIcon:Mn,ChevronLeftIcon:ur,ChevronLeftSquare:si,ChevronLeftSquareIcon:si,ChevronRight:pr,ChevronRightCircle:jn,ChevronRightCircleIcon:jn,ChevronRightIcon:pr,ChevronRightSquare:ii,ChevronRightSquareIcon:ii,ChevronUp:Fo,ChevronUpCircle:Cn,ChevronUpCircleIcon:Cn,ChevronUpIcon:Fo,ChevronUpSquare:oi,ChevronUpSquareIcon:oi,ChevronsDown:S0,ChevronsDownIcon:S0,ChevronsDownUp:C0,ChevronsDownUpIcon:C0,ChevronsLeft:I0,ChevronsLeftIcon:I0,ChevronsLeftRight:N0,ChevronsLeftRightEllipsis:L0,ChevronsLeftRightEllipsisIcon:L0,ChevronsLeftRightIcon:N0,ChevronsRight:P0,ChevronsRightIcon:P0,ChevronsRightLeft:A0,ChevronsRightLeftIcon:A0,ChevronsUp:R0,ChevronsUpDown:_0,ChevronsUpDownIcon:_0,ChevronsUpIcon:R0,Chrome:T0,ChromeIcon:T0,Church:q0,ChurchIcon:q0,Cigarette:z0,CigaretteIcon:z0,CigaretteOff:D0,CigaretteOffIcon:D0,Circle:Z0,CircleAlert:Tt,CircleAlertIcon:Tt,CircleArrowDown:yn,CircleArrowDownIcon:yn,CircleArrowLeft:mn,CircleArrowLeftIcon:mn,CircleArrowOutDownLeft:fn,CircleArrowOutDownLeftIcon:fn,CircleArrowOutDownRight:xn,CircleArrowOutDownRightIcon:xn,CircleArrowOutUpLeft:gn,CircleArrowOutUpLeftIcon:gn,CircleArrowOutUpRight:kn,CircleArrowOutUpRightIcon:kn,CircleArrowRight:vn,CircleArrowRightIcon:vn,CircleArrowUp:wn,CircleArrowUpIcon:wn,CircleCheck:ht,CircleCheckBig:qt,CircleCheckBigIcon:qt,CircleCheckIcon:ht,CircleChevronDown:bn,CircleChevronDownIcon:bn,CircleChevronLeft:Mn,CircleChevronLeftIcon:Mn,CircleChevronRight:jn,CircleChevronRightIcon:jn,CircleChevronUp:Cn,CircleChevronUpIcon:Cn,CircleDashed:E0,CircleDashedIcon:E0,CircleDivide:Sn,CircleDivideIcon:Sn,CircleDollarSign:F0,CircleDollarSignIcon:F0,CircleDot:H0,CircleDotDashed:O0,CircleDotDashedIcon:O0,CircleDotIcon:H0,CircleEllipsis:V0,CircleEllipsisIcon:V0,CircleEqual:B0,CircleEqualIcon:B0,CircleFadingArrowUp:$0,CircleFadingArrowUpIcon:$0,CircleFadingPlus:U0,CircleFadingPlusIcon:U0,CircleGauge:Ln,CircleGaugeIcon:Ln,CircleHelp:ir,CircleHelpIcon:ir,CircleIcon:Z0,CircleMinus:Nn,CircleMinusIcon:Nn,CircleOff:G0,CircleOffIcon:G0,CircleParking:An,CircleParkingIcon:An,CircleParkingOff:In,CircleParkingOffIcon:In,CirclePause:Pn,CirclePauseIcon:Pn,CirclePercent:_n,CirclePercentIcon:_n,CirclePlay:Rn,CirclePlayIcon:Rn,CirclePlus:Tn,CirclePlusIcon:Tn,CirclePower:qn,CirclePowerIcon:qn,CircleSlash:W0,CircleSlash2:Dn,CircleSlash2Icon:Dn,CircleSlashIcon:W0,CircleSlashed:Dn,CircleSlashedIcon:Dn,CircleStop:zn,CircleStopIcon:zn,CircleUser:Fn,CircleUserIcon:Fn,CircleUserRound:En,CircleUserRoundIcon:En,CircleX:xa,CircleXIcon:xa,CircuitBoard:J0,CircuitBoardIcon:J0,Citrus:X0,CitrusIcon:X0,Clapperboard:Y0,ClapperboardIcon:Y0,Clipboard:iu,ClipboardCheck:K0,ClipboardCheckIcon:K0,ClipboardCopy:Q0,ClipboardCopyIcon:Q0,ClipboardEdit:Hn,ClipboardEditIcon:Hn,ClipboardIcon:iu,ClipboardList:eu,ClipboardListIcon:eu,ClipboardMinus:tu,ClipboardMinusIcon:tu,ClipboardPaste:au,ClipboardPasteIcon:au,ClipboardPen:Hn,ClipboardPenIcon:Hn,ClipboardPenLine:On,ClipboardPenLineIcon:On,ClipboardPlus:ru,ClipboardPlusIcon:ru,ClipboardSignature:On,ClipboardSignatureIcon:On,ClipboardType:nu,ClipboardTypeIcon:nu,ClipboardX:su,ClipboardXIcon:su,Clock:da,Clock1:ou,Clock10:cu,Clock10Icon:cu,Clock11:lu,Clock11Icon:lu,Clock12:du,Clock12Icon:du,Clock1Icon:ou,Clock2:hu,Clock2Icon:hu,Clock3:uu,Clock3Icon:uu,Clock4:pu,Clock4Icon:pu,Clock5:yu,Clock5Icon:yu,Clock6:mu,Clock6Icon:mu,Clock7:fu,Clock7Icon:fu,Clock8:xu,Clock8Icon:xu,Clock9:gu,Clock9Icon:gu,ClockAlert:ku,ClockAlertIcon:ku,ClockArrowDown:vu,ClockArrowDownIcon:vu,ClockArrowUp:wu,ClockArrowUpIcon:wu,ClockIcon:da,Cloud:qu,CloudCog:bu,CloudCogIcon:bu,CloudDownload:Vn,CloudDownloadIcon:Vn,CloudDrizzle:Mu,CloudDrizzleIcon:Mu,CloudFog:ju,CloudFogIcon:ju,CloudHail:Cu,CloudHailIcon:Cu,CloudIcon:qu,CloudLightning:Su,CloudLightningIcon:Su,CloudMoon:Nu,CloudMoonIcon:Nu,CloudMoonRain:Lu,CloudMoonRainIcon:Lu,CloudOff:Iu,CloudOffIcon:Iu,CloudRain:Pu,CloudRainIcon:Pu,CloudRainWind:Au,CloudRainWindIcon:Au,CloudSnow:_u,CloudSnowIcon:_u,CloudSun:Tu,CloudSunIcon:Tu,CloudSunRain:Ru,CloudSunRainIcon:Ru,CloudUpload:or,CloudUploadIcon:or,Cloudy:Du,CloudyIcon:Du,Clover:zu,CloverIcon:zu,Club:Eu,ClubIcon:Eu,Code:Fu,Code2:Bn,Code2Icon:Bn,CodeIcon:Fu,CodeSquare:ci,CodeSquareIcon:ci,CodeXml:Bn,CodeXmlIcon:Bn,Codepen:Ou,CodepenIcon:Ou,Codesandbox:Hu,CodesandboxIcon:Hu,Coffee:Vu,CoffeeIcon:Vu,Cog:Bu,CogIcon:Bu,Coins:$u,CoinsIcon:$u,Columns:$n,Columns2:$n,Columns2Icon:$n,Columns3:Un,Columns3Icon:Un,Columns4:Uu,Columns4Icon:Uu,ColumnsIcon:$n,Combine:Gu,CombineIcon:Gu,Command:Wu,CommandIcon:Wu,Compass:Zu,CompassIcon:Zu,Component:Ju,ComponentIcon:Ju,Computer:Xu,ComputerIcon:Xu,ConciergeBell:Yu,ConciergeBellIcon:Yu,Cone:Ku,ConeIcon:Ku,Construction:Qu,ConstructionIcon:Qu,Contact:ep,Contact2:Gn,Contact2Icon:Gn,ContactIcon:ep,ContactRound:Gn,ContactRoundIcon:Gn,Container:tp,ContainerIcon:tp,Contrast:ap,ContrastIcon:ap,Cookie:rp,CookieIcon:rp,CookingPot:np,CookingPotIcon:np,Copy:dp,CopyCheck:sp,CopyCheckIcon:sp,CopyIcon:dp,CopyMinus:ip,CopyMinusIcon:ip,CopyPlus:op,CopyPlusIcon:op,CopySlash:cp,CopySlashIcon:cp,CopyX:lp,CopyXIcon:lp,Copyleft:hp,CopyleftIcon:hp,Copyright:up,CopyrightIcon:up,CornerDownLeft:pp,CornerDownLeftIcon:pp,CornerDownRight:yp,CornerDownRightIcon:yp,CornerLeftDown:mp,CornerLeftDownIcon:mp,CornerLeftUp:fp,CornerLeftUpIcon:fp,CornerRightDown:xp,CornerRightDownIcon:xp,CornerRightUp:gp,CornerRightUpIcon:gp,CornerUpLeft:kp,CornerUpLeftIcon:kp,CornerUpRight:vp,CornerUpRightIcon:vp,Cpu:wp,CpuIcon:wp,CreativeCommons:bp,CreativeCommonsIcon:bp,CreditCard:Sc,CreditCardIcon:Sc,Croissant:Mp,CroissantIcon:Mp,Crop:jp,CropIcon:jp,Cross:Cp,CrossIcon:Cp,Crosshair:Sp,CrosshairIcon:Sp,Crown:Lp,CrownIcon:Lp,Cuboid:Np,CuboidIcon:Np,CupSoda:Ip,CupSodaIcon:Ip,CurlyBraces:Qr,CurlyBracesIcon:Qr,Currency:Ap,CurrencyIcon:Ap,Cylinder:Pp,CylinderIcon:Pp,Dam:_p,DamIcon:_p,Database:qp,DatabaseBackup:Rp,DatabaseBackupIcon:Rp,DatabaseIcon:qp,DatabaseZap:Tp,DatabaseZapIcon:Tp,Delete:Dp,DeleteIcon:Dp,Dessert:zp,DessertIcon:zp,Diameter:Ep,DiameterIcon:Ep,Diamond:Hp,DiamondIcon:Hp,DiamondMinus:Fp,DiamondMinusIcon:Fp,DiamondPercent:Wn,DiamondPercentIcon:Wn,DiamondPlus:Op,DiamondPlusIcon:Op,Dice1:Vp,Dice1Icon:Vp,Dice2:Bp,Dice2Icon:Bp,Dice3:$p,Dice3Icon:$p,Dice4:Up,Dice4Icon:Up,Dice5:Gp,Dice5Icon:Gp,Dice6:Wp,Dice6Icon:Wp,Dices:Zp,DicesIcon:Zp,Diff:Jp,DiffIcon:Jp,Disc:Qp,Disc2:Xp,Disc2Icon:Xp,Disc3:Yp,Disc3Icon:Yp,DiscAlbum:Kp,DiscAlbumIcon:Kp,DiscIcon:Qp,Divide:ey,DivideCircle:Sn,DivideCircleIcon:Sn,DivideIcon:ey,DivideSquare:ui,DivideSquareIcon:ui,Dna:ay,DnaIcon:ay,DnaOff:ty,DnaOffIcon:ty,Dock:ry,DockIcon:ry,Dog:ny,DogIcon:ny,DollarSign:Lc,DollarSignIcon:Lc,Donut:sy,DonutIcon:sy,DoorClosed:iy,DoorClosedIcon:iy,DoorOpen:oy,DoorOpenIcon:oy,Dot:cy,DotIcon:cy,DotSquare:pi,DotSquareIcon:pi,Download:Nc,DownloadCloud:Vn,DownloadCloudIcon:Vn,DownloadIcon:Nc,DraftingCompass:ly,DraftingCompassIcon:ly,Drama:dy,DramaIcon:dy,Dribbble:hy,DribbbleIcon:hy,Drill:uy,DrillIcon:uy,Droplet:py,DropletIcon:py,Droplets:yy,DropletsIcon:yy,Drum:my,DrumIcon:my,Drumstick:fy,DrumstickIcon:fy,Dumbbell:xy,DumbbellIcon:xy,Ear:ky,EarIcon:ky,EarOff:gy,EarOffIcon:gy,Earth:Zn,EarthIcon:Zn,EarthLock:vy,EarthLockIcon:vy,Eclipse:wy,EclipseIcon:wy,Edit:Pt,Edit2:Rs,Edit2Icon:Rs,Edit3:_s,Edit3Icon:_s,EditIcon:Pt,Egg:jy,EggFried:by,EggFriedIcon:by,EggIcon:jy,EggOff:My,EggOffIcon:My,Ellipsis:Xn,EllipsisIcon:Xn,EllipsisVertical:Jn,EllipsisVerticalIcon:Jn,Equal:Sy,EqualIcon:Sy,EqualNot:Cy,EqualNotIcon:Cy,EqualSquare:yi,EqualSquareIcon:yi,Eraser:Ly,EraserIcon:Ly,EthernetPort:Ny,EthernetPortIcon:Ny,Euro:Iy,EuroIcon:Iy,Expand:Ay,ExpandIcon:Ay,ExternalLink:co,ExternalLinkIcon:co,Eye:Oo,EyeClosed:Py,EyeClosedIcon:Py,EyeIcon:Oo,EyeOff:Ic,EyeOffIcon:Ic,Facebook:_y,FacebookIcon:_y,Factory:Ry,FactoryIcon:Ry,Fan:Ty,FanIcon:Ty,FastForward:qy,FastForwardIcon:qy,Feather:Dy,FeatherIcon:Dy,Fence:zy,FenceIcon:zy,FerrisWheel:Ey,FerrisWheelIcon:Ey,Figma:Fy,FigmaIcon:Fy,File:qm,FileArchive:Oy,FileArchiveIcon:Oy,FileAudio:Vy,FileAudio2:Hy,FileAudio2Icon:Hy,FileAudioIcon:Vy,FileAxis3D:Yn,FileAxis3DIcon:Yn,FileAxis3d:Yn,FileAxis3dIcon:Yn,FileBadge:$y,FileBadge2:By,FileBadge2Icon:By,FileBadgeIcon:$y,FileBarChart:Kn,FileBarChart2:Qn,FileBarChart2Icon:Qn,FileBarChartIcon:Kn,FileBox:Uy,FileBoxIcon:Uy,FileChartColumn:Qn,FileChartColumnIcon:Qn,FileChartColumnIncreasing:Kn,FileChartColumnIncreasingIcon:Kn,FileChartLine:es,FileChartLineIcon:es,FileChartPie:ts,FileChartPieIcon:ts,FileCheck:Wy,FileCheck2:Gy,FileCheck2Icon:Gy,FileCheckIcon:Wy,FileClock:Zy,FileClockIcon:Zy,FileCode:Xy,FileCode2:Jy,FileCode2Icon:Jy,FileCodeIcon:Xy,FileCog:as,FileCog2:as,FileCog2Icon:as,FileCogIcon:as,FileDiff:Yy,FileDiffIcon:Yy,FileDigit:Ky,FileDigitIcon:Ky,FileDown:Qy,FileDownIcon:Qy,FileEdit:ns,FileEditIcon:ns,FileHeart:em,FileHeartIcon:em,FileIcon:qm,FileImage:tm,FileImageIcon:tm,FileInput:am,FileInputIcon:am,FileJson:nm,FileJson2:rm,FileJson2Icon:rm,FileJsonIcon:nm,FileKey:im,FileKey2:sm,FileKey2Icon:sm,FileKeyIcon:im,FileLineChart:es,FileLineChartIcon:es,FileLock:cm,FileLock2:om,FileLock2Icon:om,FileLockIcon:cm,FileMinus:dm,FileMinus2:lm,FileMinus2Icon:lm,FileMinusIcon:dm,FileMusic:hm,FileMusicIcon:hm,FileOutput:um,FileOutputIcon:um,FilePen:ns,FilePenIcon:ns,FilePenLine:rs,FilePenLineIcon:rs,FilePieChart:ts,FilePieChartIcon:ts,FilePlus:ym,FilePlus2:pm,FilePlus2Icon:pm,FilePlusIcon:ym,FileQuestion:mm,FileQuestionIcon:mm,FileScan:fm,FileScanIcon:fm,FileSearch:gm,FileSearch2:xm,FileSearch2Icon:xm,FileSearchIcon:gm,FileSignature:rs,FileSignatureIcon:rs,FileSliders:km,FileSlidersIcon:km,FileSpreadsheet:vm,FileSpreadsheetIcon:vm,FileStack:wm,FileStackIcon:wm,FileSymlink:bm,FileSymlinkIcon:bm,FileTerminal:Mm,FileTerminalIcon:Mm,FileText:Ho,FileTextIcon:Ho,FileType:Cm,FileType2:jm,FileType2Icon:jm,FileTypeIcon:Cm,FileUp:Sm,FileUpIcon:Sm,FileUser:Lm,FileUserIcon:Lm,FileVideo:Im,FileVideo2:Nm,FileVideo2Icon:Nm,FileVideoIcon:Im,FileVolume:Pm,FileVolume2:Am,FileVolume2Icon:Am,FileVolumeIcon:Pm,FileWarning:_m,FileWarningIcon:_m,FileX:Tm,FileX2:Rm,FileX2Icon:Rm,FileXIcon:Tm,Files:Dm,FilesIcon:Dm,Film:zm,FilmIcon:zm,Filter:yr,FilterIcon:yr,FilterX:Em,FilterXIcon:Em,Fingerprint:Fm,FingerprintIcon:Fm,FireExtinguisher:Om,FireExtinguisherIcon:Om,Fish:Bm,FishIcon:Bm,FishOff:Hm,FishOffIcon:Hm,FishSymbol:Vm,FishSymbolIcon:Vm,Flag:Ac,FlagIcon:Ac,FlagOff:$m,FlagOffIcon:$m,FlagTriangleLeft:Um,FlagTriangleLeftIcon:Um,FlagTriangleRight:Gm,FlagTriangleRightIcon:Gm,Flame:Zm,FlameIcon:Zm,FlameKindling:Wm,FlameKindlingIcon:Wm,Flashlight:Xm,FlashlightIcon:Xm,FlashlightOff:Jm,FlashlightOffIcon:Jm,FlaskConical:Km,FlaskConicalIcon:Km,FlaskConicalOff:Ym,FlaskConicalOffIcon:Ym,FlaskRound:Qm,FlaskRoundIcon:Qm,FlipHorizontal:tf,FlipHorizontal2:ef,FlipHorizontal2Icon:ef,FlipHorizontalIcon:tf,FlipVertical:rf,FlipVertical2:af,FlipVertical2Icon:af,FlipVerticalIcon:rf,Flower:sf,Flower2:nf,Flower2Icon:nf,FlowerIcon:sf,Focus:of,FocusIcon:of,FoldHorizontal:cf,FoldHorizontalIcon:cf,FoldVertical:lf,FoldVerticalIcon:lf,Folder:zf,FolderArchive:df,FolderArchiveIcon:df,FolderCheck:hf,FolderCheckIcon:hf,FolderClock:uf,FolderClockIcon:uf,FolderClosed:pf,FolderClosedIcon:pf,FolderCode:yf,FolderCodeIcon:yf,FolderCog:ss,FolderCog2:ss,FolderCog2Icon:ss,FolderCogIcon:ss,FolderDot:mf,FolderDotIcon:mf,FolderDown:ff,FolderDownIcon:ff,FolderEdit:is,FolderEditIcon:is,FolderGit:gf,FolderGit2:xf,FolderGit2Icon:xf,FolderGitIcon:gf,FolderHeart:kf,FolderHeartIcon:kf,FolderIcon:zf,FolderInput:vf,FolderInputIcon:vf,FolderKanban:wf,FolderKanbanIcon:wf,FolderKey:bf,FolderKeyIcon:bf,FolderLock:Mf,FolderLockIcon:Mf,FolderMinus:jf,FolderMinusIcon:jf,FolderOpen:Sf,FolderOpenDot:Cf,FolderOpenDotIcon:Cf,FolderOpenIcon:Sf,FolderOutput:Lf,FolderOutputIcon:Lf,FolderPen:is,FolderPenIcon:is,FolderPlus:Nf,FolderPlusIcon:Nf,FolderRoot:If,FolderRootIcon:If,FolderSearch:Pf,FolderSearch2:Af,FolderSearch2Icon:Af,FolderSearchIcon:Pf,FolderSymlink:_f,FolderSymlinkIcon:_f,FolderSync:Rf,FolderSyncIcon:Rf,FolderTree:Tf,FolderTreeIcon:Tf,FolderUp:qf,FolderUpIcon:qf,FolderX:Df,FolderXIcon:Df,Folders:Ef,FoldersIcon:Ef,Footprints:Ff,FootprintsIcon:Ff,ForkKnife:eo,ForkKnifeCrossed:Qi,ForkKnifeCrossedIcon:Qi,ForkKnifeIcon:eo,Forklift:Of,ForkliftIcon:Of,FormInput:qs,FormInputIcon:qs,Forward:Hf,ForwardIcon:Hf,Frame:Vf,FrameIcon:Vf,Framer:Bf,FramerIcon:Bf,Frown:$f,FrownIcon:$f,Fuel:Uf,FuelIcon:Uf,Fullscreen:Gf,FullscreenIcon:Gf,FunctionSquare:mi,FunctionSquareIcon:mi,GalleryHorizontal:Zf,GalleryHorizontalEnd:Wf,GalleryHorizontalEndIcon:Wf,GalleryHorizontalIcon:Zf,GalleryThumbnails:Jf,GalleryThumbnailsIcon:Jf,GalleryVertical:Yf,GalleryVerticalEnd:Xf,GalleryVerticalEndIcon:Xf,GalleryVerticalIcon:Yf,Gamepad:Kf,Gamepad2:Pc,Gamepad2Icon:Pc,GamepadIcon:Kf,GanttChart:hn,GanttChartIcon:hn,GanttChartSquare:ma,GanttChartSquareIcon:ma,Gauge:Qf,GaugeCircle:Ln,GaugeCircleIcon:Ln,GaugeIcon:Qf,Gavel:ex,GavelIcon:ex,Gem:tx,GemIcon:tx,Ghost:ax,GhostIcon:ax,Gift:rx,GiftIcon:rx,GitBranch:sx,GitBranchIcon:sx,GitBranchPlus:nx,GitBranchPlusIcon:nx,GitCommit:os,GitCommitHorizontal:os,GitCommitHorizontalIcon:os,GitCommitIcon:os,GitCommitVertical:ix,GitCommitVerticalIcon:ix,GitCompare:cx,GitCompareArrows:ox,GitCompareArrowsIcon:ox,GitCompareIcon:cx,GitFork:lx,GitForkIcon:lx,GitGraph:dx,GitGraphIcon:dx,GitMerge:hx,GitMergeIcon:hx,GitPullRequest:xx,GitPullRequestArrow:ux,GitPullRequestArrowIcon:ux,GitPullRequestClosed:px,GitPullRequestClosedIcon:px,GitPullRequestCreate:mx,GitPullRequestCreateArrow:yx,GitPullRequestCreateArrowIcon:yx,GitPullRequestCreateIcon:mx,GitPullRequestDraft:fx,GitPullRequestDraftIcon:fx,GitPullRequestIcon:xx,Github:gx,GithubIcon:gx,Gitlab:kx,GitlabIcon:kx,GlassWater:vx,GlassWaterIcon:vx,Glasses:wx,GlassesIcon:wx,Globe:Qt,Globe2:Zn,Globe2Icon:Zn,GlobeIcon:Qt,GlobeLock:bx,GlobeLockIcon:bx,Goal:Mx,GoalIcon:Mx,Grab:jx,GrabIcon:jx,GraduationCap:mr,GraduationCapIcon:mr,Grape:Cx,GrapeIcon:Cx,Grid:ia,Grid2X2:cs,Grid2X2Icon:cs,Grid2x2:cs,Grid2x2Check:Sx,Grid2x2CheckIcon:Sx,Grid2x2Icon:cs,Grid2x2Plus:Lx,Grid2x2PlusIcon:Lx,Grid2x2X:Nx,Grid2x2XIcon:Nx,Grid3X3:ia,Grid3X3Icon:ia,Grid3x3:ia,Grid3x3Icon:ia,GridIcon:ia,Grip:Px,GripHorizontal:Ix,GripHorizontalIcon:Ix,GripIcon:Px,GripVertical:Ax,GripVerticalIcon:Ax,Group:_x,GroupIcon:_x,Guitar:Rx,GuitarIcon:Rx,Ham:Tx,HamIcon:Tx,Hammer:qx,HammerIcon:qx,Hand:Ox,HandCoins:Dx,HandCoinsIcon:Dx,HandHeart:zx,HandHeartIcon:zx,HandHelping:ls,HandHelpingIcon:ls,HandIcon:Ox,HandMetal:Ex,HandMetalIcon:Ex,HandPlatter:Fx,HandPlatterIcon:Fx,Handshake:Hx,HandshakeIcon:Hx,HardDrive:$x,HardDriveDownload:Vx,HardDriveDownloadIcon:Vx,HardDriveIcon:$x,HardDriveUpload:Bx,HardDriveUploadIcon:Bx,HardHat:Ux,HardHatIcon:Ux,Hash:Gx,HashIcon:Gx,Haze:Wx,HazeIcon:Wx,HdmiPort:Zx,HdmiPortIcon:Zx,Heading:tg,Heading1:Jx,Heading1Icon:Jx,Heading2:Xx,Heading2Icon:Xx,Heading3:Yx,Heading3Icon:Yx,Heading4:Kx,Heading4Icon:Kx,Heading5:Qx,Heading5Icon:Qx,Heading6:eg,Heading6Icon:eg,HeadingIcon:tg,HeadphoneOff:ag,HeadphoneOffIcon:ag,Headphones:rg,HeadphonesIcon:rg,Headset:ng,HeadsetIcon:ng,Heart:Vo,HeartCrack:sg,HeartCrackIcon:sg,HeartHandshake:ig,HeartHandshakeIcon:ig,HeartIcon:Vo,HeartOff:og,HeartOffIcon:og,HeartPulse:cg,HeartPulseIcon:cg,Heater:lg,HeaterIcon:lg,HelpCircle:ir,HelpCircleIcon:ir,HelpingHand:ls,HelpingHandIcon:ls,Hexagon:dg,HexagonIcon:dg,Highlighter:hg,HighlighterIcon:hg,History:ug,HistoryIcon:ug,Home:za,HomeIcon:za,Hop:yg,HopIcon:yg,HopOff:pg,HopOffIcon:pg,Hospital:mg,HospitalIcon:mg,Hotel:fg,HotelIcon:fg,Hourglass:xg,HourglassIcon:xg,House:za,HouseIcon:za,HousePlug:gg,HousePlugIcon:gg,HousePlus:kg,HousePlusIcon:kg,IceCream:hs,IceCream2:ds,IceCream2Icon:ds,IceCreamBowl:ds,IceCreamBowlIcon:ds,IceCreamCone:hs,IceCreamConeIcon:hs,IceCreamIcon:hs,Icon:TN,IdCard:vg,IdCardIcon:vg,Image:Lg,ImageDown:wg,ImageDownIcon:wg,ImageIcon:Lg,ImageMinus:bg,ImageMinusIcon:bg,ImageOff:Mg,ImageOffIcon:Mg,ImagePlay:jg,ImagePlayIcon:jg,ImagePlus:Cg,ImagePlusIcon:Cg,ImageUp:Sg,ImageUpIcon:Sg,Images:Ng,ImagesIcon:Ng,Import:Ig,ImportIcon:Ig,Inbox:Ag,InboxIcon:Ag,Indent:ps,IndentDecrease:us,IndentDecreaseIcon:us,IndentIcon:ps,IndentIncrease:ps,IndentIncreaseIcon:ps,IndianRupee:Pg,IndianRupeeIcon:Pg,Infinity:_g,InfinityIcon:_g,Info:Rg,InfoIcon:Rg,Inspect:wi,InspectIcon:wi,InspectionPanel:Tg,InspectionPanelIcon:Tg,Instagram:qg,InstagramIcon:qg,Italic:Dg,ItalicIcon:Dg,IterationCcw:zg,IterationCcwIcon:zg,IterationCw:Eg,IterationCwIcon:Eg,JapaneseYen:Fg,JapaneseYenIcon:Fg,Joystick:Og,JoystickIcon:Og,Kanban:Hg,KanbanIcon:Hg,KanbanSquare:fi,KanbanSquareDashed:li,KanbanSquareDashedIcon:li,KanbanSquareIcon:fi,Key:$g,KeyIcon:$g,KeyRound:Vg,KeyRoundIcon:Vg,KeySquare:Bg,KeySquareIcon:Bg,Keyboard:Wg,KeyboardIcon:Wg,KeyboardMusic:Ug,KeyboardMusicIcon:Ug,KeyboardOff:Gg,KeyboardOffIcon:Gg,Lamp:Qg,LampCeiling:Zg,LampCeilingIcon:Zg,LampDesk:Jg,LampDeskIcon:Jg,LampFloor:Xg,LampFloorIcon:Xg,LampIcon:Qg,LampWallDown:Yg,LampWallDownIcon:Yg,LampWallUp:Kg,LampWallUpIcon:Kg,LandPlot:e4,LandPlotIcon:e4,Landmark:t4,LandmarkIcon:t4,Languages:_c,LanguagesIcon:_c,Laptop:a4,Laptop2:ys,Laptop2Icon:ys,LaptopIcon:a4,LaptopMinimal:ys,LaptopMinimalIcon:ys,Lasso:n4,LassoIcon:n4,LassoSelect:r4,LassoSelectIcon:r4,Laugh:s4,LaughIcon:s4,Layers:c4,Layers2:i4,Layers2Icon:i4,Layers3:o4,Layers3Icon:o4,LayersIcon:c4,Layout:Ps,LayoutDashboard:Rc,LayoutDashboardIcon:Rc,LayoutGrid:l4,LayoutGridIcon:l4,LayoutIcon:Ps,LayoutList:d4,LayoutListIcon:d4,LayoutPanelLeft:h4,LayoutPanelLeftIcon:h4,LayoutPanelTop:u4,LayoutPanelTopIcon:u4,LayoutTemplate:p4,LayoutTemplateIcon:p4,Leaf:y4,LeafIcon:y4,LeafyGreen:m4,LeafyGreenIcon:m4,Lectern:f4,LecternIcon:f4,LetterText:x4,LetterTextIcon:x4,Library:k4,LibraryBig:g4,LibraryBigIcon:g4,LibraryIcon:k4,LibrarySquare:xi,LibrarySquareIcon:xi,LifeBuoy:v4,LifeBuoyIcon:v4,Ligature:w4,LigatureIcon:w4,Lightbulb:M4,LightbulbIcon:M4,LightbulbOff:b4,LightbulbOffIcon:b4,LineChart:ln,LineChartIcon:ln,Link:Tc,Link2:C4,Link2Icon:C4,Link2Off:j4,Link2OffIcon:j4,LinkIcon:Tc,Linkedin:qc,LinkedinIcon:qc,List:Dc,ListCheck:S4,ListCheckIcon:S4,ListChecks:L4,ListChecksIcon:L4,ListCollapse:N4,ListCollapseIcon:N4,ListEnd:I4,ListEndIcon:I4,ListFilter:A4,ListFilterIcon:A4,ListIcon:Dc,ListMinus:P4,ListMinusIcon:P4,ListMusic:_4,ListMusicIcon:_4,ListOrdered:R4,ListOrderedIcon:R4,ListPlus:T4,ListPlusIcon:T4,ListRestart:q4,ListRestartIcon:q4,ListStart:D4,ListStartIcon:D4,ListTodo:z4,ListTodoIcon:z4,ListTree:E4,ListTreeIcon:E4,ListVideo:F4,ListVideoIcon:F4,ListX:O4,ListXIcon:O4,Loader:V4,Loader2:ms,Loader2Icon:ms,LoaderCircle:ms,LoaderCircleIcon:ms,LoaderIcon:V4,LoaderPinwheel:H4,LoaderPinwheelIcon:H4,Locate:U4,LocateFixed:B4,LocateFixedIcon:B4,LocateIcon:U4,LocateOff:$4,LocateOffIcon:$4,Lock:lo,LockIcon:lo,LockKeyhole:G4,LockKeyholeIcon:G4,LockKeyholeOpen:fs,LockKeyholeOpenIcon:fs,LockOpen:xs,LockOpenIcon:xs,LogIn:W4,LogInIcon:W4,LogOut:zc,LogOutIcon:zc,Logs:Z4,LogsIcon:Z4,Lollipop:J4,LollipopIcon:J4,LucideAArrowDown:Rl,LucideAArrowUp:Tl,LucideALargeSmall:ql,LucideAccessibility:Dl,LucideActivity:zl,LucideActivitySquare:Bs,LucideAirVent:El,LucideAirplay:Fl,LucideAlarmCheck:Fr,LucideAlarmClock:Hl,LucideAlarmClockCheck:Fr,LucideAlarmClockMinus:Or,LucideAlarmClockOff:Ol,LucideAlarmClockPlus:Hr,LucideAlarmMinus:Or,LucideAlarmPlus:Hr,LucideAlarmSmoke:Vl,LucideAlbum:Bl,LucideAlertCircle:Tt,LucideAlertOctagon:vs,LucideAlertTriangle:Bi,LucideAlignCenter:Gl,LucideAlignCenterHorizontal:$l,LucideAlignCenterVertical:Ul,LucideAlignEndHorizontal:Wl,LucideAlignEndVertical:Zl,LucideAlignHorizontalDistributeCenter:Jl,LucideAlignHorizontalDistributeEnd:Xl,LucideAlignHorizontalDistributeStart:Yl,LucideAlignHorizontalJustifyCenter:Kl,LucideAlignHorizontalJustifyEnd:Ql,LucideAlignHorizontalJustifyStart:e1,LucideAlignHorizontalSpaceAround:t1,LucideAlignHorizontalSpaceBetween:a1,LucideAlignJustify:r1,LucideAlignLeft:n1,LucideAlignRight:s1,LucideAlignStartHorizontal:i1,LucideAlignStartVertical:o1,LucideAlignVerticalDistributeCenter:c1,LucideAlignVerticalDistributeEnd:l1,LucideAlignVerticalDistributeStart:d1,LucideAlignVerticalJustifyCenter:h1,LucideAlignVerticalJustifyEnd:u1,LucideAlignVerticalJustifyStart:p1,LucideAlignVerticalSpaceAround:y1,LucideAlignVerticalSpaceBetween:m1,LucideAmbulance:f1,LucideAmpersand:x1,LucideAmpersands:g1,LucideAmphora:k1,LucideAnchor:v1,LucideAngry:w1,LucideAnnoyed:b1,LucideAntenna:M1,LucideAnvil:j1,LucideAperture:C1,LucideAppWindow:L1,LucideAppWindowMac:S1,LucideApple:N1,LucideArchive:P1,LucideArchiveRestore:I1,LucideArchiveX:A1,LucideAreaChart:tn,LucideArmchair:_1,LucideArrowBigDown:T1,LucideArrowBigDownDash:R1,LucideArrowBigLeft:D1,LucideArrowBigLeftDash:q1,LucideArrowBigRight:E1,LucideArrowBigRightDash:z1,LucideArrowBigUp:O1,LucideArrowBigUpDash:F1,LucideArrowDown:X1,LucideArrowDown01:H1,LucideArrowDown10:V1,LucideArrowDownAZ:Vr,LucideArrowDownAz:Vr,LucideArrowDownCircle:yn,LucideArrowDownFromLine:B1,LucideArrowDownLeft:$1,LucideArrowDownLeftFromCircle:fn,LucideArrowDownLeftFromSquare:Ws,LucideArrowDownLeftSquare:$s,LucideArrowDownNarrowWide:U1,LucideArrowDownRight:G1,LucideArrowDownRightFromCircle:xn,LucideArrowDownRightFromSquare:Zs,LucideArrowDownRightSquare:Us,LucideArrowDownSquare:Gs,LucideArrowDownToDot:W1,LucideArrowDownToLine:Z1,LucideArrowDownUp:J1,LucideArrowDownWideNarrow:Br,LucideArrowDownZA:$r,LucideArrowDownZa:$r,LucideArrowLeft:Ha,LucideArrowLeftCircle:mn,LucideArrowLeftFromLine:Y1,LucideArrowLeftRight:K1,LucideArrowLeftSquare:Ea,LucideArrowLeftToLine:Q1,LucideArrowRight:io,LucideArrowRightCircle:vn,LucideArrowRightFromLine:ed,LucideArrowRightLeft:td,LucideArrowRightSquare:Fa,LucideArrowRightToLine:ad,LucideArrowUp:ud,LucideArrowUp01:rd,LucideArrowUp10:nd,LucideArrowUpAZ:Ur,LucideArrowUpAz:Ur,LucideArrowUpCircle:wn,LucideArrowUpDown:sd,LucideArrowUpFromDot:id,LucideArrowUpFromLine:od,LucideArrowUpLeft:cd,LucideArrowUpLeftFromCircle:gn,LucideArrowUpLeftFromSquare:Js,LucideArrowUpLeftSquare:Ys,LucideArrowUpNarrowWide:Gr,LucideArrowUpRight:ld,LucideArrowUpRightFromCircle:kn,LucideArrowUpRightFromSquare:Xs,LucideArrowUpRightSquare:Ks,LucideArrowUpSquare:Qs,LucideArrowUpToLine:dd,LucideArrowUpWideNarrow:hd,LucideArrowUpZA:Wr,LucideArrowUpZa:Wr,LucideArrowsUpFromLine:pd,LucideAsterisk:yd,LucideAsteriskSquare:ei,LucideAtSign:md,LucideAtom:fd,LucideAudioLines:xd,LucideAudioWaveform:gd,LucideAward:Jt,LucideAxe:kd,LucideAxis3D:Zr,LucideAxis3d:Zr,LucideBaby:vd,LucideBackpack:wd,LucideBadge:Mc,LucideBadgeAlert:bd,LucideBadgeCent:Md,LucideBadgeCheck:Jr,LucideBadgeDollarSign:jd,LucideBadgeEuro:Cd,LucideBadgeHelp:Sd,LucideBadgeIndianRupee:Ld,LucideBadgeInfo:Nd,LucideBadgeJapaneseYen:Id,LucideBadgeMinus:Ad,LucideBadgePercent:Pd,LucideBadgePlus:_d,LucideBadgePoundSterling:Rd,LucideBadgeRussianRuble:Td,LucideBadgeSwissFranc:qd,LucideBadgeX:Dd,LucideBaggageClaim:zd,LucideBan:Ed,LucideBanana:Fd,LucideBandage:Od,LucideBanknote:Hd,LucideBarChart:sr,LucideBarChart2:dn,LucideBarChart3:cn,LucideBarChart4:on,LucideBarChartBig:sn,LucideBarChartHorizontal:rn,LucideBarChartHorizontalBig:an,LucideBarcode:Vd,LucideBaseline:Bd,LucideBath:$d,LucideBattery:Xd,LucideBatteryCharging:Ud,LucideBatteryFull:Gd,LucideBatteryLow:Wd,LucideBatteryMedium:Zd,LucideBatteryWarning:Jd,LucideBeaker:Yd,LucideBean:Qd,LucideBeanOff:Kd,LucideBed:a2,LucideBedDouble:e2,LucideBedSingle:t2,LucideBeef:r2,LucideBeer:s2,LucideBeerOff:n2,LucideBell:qo,LucideBellDot:i2,LucideBellElectric:o2,LucideBellMinus:c2,LucideBellOff:l2,LucideBellPlus:d2,LucideBellRing:h2,LucideBetweenHorizonalEnd:Xr,LucideBetweenHorizonalStart:Yr,LucideBetweenHorizontalEnd:Xr,LucideBetweenHorizontalStart:Yr,LucideBetweenVerticalEnd:u2,LucideBetweenVerticalStart:p2,LucideBicepsFlexed:y2,LucideBike:m2,LucideBinary:f2,LucideBinoculars:x2,LucideBiohazard:g2,LucideBird:k2,LucideBitcoin:v2,LucideBlend:w2,LucideBlinds:b2,LucideBlocks:M2,LucideBluetooth:L2,LucideBluetoothConnected:j2,LucideBluetoothOff:C2,LucideBluetoothSearching:S2,LucideBold:N2,LucideBolt:I2,LucideBomb:A2,LucideBone:P2,LucideBook:Q2,LucideBookA:_2,LucideBookAudio:R2,LucideBookCheck:T2,LucideBookCopy:q2,LucideBookDashed:Kr,LucideBookDown:D2,LucideBookHeadphones:z2,LucideBookHeart:E2,LucideBookImage:F2,LucideBookKey:O2,LucideBookLock:H2,LucideBookMarked:V2,LucideBookMinus:B2,LucideBookOpen:Kt,LucideBookOpenCheck:$2,LucideBookOpenText:U2,LucideBookPlus:G2,LucideBookTemplate:Kr,LucideBookText:W2,LucideBookType:Z2,LucideBookUp:X2,LucideBookUp2:J2,LucideBookUser:Y2,LucideBookX:K2,LucideBookmark:Va,LucideBookmarkCheck:la,LucideBookmarkMinus:eh,LucideBookmarkPlus:Do,LucideBookmarkX:th,LucideBoomBox:ah,LucideBot:jc,LucideBotMessageSquare:rh,LucideBotOff:nh,LucideBox:sh,LucideBoxSelect:hi,LucideBoxes:ih,LucideBraces:Qr,LucideBrackets:oh,LucideBrain:dh,LucideBrainCircuit:ch,LucideBrainCog:lh,LucideBrickWall:hh,LucideBriefcase:at,LucideBriefcaseBusiness:uh,LucideBriefcaseConveyorBelt:ph,LucideBriefcaseMedical:yh,LucideBringToFront:mh,LucideBrush:fh,LucideBug:kh,LucideBugOff:xh,LucideBugPlay:gh,LucideBuilding:zo,LucideBuilding2:pt,LucideBus:wh,LucideBusFront:vh,LucideCable:Mh,LucideCableCar:bh,LucideCake:Ch,LucideCakeSlice:jh,LucideCalculator:Sh,LucideCalendar:oo,LucideCalendarArrowDown:Lh,LucideCalendarArrowUp:Nh,LucideCalendarCheck:Ah,LucideCalendarCheck2:Ih,LucideCalendarClock:Ph,LucideCalendarCog:_h,LucideCalendarDays:Cc,LucideCalendarFold:Rh,LucideCalendarHeart:Th,LucideCalendarMinus:Dh,LucideCalendarMinus2:qh,LucideCalendarOff:zh,LucideCalendarPlus:Fh,LucideCalendarPlus2:Eh,LucideCalendarRange:Oh,LucideCalendarSearch:Hh,LucideCalendarX:Bh,LucideCalendarX2:Vh,LucideCamera:Uh,LucideCameraOff:$h,LucideCandlestickChart:nn,LucideCandy:Zh,LucideCandyCane:Gh,LucideCandyOff:Wh,LucideCannabis:Jh,LucideCaptions:en,LucideCaptionsOff:Xh,LucideCar:Qh,LucideCarFront:Yh,LucideCarTaxiFront:Kh,LucideCaravan:e0,LucideCarrot:t0,LucideCaseLower:a0,LucideCaseSensitive:r0,LucideCaseUpper:n0,LucideCassetteTape:s0,LucideCast:i0,LucideCastle:o0,LucideCat:c0,LucideCctv:l0,LucideChartArea:tn,LucideChartBar:rn,LucideChartBarBig:an,LucideChartBarDecreasing:d0,LucideChartBarIncreasing:h0,LucideChartBarStacked:u0,LucideChartCandlestick:nn,LucideChartColumn:cn,LucideChartColumnBig:sn,LucideChartColumnDecreasing:p0,LucideChartColumnIncreasing:on,LucideChartColumnStacked:y0,LucideChartGantt:m0,LucideChartLine:ln,LucideChartNetwork:f0,LucideChartNoAxesColumn:dn,LucideChartNoAxesColumnDecreasing:x0,LucideChartNoAxesColumnIncreasing:sr,LucideChartNoAxesCombined:g0,LucideChartNoAxesGantt:hn,LucideChartPie:un,LucideChartScatter:pn,LucideChartSpline:k0,LucideCheck:Eo,LucideCheckCheck:v0,LucideCheckCircle:qt,LucideCheckCircle2:ht,LucideCheckSquare:ai,LucideCheckSquare2:ri,LucideChefHat:w0,LucideCherry:b0,LucideChevronDown:hr,LucideChevronDownCircle:bn,LucideChevronDownSquare:ni,LucideChevronFirst:M0,LucideChevronLast:j0,LucideChevronLeft:ur,LucideChevronLeftCircle:Mn,LucideChevronLeftSquare:si,LucideChevronRight:pr,LucideChevronRightCircle:jn,LucideChevronRightSquare:ii,LucideChevronUp:Fo,LucideChevronUpCircle:Cn,LucideChevronUpSquare:oi,LucideChevronsDown:S0,LucideChevronsDownUp:C0,LucideChevronsLeft:I0,LucideChevronsLeftRight:N0,LucideChevronsLeftRightEllipsis:L0,LucideChevronsRight:P0,LucideChevronsRightLeft:A0,LucideChevronsUp:R0,LucideChevronsUpDown:_0,LucideChrome:T0,LucideChurch:q0,LucideCigarette:z0,LucideCigaretteOff:D0,LucideCircle:Z0,LucideCircleAlert:Tt,LucideCircleArrowDown:yn,LucideCircleArrowLeft:mn,LucideCircleArrowOutDownLeft:fn,LucideCircleArrowOutDownRight:xn,LucideCircleArrowOutUpLeft:gn,LucideCircleArrowOutUpRight:kn,LucideCircleArrowRight:vn,LucideCircleArrowUp:wn,LucideCircleCheck:ht,LucideCircleCheckBig:qt,LucideCircleChevronDown:bn,LucideCircleChevronLeft:Mn,LucideCircleChevronRight:jn,LucideCircleChevronUp:Cn,LucideCircleDashed:E0,LucideCircleDivide:Sn,LucideCircleDollarSign:F0,LucideCircleDot:H0,LucideCircleDotDashed:O0,LucideCircleEllipsis:V0,LucideCircleEqual:B0,LucideCircleFadingArrowUp:$0,LucideCircleFadingPlus:U0,LucideCircleGauge:Ln,LucideCircleHelp:ir,LucideCircleMinus:Nn,LucideCircleOff:G0,LucideCircleParking:An,LucideCircleParkingOff:In,LucideCirclePause:Pn,LucideCirclePercent:_n,LucideCirclePlay:Rn,LucideCirclePlus:Tn,LucideCirclePower:qn,LucideCircleSlash:W0,LucideCircleSlash2:Dn,LucideCircleSlashed:Dn,LucideCircleStop:zn,LucideCircleUser:Fn,LucideCircleUserRound:En,LucideCircleX:xa,LucideCircuitBoard:J0,LucideCitrus:X0,LucideClapperboard:Y0,LucideClipboard:iu,LucideClipboardCheck:K0,LucideClipboardCopy:Q0,LucideClipboardEdit:Hn,LucideClipboardList:eu,LucideClipboardMinus:tu,LucideClipboardPaste:au,LucideClipboardPen:Hn,LucideClipboardPenLine:On,LucideClipboardPlus:ru,LucideClipboardSignature:On,LucideClipboardType:nu,LucideClipboardX:su,LucideClock:da,LucideClock1:ou,LucideClock10:cu,LucideClock11:lu,LucideClock12:du,LucideClock2:hu,LucideClock3:uu,LucideClock4:pu,LucideClock5:yu,LucideClock6:mu,LucideClock7:fu,LucideClock8:xu,LucideClock9:gu,LucideClockAlert:ku,LucideClockArrowDown:vu,LucideClockArrowUp:wu,LucideCloud:qu,LucideCloudCog:bu,LucideCloudDownload:Vn,LucideCloudDrizzle:Mu,LucideCloudFog:ju,LucideCloudHail:Cu,LucideCloudLightning:Su,LucideCloudMoon:Nu,LucideCloudMoonRain:Lu,LucideCloudOff:Iu,LucideCloudRain:Pu,LucideCloudRainWind:Au,LucideCloudSnow:_u,LucideCloudSun:Tu,LucideCloudSunRain:Ru,LucideCloudUpload:or,LucideCloudy:Du,LucideClover:zu,LucideClub:Eu,LucideCode:Fu,LucideCode2:Bn,LucideCodeSquare:ci,LucideCodeXml:Bn,LucideCodepen:Ou,LucideCodesandbox:Hu,LucideCoffee:Vu,LucideCog:Bu,LucideCoins:$u,LucideColumns:$n,LucideColumns2:$n,LucideColumns3:Un,LucideColumns4:Uu,LucideCombine:Gu,LucideCommand:Wu,LucideCompass:Zu,LucideComponent:Ju,LucideComputer:Xu,LucideConciergeBell:Yu,LucideCone:Ku,LucideConstruction:Qu,LucideContact:ep,LucideContact2:Gn,LucideContactRound:Gn,LucideContainer:tp,LucideContrast:ap,LucideCookie:rp,LucideCookingPot:np,LucideCopy:dp,LucideCopyCheck:sp,LucideCopyMinus:ip,LucideCopyPlus:op,LucideCopySlash:cp,LucideCopyX:lp,LucideCopyleft:hp,LucideCopyright:up,LucideCornerDownLeft:pp,LucideCornerDownRight:yp,LucideCornerLeftDown:mp,LucideCornerLeftUp:fp,LucideCornerRightDown:xp,LucideCornerRightUp:gp,LucideCornerUpLeft:kp,LucideCornerUpRight:vp,LucideCpu:wp,LucideCreativeCommons:bp,LucideCreditCard:Sc,LucideCroissant:Mp,LucideCrop:jp,LucideCross:Cp,LucideCrosshair:Sp,LucideCrown:Lp,LucideCuboid:Np,LucideCupSoda:Ip,LucideCurlyBraces:Qr,LucideCurrency:Ap,LucideCylinder:Pp,LucideDam:_p,LucideDatabase:qp,LucideDatabaseBackup:Rp,LucideDatabaseZap:Tp,LucideDelete:Dp,LucideDessert:zp,LucideDiameter:Ep,LucideDiamond:Hp,LucideDiamondMinus:Fp,LucideDiamondPercent:Wn,LucideDiamondPlus:Op,LucideDice1:Vp,LucideDice2:Bp,LucideDice3:$p,LucideDice4:Up,LucideDice5:Gp,LucideDice6:Wp,LucideDices:Zp,LucideDiff:Jp,LucideDisc:Qp,LucideDisc2:Xp,LucideDisc3:Yp,LucideDiscAlbum:Kp,LucideDivide:ey,LucideDivideCircle:Sn,LucideDivideSquare:ui,LucideDna:ay,LucideDnaOff:ty,LucideDock:ry,LucideDog:ny,LucideDollarSign:Lc,LucideDonut:sy,LucideDoorClosed:iy,LucideDoorOpen:oy,LucideDot:cy,LucideDotSquare:pi,LucideDownload:Nc,LucideDownloadCloud:Vn,LucideDraftingCompass:ly,LucideDrama:dy,LucideDribbble:hy,LucideDrill:uy,LucideDroplet:py,LucideDroplets:yy,LucideDrum:my,LucideDrumstick:fy,LucideDumbbell:xy,LucideEar:ky,LucideEarOff:gy,LucideEarth:Zn,LucideEarthLock:vy,LucideEclipse:wy,LucideEdit:Pt,LucideEdit2:Rs,LucideEdit3:_s,LucideEgg:jy,LucideEggFried:by,LucideEggOff:My,LucideEllipsis:Xn,LucideEllipsisVertical:Jn,LucideEqual:Sy,LucideEqualNot:Cy,LucideEqualSquare:yi,LucideEraser:Ly,LucideEthernetPort:Ny,LucideEuro:Iy,LucideExpand:Ay,LucideExternalLink:co,LucideEye:Oo,LucideEyeClosed:Py,LucideEyeOff:Ic,LucideFacebook:_y,LucideFactory:Ry,LucideFan:Ty,LucideFastForward:qy,LucideFeather:Dy,LucideFence:zy,LucideFerrisWheel:Ey,LucideFigma:Fy,LucideFile:qm,LucideFileArchive:Oy,LucideFileAudio:Vy,LucideFileAudio2:Hy,LucideFileAxis3D:Yn,LucideFileAxis3d:Yn,LucideFileBadge:$y,LucideFileBadge2:By,LucideFileBarChart:Kn,LucideFileBarChart2:Qn,LucideFileBox:Uy,LucideFileChartColumn:Qn,LucideFileChartColumnIncreasing:Kn,LucideFileChartLine:es,LucideFileChartPie:ts,LucideFileCheck:Wy,LucideFileCheck2:Gy,LucideFileClock:Zy,LucideFileCode:Xy,LucideFileCode2:Jy,LucideFileCog:as,LucideFileCog2:as,LucideFileDiff:Yy,LucideFileDigit:Ky,LucideFileDown:Qy,LucideFileEdit:ns,LucideFileHeart:em,LucideFileImage:tm,LucideFileInput:am,LucideFileJson:nm,LucideFileJson2:rm,LucideFileKey:im,LucideFileKey2:sm,LucideFileLineChart:es,LucideFileLock:cm,LucideFileLock2:om,LucideFileMinus:dm,LucideFileMinus2:lm,LucideFileMusic:hm,LucideFileOutput:um,LucideFilePen:ns,LucideFilePenLine:rs,LucideFilePieChart:ts,LucideFilePlus:ym,LucideFilePlus2:pm,LucideFileQuestion:mm,LucideFileScan:fm,LucideFileSearch:gm,LucideFileSearch2:xm,LucideFileSignature:rs,LucideFileSliders:km,LucideFileSpreadsheet:vm,LucideFileStack:wm,LucideFileSymlink:bm,LucideFileTerminal:Mm,LucideFileText:Ho,LucideFileType:Cm,LucideFileType2:jm,LucideFileUp:Sm,LucideFileUser:Lm,LucideFileVideo:Im,LucideFileVideo2:Nm,LucideFileVolume:Pm,LucideFileVolume2:Am,LucideFileWarning:_m,LucideFileX:Tm,LucideFileX2:Rm,LucideFiles:Dm,LucideFilm:zm,LucideFilter:yr,LucideFilterX:Em,LucideFingerprint:Fm,LucideFireExtinguisher:Om,LucideFish:Bm,LucideFishOff:Hm,LucideFishSymbol:Vm,LucideFlag:Ac,LucideFlagOff:$m,LucideFlagTriangleLeft:Um,LucideFlagTriangleRight:Gm,LucideFlame:Zm,LucideFlameKindling:Wm,LucideFlashlight:Xm,LucideFlashlightOff:Jm,LucideFlaskConical:Km,LucideFlaskConicalOff:Ym,LucideFlaskRound:Qm,LucideFlipHorizontal:tf,LucideFlipHorizontal2:ef,LucideFlipVertical:rf,LucideFlipVertical2:af,LucideFlower:sf,LucideFlower2:nf,LucideFocus:of,LucideFoldHorizontal:cf,LucideFoldVertical:lf,LucideFolder:zf,LucideFolderArchive:df,LucideFolderCheck:hf,LucideFolderClock:uf,LucideFolderClosed:pf,LucideFolderCode:yf,LucideFolderCog:ss,LucideFolderCog2:ss,LucideFolderDot:mf,LucideFolderDown:ff,LucideFolderEdit:is,LucideFolderGit:gf,LucideFolderGit2:xf,LucideFolderHeart:kf,LucideFolderInput:vf,LucideFolderKanban:wf,LucideFolderKey:bf,LucideFolderLock:Mf,LucideFolderMinus:jf,LucideFolderOpen:Sf,LucideFolderOpenDot:Cf,LucideFolderOutput:Lf,LucideFolderPen:is,LucideFolderPlus:Nf,LucideFolderRoot:If,LucideFolderSearch:Pf,LucideFolderSearch2:Af,LucideFolderSymlink:_f,LucideFolderSync:Rf,LucideFolderTree:Tf,LucideFolderUp:qf,LucideFolderX:Df,LucideFolders:Ef,LucideFootprints:Ff,LucideForkKnife:eo,LucideForkKnifeCrossed:Qi,LucideForklift:Of,LucideFormInput:qs,LucideForward:Hf,LucideFrame:Vf,LucideFramer:Bf,LucideFrown:$f,LucideFuel:Uf,LucideFullscreen:Gf,LucideFunctionSquare:mi,LucideGalleryHorizontal:Zf,LucideGalleryHorizontalEnd:Wf,LucideGalleryThumbnails:Jf,LucideGalleryVertical:Yf,LucideGalleryVerticalEnd:Xf,LucideGamepad:Kf,LucideGamepad2:Pc,LucideGanttChart:hn,LucideGanttChartSquare:ma,LucideGauge:Qf,LucideGaugeCircle:Ln,LucideGavel:ex,LucideGem:tx,LucideGhost:ax,LucideGift:rx,LucideGitBranch:sx,LucideGitBranchPlus:nx,LucideGitCommit:os,LucideGitCommitHorizontal:os,LucideGitCommitVertical:ix,LucideGitCompare:cx,LucideGitCompareArrows:ox,LucideGitFork:lx,LucideGitGraph:dx,LucideGitMerge:hx,LucideGitPullRequest:xx,LucideGitPullRequestArrow:ux,LucideGitPullRequestClosed:px,LucideGitPullRequestCreate:mx,LucideGitPullRequestCreateArrow:yx,LucideGitPullRequestDraft:fx,LucideGithub:gx,LucideGitlab:kx,LucideGlassWater:vx,LucideGlasses:wx,LucideGlobe:Qt,LucideGlobe2:Zn,LucideGlobeLock:bx,LucideGoal:Mx,LucideGrab:jx,LucideGraduationCap:mr,LucideGrape:Cx,LucideGrid:ia,LucideGrid2X2:cs,LucideGrid2x2:cs,LucideGrid2x2Check:Sx,LucideGrid2x2Plus:Lx,LucideGrid2x2X:Nx,LucideGrid3X3:ia,LucideGrid3x3:ia,LucideGrip:Px,LucideGripHorizontal:Ix,LucideGripVertical:Ax,LucideGroup:_x,LucideGuitar:Rx,LucideHam:Tx,LucideHammer:qx,LucideHand:Ox,LucideHandCoins:Dx,LucideHandHeart:zx,LucideHandHelping:ls,LucideHandMetal:Ex,LucideHandPlatter:Fx,LucideHandshake:Hx,LucideHardDrive:$x,LucideHardDriveDownload:Vx,LucideHardDriveUpload:Bx,LucideHardHat:Ux,LucideHash:Gx,LucideHaze:Wx,LucideHdmiPort:Zx,LucideHeading:tg,LucideHeading1:Jx,LucideHeading2:Xx,LucideHeading3:Yx,LucideHeading4:Kx,LucideHeading5:Qx,LucideHeading6:eg,LucideHeadphoneOff:ag,LucideHeadphones:rg,LucideHeadset:ng,LucideHeart:Vo,LucideHeartCrack:sg,LucideHeartHandshake:ig,LucideHeartOff:og,LucideHeartPulse:cg,LucideHeater:lg,LucideHelpCircle:ir,LucideHelpingHand:ls,LucideHexagon:dg,LucideHighlighter:hg,LucideHistory:ug,LucideHome:za,LucideHop:yg,LucideHopOff:pg,LucideHospital:mg,LucideHotel:fg,LucideHourglass:xg,LucideHouse:za,LucideHousePlug:gg,LucideHousePlus:kg,LucideIceCream:hs,LucideIceCream2:ds,LucideIceCreamBowl:ds,LucideIceCreamCone:hs,LucideIdCard:vg,LucideImage:Lg,LucideImageDown:wg,LucideImageMinus:bg,LucideImageOff:Mg,LucideImagePlay:jg,LucideImagePlus:Cg,LucideImageUp:Sg,LucideImages:Ng,LucideImport:Ig,LucideInbox:Ag,LucideIndent:ps,LucideIndentDecrease:us,LucideIndentIncrease:ps,LucideIndianRupee:Pg,LucideInfinity:_g,LucideInfo:Rg,LucideInspect:wi,LucideInspectionPanel:Tg,LucideInstagram:qg,LucideItalic:Dg,LucideIterationCcw:zg,LucideIterationCw:Eg,LucideJapaneseYen:Fg,LucideJoystick:Og,LucideKanban:Hg,LucideKanbanSquare:fi,LucideKanbanSquareDashed:li,LucideKey:$g,LucideKeyRound:Vg,LucideKeySquare:Bg,LucideKeyboard:Wg,LucideKeyboardMusic:Ug,LucideKeyboardOff:Gg,LucideLamp:Qg,LucideLampCeiling:Zg,LucideLampDesk:Jg,LucideLampFloor:Xg,LucideLampWallDown:Yg,LucideLampWallUp:Kg,LucideLandPlot:e4,LucideLandmark:t4,LucideLanguages:_c,LucideLaptop:a4,LucideLaptop2:ys,LucideLaptopMinimal:ys,LucideLasso:n4,LucideLassoSelect:r4,LucideLaugh:s4,LucideLayers:c4,LucideLayers2:i4,LucideLayers3:o4,LucideLayout:Ps,LucideLayoutDashboard:Rc,LucideLayoutGrid:l4,LucideLayoutList:d4,LucideLayoutPanelLeft:h4,LucideLayoutPanelTop:u4,LucideLayoutTemplate:p4,LucideLeaf:y4,LucideLeafyGreen:m4,LucideLectern:f4,LucideLetterText:x4,LucideLibrary:k4,LucideLibraryBig:g4,LucideLibrarySquare:xi,LucideLifeBuoy:v4,LucideLigature:w4,LucideLightbulb:M4,LucideLightbulbOff:b4,LucideLineChart:ln,LucideLink:Tc,LucideLink2:C4,LucideLink2Off:j4,LucideLinkedin:qc,LucideList:Dc,LucideListCheck:S4,LucideListChecks:L4,LucideListCollapse:N4,LucideListEnd:I4,LucideListFilter:A4,LucideListMinus:P4,LucideListMusic:_4,LucideListOrdered:R4,LucideListPlus:T4,LucideListRestart:q4,LucideListStart:D4,LucideListTodo:z4,LucideListTree:E4,LucideListVideo:F4,LucideListX:O4,LucideLoader:V4,LucideLoader2:ms,LucideLoaderCircle:ms,LucideLoaderPinwheel:H4,LucideLocate:U4,LucideLocateFixed:B4,LucideLocateOff:$4,LucideLock:lo,LucideLockKeyhole:G4,LucideLockKeyholeOpen:fs,LucideLockOpen:xs,LucideLogIn:W4,LucideLogOut:zc,LucideLogs:Z4,LucideLollipop:J4,LucideLuggage:X4,LucideMSquare:gi,LucideMagnet:Y4,LucideMail:ea,LucideMailCheck:K4,LucideMailMinus:Q4,LucideMailOpen:ek,LucideMailPlus:tk,LucideMailQuestion:ak,LucideMailSearch:rk,LucideMailWarning:nk,LucideMailX:sk,LucideMailbox:ik,LucideMails:ok,LucideMap:kk,LucideMapPin:it,LucideMapPinCheck:lk,LucideMapPinCheckInside:ck,LucideMapPinHouse:dk,LucideMapPinMinus:uk,LucideMapPinMinusInside:hk,LucideMapPinOff:pk,LucideMapPinPlus:mk,LucideMapPinPlusInside:yk,LucideMapPinX:xk,LucideMapPinXInside:fk,LucideMapPinned:gk,LucideMartini:vk,LucideMaximize:bk,LucideMaximize2:wk,LucideMedal:Mk,LucideMegaphone:Ck,LucideMegaphoneOff:jk,LucideMeh:Sk,LucideMemoryStick:Lk,LucideMenu:Bo,LucideMenuSquare:ki,LucideMerge:Nk,LucideMessageCircle:Fk,LucideMessageCircleCode:Ik,LucideMessageCircleDashed:Ak,LucideMessageCircleHeart:Pk,LucideMessageCircleMore:_k,LucideMessageCircleOff:Rk,LucideMessageCirclePlus:Tk,LucideMessageCircleQuestion:qk,LucideMessageCircleReply:Dk,LucideMessageCircleWarning:zk,LucideMessageCircleX:Ek,LucideMessageSquare:fr,LucideMessageSquareCode:Ok,LucideMessageSquareDashed:Hk,LucideMessageSquareDiff:Vk,LucideMessageSquareDot:Bk,LucideMessageSquareHeart:$k,LucideMessageSquareLock:Uk,LucideMessageSquareMore:Gk,LucideMessageSquareOff:Wk,LucideMessageSquarePlus:Zk,LucideMessageSquareQuote:Jk,LucideMessageSquareReply:Xk,LucideMessageSquareShare:Yk,LucideMessageSquareText:Kk,LucideMessageSquareWarning:Qk,LucideMessageSquareX:e5,LucideMessagesSquare:t5,LucideMic:r5,LucideMic2:gs,LucideMicOff:a5,LucideMicVocal:gs,LucideMicrochip:n5,LucideMicroscope:s5,LucideMicrowave:i5,LucideMilestone:o5,LucideMilk:l5,LucideMilkOff:c5,LucideMinimize:h5,LucideMinimize2:d5,LucideMinus:Ec,LucideMinusCircle:Nn,LucideMinusSquare:vi,LucideMonitor:j5,LucideMonitorCheck:u5,LucideMonitorCog:p5,LucideMonitorDot:y5,LucideMonitorDown:m5,LucideMonitorOff:f5,LucideMonitorPause:x5,LucideMonitorPlay:g5,LucideMonitorSmartphone:k5,LucideMonitorSpeaker:v5,LucideMonitorStop:w5,LucideMonitorUp:b5,LucideMonitorX:M5,LucideMoon:S5,LucideMoonStar:C5,LucideMoreHorizontal:Xn,LucideMoreVertical:Jn,LucideMountain:N5,LucideMountainSnow:L5,LucideMouse:T5,LucideMouseOff:I5,LucideMousePointer:R5,LucideMousePointer2:A5,LucideMousePointerBan:P5,LucideMousePointerClick:_5,LucideMousePointerSquareDashed:di,LucideMove:W5,LucideMove3D:ks,LucideMove3d:ks,LucideMoveDiagonal:D5,LucideMoveDiagonal2:q5,LucideMoveDown:F5,LucideMoveDownLeft:z5,LucideMoveDownRight:E5,LucideMoveHorizontal:O5,LucideMoveLeft:H5,LucideMoveRight:V5,LucideMoveUp:U5,LucideMoveUpLeft:B5,LucideMoveUpRight:$5,LucideMoveVertical:G5,LucideMusic:Y5,LucideMusic2:Z5,LucideMusic3:J5,LucideMusic4:X5,LucideNavigation:tv,LucideNavigation2:Q5,LucideNavigation2Off:K5,LucideNavigationOff:ev,LucideNetwork:av,LucideNewspaper:Ma,LucideNfc:rv,LucideNotebook:ov,LucideNotebookPen:nv,LucideNotebookTabs:sv,LucideNotebookText:iv,LucideNotepadText:lv,LucideNotepadTextDashed:cv,LucideNut:hv,LucideNutOff:dv,LucideOctagon:pv,LucideOctagonAlert:vs,LucideOctagonMinus:uv,LucideOctagonPause:ws,LucideOctagonX:bs,LucideOmega:yv,LucideOption:mv,LucideOrbit:fv,LucideOrigami:xv,LucideOutdent:us,LucidePackage:Fc,LucidePackage2:gv,LucidePackageCheck:kv,LucidePackageMinus:vv,LucidePackageOpen:wv,LucidePackagePlus:bv,LucidePackageSearch:Mv,LucidePackageX:jv,LucidePaintBucket:Cv,LucidePaintRoller:Sv,LucidePaintbrush:Lv,LucidePaintbrush2:Ms,LucidePaintbrushVertical:Ms,LucidePalette:Nv,LucidePalmtree:Vi,LucidePanelBottom:Pv,LucidePanelBottomClose:Iv,LucidePanelBottomDashed:js,LucidePanelBottomInactive:js,LucidePanelBottomOpen:Av,LucidePanelLeft:Ns,LucidePanelLeftClose:Cs,LucidePanelLeftDashed:Ss,LucidePanelLeftInactive:Ss,LucidePanelLeftOpen:Ls,LucidePanelRight:Tv,LucidePanelRightClose:_v,LucidePanelRightDashed:Is,LucidePanelRightInactive:Is,LucidePanelRightOpen:Rv,LucidePanelTop:zv,LucidePanelTopClose:qv,LucidePanelTopDashed:As,LucidePanelTopInactive:As,LucidePanelTopOpen:Dv,LucidePanelsLeftBottom:Ev,LucidePanelsLeftRight:Un,LucidePanelsRightBottom:Fv,LucidePanelsTopBottom:Es,LucidePanelsTopLeft:Ps,LucidePaperclip:Ov,LucideParentheses:Hv,LucideParkingCircle:An,LucideParkingCircleOff:In,LucideParkingMeter:Vv,LucideParkingSquare:Mi,LucideParkingSquareOff:bi,LucidePartyPopper:Bv,LucidePause:$v,LucidePauseCircle:Pn,LucidePauseOctagon:ws,LucidePawPrint:Uv,LucidePcCase:Gv,LucidePen:Rs,LucidePenBox:Pt,LucidePenLine:_s,LucidePenOff:Wv,LucidePenSquare:Pt,LucidePenTool:Zv,LucidePencil:Kv,LucidePencilLine:Jv,LucidePencilOff:Xv,LucidePencilRuler:Yv,LucidePentagon:Qv,LucidePercent:e3,LucidePercentCircle:_n,LucidePercentDiamond:Wn,LucidePercentSquare:ji,LucidePersonStanding:t3,LucidePhilippinePeso:a3,LucidePhone:xr,LucidePhoneCall:r3,LucidePhoneForwarded:n3,LucidePhoneIncoming:s3,LucidePhoneMissed:i3,LucidePhoneOff:o3,LucidePhoneOutgoing:c3,LucidePi:l3,LucidePiSquare:Ci,LucidePiano:d3,LucidePickaxe:h3,LucidePictureInPicture:p3,LucidePictureInPicture2:u3,LucidePieChart:un,LucidePiggyBank:y3,LucidePilcrow:x3,LucidePilcrowLeft:m3,LucidePilcrowRight:f3,LucidePilcrowSquare:Si,LucidePill:k3,LucidePillBottle:g3,LucidePin:w3,LucidePinOff:v3,LucidePipette:b3,LucidePizza:M3,LucidePlane:S3,LucidePlaneLanding:j3,LucidePlaneTakeoff:C3,LucidePlay:Oc,LucidePlayCircle:Rn,LucidePlaySquare:Li,LucidePlug:N3,LucidePlug2:L3,LucidePlugZap:Ts,LucidePlugZap2:Ts,LucidePlus:$o,LucidePlusCircle:Tn,LucidePlusSquare:Ni,LucidePocket:A3,LucidePocketKnife:I3,LucidePodcast:P3,LucidePointer:R3,LucidePointerOff:_3,LucidePopcorn:T3,LucidePopsicle:q3,LucidePoundSterling:D3,LucidePower:E3,LucidePowerCircle:qn,LucidePowerOff:z3,LucidePowerSquare:Ii,LucidePresentation:F3,LucidePrinter:H3,LucidePrinterCheck:O3,LucideProjector:V3,LucideProportions:B3,LucidePuzzle:$3,LucidePyramid:U3,LucideQrCode:G3,LucideQuote:Uo,LucideRabbit:W3,LucideRadar:Z3,LucideRadiation:J3,LucideRadical:X3,LucideRadio:Q3,LucideRadioReceiver:Y3,LucideRadioTower:K3,LucideRadius:e6,LucideRailSymbol:t6,LucideRainbow:a6,LucideRat:r6,LucideRatio:n6,LucideReceipt:p6,LucideReceiptCent:s6,LucideReceiptEuro:i6,LucideReceiptIndianRupee:o6,LucideReceiptJapaneseYen:c6,LucideReceiptPoundSterling:l6,LucideReceiptRussianRuble:d6,LucideReceiptSwissFranc:h6,LucideReceiptText:u6,LucideRectangleEllipsis:qs,LucideRectangleHorizontal:y6,LucideRectangleVertical:m6,LucideRecycle:f6,LucideRedo:k6,LucideRedo2:x6,LucideRedoDot:g6,LucideRefreshCcw:w6,LucideRefreshCcwDot:v6,LucideRefreshCw:M6,LucideRefreshCwOff:b6,LucideRefrigerator:j6,LucideRegex:C6,LucideRemoveFormatting:S6,LucideRepeat:I6,LucideRepeat1:L6,LucideRepeat2:N6,LucideReplace:P6,LucideReplaceAll:A6,LucideReply:R6,LucideReplyAll:_6,LucideRewind:T6,LucideRibbon:q6,LucideRocket:D6,LucideRockingChair:z6,LucideRollerCoaster:E6,LucideRotate3D:Ds,LucideRotate3d:Ds,LucideRotateCcw:O6,LucideRotateCcwSquare:F6,LucideRotateCw:V6,LucideRotateCwSquare:H6,LucideRoute:$6,LucideRouteOff:B6,LucideRouter:U6,LucideRows:zs,LucideRows2:zs,LucideRows3:Es,LucideRows4:G6,LucideRss:W6,LucideRuler:Z6,LucideRussianRuble:J6,LucideSailboat:X6,LucideSalad:Y6,LucideSandwich:K6,LucideSatellite:e8,LucideSatelliteDish:Q6,LucideSave:r8,LucideSaveAll:t8,LucideSaveOff:a8,LucideScale:n8,LucideScale3D:Fs,LucideScale3d:Fs,LucideScaling:s8,LucideScan:p8,LucideScanBarcode:i8,LucideScanEye:o8,LucideScanFace:c8,LucideScanLine:l8,LucideScanQrCode:d8,LucideScanSearch:h8,LucideScanText:u8,LucideScatterChart:pn,LucideSchool:y8,LucideSchool2:Ui,LucideScissors:f8,LucideScissorsLineDashed:m8,LucideScissorsSquare:Ai,LucideScissorsSquareDashedBottom:ti,LucideScreenShare:g8,LucideScreenShareOff:x8,LucideScroll:v8,LucideScrollText:k8,LucideSearch:Ot,LucideSearchCheck:w8,LucideSearchCode:b8,LucideSearchSlash:M8,LucideSearchX:j8,LucideSection:C8,LucideSend:Hc,LucideSendHorizonal:Os,LucideSendHorizontal:Os,LucideSendToBack:S8,LucideSeparatorHorizontal:L8,LucideSeparatorVertical:N8,LucideServer:_8,LucideServerCog:I8,LucideServerCrash:A8,LucideServerOff:P8,LucideSettings:Go,LucideSettings2:R8,LucideShapes:T8,LucideShare:q8,LucideShare2:ho,LucideSheet:D8,LucideShell:z8,LucideShield:gr,LucideShieldAlert:E8,LucideShieldBan:F8,LucideShieldCheck:Vc,LucideShieldClose:Hs,LucideShieldEllipsis:O8,LucideShieldHalf:H8,LucideShieldMinus:V8,LucideShieldOff:B8,LucideShieldPlus:$8,LucideShieldQuestion:U8,LucideShieldX:Hs,LucideShip:W8,LucideShipWheel:G8,LucideShirt:Z8,LucideShoppingBag:J8,LucideShoppingBasket:X8,LucideShoppingCart:Wo,LucideShovel:Y8,LucideShowerHead:K8,LucideShrink:Q8,LucideShrub:ew,LucideShuffle:tw,LucideSidebar:Ns,LucideSidebarClose:Cs,LucideSidebarOpen:Ls,LucideSigma:aw,LucideSigmaSquare:Pi,LucideSignal:Bc,LucideSignalHigh:rw,LucideSignalLow:nw,LucideSignalMedium:sw,LucideSignalZero:iw,LucideSignature:ow,LucideSignpost:lw,LucideSignpostBig:cw,LucideSiren:dw,LucideSkipBack:hw,LucideSkipForward:uw,LucideSkull:pw,LucideSlack:yw,LucideSlash:mw,LucideSlashSquare:_i,LucideSlice:fw,LucideSliders:Vs,LucideSlidersHorizontal:kr,LucideSlidersVertical:Vs,LucideSmartphone:kw,LucideSmartphoneCharging:xw,LucideSmartphoneNfc:gw,LucideSmile:ww,LucideSmilePlus:vw,LucideSnail:bw,LucideSnowflake:Mw,LucideSofa:jw,LucideSortAsc:Gr,LucideSortDesc:Br,LucideSoup:Cw,LucideSpace:Sw,LucideSpade:Lw,LucideSparkle:Nw,LucideSparkles:ga,LucideSpeaker:Iw,LucideSpeech:Aw,LucideSpellCheck:_w,LucideSpellCheck2:Pw,LucideSpline:Rw,LucideSplit:Tw,LucideSplitSquareHorizontal:Ri,LucideSplitSquareVertical:Ti,LucideSprayCan:qw,LucideSprout:Dw,LucideSquare:Vw,LucideSquareActivity:Bs,LucideSquareArrowDown:Gs,LucideSquareArrowDownLeft:$s,LucideSquareArrowDownRight:Us,LucideSquareArrowLeft:Ea,LucideSquareArrowOutDownLeft:Ws,LucideSquareArrowOutDownRight:Zs,LucideSquareArrowOutUpLeft:Js,LucideSquareArrowOutUpRight:Xs,LucideSquareArrowRight:Fa,LucideSquareArrowUp:Qs,LucideSquareArrowUpLeft:Ys,LucideSquareArrowUpRight:Ks,LucideSquareAsterisk:ei,LucideSquareBottomDashedScissors:ti,LucideSquareChartGantt:ma,LucideSquareCheck:ri,LucideSquareCheckBig:ai,LucideSquareChevronDown:ni,LucideSquareChevronLeft:si,LucideSquareChevronRight:ii,LucideSquareChevronUp:oi,LucideSquareCode:ci,LucideSquareDashed:hi,LucideSquareDashedBottom:Ew,LucideSquareDashedBottomCode:zw,LucideSquareDashedKanban:li,LucideSquareDashedMousePointer:di,LucideSquareDivide:ui,LucideSquareDot:pi,LucideSquareEqual:yi,LucideSquareFunction:mi,LucideSquareGanttChart:ma,LucideSquareKanban:fi,LucideSquareLibrary:xi,LucideSquareM:gi,LucideSquareMenu:ki,LucideSquareMinus:vi,LucideSquareMousePointer:wi,LucideSquareParking:Mi,LucideSquareParkingOff:bi,LucideSquarePen:Pt,LucideSquarePercent:ji,LucideSquarePi:Ci,LucideSquarePilcrow:Si,LucideSquarePlay:Li,LucideSquarePlus:Ni,LucideSquarePower:Ii,LucideSquareRadical:Fw,LucideSquareScissors:Ai,LucideSquareSigma:Pi,LucideSquareSlash:_i,LucideSquareSplitHorizontal:Ri,LucideSquareSplitVertical:Ti,LucideSquareSquare:Ow,LucideSquareStack:Hw,LucideSquareTerminal:qi,LucideSquareUser:zi,LucideSquareUserRound:Di,LucideSquareX:Ei,LucideSquircle:Bw,LucideSquirrel:$w,LucideStamp:Uw,LucideStar:vt,LucideStarHalf:Gw,LucideStarOff:Ww,LucideStars:ga,LucideStepBack:Zw,LucideStepForward:Jw,LucideStethoscope:Xw,LucideSticker:Yw,LucideStickyNote:Kw,LucideStopCircle:zn,LucideStore:Qw,LucideStretchHorizontal:e7,LucideStretchVertical:t7,LucideStrikethrough:a7,LucideSubscript:r7,LucideSubtitles:en,LucideSun:c7,LucideSunDim:n7,LucideSunMedium:s7,LucideSunMoon:i7,LucideSunSnow:o7,LucideSunrise:l7,LucideSunset:d7,LucideSuperscript:h7,LucideSwatchBook:u7,LucideSwissFranc:p7,LucideSwitchCamera:y7,LucideSword:m7,LucideSwords:f7,LucideSyringe:x7,LucideTable:C7,LucideTable2:g7,LucideTableCellsMerge:k7,LucideTableCellsSplit:v7,LucideTableColumnsSplit:w7,LucideTableOfContents:b7,LucideTableProperties:M7,LucideTableRowsSplit:j7,LucideTablet:L7,LucideTabletSmartphone:S7,LucideTablets:N7,LucideTag:$c,LucideTags:I7,LucideTally1:A7,LucideTally2:P7,LucideTally3:_7,LucideTally4:R7,LucideTally5:T7,LucideTangent:q7,LucideTarget:D7,LucideTelescope:z7,LucideTent:F7,LucideTentTree:E7,LucideTerminal:O7,LucideTerminalSquare:qi,LucideTestTube:H7,LucideTestTube2:Fi,LucideTestTubeDiagonal:Fi,LucideTestTubes:V7,LucideText:W7,LucideTextCursor:$7,LucideTextCursorInput:B7,LucideTextQuote:U7,LucideTextSearch:G7,LucideTextSelect:Oi,LucideTextSelection:Oi,LucideTheater:Z7,LucideThermometer:Y7,LucideThermometerSnowflake:J7,LucideThermometerSun:X7,LucideThumbsDown:K7,LucideThumbsUp:Q7,LucideTicket:ib,LucideTicketCheck:eb,LucideTicketMinus:tb,LucideTicketPercent:ab,LucideTicketPlus:rb,LucideTicketSlash:nb,LucideTicketX:sb,LucideTickets:cb,LucideTicketsPlane:ob,LucideTimer:hb,LucideTimerOff:lb,LucideTimerReset:db,LucideToggleLeft:ub,LucideToggleRight:pb,LucideTornado:yb,LucideTorus:mb,LucideTouchpad:xb,LucideTouchpadOff:fb,LucideTowerControl:gb,LucideToyBrick:kb,LucideTractor:vb,LucideTrafficCone:wb,LucideTrain:Hi,LucideTrainFront:Mb,LucideTrainFrontTunnel:bb,LucideTrainTrack:jb,LucideTramFront:Hi,LucideTrash:Cb,LucideTrash2:Zo,LucideTreeDeciduous:Sb,LucideTreePalm:Vi,LucideTreePine:Lb,LucideTrees:Nb,LucideTrello:Ib,LucideTrendingDown:Ab,LucideTrendingUp:ja,LucideTrendingUpDown:Pb,LucideTriangle:Rb,LucideTriangleAlert:Bi,LucideTriangleRight:_b,LucideTrophy:Tb,LucideTruck:qb,LucideTurtle:Db,LucideTv:Eb,LucideTv2:$i,LucideTvMinimal:$i,LucideTvMinimalPlay:zb,LucideTwitch:Fb,LucideTwitter:Ob,LucideType:Vb,LucideTypeOutline:Hb,LucideUmbrella:$b,LucideUmbrellaOff:Bb,LucideUnderline:Ub,LucideUndo:Zb,LucideUndo2:Gb,LucideUndoDot:Wb,LucideUnfoldHorizontal:Jb,LucideUnfoldVertical:Xb,LucideUngroup:Yb,LucideUniversity:Ui,LucideUnlink:Qb,LucideUnlink2:Kb,LucideUnlock:xs,LucideUnlockKeyhole:fs,LucideUnplug:eM,LucideUpload:Uc,LucideUploadCloud:or,LucideUsb:tM,LucideUser:Jo,LucideUser2:Yi,LucideUserCheck:Gc,LucideUserCheck2:Gi,LucideUserCircle:Fn,LucideUserCircle2:En,LucideUserCog:aM,LucideUserCog2:Wi,LucideUserMinus:rM,LucideUserMinus2:Zi,LucideUserPen:nM,LucideUserPlus:sM,LucideUserPlus2:Ji,LucideUserRound:Yi,LucideUserRoundCheck:Gi,LucideUserRoundCog:Wi,LucideUserRoundMinus:Zi,LucideUserRoundPen:iM,LucideUserRoundPlus:Ji,LucideUserRoundSearch:oM,LucideUserRoundX:Xi,LucideUserSearch:cM,LucideUserSquare:zi,LucideUserSquare2:Di,LucideUserX:lM,LucideUserX2:Xi,LucideUsers:jt,LucideUsers2:Ki,LucideUsersRound:Ki,LucideUtensils:eo,LucideUtensilsCrossed:Qi,LucideUtilityPole:dM,LucideVariable:hM,LucideVault:uM,LucideVegan:pM,LucideVenetianMask:yM,LucideVerified:Jr,LucideVibrate:fM,LucideVibrateOff:mM,LucideVideo:gM,LucideVideoOff:xM,LucideVideotape:kM,LucideView:vM,LucideVoicemail:wM,LucideVolleyball:bM,LucideVolume:LM,LucideVolume1:MM,LucideVolume2:jM,LucideVolumeOff:CM,LucideVolumeX:SM,LucideVote:NM,LucideWallet:AM,LucideWallet2:to,LucideWalletCards:IM,LucideWalletMinimal:to,LucideWallpaper:PM,LucideWand:_M,LucideWand2:ao,LucideWandSparkles:ao,LucideWarehouse:RM,LucideWashingMachine:TM,LucideWatch:qM,LucideWaves:DM,LucideWaypoints:zM,LucideWebcam:EM,LucideWebhook:OM,LucideWebhookOff:FM,LucideWeight:HM,LucideWheat:BM,LucideWheatOff:VM,LucideWholeWord:$M,LucideWifi:JM,LucideWifiHigh:UM,LucideWifiLow:GM,LucideWifiOff:WM,LucideWifiZero:ZM,LucideWind:XM,LucideWine:KM,LucideWineOff:YM,LucideWorkflow:QM,LucideWorm:e9,LucideWrapText:t9,LucideWrench:a9,LucideX:wt,LucideXCircle:xa,LucideXOctagon:bs,LucideXSquare:Ei,LucideYoutube:r9,LucideZap:Wc,LucideZapOff:n9,LucideZoomIn:s9,LucideZoomOut:i9,Luggage:X4,LuggageIcon:X4,MSquare:gi,MSquareIcon:gi,Magnet:Y4,MagnetIcon:Y4,Mail:ea,MailCheck:K4,MailCheckIcon:K4,MailIcon:ea,MailMinus:Q4,MailMinusIcon:Q4,MailOpen:ek,MailOpenIcon:ek,MailPlus:tk,MailPlusIcon:tk,MailQuestion:ak,MailQuestionIcon:ak,MailSearch:rk,MailSearchIcon:rk,MailWarning:nk,MailWarningIcon:nk,MailX:sk,MailXIcon:sk,Mailbox:ik,MailboxIcon:ik,Mails:ok,MailsIcon:ok,Map:kk,MapIcon:kk,MapPin:it,MapPinCheck:lk,MapPinCheckIcon:lk,MapPinCheckInside:ck,MapPinCheckInsideIcon:ck,MapPinHouse:dk,MapPinHouseIcon:dk,MapPinIcon:it,MapPinMinus:uk,MapPinMinusIcon:uk,MapPinMinusInside:hk,MapPinMinusInsideIcon:hk,MapPinOff:pk,MapPinOffIcon:pk,MapPinPlus:mk,MapPinPlusIcon:mk,MapPinPlusInside:yk,MapPinPlusInsideIcon:yk,MapPinX:xk,MapPinXIcon:xk,MapPinXInside:fk,MapPinXInsideIcon:fk,MapPinned:gk,MapPinnedIcon:gk,Martini:vk,MartiniIcon:vk,Maximize:bk,Maximize2:wk,Maximize2Icon:wk,MaximizeIcon:bk,Medal:Mk,MedalIcon:Mk,Megaphone:Ck,MegaphoneIcon:Ck,MegaphoneOff:jk,MegaphoneOffIcon:jk,Meh:Sk,MehIcon:Sk,MemoryStick:Lk,MemoryStickIcon:Lk,Menu:Bo,MenuIcon:Bo,MenuSquare:ki,MenuSquareIcon:ki,Merge:Nk,MergeIcon:Nk,MessageCircle:Fk,MessageCircleCode:Ik,MessageCircleCodeIcon:Ik,MessageCircleDashed:Ak,MessageCircleDashedIcon:Ak,MessageCircleHeart:Pk,MessageCircleHeartIcon:Pk,MessageCircleIcon:Fk,MessageCircleMore:_k,MessageCircleMoreIcon:_k,MessageCircleOff:Rk,MessageCircleOffIcon:Rk,MessageCirclePlus:Tk,MessageCirclePlusIcon:Tk,MessageCircleQuestion:qk,MessageCircleQuestionIcon:qk,MessageCircleReply:Dk,MessageCircleReplyIcon:Dk,MessageCircleWarning:zk,MessageCircleWarningIcon:zk,MessageCircleX:Ek,MessageCircleXIcon:Ek,MessageSquare:fr,MessageSquareCode:Ok,MessageSquareCodeIcon:Ok,MessageSquareDashed:Hk,MessageSquareDashedIcon:Hk,MessageSquareDiff:Vk,MessageSquareDiffIcon:Vk,MessageSquareDot:Bk,MessageSquareDotIcon:Bk,MessageSquareHeart:$k,MessageSquareHeartIcon:$k,MessageSquareIcon:fr,MessageSquareLock:Uk,MessageSquareLockIcon:Uk,MessageSquareMore:Gk,MessageSquareMoreIcon:Gk,MessageSquareOff:Wk,MessageSquareOffIcon:Wk,MessageSquarePlus:Zk,MessageSquarePlusIcon:Zk,MessageSquareQuote:Jk,MessageSquareQuoteIcon:Jk,MessageSquareReply:Xk,MessageSquareReplyIcon:Xk,MessageSquareShare:Yk,MessageSquareShareIcon:Yk,MessageSquareText:Kk,MessageSquareTextIcon:Kk,MessageSquareWarning:Qk,MessageSquareWarningIcon:Qk,MessageSquareX:e5,MessageSquareXIcon:e5,MessagesSquare:t5,MessagesSquareIcon:t5,Mic:r5,Mic2:gs,Mic2Icon:gs,MicIcon:r5,MicOff:a5,MicOffIcon:a5,MicVocal:gs,MicVocalIcon:gs,Microchip:n5,MicrochipIcon:n5,Microscope:s5,MicroscopeIcon:s5,Microwave:i5,MicrowaveIcon:i5,Milestone:o5,MilestoneIcon:o5,Milk:l5,MilkIcon:l5,MilkOff:c5,MilkOffIcon:c5,Minimize:h5,Minimize2:d5,Minimize2Icon:d5,MinimizeIcon:h5,Minus:Ec,MinusCircle:Nn,MinusCircleIcon:Nn,MinusIcon:Ec,MinusSquare:vi,MinusSquareIcon:vi,Monitor:j5,MonitorCheck:u5,MonitorCheckIcon:u5,MonitorCog:p5,MonitorCogIcon:p5,MonitorDot:y5,MonitorDotIcon:y5,MonitorDown:m5,MonitorDownIcon:m5,MonitorIcon:j5,MonitorOff:f5,MonitorOffIcon:f5,MonitorPause:x5,MonitorPauseIcon:x5,MonitorPlay:g5,MonitorPlayIcon:g5,MonitorSmartphone:k5,MonitorSmartphoneIcon:k5,MonitorSpeaker:v5,MonitorSpeakerIcon:v5,MonitorStop:w5,MonitorStopIcon:w5,MonitorUp:b5,MonitorUpIcon:b5,MonitorX:M5,MonitorXIcon:M5,Moon:S5,MoonIcon:S5,MoonStar:C5,MoonStarIcon:C5,MoreHorizontal:Xn,MoreHorizontalIcon:Xn,MoreVertical:Jn,MoreVerticalIcon:Jn,Mountain:N5,MountainIcon:N5,MountainSnow:L5,MountainSnowIcon:L5,Mouse:T5,MouseIcon:T5,MouseOff:I5,MouseOffIcon:I5,MousePointer:R5,MousePointer2:A5,MousePointer2Icon:A5,MousePointerBan:P5,MousePointerBanIcon:P5,MousePointerClick:_5,MousePointerClickIcon:_5,MousePointerIcon:R5,MousePointerSquareDashed:di,MousePointerSquareDashedIcon:di,Move:W5,Move3D:ks,Move3DIcon:ks,Move3d:ks,Move3dIcon:ks,MoveDiagonal:D5,MoveDiagonal2:q5,MoveDiagonal2Icon:q5,MoveDiagonalIcon:D5,MoveDown:F5,MoveDownIcon:F5,MoveDownLeft:z5,MoveDownLeftIcon:z5,MoveDownRight:E5,MoveDownRightIcon:E5,MoveHorizontal:O5,MoveHorizontalIcon:O5,MoveIcon:W5,MoveLeft:H5,MoveLeftIcon:H5,MoveRight:V5,MoveRightIcon:V5,MoveUp:U5,MoveUpIcon:U5,MoveUpLeft:B5,MoveUpLeftIcon:B5,MoveUpRight:$5,MoveUpRightIcon:$5,MoveVertical:G5,MoveVerticalIcon:G5,Music:Y5,Music2:Z5,Music2Icon:Z5,Music3:J5,Music3Icon:J5,Music4:X5,Music4Icon:X5,MusicIcon:Y5,Navigation:tv,Navigation2:Q5,Navigation2Icon:Q5,Navigation2Off:K5,Navigation2OffIcon:K5,NavigationIcon:tv,NavigationOff:ev,NavigationOffIcon:ev,Network:av,NetworkIcon:av,Newspaper:Ma,NewspaperIcon:Ma,Nfc:rv,NfcIcon:rv,Notebook:ov,NotebookIcon:ov,NotebookPen:nv,NotebookPenIcon:nv,NotebookTabs:sv,NotebookTabsIcon:sv,NotebookText:iv,NotebookTextIcon:iv,NotepadText:lv,NotepadTextDashed:cv,NotepadTextDashedIcon:cv,NotepadTextIcon:lv,Nut:hv,NutIcon:hv,NutOff:dv,NutOffIcon:dv,Octagon:pv,OctagonAlert:vs,OctagonAlertIcon:vs,OctagonIcon:pv,OctagonMinus:uv,OctagonMinusIcon:uv,OctagonPause:ws,OctagonPauseIcon:ws,OctagonX:bs,OctagonXIcon:bs,Omega:yv,OmegaIcon:yv,Option:mv,OptionIcon:mv,Orbit:fv,OrbitIcon:fv,Origami:xv,OrigamiIcon:xv,Outdent:us,OutdentIcon:us,Package:Fc,Package2:gv,Package2Icon:gv,PackageCheck:kv,PackageCheckIcon:kv,PackageIcon:Fc,PackageMinus:vv,PackageMinusIcon:vv,PackageOpen:wv,PackageOpenIcon:wv,PackagePlus:bv,PackagePlusIcon:bv,PackageSearch:Mv,PackageSearchIcon:Mv,PackageX:jv,PackageXIcon:jv,PaintBucket:Cv,PaintBucketIcon:Cv,PaintRoller:Sv,PaintRollerIcon:Sv,Paintbrush:Lv,Paintbrush2:Ms,Paintbrush2Icon:Ms,PaintbrushIcon:Lv,PaintbrushVertical:Ms,PaintbrushVerticalIcon:Ms,Palette:Nv,PaletteIcon:Nv,Palmtree:Vi,PalmtreeIcon:Vi,PanelBottom:Pv,PanelBottomClose:Iv,PanelBottomCloseIcon:Iv,PanelBottomDashed:js,PanelBottomDashedIcon:js,PanelBottomIcon:Pv,PanelBottomInactive:js,PanelBottomInactiveIcon:js,PanelBottomOpen:Av,PanelBottomOpenIcon:Av,PanelLeft:Ns,PanelLeftClose:Cs,PanelLeftCloseIcon:Cs,PanelLeftDashed:Ss,PanelLeftDashedIcon:Ss,PanelLeftIcon:Ns,PanelLeftInactive:Ss,PanelLeftInactiveIcon:Ss,PanelLeftOpen:Ls,PanelLeftOpenIcon:Ls,PanelRight:Tv,PanelRightClose:_v,PanelRightCloseIcon:_v,PanelRightDashed:Is,PanelRightDashedIcon:Is,PanelRightIcon:Tv,PanelRightInactive:Is,PanelRightInactiveIcon:Is,PanelRightOpen:Rv,PanelRightOpenIcon:Rv,PanelTop:zv,PanelTopClose:qv,PanelTopCloseIcon:qv,PanelTopDashed:As,PanelTopDashedIcon:As,PanelTopIcon:zv,PanelTopInactive:As,PanelTopInactiveIcon:As,PanelTopOpen:Dv,PanelTopOpenIcon:Dv,PanelsLeftBottom:Ev,PanelsLeftBottomIcon:Ev,PanelsLeftRight:Un,PanelsLeftRightIcon:Un,PanelsRightBottom:Fv,PanelsRightBottomIcon:Fv,PanelsTopBottom:Es,PanelsTopBottomIcon:Es,PanelsTopLeft:Ps,PanelsTopLeftIcon:Ps,Paperclip:Ov,PaperclipIcon:Ov,Parentheses:Hv,ParenthesesIcon:Hv,ParkingCircle:An,ParkingCircleIcon:An,ParkingCircleOff:In,ParkingCircleOffIcon:In,ParkingMeter:Vv,ParkingMeterIcon:Vv,ParkingSquare:Mi,ParkingSquareIcon:Mi,ParkingSquareOff:bi,ParkingSquareOffIcon:bi,PartyPopper:Bv,PartyPopperIcon:Bv,Pause:$v,PauseCircle:Pn,PauseCircleIcon:Pn,PauseIcon:$v,PauseOctagon:ws,PauseOctagonIcon:ws,PawPrint:Uv,PawPrintIcon:Uv,PcCase:Gv,PcCaseIcon:Gv,Pen:Rs,PenBox:Pt,PenBoxIcon:Pt,PenIcon:Rs,PenLine:_s,PenLineIcon:_s,PenOff:Wv,PenOffIcon:Wv,PenSquare:Pt,PenSquareIcon:Pt,PenTool:Zv,PenToolIcon:Zv,Pencil:Kv,PencilIcon:Kv,PencilLine:Jv,PencilLineIcon:Jv,PencilOff:Xv,PencilOffIcon:Xv,PencilRuler:Yv,PencilRulerIcon:Yv,Pentagon:Qv,PentagonIcon:Qv,Percent:e3,PercentCircle:_n,PercentCircleIcon:_n,PercentDiamond:Wn,PercentDiamondIcon:Wn,PercentIcon:e3,PercentSquare:ji,PercentSquareIcon:ji,PersonStanding:t3,PersonStandingIcon:t3,PhilippinePeso:a3,PhilippinePesoIcon:a3,Phone:xr,PhoneCall:r3,PhoneCallIcon:r3,PhoneForwarded:n3,PhoneForwardedIcon:n3,PhoneIcon:xr,PhoneIncoming:s3,PhoneIncomingIcon:s3,PhoneMissed:i3,PhoneMissedIcon:i3,PhoneOff:o3,PhoneOffIcon:o3,PhoneOutgoing:c3,PhoneOutgoingIcon:c3,Pi:l3,PiIcon:l3,PiSquare:Ci,PiSquareIcon:Ci,Piano:d3,PianoIcon:d3,Pickaxe:h3,PickaxeIcon:h3,PictureInPicture:p3,PictureInPicture2:u3,PictureInPicture2Icon:u3,PictureInPictureIcon:p3,PieChart:un,PieChartIcon:un,PiggyBank:y3,PiggyBankIcon:y3,Pilcrow:x3,PilcrowIcon:x3,PilcrowLeft:m3,PilcrowLeftIcon:m3,PilcrowRight:f3,PilcrowRightIcon:f3,PilcrowSquare:Si,PilcrowSquareIcon:Si,Pill:k3,PillBottle:g3,PillBottleIcon:g3,PillIcon:k3,Pin:w3,PinIcon:w3,PinOff:v3,PinOffIcon:v3,Pipette:b3,PipetteIcon:b3,Pizza:M3,PizzaIcon:M3,Plane:S3,PlaneIcon:S3,PlaneLanding:j3,PlaneLandingIcon:j3,PlaneTakeoff:C3,PlaneTakeoffIcon:C3,Play:Oc,PlayCircle:Rn,PlayCircleIcon:Rn,PlayIcon:Oc,PlaySquare:Li,PlaySquareIcon:Li,Plug:N3,Plug2:L3,Plug2Icon:L3,PlugIcon:N3,PlugZap:Ts,PlugZap2:Ts,PlugZap2Icon:Ts,PlugZapIcon:Ts,Plus:$o,PlusCircle:Tn,PlusCircleIcon:Tn,PlusIcon:$o,PlusSquare:Ni,PlusSquareIcon:Ni,Pocket:A3,PocketIcon:A3,PocketKnife:I3,PocketKnifeIcon:I3,Podcast:P3,PodcastIcon:P3,Pointer:R3,PointerIcon:R3,PointerOff:_3,PointerOffIcon:_3,Popcorn:T3,PopcornIcon:T3,Popsicle:q3,PopsicleIcon:q3,PoundSterling:D3,PoundSterlingIcon:D3,Power:E3,PowerCircle:qn,PowerCircleIcon:qn,PowerIcon:E3,PowerOff:z3,PowerOffIcon:z3,PowerSquare:Ii,PowerSquareIcon:Ii,Presentation:F3,PresentationIcon:F3,Printer:H3,PrinterCheck:O3,PrinterCheckIcon:O3,PrinterIcon:H3,Projector:V3,ProjectorIcon:V3,Proportions:B3,ProportionsIcon:B3,Puzzle:$3,PuzzleIcon:$3,Pyramid:U3,PyramidIcon:U3,QrCode:G3,QrCodeIcon:G3,Quote:Uo,QuoteIcon:Uo,Rabbit:W3,RabbitIcon:W3,Radar:Z3,RadarIcon:Z3,Radiation:J3,RadiationIcon:J3,Radical:X3,RadicalIcon:X3,Radio:Q3,RadioIcon:Q3,RadioReceiver:Y3,RadioReceiverIcon:Y3,RadioTower:K3,RadioTowerIcon:K3,Radius:e6,RadiusIcon:e6,RailSymbol:t6,RailSymbolIcon:t6,Rainbow:a6,RainbowIcon:a6,Rat:r6,RatIcon:r6,Ratio:n6,RatioIcon:n6,Receipt:p6,ReceiptCent:s6,ReceiptCentIcon:s6,ReceiptEuro:i6,ReceiptEuroIcon:i6,ReceiptIcon:p6,ReceiptIndianRupee:o6,ReceiptIndianRupeeIcon:o6,ReceiptJapaneseYen:c6,ReceiptJapaneseYenIcon:c6,ReceiptPoundSterling:l6,ReceiptPoundSterlingIcon:l6,ReceiptRussianRuble:d6,ReceiptRussianRubleIcon:d6,ReceiptSwissFranc:h6,ReceiptSwissFrancIcon:h6,ReceiptText:u6,ReceiptTextIcon:u6,RectangleEllipsis:qs,RectangleEllipsisIcon:qs,RectangleHorizontal:y6,RectangleHorizontalIcon:y6,RectangleVertical:m6,RectangleVerticalIcon:m6,Recycle:f6,RecycleIcon:f6,Redo:k6,Redo2:x6,Redo2Icon:x6,RedoDot:g6,RedoDotIcon:g6,RedoIcon:k6,RefreshCcw:w6,RefreshCcwDot:v6,RefreshCcwDotIcon:v6,RefreshCcwIcon:w6,RefreshCw:M6,RefreshCwIcon:M6,RefreshCwOff:b6,RefreshCwOffIcon:b6,Refrigerator:j6,RefrigeratorIcon:j6,Regex:C6,RegexIcon:C6,RemoveFormatting:S6,RemoveFormattingIcon:S6,Repeat:I6,Repeat1:L6,Repeat1Icon:L6,Repeat2:N6,Repeat2Icon:N6,RepeatIcon:I6,Replace:P6,ReplaceAll:A6,ReplaceAllIcon:A6,ReplaceIcon:P6,Reply:R6,ReplyAll:_6,ReplyAllIcon:_6,ReplyIcon:R6,Rewind:T6,RewindIcon:T6,Ribbon:q6,RibbonIcon:q6,Rocket:D6,RocketIcon:D6,RockingChair:z6,RockingChairIcon:z6,RollerCoaster:E6,RollerCoasterIcon:E6,Rotate3D:Ds,Rotate3DIcon:Ds,Rotate3d:Ds,Rotate3dIcon:Ds,RotateCcw:O6,RotateCcwIcon:O6,RotateCcwSquare:F6,RotateCcwSquareIcon:F6,RotateCw:V6,RotateCwIcon:V6,RotateCwSquare:H6,RotateCwSquareIcon:H6,Route:$6,RouteIcon:$6,RouteOff:B6,RouteOffIcon:B6,Router:U6,RouterIcon:U6,Rows:zs,Rows2:zs,Rows2Icon:zs,Rows3:Es,Rows3Icon:Es,Rows4:G6,Rows4Icon:G6,RowsIcon:zs,Rss:W6,RssIcon:W6,Ruler:Z6,RulerIcon:Z6,RussianRuble:J6,RussianRubleIcon:J6,Sailboat:X6,SailboatIcon:X6,Salad:Y6,SaladIcon:Y6,Sandwich:K6,SandwichIcon:K6,Satellite:e8,SatelliteDish:Q6,SatelliteDishIcon:Q6,SatelliteIcon:e8,Save:r8,SaveAll:t8,SaveAllIcon:t8,SaveIcon:r8,SaveOff:a8,SaveOffIcon:a8,Scale:n8,Scale3D:Fs,Scale3DIcon:Fs,Scale3d:Fs,Scale3dIcon:Fs,ScaleIcon:n8,Scaling:s8,ScalingIcon:s8,Scan:p8,ScanBarcode:i8,ScanBarcodeIcon:i8,ScanEye:o8,ScanEyeIcon:o8,ScanFace:c8,ScanFaceIcon:c8,ScanIcon:p8,ScanLine:l8,ScanLineIcon:l8,ScanQrCode:d8,ScanQrCodeIcon:d8,ScanSearch:h8,ScanSearchIcon:h8,ScanText:u8,ScanTextIcon:u8,ScatterChart:pn,ScatterChartIcon:pn,School:y8,School2:Ui,School2Icon:Ui,SchoolIcon:y8,Scissors:f8,ScissorsIcon:f8,ScissorsLineDashed:m8,ScissorsLineDashedIcon:m8,ScissorsSquare:Ai,ScissorsSquareDashedBottom:ti,ScissorsSquareDashedBottomIcon:ti,ScissorsSquareIcon:Ai,ScreenShare:g8,ScreenShareIcon:g8,ScreenShareOff:x8,ScreenShareOffIcon:x8,Scroll:v8,ScrollIcon:v8,ScrollText:k8,ScrollTextIcon:k8,Search:Ot,SearchCheck:w8,SearchCheckIcon:w8,SearchCode:b8,SearchCodeIcon:b8,SearchIcon:Ot,SearchSlash:M8,SearchSlashIcon:M8,SearchX:j8,SearchXIcon:j8,Section:C8,SectionIcon:C8,Send:Hc,SendHorizonal:Os,SendHorizonalIcon:Os,SendHorizontal:Os,SendHorizontalIcon:Os,SendIcon:Hc,SendToBack:S8,SendToBackIcon:S8,SeparatorHorizontal:L8,SeparatorHorizontalIcon:L8,SeparatorVertical:N8,SeparatorVerticalIcon:N8,Server:_8,ServerCog:I8,ServerCogIcon:I8,ServerCrash:A8,ServerCrashIcon:A8,ServerIcon:_8,ServerOff:P8,ServerOffIcon:P8,Settings:Go,Settings2:R8,Settings2Icon:R8,SettingsIcon:Go,Shapes:T8,ShapesIcon:T8,Share:q8,Share2:ho,Share2Icon:ho,ShareIcon:q8,Sheet:D8,SheetIcon:D8,Shell:z8,ShellIcon:z8,Shield:gr,ShieldAlert:E8,ShieldAlertIcon:E8,ShieldBan:F8,ShieldBanIcon:F8,ShieldCheck:Vc,ShieldCheckIcon:Vc,ShieldClose:Hs,ShieldCloseIcon:Hs,ShieldEllipsis:O8,ShieldEllipsisIcon:O8,ShieldHalf:H8,ShieldHalfIcon:H8,ShieldIcon:gr,ShieldMinus:V8,ShieldMinusIcon:V8,ShieldOff:B8,ShieldOffIcon:B8,ShieldPlus:$8,ShieldPlusIcon:$8,ShieldQuestion:U8,ShieldQuestionIcon:U8,ShieldX:Hs,ShieldXIcon:Hs,Ship:W8,ShipIcon:W8,ShipWheel:G8,ShipWheelIcon:G8,Shirt:Z8,ShirtIcon:Z8,ShoppingBag:J8,ShoppingBagIcon:J8,ShoppingBasket:X8,ShoppingBasketIcon:X8,ShoppingCart:Wo,ShoppingCartIcon:Wo,Shovel:Y8,ShovelIcon:Y8,ShowerHead:K8,ShowerHeadIcon:K8,Shrink:Q8,ShrinkIcon:Q8,Shrub:ew,ShrubIcon:ew,Shuffle:tw,ShuffleIcon:tw,Sidebar:Ns,SidebarClose:Cs,SidebarCloseIcon:Cs,SidebarIcon:Ns,SidebarOpen:Ls,SidebarOpenIcon:Ls,Sigma:aw,SigmaIcon:aw,SigmaSquare:Pi,SigmaSquareIcon:Pi,Signal:Bc,SignalHigh:rw,SignalHighIcon:rw,SignalIcon:Bc,SignalLow:nw,SignalLowIcon:nw,SignalMedium:sw,SignalMediumIcon:sw,SignalZero:iw,SignalZeroIcon:iw,Signature:ow,SignatureIcon:ow,Signpost:lw,SignpostBig:cw,SignpostBigIcon:cw,SignpostIcon:lw,Siren:dw,SirenIcon:dw,SkipBack:hw,SkipBackIcon:hw,SkipForward:uw,SkipForwardIcon:uw,Skull:pw,SkullIcon:pw,Slack:yw,SlackIcon:yw,Slash:mw,SlashIcon:mw,SlashSquare:_i,SlashSquareIcon:_i,Slice:fw,SliceIcon:fw,Sliders:Vs,SlidersHorizontal:kr,SlidersHorizontalIcon:kr,SlidersIcon:Vs,SlidersVertical:Vs,SlidersVerticalIcon:Vs,Smartphone:kw,SmartphoneCharging:xw,SmartphoneChargingIcon:xw,SmartphoneIcon:kw,SmartphoneNfc:gw,SmartphoneNfcIcon:gw,Smile:ww,SmileIcon:ww,SmilePlus:vw,SmilePlusIcon:vw,Snail:bw,SnailIcon:bw,Snowflake:Mw,SnowflakeIcon:Mw,Sofa:jw,SofaIcon:jw,SortAsc:Gr,SortAscIcon:Gr,SortDesc:Br,SortDescIcon:Br,Soup:Cw,SoupIcon:Cw,Space:Sw,SpaceIcon:Sw,Spade:Lw,SpadeIcon:Lw,Sparkle:Nw,SparkleIcon:Nw,Sparkles:ga,SparklesIcon:ga,Speaker:Iw,SpeakerIcon:Iw,Speech:Aw,SpeechIcon:Aw,SpellCheck:_w,SpellCheck2:Pw,SpellCheck2Icon:Pw,SpellCheckIcon:_w,Spline:Rw,SplineIcon:Rw,Split:Tw,SplitIcon:Tw,SplitSquareHorizontal:Ri,SplitSquareHorizontalIcon:Ri,SplitSquareVertical:Ti,SplitSquareVerticalIcon:Ti,SprayCan:qw,SprayCanIcon:qw,Sprout:Dw,SproutIcon:Dw,Square:Vw,SquareActivity:Bs,SquareActivityIcon:Bs,SquareArrowDown:Gs,SquareArrowDownIcon:Gs,SquareArrowDownLeft:$s,SquareArrowDownLeftIcon:$s,SquareArrowDownRight:Us,SquareArrowDownRightIcon:Us,SquareArrowLeft:Ea,SquareArrowLeftIcon:Ea,SquareArrowOutDownLeft:Ws,SquareArrowOutDownLeftIcon:Ws,SquareArrowOutDownRight:Zs,SquareArrowOutDownRightIcon:Zs,SquareArrowOutUpLeft:Js,SquareArrowOutUpLeftIcon:Js,SquareArrowOutUpRight:Xs,SquareArrowOutUpRightIcon:Xs,SquareArrowRight:Fa,SquareArrowRightIcon:Fa,SquareArrowUp:Qs,SquareArrowUpIcon:Qs,SquareArrowUpLeft:Ys,SquareArrowUpLeftIcon:Ys,SquareArrowUpRight:Ks,SquareArrowUpRightIcon:Ks,SquareAsterisk:ei,SquareAsteriskIcon:ei,SquareBottomDashedScissors:ti,SquareBottomDashedScissorsIcon:ti,SquareChartGantt:ma,SquareChartGanttIcon:ma,SquareCheck:ri,SquareCheckBig:ai,SquareCheckBigIcon:ai,SquareCheckIcon:ri,SquareChevronDown:ni,SquareChevronDownIcon:ni,SquareChevronLeft:si,SquareChevronLeftIcon:si,SquareChevronRight:ii,SquareChevronRightIcon:ii,SquareChevronUp:oi,SquareChevronUpIcon:oi,SquareCode:ci,SquareCodeIcon:ci,SquareDashed:hi,SquareDashedBottom:Ew,SquareDashedBottomCode:zw,SquareDashedBottomCodeIcon:zw,SquareDashedBottomIcon:Ew,SquareDashedIcon:hi,SquareDashedKanban:li,SquareDashedKanbanIcon:li,SquareDashedMousePointer:di,SquareDashedMousePointerIcon:di,SquareDivide:ui,SquareDivideIcon:ui,SquareDot:pi,SquareDotIcon:pi,SquareEqual:yi,SquareEqualIcon:yi,SquareFunction:mi,SquareFunctionIcon:mi,SquareGanttChart:ma,SquareGanttChartIcon:ma,SquareIcon:Vw,SquareKanban:fi,SquareKanbanIcon:fi,SquareLibrary:xi,SquareLibraryIcon:xi,SquareM:gi,SquareMIcon:gi,SquareMenu:ki,SquareMenuIcon:ki,SquareMinus:vi,SquareMinusIcon:vi,SquareMousePointer:wi,SquareMousePointerIcon:wi,SquareParking:Mi,SquareParkingIcon:Mi,SquareParkingOff:bi,SquareParkingOffIcon:bi,SquarePen:Pt,SquarePenIcon:Pt,SquarePercent:ji,SquarePercentIcon:ji,SquarePi:Ci,SquarePiIcon:Ci,SquarePilcrow:Si,SquarePilcrowIcon:Si,SquarePlay:Li,SquarePlayIcon:Li,SquarePlus:Ni,SquarePlusIcon:Ni,SquarePower:Ii,SquarePowerIcon:Ii,SquareRadical:Fw,SquareRadicalIcon:Fw,SquareScissors:Ai,SquareScissorsIcon:Ai,SquareSigma:Pi,SquareSigmaIcon:Pi,SquareSlash:_i,SquareSlashIcon:_i,SquareSplitHorizontal:Ri,SquareSplitHorizontalIcon:Ri,SquareSplitVertical:Ti,SquareSplitVerticalIcon:Ti,SquareSquare:Ow,SquareSquareIcon:Ow,SquareStack:Hw,SquareStackIcon:Hw,SquareTerminal:qi,SquareTerminalIcon:qi,SquareUser:zi,SquareUserIcon:zi,SquareUserRound:Di,SquareUserRoundIcon:Di,SquareX:Ei,SquareXIcon:Ei,Squircle:Bw,SquircleIcon:Bw,Squirrel:$w,SquirrelIcon:$w,Stamp:Uw,StampIcon:Uw,Star:vt,StarHalf:Gw,StarHalfIcon:Gw,StarIcon:vt,StarOff:Ww,StarOffIcon:Ww,Stars:ga,StarsIcon:ga,StepBack:Zw,StepBackIcon:Zw,StepForward:Jw,StepForwardIcon:Jw,Stethoscope:Xw,StethoscopeIcon:Xw,Sticker:Yw,StickerIcon:Yw,StickyNote:Kw,StickyNoteIcon:Kw,StopCircle:zn,StopCircleIcon:zn,Store:Qw,StoreIcon:Qw,StretchHorizontal:e7,StretchHorizontalIcon:e7,StretchVertical:t7,StretchVerticalIcon:t7,Strikethrough:a7,StrikethroughIcon:a7,Subscript:r7,SubscriptIcon:r7,Subtitles:en,SubtitlesIcon:en,Sun:c7,SunDim:n7,SunDimIcon:n7,SunIcon:c7,SunMedium:s7,SunMediumIcon:s7,SunMoon:i7,SunMoonIcon:i7,SunSnow:o7,SunSnowIcon:o7,Sunrise:l7,SunriseIcon:l7,Sunset:d7,SunsetIcon:d7,Superscript:h7,SuperscriptIcon:h7,SwatchBook:u7,SwatchBookIcon:u7,SwissFranc:p7,SwissFrancIcon:p7,SwitchCamera:y7,SwitchCameraIcon:y7,Sword:m7,SwordIcon:m7,Swords:f7,SwordsIcon:f7,Syringe:x7,SyringeIcon:x7,Table:C7,Table2:g7,Table2Icon:g7,TableCellsMerge:k7,TableCellsMergeIcon:k7,TableCellsSplit:v7,TableCellsSplitIcon:v7,TableColumnsSplit:w7,TableColumnsSplitIcon:w7,TableIcon:C7,TableOfContents:b7,TableOfContentsIcon:b7,TableProperties:M7,TablePropertiesIcon:M7,TableRowsSplit:j7,TableRowsSplitIcon:j7,Tablet:L7,TabletIcon:L7,TabletSmartphone:S7,TabletSmartphoneIcon:S7,Tablets:N7,TabletsIcon:N7,Tag:$c,TagIcon:$c,Tags:I7,TagsIcon:I7,Tally1:A7,Tally1Icon:A7,Tally2:P7,Tally2Icon:P7,Tally3:_7,Tally3Icon:_7,Tally4:R7,Tally4Icon:R7,Tally5:T7,Tally5Icon:T7,Tangent:q7,TangentIcon:q7,Target:D7,TargetIcon:D7,Telescope:z7,TelescopeIcon:z7,Tent:F7,TentIcon:F7,TentTree:E7,TentTreeIcon:E7,Terminal:O7,TerminalIcon:O7,TerminalSquare:qi,TerminalSquareIcon:qi,TestTube:H7,TestTube2:Fi,TestTube2Icon:Fi,TestTubeDiagonal:Fi,TestTubeDiagonalIcon:Fi,TestTubeIcon:H7,TestTubes:V7,TestTubesIcon:V7,Text:W7,TextCursor:$7,TextCursorIcon:$7,TextCursorInput:B7,TextCursorInputIcon:B7,TextIcon:W7,TextQuote:U7,TextQuoteIcon:U7,TextSearch:G7,TextSearchIcon:G7,TextSelect:Oi,TextSelectIcon:Oi,TextSelection:Oi,TextSelectionIcon:Oi,Theater:Z7,TheaterIcon:Z7,Thermometer:Y7,ThermometerIcon:Y7,ThermometerSnowflake:J7,ThermometerSnowflakeIcon:J7,ThermometerSun:X7,ThermometerSunIcon:X7,ThumbsDown:K7,ThumbsDownIcon:K7,ThumbsUp:Q7,ThumbsUpIcon:Q7,Ticket:ib,TicketCheck:eb,TicketCheckIcon:eb,TicketIcon:ib,TicketMinus:tb,TicketMinusIcon:tb,TicketPercent:ab,TicketPercentIcon:ab,TicketPlus:rb,TicketPlusIcon:rb,TicketSlash:nb,TicketSlashIcon:nb,TicketX:sb,TicketXIcon:sb,Tickets:cb,TicketsIcon:cb,TicketsPlane:ob,TicketsPlaneIcon:ob,Timer:hb,TimerIcon:hb,TimerOff:lb,TimerOffIcon:lb,TimerReset:db,TimerResetIcon:db,ToggleLeft:ub,ToggleLeftIcon:ub,ToggleRight:pb,ToggleRightIcon:pb,Tornado:yb,TornadoIcon:yb,Torus:mb,TorusIcon:mb,Touchpad:xb,TouchpadIcon:xb,TouchpadOff:fb,TouchpadOffIcon:fb,TowerControl:gb,TowerControlIcon:gb,ToyBrick:kb,ToyBrickIcon:kb,Tractor:vb,TractorIcon:vb,TrafficCone:wb,TrafficConeIcon:wb,Train:Hi,TrainFront:Mb,TrainFrontIcon:Mb,TrainFrontTunnel:bb,TrainFrontTunnelIcon:bb,TrainIcon:Hi,TrainTrack:jb,TrainTrackIcon:jb,TramFront:Hi,TramFrontIcon:Hi,Trash:Cb,Trash2:Zo,Trash2Icon:Zo,TrashIcon:Cb,TreeDeciduous:Sb,TreeDeciduousIcon:Sb,TreePalm:Vi,TreePalmIcon:Vi,TreePine:Lb,TreePineIcon:Lb,Trees:Nb,TreesIcon:Nb,Trello:Ib,TrelloIcon:Ib,TrendingDown:Ab,TrendingDownIcon:Ab,TrendingUp:ja,TrendingUpDown:Pb,TrendingUpDownIcon:Pb,TrendingUpIcon:ja,Triangle:Rb,TriangleAlert:Bi,TriangleAlertIcon:Bi,TriangleIcon:Rb,TriangleRight:_b,TriangleRightIcon:_b,Trophy:Tb,TrophyIcon:Tb,Truck:qb,TruckIcon:qb,Turtle:Db,TurtleIcon:Db,Tv:Eb,Tv2:$i,Tv2Icon:$i,TvIcon:Eb,TvMinimal:$i,TvMinimalIcon:$i,TvMinimalPlay:zb,TvMinimalPlayIcon:zb,Twitch:Fb,TwitchIcon:Fb,Twitter:Ob,TwitterIcon:Ob,Type:Vb,TypeIcon:Vb,TypeOutline:Hb,TypeOutlineIcon:Hb,Umbrella:$b,UmbrellaIcon:$b,UmbrellaOff:Bb,UmbrellaOffIcon:Bb,Underline:Ub,UnderlineIcon:Ub,Undo:Zb,Undo2:Gb,Undo2Icon:Gb,UndoDot:Wb,UndoDotIcon:Wb,UndoIcon:Zb,UnfoldHorizontal:Jb,UnfoldHorizontalIcon:Jb,UnfoldVertical:Xb,UnfoldVerticalIcon:Xb,Ungroup:Yb,UngroupIcon:Yb,University:Ui,UniversityIcon:Ui,Unlink:Qb,Unlink2:Kb,Unlink2Icon:Kb,UnlinkIcon:Qb,Unlock:xs,UnlockIcon:xs,UnlockKeyhole:fs,UnlockKeyholeIcon:fs,Unplug:eM,UnplugIcon:eM,Upload:Uc,UploadCloud:or,UploadCloudIcon:or,UploadIcon:Uc,Usb:tM,UsbIcon:tM,User:Jo,User2:Yi,User2Icon:Yi,UserCheck:Gc,UserCheck2:Gi,UserCheck2Icon:Gi,UserCheckIcon:Gc,UserCircle:Fn,UserCircle2:En,UserCircle2Icon:En,UserCircleIcon:Fn,UserCog:aM,UserCog2:Wi,UserCog2Icon:Wi,UserCogIcon:aM,UserIcon:Jo,UserMinus:rM,UserMinus2:Zi,UserMinus2Icon:Zi,UserMinusIcon:rM,UserPen:nM,UserPenIcon:nM,UserPlus:sM,UserPlus2:Ji,UserPlus2Icon:Ji,UserPlusIcon:sM,UserRound:Yi,UserRoundCheck:Gi,UserRoundCheckIcon:Gi,UserRoundCog:Wi,UserRoundCogIcon:Wi,UserRoundIcon:Yi,UserRoundMinus:Zi,UserRoundMinusIcon:Zi,UserRoundPen:iM,UserRoundPenIcon:iM,UserRoundPlus:Ji,UserRoundPlusIcon:Ji,UserRoundSearch:oM,UserRoundSearchIcon:oM,UserRoundX:Xi,UserRoundXIcon:Xi,UserSearch:cM,UserSearchIcon:cM,UserSquare:zi,UserSquare2:Di,UserSquare2Icon:Di,UserSquareIcon:zi,UserX:lM,UserX2:Xi,UserX2Icon:Xi,UserXIcon:lM,Users:jt,Users2:Ki,Users2Icon:Ki,UsersIcon:jt,UsersRound:Ki,UsersRoundIcon:Ki,Utensils:eo,UtensilsCrossed:Qi,UtensilsCrossedIcon:Qi,UtensilsIcon:eo,UtilityPole:dM,UtilityPoleIcon:dM,Variable:hM,VariableIcon:hM,Vault:uM,VaultIcon:uM,Vegan:pM,VeganIcon:pM,VenetianMask:yM,VenetianMaskIcon:yM,Verified:Jr,VerifiedIcon:Jr,Vibrate:fM,VibrateIcon:fM,VibrateOff:mM,VibrateOffIcon:mM,Video:gM,VideoIcon:gM,VideoOff:xM,VideoOffIcon:xM,Videotape:kM,VideotapeIcon:kM,View:vM,ViewIcon:vM,Voicemail:wM,VoicemailIcon:wM,Volleyball:bM,VolleyballIcon:bM,Volume:LM,Volume1:MM,Volume1Icon:MM,Volume2:jM,Volume2Icon:jM,VolumeIcon:LM,VolumeOff:CM,VolumeOffIcon:CM,VolumeX:SM,VolumeXIcon:SM,Vote:NM,VoteIcon:NM,Wallet:AM,Wallet2:to,Wallet2Icon:to,WalletCards:IM,WalletCardsIcon:IM,WalletIcon:AM,WalletMinimal:to,WalletMinimalIcon:to,Wallpaper:PM,WallpaperIcon:PM,Wand:_M,Wand2:ao,Wand2Icon:ao,WandIcon:_M,WandSparkles:ao,WandSparklesIcon:ao,Warehouse:RM,WarehouseIcon:RM,WashingMachine:TM,WashingMachineIcon:TM,Watch:qM,WatchIcon:qM,Waves:DM,WavesIcon:DM,Waypoints:zM,WaypointsIcon:zM,Webcam:EM,WebcamIcon:EM,Webhook:OM,WebhookIcon:OM,WebhookOff:FM,WebhookOffIcon:FM,Weight:HM,WeightIcon:HM,Wheat:BM,WheatIcon:BM,WheatOff:VM,WheatOffIcon:VM,WholeWord:$M,WholeWordIcon:$M,Wifi:JM,WifiHigh:UM,WifiHighIcon:UM,WifiIcon:JM,WifiLow:GM,WifiLowIcon:GM,WifiOff:WM,WifiOffIcon:WM,WifiZero:ZM,WifiZeroIcon:ZM,Wind:XM,WindIcon:XM,Wine:KM,WineIcon:KM,WineOff:YM,WineOffIcon:YM,Workflow:QM,WorkflowIcon:QM,Worm:e9,WormIcon:e9,WrapText:t9,WrapTextIcon:t9,Wrench:a9,WrenchIcon:a9,X:wt,XCircle:xa,XCircleIcon:xa,XIcon:wt,XOctagon:bs,XOctagonIcon:bs,XSquare:Ei,XSquareIcon:Ei,Youtube:r9,YoutubeIcon:r9,Zap:Wc,ZapIcon:Wc,ZapOff:n9,ZapOffIcon:n9,ZoomIn:s9,ZoomInIcon:s9,ZoomOut:i9,ZoomOutIcon:i9,createLucideIcon:o,icons:fq},Symbol.toStringTag,{value:"Module"})),gq=({availableTags:t,selectedTagIds:a,onTagSelect:r,onTagDeselect:n,onCreateTag:s,maxTags:i=10,placeholder:c="Add tags..."})=>{const[l,d]=M.useState(!1),[h,u]=M.useState(""),[p,y]=M.useState("#3B82F6"),[m,x]=M.useState(""),[f,v]=M.useState(-1),k=M.useMemo(()=>t.filter(j=>j.name.toLowerCase().includes(m.toLowerCase())),[t,m]),w=M.useMemo(()=>t.filter(j=>a.includes(j.id)),[t,a]),b=M.useMemo(()=>k.filter(j=>!a.includes(j.id)),[k,a]),S=m.trim().length>0&&!t.some(j=>j.name.toLowerCase()===m.trim().toLowerCase()),C=b.length+(S?1:0),A=async()=>{const j=h.trim();if(j)try{await s({name:j,color:p}),u(""),d(!1)}catch(N){console.error("Failed to create tag:",N)}},L=j=>{if(C)switch(j.key){case"ArrowDown":{j.preventDefault(),v(N=>(N+1)%C);break}case"ArrowUp":{j.preventDefault(),v(N=>(N-1+C)%C);break}case"Enter":{if(f===-1)return;if(j.preventDefault(),f<b.length){const N=b[f];r(N.id),x(""),v(-1)}else S&&(d(!0),u(m.trim()),x(""),v(-1));break}case"Escape":{x(""),v(-1);break}}};return e.jsxs("div",{className:"tag-picker",children:[e.jsx("div",{className:"selected-tags flex flex-wrap gap-2 mb-2",children:w.map(j=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm border",style:{backgroundColor:`${j.color}20`,color:j.color,borderColor:j.color},children:[j.name,e.jsx("button",{type:"button",onClick:()=>n(j.id),className:"hover:opacity-70","aria-label":`Remove ${j.name}`,children:e.jsx(wt,{className:"w-3 h-3"})})]},j.id))}),a.length<i&&e.jsxs("div",{className:"tag-selector relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx($c,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:m,onChange:j=>{x(j.target.value),v(-1)},onKeyDown:L,placeholder:c,className:"w-full border rounded px-9 py-2","aria-haspopup":"listbox","aria-expanded":m.length>0})]}),m&&e.jsxs("div",{role:"listbox",className:"absolute z-10 w-full mt-1 bg-white border rounded shadow-lg max-h-48 overflow-y-auto",children:[b.map((j,N)=>e.jsxs("button",{type:"button",role:"option","aria-selected":f===N,onClick:()=>{r(j.id),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 flex items-center gap-2 ${f===N?"bg-gray-100":""}`,children:[e.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:j.color}}),e.jsx("span",{children:j.name}),j.category&&e.jsxs("span",{className:"text-xs text-gray-500",children:["(",j.category,")"]})]},j.id)),S&&e.jsxs("button",{type:"button",role:"option","aria-selected":f===b.length,onClick:()=>{d(!0),u(m.trim()),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 text-blue-600 flex items-center gap-2 ${f===b.length?"bg-gray-100":""}`,children:[e.jsx($o,{className:"w-4 h-4"}),'Create "',m.trim(),'"']}),!b.length&&!S&&e.jsx("div",{className:"px-3 py-2 text-sm text-gray-500",children:"No tags found."})]})]}),l&&e.jsxs("div",{className:"create-tag-form mt-2 p-3 border rounded",children:[e.jsx("input",{type:"text",value:h,onChange:j=>u(j.target.value),placeholder:"Tag name",className:"w-full border rounded px-3 py-2 mb-2"}),e.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-600",children:["Color",e.jsx("input",{type:"color",value:p,onChange:j=>y(j.target.value),className:"w-12 h-8 rounded","aria-label":"Pick tag color"})]}),e.jsx("button",{type:"button",onClick:A,onKeyDown:j=>{j.key==="Enter"&&(j.preventDefault(),A())},className:"flex-1 bg-blue-600 text-white px-3 py-2 rounded hover:bg-blue-700",children:"Create"}),e.jsx("button",{type:"button",onClick:()=>{d(!1),u("")},className:"px-3 py-2 border rounded hover:bg-gray-100",children:"Cancel"})]})]})]})},kq={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-sm",lg:"px-4 py-1.5 text-base"},AC=({name:t,color:a,size:r="md",removable:n=!1,onRemove:s,onClick:i,href:c,className:l})=>{const d=!!(i||c),h=p=>{!i||c||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},u=c?"a":"span";return e.jsxs(u,{className:`inline-flex items-center gap-1 rounded-full font-medium border transition-opacity ${kq[r]} ${d?"cursor-pointer hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2":""} ${l??""}`,style:{backgroundColor:`${a}20`,color:a,borderColor:a},onClick:i,onKeyDown:h,role:!c&&i?"button":void 0,tabIndex:!c&&i?0:void 0,href:c,children:[t,n&&s&&e.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),s()},className:"hover:opacity-70 ml-1","aria-label":`Remove ${t} tag`,children:e.jsx(wt,{className:"w-3 h-3"})})]})};function Ba(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function vq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,wq(s,...a)]}function wq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function bq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,Mq(s,...a)]}function Mq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function jq(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function PC(...t){return a=>t.forEach(r=>jq(r,a))}function f9(...t){return g.useCallback(PC(...t),t)}var Uj=g.forwardRef((t,a)=>{const{children:r,...n}=t,s=g.Children.toArray(r),i=s.find(Sq);if(i){const c=i.props.children,l=s.map(d=>d===i?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return e.jsx(Gj,{...n,ref:a,children:g.isValidElement(c)?g.cloneElement(c,void 0,l):null})}return e.jsx(Gj,{...n,ref:a,children:r})});Uj.displayName="Slot";var Gj=g.forwardRef((t,a)=>{const{children:r,...n}=t;if(g.isValidElement(r)){const s=Nq(r);return g.cloneElement(r,{...Lq(n,r.props),ref:a?PC(a,s):s})}return g.Children.count(r)>1?g.Children.only(null):null});Gj.displayName="SlotClone";var Cq=({children:t})=>e.jsx(e.Fragment,{children:t});function Sq(t){return g.isValidElement(t)&&t.type===Cq}function Lq(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{i(...l),s(...l)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function Nq(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Iq(t){const a=t+"CollectionProvider",[r,n]=bq(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:x,children:f}=m,v=M.useRef(null),k=M.useRef(new Map).current;return e.jsx(s,{scope:x,itemMap:k,collectionRef:v,children:f})};c.displayName=a;const l=t+"CollectionSlot",d=M.forwardRef((m,x)=>{const{scope:f,children:v}=m,k=i(l,f),w=f9(x,k.collectionRef);return e.jsx(Uj,{ref:w,children:v})});d.displayName=l;const h=t+"CollectionItemSlot",u="data-radix-collection-item",p=M.forwardRef((m,x)=>{const{scope:f,children:v,...k}=m,w=M.useRef(null),b=f9(x,w),S=i(h,f);return M.useEffect(()=>(S.itemMap.set(w,{ref:w,...k}),()=>void S.itemMap.delete(w))),e.jsx(Uj,{[u]:"",ref:b,children:v})});p.displayName=h;function y(m){const x=i(t+"CollectionConsumer",m);return M.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const k=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((S,C)=>k.indexOf(S.ref.current)-k.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:c,Slot:d,ItemSlot:p},y,n]}function Aq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];function h(p){const{scope:y,children:m,...x}=p,f=(y==null?void 0:y[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})}function u(p,y){const m=(y==null?void 0:y[t][d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,Pq(s,...a)]}function Pq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var Wj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},_q=g.useId||(()=>{}),Rq=0;function qN(t){const[a,r]=g.useState(_q());return Wj(()=>{t||r(n=>n??String(Rq++))},[t]),t||(a?`radix-${a}`:"")}var DN=g.forwardRef((t,a)=>{const{children:r,...n}=t,s=g.Children.toArray(r),i=s.find(qq);if(i){const c=i.props.children,l=s.map(d=>d===i?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return e.jsx(Zj,{...n,ref:a,children:g.isValidElement(c)?g.cloneElement(c,void 0,l):null})}return e.jsx(Zj,{...n,ref:a,children:r})});DN.displayName="Slot";var Zj=g.forwardRef((t,a)=>{const{children:r,...n}=t;if(g.isValidElement(r)){const s=zq(r);return g.cloneElement(r,{...Dq(n,r.props),ref:a?PC(a,s):s})}return g.Children.count(r)>1?g.Children.only(null):null});Zj.displayName="SlotClone";var Tq=({children:t})=>e.jsx(e.Fragment,{children:t});function qq(t){return g.isValidElement(t)&&t.type===Tq}function Dq(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{i(...l),s(...l)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function zq(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],So=Eq.reduce((t,a)=>{const r=g.forwardRef((n,s)=>{const{asChild:i,...c}=n,l=i?DN:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function _C(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function zN({prop:t,defaultProp:a,onChange:r=()=>{}}){const[n,s]=Fq({defaultProp:a,onChange:r}),i=t!==void 0,c=i?t:n,l=_C(r),d=g.useCallback(h=>{if(i){const p=typeof h=="function"?h(t):h;p!==t&&l(p)}else s(h)},[i,t,s,l]);return[c,d]}function Fq({defaultProp:t,onChange:a}){const r=g.useState(t),[n]=r,s=g.useRef(n),i=_C(a);return g.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}var Oq=g.createContext(void 0);function EN(t){const a=g.useContext(Oq);return t||a||"ltr"}var yj="rovingFocusGroup.onEntryFocus",Hq={bubbles:!1,cancelable:!0},z9="RovingFocusGroup",[Jj,FN,Vq]=Iq(z9),[Bq,ON]=Aq(z9,[Vq]),[$q,Uq]=Bq(z9),HN=g.forwardRef((t,a)=>e.jsx(Jj.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Jj.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Gq,{...t,ref:a})})}));HN.displayName=z9;var Gq=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:u=!1,...p}=t,y=g.useRef(null),m=f9(a,y),x=EN(i),[f=null,v]=zN({prop:c,defaultProp:l,onChange:d}),[k,w]=g.useState(!1),b=_C(h),S=FN(r),C=g.useRef(!1),[A,L]=g.useState(0);return g.useEffect(()=>{const j=y.current;if(j)return j.addEventListener(yj,b),()=>j.removeEventListener(yj,b)},[b]),e.jsx($q,{scope:r,orientation:n,dir:x,loop:s,currentTabStopId:f,onItemFocus:g.useCallback(j=>v(j),[v]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>L(j=>j+1),[]),onFocusableItemRemove:g.useCallback(()=>L(j=>j-1),[]),children:e.jsx(So.div,{tabIndex:k||A===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...t.style},onMouseDown:Ba(t.onMouseDown,()=>{C.current=!0}),onFocus:Ba(t.onFocus,j=>{const N=!C.current;if(j.target===j.currentTarget&&N&&!k){const q=new CustomEvent(yj,Hq);if(j.currentTarget.dispatchEvent(q),!q.defaultPrevented){const P=S().filter($=>$.focusable),R=P.find($=>$.active),T=P.find($=>$.id===f),U=[R,T,...P].filter(Boolean).map($=>$.ref.current);$N(U,u)}}C.current=!1}),onBlur:Ba(t.onBlur,()=>w(!1))})})}),VN="RovingFocusGroupItem",BN=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...c}=t,l=qN(),d=i||l,h=Uq(VN,r),u=h.currentTabStopId===d,p=FN(r),{onFocusableItemAdd:y,onFocusableItemRemove:m}=h;return g.useEffect(()=>{if(n)return y(),()=>m()},[n,y,m]),e.jsx(Jj.ItemSlot,{scope:r,id:d,focusable:n,active:s,children:e.jsx(So.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...c,ref:a,onMouseDown:Ba(t.onMouseDown,x=>{n?h.onItemFocus(d):x.preventDefault()}),onFocus:Ba(t.onFocus,()=>h.onItemFocus(d)),onKeyDown:Ba(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){h.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const f=Jq(x,h.orientation,h.dir);if(f!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let k=p().filter(w=>w.focusable).map(w=>w.ref.current);if(f==="last")k.reverse();else if(f==="prev"||f==="next"){f==="prev"&&k.reverse();const w=k.indexOf(x.currentTarget);k=h.loop?Xq(k,w+1):k.slice(w+1)}setTimeout(()=>$N(k))}})})})});BN.displayName=VN;var Wq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zq(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Jq(t,a,r){const n=Zq(t.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Wq[n]}function $N(t,a=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:a}),document.activeElement!==r))return}function Xq(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var Yq=HN,Kq=BN;function Qq(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var UN=t=>{const{present:a,children:r}=t,n=eD(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=f9(n.ref,tD(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};UN.displayName="Presence";function eD(t){const[a,r]=g.useState(),n=g.useRef({}),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=Qq(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=gl(n.current);i.current=l==="mounted"?h:"none"},[l]),Wj(()=>{const h=n.current,u=s.current;if(u!==t){const y=i.current,m=gl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Wj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=gl(n.current).includes(m.animationName);if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=gl(n.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{h&&(n.current=getComputedStyle(h)),r(h)},[])}}function gl(t){return(t==null?void 0:t.animationName)||"none"}function tD(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var RC="Tabs",[aD,UG]=vq(RC,[ON]),GN=ON(),[rD,TC]=aD(RC),WN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:c="horizontal",dir:l,activationMode:d="automatic",...h}=t,u=EN(l),[p,y]=zN({prop:n,onChange:s,defaultProp:i});return e.jsx(rD,{scope:r,baseId:qN(),value:p,onValueChange:y,orientation:c,dir:u,activationMode:d,children:e.jsx(So.div,{dir:u,"data-orientation":c,...h,ref:a})})});WN.displayName=RC;var ZN="TabsList",JN=g.forwardRef((t,a)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=TC(ZN,r),c=GN(r);return e.jsx(Yq,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:n,children:e.jsx(So.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:a})})});JN.displayName=ZN;var XN="TabsTrigger",YN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,c=TC(XN,r),l=GN(r),d=eI(c.baseId,n),h=tI(c.baseId,n),u=n===c.value;return e.jsx(Kq,{asChild:!0,...l,focusable:!s,active:u,children:e.jsx(So.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":h,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...i,ref:a,onMouseDown:Ba(t.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ba(t.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ba(t.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!s&&p&&c.onValueChange(n)})})})});YN.displayName=XN;var KN="TabsContent",QN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...c}=t,l=TC(KN,r),d=eI(l.baseId,n),h=tI(l.baseId,n),u=n===l.value,p=g.useRef(u);return g.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),e.jsx(UN,{present:s||u,children:({present:y})=>e.jsx(So.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!y,id:h,tabIndex:0,...c,ref:a,style:{...t.style,animationDuration:p.current?"0s":void 0},children:y&&i})})});QN.displayName=KN;function eI(t,a){return`${t}-trigger-${a}`}function tI(t,a){return`${t}-content-${a}`}var nD=WN,aI=JN,rI=YN,nI=QN;const Ir=nD,Za=g.forwardRef(({className:t,...a},r)=>e.jsx(aI,{ref:r,className:ue("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...a}));Za.displayName=aI.displayName;const Ce=g.forwardRef(({className:t,...a},r)=>e.jsx(rI,{ref:r,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...a}));Ce.displayName=rI.displayName;const Se=g.forwardRef(({className:t,...a},r)=>e.jsx(nI,{ref:r,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a}));Se.displayName=nI.displayName;const re=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("rounded-xl border bg-card text-card-foreground shadow",t),...a}));re.displayName="Card";const ye=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("flex flex-col space-y-1.5 p-6",t),...a}));ye.displayName="CardHeader";const ge=g.forwardRef(({className:t,...a},r)=>e.jsx("h3",{ref:r,className:ue("font-semibold leading-none tracking-tight",t),...a}));ge.displayName="CardTitle";const Ue=g.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));Ue.displayName="CardDescription";const oe=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("p-6 pt-0",t),...a}));oe.displayName="CardContent";const xo=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("flex items-center p-6 pt-0",t),...a}));xo.displayName="CardFooter";function sD({groupedIds:t,tabTitles:a,lang:r,url:n,PromotionsTitle:s,buttonMsg:i="Select Plan"}){const[c,l]=M.useState([]),[d,h]=M.useState("tab-0"),u=n||window.location.origin||"http://localhost:8000";M.useEffect(()=>{(async()=>{try{const x=r??"en",f=t.map(async k=>(await fetch(`${u}/api/v1/promotions/?ids=${k}`,{method:"GET",headers:{"Accept-Language":x,"Content-Type":"application/json"}})).json()),v=await Promise.all(f);l(v)}catch{}})()},[t,u,r]);const p=m=>{const x=new CustomEvent("planSelected",{bubbles:!0,detail:{plan:m,tabType:d,timestamp:new Date().toISOString()}}),f=document.querySelector(".group-prices-component");f&&f.dispatchEvent(x)},y=`grid sm:grid-cols-2 lg:grid-cols-${a.length} mb-8`;return e.jsx("section",{id:"pricing",className:"w-full py-12 md:py-24 lg:py-32",children:e.jsxs("div",{className:"container px-4 md:px-6",children:[s??e.jsx("h2",{className:"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl text-center mb-8",children:s}),e.jsxs(Ir,{defaultValue:"tab-0",className:"w-full",onValueChange:m=>h(m),children:[e.jsx(Za,{className:y,children:a.map((m,x)=>e.jsx(Ce,{value:`tab-${x}`,children:m},x))}),c.map((m,x)=>e.jsx(Se,{value:`tab-${x}`,children:e.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:m.map((f,v)=>e.jsxs(re,{className:"flex flex-col",children:[e.jsxs(ye,{children:[e.jsx(ge,{children:f.title}),e.jsx(Ue,{children:f.short_description})]}),e.jsxs(oe,{className:"flex-1",children:[e.jsxs("p",{className:"text-3xl font-bold",children:["€",f.price]}),e.jsx("ul",{className:"mt-4 space-y-2",children:f.features&&f.features.map((k,w)=>e.jsxs("li",{className:"flex items-center",children:[e.jsx(Eo,{className:"mr-2 h-4 w-4 text-primary"})," ",k]},w))})]}),e.jsx(xo,{children:e.jsx(D,{onClick:()=>p(f),className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:i})})]},v))})},x))]})]})})}function iD({isOpen:t,items:a}){const r=a.reduce((n,s)=>n+s.price,0);return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:ue("fixed inset-y-0 right-0 w-80 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-30",t?"translate-x-0":"translate-x-full"),children:e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Summary"}),e.jsxs("button",{onClick:()=>{const n=document.querySelector('.sliding-summary-component[data-open="true"]');n&&n.setAttribute("data-open","false")},className:"hover:bg-gray-100 rounded p-2",children:[e.jsx(wt,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close panel"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:a.map(n=>e.jsxs("div",{className:"mb-4 p-3 border rounded-lg",children:[e.jsxs("div",{className:"flex justify-between items-start mb-1",children:[e.jsx("span",{className:"font-medium",children:n.name}),e.jsxs("span",{className:"text-sm",children:["$",n.price.toFixed(2)]})]}),e.jsx("p",{className:"text-sm text-gray-600",children:n.description})]},n.id))}),e.jsx("div",{className:"p-4 border-t",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"font-semibold",children:"Total:"}),e.jsxs("span",{className:"font-semibold",children:["$",r.toFixed(2)]})]})})]})}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/20 z-20",onClick:()=>{const n=document.querySelector('.sliding-summary-component[data-open="true"]');n&&n.setAttribute("data-open","false")}})]})}function Da(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sI(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a}/*!
|
|
7725
|
+
*/const xq=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Rl,AArrowDownIcon:Rl,AArrowUp:Tl,AArrowUpIcon:Tl,ALargeSmall:ql,ALargeSmallIcon:ql,Accessibility:Dl,AccessibilityIcon:Dl,Activity:zl,ActivityIcon:zl,ActivitySquare:Bs,ActivitySquareIcon:Bs,AirVent:El,AirVentIcon:El,Airplay:Fl,AirplayIcon:Fl,AlarmCheck:Fr,AlarmCheckIcon:Fr,AlarmClock:Hl,AlarmClockCheck:Fr,AlarmClockCheckIcon:Fr,AlarmClockIcon:Hl,AlarmClockMinus:Or,AlarmClockMinusIcon:Or,AlarmClockOff:Ol,AlarmClockOffIcon:Ol,AlarmClockPlus:Hr,AlarmClockPlusIcon:Hr,AlarmMinus:Or,AlarmMinusIcon:Or,AlarmPlus:Hr,AlarmPlusIcon:Hr,AlarmSmoke:Vl,AlarmSmokeIcon:Vl,Album:Bl,AlbumIcon:Bl,AlertCircle:Tt,AlertCircleIcon:Tt,AlertOctagon:vs,AlertOctagonIcon:vs,AlertTriangle:Bi,AlertTriangleIcon:Bi,AlignCenter:Gl,AlignCenterHorizontal:$l,AlignCenterHorizontalIcon:$l,AlignCenterIcon:Gl,AlignCenterVertical:Ul,AlignCenterVerticalIcon:Ul,AlignEndHorizontal:Wl,AlignEndHorizontalIcon:Wl,AlignEndVertical:Zl,AlignEndVerticalIcon:Zl,AlignHorizontalDistributeCenter:Jl,AlignHorizontalDistributeCenterIcon:Jl,AlignHorizontalDistributeEnd:Xl,AlignHorizontalDistributeEndIcon:Xl,AlignHorizontalDistributeStart:Yl,AlignHorizontalDistributeStartIcon:Yl,AlignHorizontalJustifyCenter:Kl,AlignHorizontalJustifyCenterIcon:Kl,AlignHorizontalJustifyEnd:Ql,AlignHorizontalJustifyEndIcon:Ql,AlignHorizontalJustifyStart:e1,AlignHorizontalJustifyStartIcon:e1,AlignHorizontalSpaceAround:t1,AlignHorizontalSpaceAroundIcon:t1,AlignHorizontalSpaceBetween:a1,AlignHorizontalSpaceBetweenIcon:a1,AlignJustify:r1,AlignJustifyIcon:r1,AlignLeft:n1,AlignLeftIcon:n1,AlignRight:s1,AlignRightIcon:s1,AlignStartHorizontal:i1,AlignStartHorizontalIcon:i1,AlignStartVertical:o1,AlignStartVerticalIcon:o1,AlignVerticalDistributeCenter:c1,AlignVerticalDistributeCenterIcon:c1,AlignVerticalDistributeEnd:l1,AlignVerticalDistributeEndIcon:l1,AlignVerticalDistributeStart:d1,AlignVerticalDistributeStartIcon:d1,AlignVerticalJustifyCenter:h1,AlignVerticalJustifyCenterIcon:h1,AlignVerticalJustifyEnd:u1,AlignVerticalJustifyEndIcon:u1,AlignVerticalJustifyStart:p1,AlignVerticalJustifyStartIcon:p1,AlignVerticalSpaceAround:y1,AlignVerticalSpaceAroundIcon:y1,AlignVerticalSpaceBetween:m1,AlignVerticalSpaceBetweenIcon:m1,Ambulance:f1,AmbulanceIcon:f1,Ampersand:x1,AmpersandIcon:x1,Ampersands:g1,AmpersandsIcon:g1,Amphora:k1,AmphoraIcon:k1,Anchor:v1,AnchorIcon:v1,Angry:w1,AngryIcon:w1,Annoyed:b1,AnnoyedIcon:b1,Antenna:M1,AntennaIcon:M1,Anvil:j1,AnvilIcon:j1,Aperture:C1,ApertureIcon:C1,AppWindow:L1,AppWindowIcon:L1,AppWindowMac:S1,AppWindowMacIcon:S1,Apple:N1,AppleIcon:N1,Archive:P1,ArchiveIcon:P1,ArchiveRestore:I1,ArchiveRestoreIcon:I1,ArchiveX:A1,ArchiveXIcon:A1,AreaChart:tn,AreaChartIcon:tn,Armchair:_1,ArmchairIcon:_1,ArrowBigDown:T1,ArrowBigDownDash:R1,ArrowBigDownDashIcon:R1,ArrowBigDownIcon:T1,ArrowBigLeft:D1,ArrowBigLeftDash:q1,ArrowBigLeftDashIcon:q1,ArrowBigLeftIcon:D1,ArrowBigRight:E1,ArrowBigRightDash:z1,ArrowBigRightDashIcon:z1,ArrowBigRightIcon:E1,ArrowBigUp:O1,ArrowBigUpDash:F1,ArrowBigUpDashIcon:F1,ArrowBigUpIcon:O1,ArrowDown:X1,ArrowDown01:H1,ArrowDown01Icon:H1,ArrowDown10:V1,ArrowDown10Icon:V1,ArrowDownAZ:Vr,ArrowDownAZIcon:Vr,ArrowDownAz:Vr,ArrowDownAzIcon:Vr,ArrowDownCircle:yn,ArrowDownCircleIcon:yn,ArrowDownFromLine:B1,ArrowDownFromLineIcon:B1,ArrowDownIcon:X1,ArrowDownLeft:$1,ArrowDownLeftFromCircle:fn,ArrowDownLeftFromCircleIcon:fn,ArrowDownLeftFromSquare:Ws,ArrowDownLeftFromSquareIcon:Ws,ArrowDownLeftIcon:$1,ArrowDownLeftSquare:$s,ArrowDownLeftSquareIcon:$s,ArrowDownNarrowWide:U1,ArrowDownNarrowWideIcon:U1,ArrowDownRight:G1,ArrowDownRightFromCircle:xn,ArrowDownRightFromCircleIcon:xn,ArrowDownRightFromSquare:Zs,ArrowDownRightFromSquareIcon:Zs,ArrowDownRightIcon:G1,ArrowDownRightSquare:Us,ArrowDownRightSquareIcon:Us,ArrowDownSquare:Gs,ArrowDownSquareIcon:Gs,ArrowDownToDot:W1,ArrowDownToDotIcon:W1,ArrowDownToLine:Z1,ArrowDownToLineIcon:Z1,ArrowDownUp:J1,ArrowDownUpIcon:J1,ArrowDownWideNarrow:Br,ArrowDownWideNarrowIcon:Br,ArrowDownZA:$r,ArrowDownZAIcon:$r,ArrowDownZa:$r,ArrowDownZaIcon:$r,ArrowLeft:Ha,ArrowLeftCircle:mn,ArrowLeftCircleIcon:mn,ArrowLeftFromLine:Y1,ArrowLeftFromLineIcon:Y1,ArrowLeftIcon:Ha,ArrowLeftRight:K1,ArrowLeftRightIcon:K1,ArrowLeftSquare:Ea,ArrowLeftSquareIcon:Ea,ArrowLeftToLine:Q1,ArrowLeftToLineIcon:Q1,ArrowRight:io,ArrowRightCircle:vn,ArrowRightCircleIcon:vn,ArrowRightFromLine:ed,ArrowRightFromLineIcon:ed,ArrowRightIcon:io,ArrowRightLeft:td,ArrowRightLeftIcon:td,ArrowRightSquare:Fa,ArrowRightSquareIcon:Fa,ArrowRightToLine:ad,ArrowRightToLineIcon:ad,ArrowUp:ud,ArrowUp01:rd,ArrowUp01Icon:rd,ArrowUp10:nd,ArrowUp10Icon:nd,ArrowUpAZ:Ur,ArrowUpAZIcon:Ur,ArrowUpAz:Ur,ArrowUpAzIcon:Ur,ArrowUpCircle:wn,ArrowUpCircleIcon:wn,ArrowUpDown:sd,ArrowUpDownIcon:sd,ArrowUpFromDot:id,ArrowUpFromDotIcon:id,ArrowUpFromLine:od,ArrowUpFromLineIcon:od,ArrowUpIcon:ud,ArrowUpLeft:cd,ArrowUpLeftFromCircle:gn,ArrowUpLeftFromCircleIcon:gn,ArrowUpLeftFromSquare:Js,ArrowUpLeftFromSquareIcon:Js,ArrowUpLeftIcon:cd,ArrowUpLeftSquare:Ys,ArrowUpLeftSquareIcon:Ys,ArrowUpNarrowWide:Gr,ArrowUpNarrowWideIcon:Gr,ArrowUpRight:ld,ArrowUpRightFromCircle:kn,ArrowUpRightFromCircleIcon:kn,ArrowUpRightFromSquare:Xs,ArrowUpRightFromSquareIcon:Xs,ArrowUpRightIcon:ld,ArrowUpRightSquare:Ks,ArrowUpRightSquareIcon:Ks,ArrowUpSquare:Qs,ArrowUpSquareIcon:Qs,ArrowUpToLine:dd,ArrowUpToLineIcon:dd,ArrowUpWideNarrow:hd,ArrowUpWideNarrowIcon:hd,ArrowUpZA:Wr,ArrowUpZAIcon:Wr,ArrowUpZa:Wr,ArrowUpZaIcon:Wr,ArrowsUpFromLine:pd,ArrowsUpFromLineIcon:pd,Asterisk:yd,AsteriskIcon:yd,AsteriskSquare:ei,AsteriskSquareIcon:ei,AtSign:md,AtSignIcon:md,Atom:fd,AtomIcon:fd,AudioLines:xd,AudioLinesIcon:xd,AudioWaveform:gd,AudioWaveformIcon:gd,Award:Jt,AwardIcon:Jt,Axe:kd,AxeIcon:kd,Axis3D:Zr,Axis3DIcon:Zr,Axis3d:Zr,Axis3dIcon:Zr,Baby:vd,BabyIcon:vd,Backpack:wd,BackpackIcon:wd,Badge:Mc,BadgeAlert:bd,BadgeAlertIcon:bd,BadgeCent:Md,BadgeCentIcon:Md,BadgeCheck:Jr,BadgeCheckIcon:Jr,BadgeDollarSign:jd,BadgeDollarSignIcon:jd,BadgeEuro:Cd,BadgeEuroIcon:Cd,BadgeHelp:Sd,BadgeHelpIcon:Sd,BadgeIcon:Mc,BadgeIndianRupee:Ld,BadgeIndianRupeeIcon:Ld,BadgeInfo:Nd,BadgeInfoIcon:Nd,BadgeJapaneseYen:Id,BadgeJapaneseYenIcon:Id,BadgeMinus:Ad,BadgeMinusIcon:Ad,BadgePercent:Pd,BadgePercentIcon:Pd,BadgePlus:_d,BadgePlusIcon:_d,BadgePoundSterling:Rd,BadgePoundSterlingIcon:Rd,BadgeRussianRuble:Td,BadgeRussianRubleIcon:Td,BadgeSwissFranc:qd,BadgeSwissFrancIcon:qd,BadgeX:Dd,BadgeXIcon:Dd,BaggageClaim:zd,BaggageClaimIcon:zd,Ban:Ed,BanIcon:Ed,Banana:Fd,BananaIcon:Fd,Bandage:Od,BandageIcon:Od,Banknote:Hd,BanknoteIcon:Hd,BarChart:sr,BarChart2:dn,BarChart2Icon:dn,BarChart3:cn,BarChart3Icon:cn,BarChart4:on,BarChart4Icon:on,BarChartBig:sn,BarChartBigIcon:sn,BarChartHorizontal:rn,BarChartHorizontalBig:an,BarChartHorizontalBigIcon:an,BarChartHorizontalIcon:rn,BarChartIcon:sr,Barcode:Vd,BarcodeIcon:Vd,Baseline:Bd,BaselineIcon:Bd,Bath:$d,BathIcon:$d,Battery:Xd,BatteryCharging:Ud,BatteryChargingIcon:Ud,BatteryFull:Gd,BatteryFullIcon:Gd,BatteryIcon:Xd,BatteryLow:Wd,BatteryLowIcon:Wd,BatteryMedium:Zd,BatteryMediumIcon:Zd,BatteryWarning:Jd,BatteryWarningIcon:Jd,Beaker:Yd,BeakerIcon:Yd,Bean:Qd,BeanIcon:Qd,BeanOff:Kd,BeanOffIcon:Kd,Bed:a2,BedDouble:e2,BedDoubleIcon:e2,BedIcon:a2,BedSingle:t2,BedSingleIcon:t2,Beef:r2,BeefIcon:r2,Beer:s2,BeerIcon:s2,BeerOff:n2,BeerOffIcon:n2,Bell:qo,BellDot:i2,BellDotIcon:i2,BellElectric:o2,BellElectricIcon:o2,BellIcon:qo,BellMinus:c2,BellMinusIcon:c2,BellOff:l2,BellOffIcon:l2,BellPlus:d2,BellPlusIcon:d2,BellRing:h2,BellRingIcon:h2,BetweenHorizonalEnd:Xr,BetweenHorizonalEndIcon:Xr,BetweenHorizonalStart:Yr,BetweenHorizonalStartIcon:Yr,BetweenHorizontalEnd:Xr,BetweenHorizontalEndIcon:Xr,BetweenHorizontalStart:Yr,BetweenHorizontalStartIcon:Yr,BetweenVerticalEnd:u2,BetweenVerticalEndIcon:u2,BetweenVerticalStart:p2,BetweenVerticalStartIcon:p2,BicepsFlexed:y2,BicepsFlexedIcon:y2,Bike:m2,BikeIcon:m2,Binary:f2,BinaryIcon:f2,Binoculars:x2,BinocularsIcon:x2,Biohazard:g2,BiohazardIcon:g2,Bird:k2,BirdIcon:k2,Bitcoin:v2,BitcoinIcon:v2,Blend:w2,BlendIcon:w2,Blinds:b2,BlindsIcon:b2,Blocks:M2,BlocksIcon:M2,Bluetooth:L2,BluetoothConnected:j2,BluetoothConnectedIcon:j2,BluetoothIcon:L2,BluetoothOff:C2,BluetoothOffIcon:C2,BluetoothSearching:S2,BluetoothSearchingIcon:S2,Bold:N2,BoldIcon:N2,Bolt:I2,BoltIcon:I2,Bomb:A2,BombIcon:A2,Bone:P2,BoneIcon:P2,Book:Q2,BookA:_2,BookAIcon:_2,BookAudio:R2,BookAudioIcon:R2,BookCheck:T2,BookCheckIcon:T2,BookCopy:q2,BookCopyIcon:q2,BookDashed:Kr,BookDashedIcon:Kr,BookDown:D2,BookDownIcon:D2,BookHeadphones:z2,BookHeadphonesIcon:z2,BookHeart:E2,BookHeartIcon:E2,BookIcon:Q2,BookImage:F2,BookImageIcon:F2,BookKey:O2,BookKeyIcon:O2,BookLock:H2,BookLockIcon:H2,BookMarked:V2,BookMarkedIcon:V2,BookMinus:B2,BookMinusIcon:B2,BookOpen:Kt,BookOpenCheck:$2,BookOpenCheckIcon:$2,BookOpenIcon:Kt,BookOpenText:U2,BookOpenTextIcon:U2,BookPlus:G2,BookPlusIcon:G2,BookTemplate:Kr,BookTemplateIcon:Kr,BookText:W2,BookTextIcon:W2,BookType:Z2,BookTypeIcon:Z2,BookUp:X2,BookUp2:J2,BookUp2Icon:J2,BookUpIcon:X2,BookUser:Y2,BookUserIcon:Y2,BookX:K2,BookXIcon:K2,Bookmark:Va,BookmarkCheck:la,BookmarkCheckIcon:la,BookmarkIcon:Va,BookmarkMinus:eh,BookmarkMinusIcon:eh,BookmarkPlus:Do,BookmarkPlusIcon:Do,BookmarkX:th,BookmarkXIcon:th,BoomBox:ah,BoomBoxIcon:ah,Bot:jc,BotIcon:jc,BotMessageSquare:rh,BotMessageSquareIcon:rh,BotOff:nh,BotOffIcon:nh,Box:sh,BoxIcon:sh,BoxSelect:hi,BoxSelectIcon:hi,Boxes:ih,BoxesIcon:ih,Braces:Qr,BracesIcon:Qr,Brackets:oh,BracketsIcon:oh,Brain:dh,BrainCircuit:ch,BrainCircuitIcon:ch,BrainCog:lh,BrainCogIcon:lh,BrainIcon:dh,BrickWall:hh,BrickWallIcon:hh,Briefcase:at,BriefcaseBusiness:uh,BriefcaseBusinessIcon:uh,BriefcaseConveyorBelt:ph,BriefcaseConveyorBeltIcon:ph,BriefcaseIcon:at,BriefcaseMedical:yh,BriefcaseMedicalIcon:yh,BringToFront:mh,BringToFrontIcon:mh,Brush:fh,BrushIcon:fh,Bug:kh,BugIcon:kh,BugOff:xh,BugOffIcon:xh,BugPlay:gh,BugPlayIcon:gh,Building:zo,Building2:pt,Building2Icon:pt,BuildingIcon:zo,Bus:wh,BusFront:vh,BusFrontIcon:vh,BusIcon:wh,Cable:Mh,CableCar:bh,CableCarIcon:bh,CableIcon:Mh,Cake:Ch,CakeIcon:Ch,CakeSlice:jh,CakeSliceIcon:jh,Calculator:Sh,CalculatorIcon:Sh,Calendar:oo,CalendarArrowDown:Lh,CalendarArrowDownIcon:Lh,CalendarArrowUp:Nh,CalendarArrowUpIcon:Nh,CalendarCheck:Ah,CalendarCheck2:Ih,CalendarCheck2Icon:Ih,CalendarCheckIcon:Ah,CalendarClock:Ph,CalendarClockIcon:Ph,CalendarCog:_h,CalendarCogIcon:_h,CalendarDays:Cc,CalendarDaysIcon:Cc,CalendarFold:Rh,CalendarFoldIcon:Rh,CalendarHeart:Th,CalendarHeartIcon:Th,CalendarIcon:oo,CalendarMinus:Dh,CalendarMinus2:qh,CalendarMinus2Icon:qh,CalendarMinusIcon:Dh,CalendarOff:zh,CalendarOffIcon:zh,CalendarPlus:Fh,CalendarPlus2:Eh,CalendarPlus2Icon:Eh,CalendarPlusIcon:Fh,CalendarRange:Oh,CalendarRangeIcon:Oh,CalendarSearch:Hh,CalendarSearchIcon:Hh,CalendarX:Bh,CalendarX2:Vh,CalendarX2Icon:Vh,CalendarXIcon:Bh,Camera:Uh,CameraIcon:Uh,CameraOff:$h,CameraOffIcon:$h,CandlestickChart:nn,CandlestickChartIcon:nn,Candy:Zh,CandyCane:Gh,CandyCaneIcon:Gh,CandyIcon:Zh,CandyOff:Wh,CandyOffIcon:Wh,Cannabis:Jh,CannabisIcon:Jh,Captions:en,CaptionsIcon:en,CaptionsOff:Xh,CaptionsOffIcon:Xh,Car:Qh,CarFront:Yh,CarFrontIcon:Yh,CarIcon:Qh,CarTaxiFront:Kh,CarTaxiFrontIcon:Kh,Caravan:e0,CaravanIcon:e0,Carrot:t0,CarrotIcon:t0,CaseLower:a0,CaseLowerIcon:a0,CaseSensitive:r0,CaseSensitiveIcon:r0,CaseUpper:n0,CaseUpperIcon:n0,CassetteTape:s0,CassetteTapeIcon:s0,Cast:i0,CastIcon:i0,Castle:o0,CastleIcon:o0,Cat:c0,CatIcon:c0,Cctv:l0,CctvIcon:l0,ChartArea:tn,ChartAreaIcon:tn,ChartBar:rn,ChartBarBig:an,ChartBarBigIcon:an,ChartBarDecreasing:d0,ChartBarDecreasingIcon:d0,ChartBarIcon:rn,ChartBarIncreasing:h0,ChartBarIncreasingIcon:h0,ChartBarStacked:u0,ChartBarStackedIcon:u0,ChartCandlestick:nn,ChartCandlestickIcon:nn,ChartColumn:cn,ChartColumnBig:sn,ChartColumnBigIcon:sn,ChartColumnDecreasing:p0,ChartColumnDecreasingIcon:p0,ChartColumnIcon:cn,ChartColumnIncreasing:on,ChartColumnIncreasingIcon:on,ChartColumnStacked:y0,ChartColumnStackedIcon:y0,ChartGantt:m0,ChartGanttIcon:m0,ChartLine:ln,ChartLineIcon:ln,ChartNetwork:f0,ChartNetworkIcon:f0,ChartNoAxesColumn:dn,ChartNoAxesColumnDecreasing:x0,ChartNoAxesColumnDecreasingIcon:x0,ChartNoAxesColumnIcon:dn,ChartNoAxesColumnIncreasing:sr,ChartNoAxesColumnIncreasingIcon:sr,ChartNoAxesCombined:g0,ChartNoAxesCombinedIcon:g0,ChartNoAxesGantt:hn,ChartNoAxesGanttIcon:hn,ChartPie:un,ChartPieIcon:un,ChartScatter:pn,ChartScatterIcon:pn,ChartSpline:k0,ChartSplineIcon:k0,Check:Eo,CheckCheck:v0,CheckCheckIcon:v0,CheckCircle:qt,CheckCircle2:ht,CheckCircle2Icon:ht,CheckCircleIcon:qt,CheckIcon:Eo,CheckSquare:ai,CheckSquare2:ri,CheckSquare2Icon:ri,CheckSquareIcon:ai,ChefHat:w0,ChefHatIcon:w0,Cherry:b0,CherryIcon:b0,ChevronDown:hr,ChevronDownCircle:bn,ChevronDownCircleIcon:bn,ChevronDownIcon:hr,ChevronDownSquare:ni,ChevronDownSquareIcon:ni,ChevronFirst:M0,ChevronFirstIcon:M0,ChevronLast:j0,ChevronLastIcon:j0,ChevronLeft:ur,ChevronLeftCircle:Mn,ChevronLeftCircleIcon:Mn,ChevronLeftIcon:ur,ChevronLeftSquare:si,ChevronLeftSquareIcon:si,ChevronRight:pr,ChevronRightCircle:jn,ChevronRightCircleIcon:jn,ChevronRightIcon:pr,ChevronRightSquare:ii,ChevronRightSquareIcon:ii,ChevronUp:Fo,ChevronUpCircle:Cn,ChevronUpCircleIcon:Cn,ChevronUpIcon:Fo,ChevronUpSquare:oi,ChevronUpSquareIcon:oi,ChevronsDown:S0,ChevronsDownIcon:S0,ChevronsDownUp:C0,ChevronsDownUpIcon:C0,ChevronsLeft:I0,ChevronsLeftIcon:I0,ChevronsLeftRight:N0,ChevronsLeftRightEllipsis:L0,ChevronsLeftRightEllipsisIcon:L0,ChevronsLeftRightIcon:N0,ChevronsRight:P0,ChevronsRightIcon:P0,ChevronsRightLeft:A0,ChevronsRightLeftIcon:A0,ChevronsUp:R0,ChevronsUpDown:_0,ChevronsUpDownIcon:_0,ChevronsUpIcon:R0,Chrome:T0,ChromeIcon:T0,Church:q0,ChurchIcon:q0,Cigarette:z0,CigaretteIcon:z0,CigaretteOff:D0,CigaretteOffIcon:D0,Circle:Z0,CircleAlert:Tt,CircleAlertIcon:Tt,CircleArrowDown:yn,CircleArrowDownIcon:yn,CircleArrowLeft:mn,CircleArrowLeftIcon:mn,CircleArrowOutDownLeft:fn,CircleArrowOutDownLeftIcon:fn,CircleArrowOutDownRight:xn,CircleArrowOutDownRightIcon:xn,CircleArrowOutUpLeft:gn,CircleArrowOutUpLeftIcon:gn,CircleArrowOutUpRight:kn,CircleArrowOutUpRightIcon:kn,CircleArrowRight:vn,CircleArrowRightIcon:vn,CircleArrowUp:wn,CircleArrowUpIcon:wn,CircleCheck:ht,CircleCheckBig:qt,CircleCheckBigIcon:qt,CircleCheckIcon:ht,CircleChevronDown:bn,CircleChevronDownIcon:bn,CircleChevronLeft:Mn,CircleChevronLeftIcon:Mn,CircleChevronRight:jn,CircleChevronRightIcon:jn,CircleChevronUp:Cn,CircleChevronUpIcon:Cn,CircleDashed:E0,CircleDashedIcon:E0,CircleDivide:Sn,CircleDivideIcon:Sn,CircleDollarSign:F0,CircleDollarSignIcon:F0,CircleDot:H0,CircleDotDashed:O0,CircleDotDashedIcon:O0,CircleDotIcon:H0,CircleEllipsis:V0,CircleEllipsisIcon:V0,CircleEqual:B0,CircleEqualIcon:B0,CircleFadingArrowUp:$0,CircleFadingArrowUpIcon:$0,CircleFadingPlus:U0,CircleFadingPlusIcon:U0,CircleGauge:Ln,CircleGaugeIcon:Ln,CircleHelp:ir,CircleHelpIcon:ir,CircleIcon:Z0,CircleMinus:Nn,CircleMinusIcon:Nn,CircleOff:G0,CircleOffIcon:G0,CircleParking:An,CircleParkingIcon:An,CircleParkingOff:In,CircleParkingOffIcon:In,CirclePause:Pn,CirclePauseIcon:Pn,CirclePercent:_n,CirclePercentIcon:_n,CirclePlay:Rn,CirclePlayIcon:Rn,CirclePlus:Tn,CirclePlusIcon:Tn,CirclePower:qn,CirclePowerIcon:qn,CircleSlash:W0,CircleSlash2:Dn,CircleSlash2Icon:Dn,CircleSlashIcon:W0,CircleSlashed:Dn,CircleSlashedIcon:Dn,CircleStop:zn,CircleStopIcon:zn,CircleUser:Fn,CircleUserIcon:Fn,CircleUserRound:En,CircleUserRoundIcon:En,CircleX:xa,CircleXIcon:xa,CircuitBoard:J0,CircuitBoardIcon:J0,Citrus:X0,CitrusIcon:X0,Clapperboard:Y0,ClapperboardIcon:Y0,Clipboard:iu,ClipboardCheck:K0,ClipboardCheckIcon:K0,ClipboardCopy:Q0,ClipboardCopyIcon:Q0,ClipboardEdit:Hn,ClipboardEditIcon:Hn,ClipboardIcon:iu,ClipboardList:eu,ClipboardListIcon:eu,ClipboardMinus:tu,ClipboardMinusIcon:tu,ClipboardPaste:au,ClipboardPasteIcon:au,ClipboardPen:Hn,ClipboardPenIcon:Hn,ClipboardPenLine:On,ClipboardPenLineIcon:On,ClipboardPlus:ru,ClipboardPlusIcon:ru,ClipboardSignature:On,ClipboardSignatureIcon:On,ClipboardType:nu,ClipboardTypeIcon:nu,ClipboardX:su,ClipboardXIcon:su,Clock:da,Clock1:ou,Clock10:cu,Clock10Icon:cu,Clock11:lu,Clock11Icon:lu,Clock12:du,Clock12Icon:du,Clock1Icon:ou,Clock2:hu,Clock2Icon:hu,Clock3:uu,Clock3Icon:uu,Clock4:pu,Clock4Icon:pu,Clock5:yu,Clock5Icon:yu,Clock6:mu,Clock6Icon:mu,Clock7:fu,Clock7Icon:fu,Clock8:xu,Clock8Icon:xu,Clock9:gu,Clock9Icon:gu,ClockAlert:ku,ClockAlertIcon:ku,ClockArrowDown:vu,ClockArrowDownIcon:vu,ClockArrowUp:wu,ClockArrowUpIcon:wu,ClockIcon:da,Cloud:qu,CloudCog:bu,CloudCogIcon:bu,CloudDownload:Vn,CloudDownloadIcon:Vn,CloudDrizzle:Mu,CloudDrizzleIcon:Mu,CloudFog:ju,CloudFogIcon:ju,CloudHail:Cu,CloudHailIcon:Cu,CloudIcon:qu,CloudLightning:Su,CloudLightningIcon:Su,CloudMoon:Nu,CloudMoonIcon:Nu,CloudMoonRain:Lu,CloudMoonRainIcon:Lu,CloudOff:Iu,CloudOffIcon:Iu,CloudRain:Pu,CloudRainIcon:Pu,CloudRainWind:Au,CloudRainWindIcon:Au,CloudSnow:_u,CloudSnowIcon:_u,CloudSun:Tu,CloudSunIcon:Tu,CloudSunRain:Ru,CloudSunRainIcon:Ru,CloudUpload:or,CloudUploadIcon:or,Cloudy:Du,CloudyIcon:Du,Clover:zu,CloverIcon:zu,Club:Eu,ClubIcon:Eu,Code:Fu,Code2:Bn,Code2Icon:Bn,CodeIcon:Fu,CodeSquare:ci,CodeSquareIcon:ci,CodeXml:Bn,CodeXmlIcon:Bn,Codepen:Ou,CodepenIcon:Ou,Codesandbox:Hu,CodesandboxIcon:Hu,Coffee:Vu,CoffeeIcon:Vu,Cog:Bu,CogIcon:Bu,Coins:$u,CoinsIcon:$u,Columns:$n,Columns2:$n,Columns2Icon:$n,Columns3:Un,Columns3Icon:Un,Columns4:Uu,Columns4Icon:Uu,ColumnsIcon:$n,Combine:Gu,CombineIcon:Gu,Command:Wu,CommandIcon:Wu,Compass:Zu,CompassIcon:Zu,Component:Ju,ComponentIcon:Ju,Computer:Xu,ComputerIcon:Xu,ConciergeBell:Yu,ConciergeBellIcon:Yu,Cone:Ku,ConeIcon:Ku,Construction:Qu,ConstructionIcon:Qu,Contact:ep,Contact2:Gn,Contact2Icon:Gn,ContactIcon:ep,ContactRound:Gn,ContactRoundIcon:Gn,Container:tp,ContainerIcon:tp,Contrast:ap,ContrastIcon:ap,Cookie:rp,CookieIcon:rp,CookingPot:np,CookingPotIcon:np,Copy:dp,CopyCheck:sp,CopyCheckIcon:sp,CopyIcon:dp,CopyMinus:ip,CopyMinusIcon:ip,CopyPlus:op,CopyPlusIcon:op,CopySlash:cp,CopySlashIcon:cp,CopyX:lp,CopyXIcon:lp,Copyleft:hp,CopyleftIcon:hp,Copyright:up,CopyrightIcon:up,CornerDownLeft:pp,CornerDownLeftIcon:pp,CornerDownRight:yp,CornerDownRightIcon:yp,CornerLeftDown:mp,CornerLeftDownIcon:mp,CornerLeftUp:fp,CornerLeftUpIcon:fp,CornerRightDown:xp,CornerRightDownIcon:xp,CornerRightUp:gp,CornerRightUpIcon:gp,CornerUpLeft:kp,CornerUpLeftIcon:kp,CornerUpRight:vp,CornerUpRightIcon:vp,Cpu:wp,CpuIcon:wp,CreativeCommons:bp,CreativeCommonsIcon:bp,CreditCard:Sc,CreditCardIcon:Sc,Croissant:Mp,CroissantIcon:Mp,Crop:jp,CropIcon:jp,Cross:Cp,CrossIcon:Cp,Crosshair:Sp,CrosshairIcon:Sp,Crown:Lp,CrownIcon:Lp,Cuboid:Np,CuboidIcon:Np,CupSoda:Ip,CupSodaIcon:Ip,CurlyBraces:Qr,CurlyBracesIcon:Qr,Currency:Ap,CurrencyIcon:Ap,Cylinder:Pp,CylinderIcon:Pp,Dam:_p,DamIcon:_p,Database:qp,DatabaseBackup:Rp,DatabaseBackupIcon:Rp,DatabaseIcon:qp,DatabaseZap:Tp,DatabaseZapIcon:Tp,Delete:Dp,DeleteIcon:Dp,Dessert:zp,DessertIcon:zp,Diameter:Ep,DiameterIcon:Ep,Diamond:Hp,DiamondIcon:Hp,DiamondMinus:Fp,DiamondMinusIcon:Fp,DiamondPercent:Wn,DiamondPercentIcon:Wn,DiamondPlus:Op,DiamondPlusIcon:Op,Dice1:Vp,Dice1Icon:Vp,Dice2:Bp,Dice2Icon:Bp,Dice3:$p,Dice3Icon:$p,Dice4:Up,Dice4Icon:Up,Dice5:Gp,Dice5Icon:Gp,Dice6:Wp,Dice6Icon:Wp,Dices:Zp,DicesIcon:Zp,Diff:Jp,DiffIcon:Jp,Disc:Qp,Disc2:Xp,Disc2Icon:Xp,Disc3:Yp,Disc3Icon:Yp,DiscAlbum:Kp,DiscAlbumIcon:Kp,DiscIcon:Qp,Divide:ey,DivideCircle:Sn,DivideCircleIcon:Sn,DivideIcon:ey,DivideSquare:ui,DivideSquareIcon:ui,Dna:ay,DnaIcon:ay,DnaOff:ty,DnaOffIcon:ty,Dock:ry,DockIcon:ry,Dog:ny,DogIcon:ny,DollarSign:Lc,DollarSignIcon:Lc,Donut:sy,DonutIcon:sy,DoorClosed:iy,DoorClosedIcon:iy,DoorOpen:oy,DoorOpenIcon:oy,Dot:cy,DotIcon:cy,DotSquare:pi,DotSquareIcon:pi,Download:Nc,DownloadCloud:Vn,DownloadCloudIcon:Vn,DownloadIcon:Nc,DraftingCompass:ly,DraftingCompassIcon:ly,Drama:dy,DramaIcon:dy,Dribbble:hy,DribbbleIcon:hy,Drill:uy,DrillIcon:uy,Droplet:py,DropletIcon:py,Droplets:yy,DropletsIcon:yy,Drum:my,DrumIcon:my,Drumstick:fy,DrumstickIcon:fy,Dumbbell:xy,DumbbellIcon:xy,Ear:ky,EarIcon:ky,EarOff:gy,EarOffIcon:gy,Earth:Zn,EarthIcon:Zn,EarthLock:vy,EarthLockIcon:vy,Eclipse:wy,EclipseIcon:wy,Edit:Pt,Edit2:Rs,Edit2Icon:Rs,Edit3:_s,Edit3Icon:_s,EditIcon:Pt,Egg:jy,EggFried:by,EggFriedIcon:by,EggIcon:jy,EggOff:My,EggOffIcon:My,Ellipsis:Xn,EllipsisIcon:Xn,EllipsisVertical:Jn,EllipsisVerticalIcon:Jn,Equal:Sy,EqualIcon:Sy,EqualNot:Cy,EqualNotIcon:Cy,EqualSquare:yi,EqualSquareIcon:yi,Eraser:Ly,EraserIcon:Ly,EthernetPort:Ny,EthernetPortIcon:Ny,Euro:Iy,EuroIcon:Iy,Expand:Ay,ExpandIcon:Ay,ExternalLink:co,ExternalLinkIcon:co,Eye:Oo,EyeClosed:Py,EyeClosedIcon:Py,EyeIcon:Oo,EyeOff:Ic,EyeOffIcon:Ic,Facebook:_y,FacebookIcon:_y,Factory:Ry,FactoryIcon:Ry,Fan:Ty,FanIcon:Ty,FastForward:qy,FastForwardIcon:qy,Feather:Dy,FeatherIcon:Dy,Fence:zy,FenceIcon:zy,FerrisWheel:Ey,FerrisWheelIcon:Ey,Figma:Fy,FigmaIcon:Fy,File:qm,FileArchive:Oy,FileArchiveIcon:Oy,FileAudio:Vy,FileAudio2:Hy,FileAudio2Icon:Hy,FileAudioIcon:Vy,FileAxis3D:Yn,FileAxis3DIcon:Yn,FileAxis3d:Yn,FileAxis3dIcon:Yn,FileBadge:$y,FileBadge2:By,FileBadge2Icon:By,FileBadgeIcon:$y,FileBarChart:Kn,FileBarChart2:Qn,FileBarChart2Icon:Qn,FileBarChartIcon:Kn,FileBox:Uy,FileBoxIcon:Uy,FileChartColumn:Qn,FileChartColumnIcon:Qn,FileChartColumnIncreasing:Kn,FileChartColumnIncreasingIcon:Kn,FileChartLine:es,FileChartLineIcon:es,FileChartPie:ts,FileChartPieIcon:ts,FileCheck:Wy,FileCheck2:Gy,FileCheck2Icon:Gy,FileCheckIcon:Wy,FileClock:Zy,FileClockIcon:Zy,FileCode:Xy,FileCode2:Jy,FileCode2Icon:Jy,FileCodeIcon:Xy,FileCog:as,FileCog2:as,FileCog2Icon:as,FileCogIcon:as,FileDiff:Yy,FileDiffIcon:Yy,FileDigit:Ky,FileDigitIcon:Ky,FileDown:Qy,FileDownIcon:Qy,FileEdit:ns,FileEditIcon:ns,FileHeart:em,FileHeartIcon:em,FileIcon:qm,FileImage:tm,FileImageIcon:tm,FileInput:am,FileInputIcon:am,FileJson:nm,FileJson2:rm,FileJson2Icon:rm,FileJsonIcon:nm,FileKey:im,FileKey2:sm,FileKey2Icon:sm,FileKeyIcon:im,FileLineChart:es,FileLineChartIcon:es,FileLock:cm,FileLock2:om,FileLock2Icon:om,FileLockIcon:cm,FileMinus:dm,FileMinus2:lm,FileMinus2Icon:lm,FileMinusIcon:dm,FileMusic:hm,FileMusicIcon:hm,FileOutput:um,FileOutputIcon:um,FilePen:ns,FilePenIcon:ns,FilePenLine:rs,FilePenLineIcon:rs,FilePieChart:ts,FilePieChartIcon:ts,FilePlus:ym,FilePlus2:pm,FilePlus2Icon:pm,FilePlusIcon:ym,FileQuestion:mm,FileQuestionIcon:mm,FileScan:fm,FileScanIcon:fm,FileSearch:gm,FileSearch2:xm,FileSearch2Icon:xm,FileSearchIcon:gm,FileSignature:rs,FileSignatureIcon:rs,FileSliders:km,FileSlidersIcon:km,FileSpreadsheet:vm,FileSpreadsheetIcon:vm,FileStack:wm,FileStackIcon:wm,FileSymlink:bm,FileSymlinkIcon:bm,FileTerminal:Mm,FileTerminalIcon:Mm,FileText:Ho,FileTextIcon:Ho,FileType:Cm,FileType2:jm,FileType2Icon:jm,FileTypeIcon:Cm,FileUp:Sm,FileUpIcon:Sm,FileUser:Lm,FileUserIcon:Lm,FileVideo:Im,FileVideo2:Nm,FileVideo2Icon:Nm,FileVideoIcon:Im,FileVolume:Pm,FileVolume2:Am,FileVolume2Icon:Am,FileVolumeIcon:Pm,FileWarning:_m,FileWarningIcon:_m,FileX:Tm,FileX2:Rm,FileX2Icon:Rm,FileXIcon:Tm,Files:Dm,FilesIcon:Dm,Film:zm,FilmIcon:zm,Filter:yr,FilterIcon:yr,FilterX:Em,FilterXIcon:Em,Fingerprint:Fm,FingerprintIcon:Fm,FireExtinguisher:Om,FireExtinguisherIcon:Om,Fish:Bm,FishIcon:Bm,FishOff:Hm,FishOffIcon:Hm,FishSymbol:Vm,FishSymbolIcon:Vm,Flag:Ac,FlagIcon:Ac,FlagOff:$m,FlagOffIcon:$m,FlagTriangleLeft:Um,FlagTriangleLeftIcon:Um,FlagTriangleRight:Gm,FlagTriangleRightIcon:Gm,Flame:Zm,FlameIcon:Zm,FlameKindling:Wm,FlameKindlingIcon:Wm,Flashlight:Xm,FlashlightIcon:Xm,FlashlightOff:Jm,FlashlightOffIcon:Jm,FlaskConical:Km,FlaskConicalIcon:Km,FlaskConicalOff:Ym,FlaskConicalOffIcon:Ym,FlaskRound:Qm,FlaskRoundIcon:Qm,FlipHorizontal:tf,FlipHorizontal2:ef,FlipHorizontal2Icon:ef,FlipHorizontalIcon:tf,FlipVertical:rf,FlipVertical2:af,FlipVertical2Icon:af,FlipVerticalIcon:rf,Flower:sf,Flower2:nf,Flower2Icon:nf,FlowerIcon:sf,Focus:of,FocusIcon:of,FoldHorizontal:cf,FoldHorizontalIcon:cf,FoldVertical:lf,FoldVerticalIcon:lf,Folder:zf,FolderArchive:df,FolderArchiveIcon:df,FolderCheck:hf,FolderCheckIcon:hf,FolderClock:uf,FolderClockIcon:uf,FolderClosed:pf,FolderClosedIcon:pf,FolderCode:yf,FolderCodeIcon:yf,FolderCog:ss,FolderCog2:ss,FolderCog2Icon:ss,FolderCogIcon:ss,FolderDot:mf,FolderDotIcon:mf,FolderDown:ff,FolderDownIcon:ff,FolderEdit:is,FolderEditIcon:is,FolderGit:gf,FolderGit2:xf,FolderGit2Icon:xf,FolderGitIcon:gf,FolderHeart:kf,FolderHeartIcon:kf,FolderIcon:zf,FolderInput:vf,FolderInputIcon:vf,FolderKanban:wf,FolderKanbanIcon:wf,FolderKey:bf,FolderKeyIcon:bf,FolderLock:Mf,FolderLockIcon:Mf,FolderMinus:jf,FolderMinusIcon:jf,FolderOpen:Sf,FolderOpenDot:Cf,FolderOpenDotIcon:Cf,FolderOpenIcon:Sf,FolderOutput:Lf,FolderOutputIcon:Lf,FolderPen:is,FolderPenIcon:is,FolderPlus:Nf,FolderPlusIcon:Nf,FolderRoot:If,FolderRootIcon:If,FolderSearch:Pf,FolderSearch2:Af,FolderSearch2Icon:Af,FolderSearchIcon:Pf,FolderSymlink:_f,FolderSymlinkIcon:_f,FolderSync:Rf,FolderSyncIcon:Rf,FolderTree:Tf,FolderTreeIcon:Tf,FolderUp:qf,FolderUpIcon:qf,FolderX:Df,FolderXIcon:Df,Folders:Ef,FoldersIcon:Ef,Footprints:Ff,FootprintsIcon:Ff,ForkKnife:eo,ForkKnifeCrossed:Qi,ForkKnifeCrossedIcon:Qi,ForkKnifeIcon:eo,Forklift:Of,ForkliftIcon:Of,FormInput:qs,FormInputIcon:qs,Forward:Hf,ForwardIcon:Hf,Frame:Vf,FrameIcon:Vf,Framer:Bf,FramerIcon:Bf,Frown:$f,FrownIcon:$f,Fuel:Uf,FuelIcon:Uf,Fullscreen:Gf,FullscreenIcon:Gf,FunctionSquare:mi,FunctionSquareIcon:mi,GalleryHorizontal:Zf,GalleryHorizontalEnd:Wf,GalleryHorizontalEndIcon:Wf,GalleryHorizontalIcon:Zf,GalleryThumbnails:Jf,GalleryThumbnailsIcon:Jf,GalleryVertical:Yf,GalleryVerticalEnd:Xf,GalleryVerticalEndIcon:Xf,GalleryVerticalIcon:Yf,Gamepad:Kf,Gamepad2:Pc,Gamepad2Icon:Pc,GamepadIcon:Kf,GanttChart:hn,GanttChartIcon:hn,GanttChartSquare:ma,GanttChartSquareIcon:ma,Gauge:Qf,GaugeCircle:Ln,GaugeCircleIcon:Ln,GaugeIcon:Qf,Gavel:ex,GavelIcon:ex,Gem:tx,GemIcon:tx,Ghost:ax,GhostIcon:ax,Gift:rx,GiftIcon:rx,GitBranch:sx,GitBranchIcon:sx,GitBranchPlus:nx,GitBranchPlusIcon:nx,GitCommit:os,GitCommitHorizontal:os,GitCommitHorizontalIcon:os,GitCommitIcon:os,GitCommitVertical:ix,GitCommitVerticalIcon:ix,GitCompare:cx,GitCompareArrows:ox,GitCompareArrowsIcon:ox,GitCompareIcon:cx,GitFork:lx,GitForkIcon:lx,GitGraph:dx,GitGraphIcon:dx,GitMerge:hx,GitMergeIcon:hx,GitPullRequest:xx,GitPullRequestArrow:ux,GitPullRequestArrowIcon:ux,GitPullRequestClosed:px,GitPullRequestClosedIcon:px,GitPullRequestCreate:mx,GitPullRequestCreateArrow:yx,GitPullRequestCreateArrowIcon:yx,GitPullRequestCreateIcon:mx,GitPullRequestDraft:fx,GitPullRequestDraftIcon:fx,GitPullRequestIcon:xx,Github:gx,GithubIcon:gx,Gitlab:kx,GitlabIcon:kx,GlassWater:vx,GlassWaterIcon:vx,Glasses:wx,GlassesIcon:wx,Globe:Qt,Globe2:Zn,Globe2Icon:Zn,GlobeIcon:Qt,GlobeLock:bx,GlobeLockIcon:bx,Goal:Mx,GoalIcon:Mx,Grab:jx,GrabIcon:jx,GraduationCap:mr,GraduationCapIcon:mr,Grape:Cx,GrapeIcon:Cx,Grid:ia,Grid2X2:cs,Grid2X2Icon:cs,Grid2x2:cs,Grid2x2Check:Sx,Grid2x2CheckIcon:Sx,Grid2x2Icon:cs,Grid2x2Plus:Lx,Grid2x2PlusIcon:Lx,Grid2x2X:Nx,Grid2x2XIcon:Nx,Grid3X3:ia,Grid3X3Icon:ia,Grid3x3:ia,Grid3x3Icon:ia,GridIcon:ia,Grip:Px,GripHorizontal:Ix,GripHorizontalIcon:Ix,GripIcon:Px,GripVertical:Ax,GripVerticalIcon:Ax,Group:_x,GroupIcon:_x,Guitar:Rx,GuitarIcon:Rx,Ham:Tx,HamIcon:Tx,Hammer:qx,HammerIcon:qx,Hand:Ox,HandCoins:Dx,HandCoinsIcon:Dx,HandHeart:zx,HandHeartIcon:zx,HandHelping:ls,HandHelpingIcon:ls,HandIcon:Ox,HandMetal:Ex,HandMetalIcon:Ex,HandPlatter:Fx,HandPlatterIcon:Fx,Handshake:Hx,HandshakeIcon:Hx,HardDrive:$x,HardDriveDownload:Vx,HardDriveDownloadIcon:Vx,HardDriveIcon:$x,HardDriveUpload:Bx,HardDriveUploadIcon:Bx,HardHat:Ux,HardHatIcon:Ux,Hash:Gx,HashIcon:Gx,Haze:Wx,HazeIcon:Wx,HdmiPort:Zx,HdmiPortIcon:Zx,Heading:tg,Heading1:Jx,Heading1Icon:Jx,Heading2:Xx,Heading2Icon:Xx,Heading3:Yx,Heading3Icon:Yx,Heading4:Kx,Heading4Icon:Kx,Heading5:Qx,Heading5Icon:Qx,Heading6:eg,Heading6Icon:eg,HeadingIcon:tg,HeadphoneOff:ag,HeadphoneOffIcon:ag,Headphones:rg,HeadphonesIcon:rg,Headset:ng,HeadsetIcon:ng,Heart:Vo,HeartCrack:sg,HeartCrackIcon:sg,HeartHandshake:ig,HeartHandshakeIcon:ig,HeartIcon:Vo,HeartOff:og,HeartOffIcon:og,HeartPulse:cg,HeartPulseIcon:cg,Heater:lg,HeaterIcon:lg,HelpCircle:ir,HelpCircleIcon:ir,HelpingHand:ls,HelpingHandIcon:ls,Hexagon:dg,HexagonIcon:dg,Highlighter:hg,HighlighterIcon:hg,History:ug,HistoryIcon:ug,Home:za,HomeIcon:za,Hop:yg,HopIcon:yg,HopOff:pg,HopOffIcon:pg,Hospital:mg,HospitalIcon:mg,Hotel:fg,HotelIcon:fg,Hourglass:xg,HourglassIcon:xg,House:za,HouseIcon:za,HousePlug:gg,HousePlugIcon:gg,HousePlus:kg,HousePlusIcon:kg,IceCream:hs,IceCream2:ds,IceCream2Icon:ds,IceCreamBowl:ds,IceCreamBowlIcon:ds,IceCreamCone:hs,IceCreamConeIcon:hs,IceCreamIcon:hs,Icon:TN,IdCard:vg,IdCardIcon:vg,Image:Lg,ImageDown:wg,ImageDownIcon:wg,ImageIcon:Lg,ImageMinus:bg,ImageMinusIcon:bg,ImageOff:Mg,ImageOffIcon:Mg,ImagePlay:jg,ImagePlayIcon:jg,ImagePlus:Cg,ImagePlusIcon:Cg,ImageUp:Sg,ImageUpIcon:Sg,Images:Ng,ImagesIcon:Ng,Import:Ig,ImportIcon:Ig,Inbox:Ag,InboxIcon:Ag,Indent:ps,IndentDecrease:us,IndentDecreaseIcon:us,IndentIcon:ps,IndentIncrease:ps,IndentIncreaseIcon:ps,IndianRupee:Pg,IndianRupeeIcon:Pg,Infinity:_g,InfinityIcon:_g,Info:Rg,InfoIcon:Rg,Inspect:wi,InspectIcon:wi,InspectionPanel:Tg,InspectionPanelIcon:Tg,Instagram:qg,InstagramIcon:qg,Italic:Dg,ItalicIcon:Dg,IterationCcw:zg,IterationCcwIcon:zg,IterationCw:Eg,IterationCwIcon:Eg,JapaneseYen:Fg,JapaneseYenIcon:Fg,Joystick:Og,JoystickIcon:Og,Kanban:Hg,KanbanIcon:Hg,KanbanSquare:fi,KanbanSquareDashed:li,KanbanSquareDashedIcon:li,KanbanSquareIcon:fi,Key:$g,KeyIcon:$g,KeyRound:Vg,KeyRoundIcon:Vg,KeySquare:Bg,KeySquareIcon:Bg,Keyboard:Wg,KeyboardIcon:Wg,KeyboardMusic:Ug,KeyboardMusicIcon:Ug,KeyboardOff:Gg,KeyboardOffIcon:Gg,Lamp:Qg,LampCeiling:Zg,LampCeilingIcon:Zg,LampDesk:Jg,LampDeskIcon:Jg,LampFloor:Xg,LampFloorIcon:Xg,LampIcon:Qg,LampWallDown:Yg,LampWallDownIcon:Yg,LampWallUp:Kg,LampWallUpIcon:Kg,LandPlot:e4,LandPlotIcon:e4,Landmark:t4,LandmarkIcon:t4,Languages:_c,LanguagesIcon:_c,Laptop:a4,Laptop2:ys,Laptop2Icon:ys,LaptopIcon:a4,LaptopMinimal:ys,LaptopMinimalIcon:ys,Lasso:n4,LassoIcon:n4,LassoSelect:r4,LassoSelectIcon:r4,Laugh:s4,LaughIcon:s4,Layers:c4,Layers2:i4,Layers2Icon:i4,Layers3:o4,Layers3Icon:o4,LayersIcon:c4,Layout:Ps,LayoutDashboard:Rc,LayoutDashboardIcon:Rc,LayoutGrid:l4,LayoutGridIcon:l4,LayoutIcon:Ps,LayoutList:d4,LayoutListIcon:d4,LayoutPanelLeft:h4,LayoutPanelLeftIcon:h4,LayoutPanelTop:u4,LayoutPanelTopIcon:u4,LayoutTemplate:p4,LayoutTemplateIcon:p4,Leaf:y4,LeafIcon:y4,LeafyGreen:m4,LeafyGreenIcon:m4,Lectern:f4,LecternIcon:f4,LetterText:x4,LetterTextIcon:x4,Library:k4,LibraryBig:g4,LibraryBigIcon:g4,LibraryIcon:k4,LibrarySquare:xi,LibrarySquareIcon:xi,LifeBuoy:v4,LifeBuoyIcon:v4,Ligature:w4,LigatureIcon:w4,Lightbulb:M4,LightbulbIcon:M4,LightbulbOff:b4,LightbulbOffIcon:b4,LineChart:ln,LineChartIcon:ln,Link:Tc,Link2:C4,Link2Icon:C4,Link2Off:j4,Link2OffIcon:j4,LinkIcon:Tc,Linkedin:qc,LinkedinIcon:qc,List:Dc,ListCheck:S4,ListCheckIcon:S4,ListChecks:L4,ListChecksIcon:L4,ListCollapse:N4,ListCollapseIcon:N4,ListEnd:I4,ListEndIcon:I4,ListFilter:A4,ListFilterIcon:A4,ListIcon:Dc,ListMinus:P4,ListMinusIcon:P4,ListMusic:_4,ListMusicIcon:_4,ListOrdered:R4,ListOrderedIcon:R4,ListPlus:T4,ListPlusIcon:T4,ListRestart:q4,ListRestartIcon:q4,ListStart:D4,ListStartIcon:D4,ListTodo:z4,ListTodoIcon:z4,ListTree:E4,ListTreeIcon:E4,ListVideo:F4,ListVideoIcon:F4,ListX:O4,ListXIcon:O4,Loader:V4,Loader2:ms,Loader2Icon:ms,LoaderCircle:ms,LoaderCircleIcon:ms,LoaderIcon:V4,LoaderPinwheel:H4,LoaderPinwheelIcon:H4,Locate:U4,LocateFixed:B4,LocateFixedIcon:B4,LocateIcon:U4,LocateOff:$4,LocateOffIcon:$4,Lock:lo,LockIcon:lo,LockKeyhole:G4,LockKeyholeIcon:G4,LockKeyholeOpen:fs,LockKeyholeOpenIcon:fs,LockOpen:xs,LockOpenIcon:xs,LogIn:W4,LogInIcon:W4,LogOut:zc,LogOutIcon:zc,Logs:Z4,LogsIcon:Z4,Lollipop:J4,LollipopIcon:J4,LucideAArrowDown:Rl,LucideAArrowUp:Tl,LucideALargeSmall:ql,LucideAccessibility:Dl,LucideActivity:zl,LucideActivitySquare:Bs,LucideAirVent:El,LucideAirplay:Fl,LucideAlarmCheck:Fr,LucideAlarmClock:Hl,LucideAlarmClockCheck:Fr,LucideAlarmClockMinus:Or,LucideAlarmClockOff:Ol,LucideAlarmClockPlus:Hr,LucideAlarmMinus:Or,LucideAlarmPlus:Hr,LucideAlarmSmoke:Vl,LucideAlbum:Bl,LucideAlertCircle:Tt,LucideAlertOctagon:vs,LucideAlertTriangle:Bi,LucideAlignCenter:Gl,LucideAlignCenterHorizontal:$l,LucideAlignCenterVertical:Ul,LucideAlignEndHorizontal:Wl,LucideAlignEndVertical:Zl,LucideAlignHorizontalDistributeCenter:Jl,LucideAlignHorizontalDistributeEnd:Xl,LucideAlignHorizontalDistributeStart:Yl,LucideAlignHorizontalJustifyCenter:Kl,LucideAlignHorizontalJustifyEnd:Ql,LucideAlignHorizontalJustifyStart:e1,LucideAlignHorizontalSpaceAround:t1,LucideAlignHorizontalSpaceBetween:a1,LucideAlignJustify:r1,LucideAlignLeft:n1,LucideAlignRight:s1,LucideAlignStartHorizontal:i1,LucideAlignStartVertical:o1,LucideAlignVerticalDistributeCenter:c1,LucideAlignVerticalDistributeEnd:l1,LucideAlignVerticalDistributeStart:d1,LucideAlignVerticalJustifyCenter:h1,LucideAlignVerticalJustifyEnd:u1,LucideAlignVerticalJustifyStart:p1,LucideAlignVerticalSpaceAround:y1,LucideAlignVerticalSpaceBetween:m1,LucideAmbulance:f1,LucideAmpersand:x1,LucideAmpersands:g1,LucideAmphora:k1,LucideAnchor:v1,LucideAngry:w1,LucideAnnoyed:b1,LucideAntenna:M1,LucideAnvil:j1,LucideAperture:C1,LucideAppWindow:L1,LucideAppWindowMac:S1,LucideApple:N1,LucideArchive:P1,LucideArchiveRestore:I1,LucideArchiveX:A1,LucideAreaChart:tn,LucideArmchair:_1,LucideArrowBigDown:T1,LucideArrowBigDownDash:R1,LucideArrowBigLeft:D1,LucideArrowBigLeftDash:q1,LucideArrowBigRight:E1,LucideArrowBigRightDash:z1,LucideArrowBigUp:O1,LucideArrowBigUpDash:F1,LucideArrowDown:X1,LucideArrowDown01:H1,LucideArrowDown10:V1,LucideArrowDownAZ:Vr,LucideArrowDownAz:Vr,LucideArrowDownCircle:yn,LucideArrowDownFromLine:B1,LucideArrowDownLeft:$1,LucideArrowDownLeftFromCircle:fn,LucideArrowDownLeftFromSquare:Ws,LucideArrowDownLeftSquare:$s,LucideArrowDownNarrowWide:U1,LucideArrowDownRight:G1,LucideArrowDownRightFromCircle:xn,LucideArrowDownRightFromSquare:Zs,LucideArrowDownRightSquare:Us,LucideArrowDownSquare:Gs,LucideArrowDownToDot:W1,LucideArrowDownToLine:Z1,LucideArrowDownUp:J1,LucideArrowDownWideNarrow:Br,LucideArrowDownZA:$r,LucideArrowDownZa:$r,LucideArrowLeft:Ha,LucideArrowLeftCircle:mn,LucideArrowLeftFromLine:Y1,LucideArrowLeftRight:K1,LucideArrowLeftSquare:Ea,LucideArrowLeftToLine:Q1,LucideArrowRight:io,LucideArrowRightCircle:vn,LucideArrowRightFromLine:ed,LucideArrowRightLeft:td,LucideArrowRightSquare:Fa,LucideArrowRightToLine:ad,LucideArrowUp:ud,LucideArrowUp01:rd,LucideArrowUp10:nd,LucideArrowUpAZ:Ur,LucideArrowUpAz:Ur,LucideArrowUpCircle:wn,LucideArrowUpDown:sd,LucideArrowUpFromDot:id,LucideArrowUpFromLine:od,LucideArrowUpLeft:cd,LucideArrowUpLeftFromCircle:gn,LucideArrowUpLeftFromSquare:Js,LucideArrowUpLeftSquare:Ys,LucideArrowUpNarrowWide:Gr,LucideArrowUpRight:ld,LucideArrowUpRightFromCircle:kn,LucideArrowUpRightFromSquare:Xs,LucideArrowUpRightSquare:Ks,LucideArrowUpSquare:Qs,LucideArrowUpToLine:dd,LucideArrowUpWideNarrow:hd,LucideArrowUpZA:Wr,LucideArrowUpZa:Wr,LucideArrowsUpFromLine:pd,LucideAsterisk:yd,LucideAsteriskSquare:ei,LucideAtSign:md,LucideAtom:fd,LucideAudioLines:xd,LucideAudioWaveform:gd,LucideAward:Jt,LucideAxe:kd,LucideAxis3D:Zr,LucideAxis3d:Zr,LucideBaby:vd,LucideBackpack:wd,LucideBadge:Mc,LucideBadgeAlert:bd,LucideBadgeCent:Md,LucideBadgeCheck:Jr,LucideBadgeDollarSign:jd,LucideBadgeEuro:Cd,LucideBadgeHelp:Sd,LucideBadgeIndianRupee:Ld,LucideBadgeInfo:Nd,LucideBadgeJapaneseYen:Id,LucideBadgeMinus:Ad,LucideBadgePercent:Pd,LucideBadgePlus:_d,LucideBadgePoundSterling:Rd,LucideBadgeRussianRuble:Td,LucideBadgeSwissFranc:qd,LucideBadgeX:Dd,LucideBaggageClaim:zd,LucideBan:Ed,LucideBanana:Fd,LucideBandage:Od,LucideBanknote:Hd,LucideBarChart:sr,LucideBarChart2:dn,LucideBarChart3:cn,LucideBarChart4:on,LucideBarChartBig:sn,LucideBarChartHorizontal:rn,LucideBarChartHorizontalBig:an,LucideBarcode:Vd,LucideBaseline:Bd,LucideBath:$d,LucideBattery:Xd,LucideBatteryCharging:Ud,LucideBatteryFull:Gd,LucideBatteryLow:Wd,LucideBatteryMedium:Zd,LucideBatteryWarning:Jd,LucideBeaker:Yd,LucideBean:Qd,LucideBeanOff:Kd,LucideBed:a2,LucideBedDouble:e2,LucideBedSingle:t2,LucideBeef:r2,LucideBeer:s2,LucideBeerOff:n2,LucideBell:qo,LucideBellDot:i2,LucideBellElectric:o2,LucideBellMinus:c2,LucideBellOff:l2,LucideBellPlus:d2,LucideBellRing:h2,LucideBetweenHorizonalEnd:Xr,LucideBetweenHorizonalStart:Yr,LucideBetweenHorizontalEnd:Xr,LucideBetweenHorizontalStart:Yr,LucideBetweenVerticalEnd:u2,LucideBetweenVerticalStart:p2,LucideBicepsFlexed:y2,LucideBike:m2,LucideBinary:f2,LucideBinoculars:x2,LucideBiohazard:g2,LucideBird:k2,LucideBitcoin:v2,LucideBlend:w2,LucideBlinds:b2,LucideBlocks:M2,LucideBluetooth:L2,LucideBluetoothConnected:j2,LucideBluetoothOff:C2,LucideBluetoothSearching:S2,LucideBold:N2,LucideBolt:I2,LucideBomb:A2,LucideBone:P2,LucideBook:Q2,LucideBookA:_2,LucideBookAudio:R2,LucideBookCheck:T2,LucideBookCopy:q2,LucideBookDashed:Kr,LucideBookDown:D2,LucideBookHeadphones:z2,LucideBookHeart:E2,LucideBookImage:F2,LucideBookKey:O2,LucideBookLock:H2,LucideBookMarked:V2,LucideBookMinus:B2,LucideBookOpen:Kt,LucideBookOpenCheck:$2,LucideBookOpenText:U2,LucideBookPlus:G2,LucideBookTemplate:Kr,LucideBookText:W2,LucideBookType:Z2,LucideBookUp:X2,LucideBookUp2:J2,LucideBookUser:Y2,LucideBookX:K2,LucideBookmark:Va,LucideBookmarkCheck:la,LucideBookmarkMinus:eh,LucideBookmarkPlus:Do,LucideBookmarkX:th,LucideBoomBox:ah,LucideBot:jc,LucideBotMessageSquare:rh,LucideBotOff:nh,LucideBox:sh,LucideBoxSelect:hi,LucideBoxes:ih,LucideBraces:Qr,LucideBrackets:oh,LucideBrain:dh,LucideBrainCircuit:ch,LucideBrainCog:lh,LucideBrickWall:hh,LucideBriefcase:at,LucideBriefcaseBusiness:uh,LucideBriefcaseConveyorBelt:ph,LucideBriefcaseMedical:yh,LucideBringToFront:mh,LucideBrush:fh,LucideBug:kh,LucideBugOff:xh,LucideBugPlay:gh,LucideBuilding:zo,LucideBuilding2:pt,LucideBus:wh,LucideBusFront:vh,LucideCable:Mh,LucideCableCar:bh,LucideCake:Ch,LucideCakeSlice:jh,LucideCalculator:Sh,LucideCalendar:oo,LucideCalendarArrowDown:Lh,LucideCalendarArrowUp:Nh,LucideCalendarCheck:Ah,LucideCalendarCheck2:Ih,LucideCalendarClock:Ph,LucideCalendarCog:_h,LucideCalendarDays:Cc,LucideCalendarFold:Rh,LucideCalendarHeart:Th,LucideCalendarMinus:Dh,LucideCalendarMinus2:qh,LucideCalendarOff:zh,LucideCalendarPlus:Fh,LucideCalendarPlus2:Eh,LucideCalendarRange:Oh,LucideCalendarSearch:Hh,LucideCalendarX:Bh,LucideCalendarX2:Vh,LucideCamera:Uh,LucideCameraOff:$h,LucideCandlestickChart:nn,LucideCandy:Zh,LucideCandyCane:Gh,LucideCandyOff:Wh,LucideCannabis:Jh,LucideCaptions:en,LucideCaptionsOff:Xh,LucideCar:Qh,LucideCarFront:Yh,LucideCarTaxiFront:Kh,LucideCaravan:e0,LucideCarrot:t0,LucideCaseLower:a0,LucideCaseSensitive:r0,LucideCaseUpper:n0,LucideCassetteTape:s0,LucideCast:i0,LucideCastle:o0,LucideCat:c0,LucideCctv:l0,LucideChartArea:tn,LucideChartBar:rn,LucideChartBarBig:an,LucideChartBarDecreasing:d0,LucideChartBarIncreasing:h0,LucideChartBarStacked:u0,LucideChartCandlestick:nn,LucideChartColumn:cn,LucideChartColumnBig:sn,LucideChartColumnDecreasing:p0,LucideChartColumnIncreasing:on,LucideChartColumnStacked:y0,LucideChartGantt:m0,LucideChartLine:ln,LucideChartNetwork:f0,LucideChartNoAxesColumn:dn,LucideChartNoAxesColumnDecreasing:x0,LucideChartNoAxesColumnIncreasing:sr,LucideChartNoAxesCombined:g0,LucideChartNoAxesGantt:hn,LucideChartPie:un,LucideChartScatter:pn,LucideChartSpline:k0,LucideCheck:Eo,LucideCheckCheck:v0,LucideCheckCircle:qt,LucideCheckCircle2:ht,LucideCheckSquare:ai,LucideCheckSquare2:ri,LucideChefHat:w0,LucideCherry:b0,LucideChevronDown:hr,LucideChevronDownCircle:bn,LucideChevronDownSquare:ni,LucideChevronFirst:M0,LucideChevronLast:j0,LucideChevronLeft:ur,LucideChevronLeftCircle:Mn,LucideChevronLeftSquare:si,LucideChevronRight:pr,LucideChevronRightCircle:jn,LucideChevronRightSquare:ii,LucideChevronUp:Fo,LucideChevronUpCircle:Cn,LucideChevronUpSquare:oi,LucideChevronsDown:S0,LucideChevronsDownUp:C0,LucideChevronsLeft:I0,LucideChevronsLeftRight:N0,LucideChevronsLeftRightEllipsis:L0,LucideChevronsRight:P0,LucideChevronsRightLeft:A0,LucideChevronsUp:R0,LucideChevronsUpDown:_0,LucideChrome:T0,LucideChurch:q0,LucideCigarette:z0,LucideCigaretteOff:D0,LucideCircle:Z0,LucideCircleAlert:Tt,LucideCircleArrowDown:yn,LucideCircleArrowLeft:mn,LucideCircleArrowOutDownLeft:fn,LucideCircleArrowOutDownRight:xn,LucideCircleArrowOutUpLeft:gn,LucideCircleArrowOutUpRight:kn,LucideCircleArrowRight:vn,LucideCircleArrowUp:wn,LucideCircleCheck:ht,LucideCircleCheckBig:qt,LucideCircleChevronDown:bn,LucideCircleChevronLeft:Mn,LucideCircleChevronRight:jn,LucideCircleChevronUp:Cn,LucideCircleDashed:E0,LucideCircleDivide:Sn,LucideCircleDollarSign:F0,LucideCircleDot:H0,LucideCircleDotDashed:O0,LucideCircleEllipsis:V0,LucideCircleEqual:B0,LucideCircleFadingArrowUp:$0,LucideCircleFadingPlus:U0,LucideCircleGauge:Ln,LucideCircleHelp:ir,LucideCircleMinus:Nn,LucideCircleOff:G0,LucideCircleParking:An,LucideCircleParkingOff:In,LucideCirclePause:Pn,LucideCirclePercent:_n,LucideCirclePlay:Rn,LucideCirclePlus:Tn,LucideCirclePower:qn,LucideCircleSlash:W0,LucideCircleSlash2:Dn,LucideCircleSlashed:Dn,LucideCircleStop:zn,LucideCircleUser:Fn,LucideCircleUserRound:En,LucideCircleX:xa,LucideCircuitBoard:J0,LucideCitrus:X0,LucideClapperboard:Y0,LucideClipboard:iu,LucideClipboardCheck:K0,LucideClipboardCopy:Q0,LucideClipboardEdit:Hn,LucideClipboardList:eu,LucideClipboardMinus:tu,LucideClipboardPaste:au,LucideClipboardPen:Hn,LucideClipboardPenLine:On,LucideClipboardPlus:ru,LucideClipboardSignature:On,LucideClipboardType:nu,LucideClipboardX:su,LucideClock:da,LucideClock1:ou,LucideClock10:cu,LucideClock11:lu,LucideClock12:du,LucideClock2:hu,LucideClock3:uu,LucideClock4:pu,LucideClock5:yu,LucideClock6:mu,LucideClock7:fu,LucideClock8:xu,LucideClock9:gu,LucideClockAlert:ku,LucideClockArrowDown:vu,LucideClockArrowUp:wu,LucideCloud:qu,LucideCloudCog:bu,LucideCloudDownload:Vn,LucideCloudDrizzle:Mu,LucideCloudFog:ju,LucideCloudHail:Cu,LucideCloudLightning:Su,LucideCloudMoon:Nu,LucideCloudMoonRain:Lu,LucideCloudOff:Iu,LucideCloudRain:Pu,LucideCloudRainWind:Au,LucideCloudSnow:_u,LucideCloudSun:Tu,LucideCloudSunRain:Ru,LucideCloudUpload:or,LucideCloudy:Du,LucideClover:zu,LucideClub:Eu,LucideCode:Fu,LucideCode2:Bn,LucideCodeSquare:ci,LucideCodeXml:Bn,LucideCodepen:Ou,LucideCodesandbox:Hu,LucideCoffee:Vu,LucideCog:Bu,LucideCoins:$u,LucideColumns:$n,LucideColumns2:$n,LucideColumns3:Un,LucideColumns4:Uu,LucideCombine:Gu,LucideCommand:Wu,LucideCompass:Zu,LucideComponent:Ju,LucideComputer:Xu,LucideConciergeBell:Yu,LucideCone:Ku,LucideConstruction:Qu,LucideContact:ep,LucideContact2:Gn,LucideContactRound:Gn,LucideContainer:tp,LucideContrast:ap,LucideCookie:rp,LucideCookingPot:np,LucideCopy:dp,LucideCopyCheck:sp,LucideCopyMinus:ip,LucideCopyPlus:op,LucideCopySlash:cp,LucideCopyX:lp,LucideCopyleft:hp,LucideCopyright:up,LucideCornerDownLeft:pp,LucideCornerDownRight:yp,LucideCornerLeftDown:mp,LucideCornerLeftUp:fp,LucideCornerRightDown:xp,LucideCornerRightUp:gp,LucideCornerUpLeft:kp,LucideCornerUpRight:vp,LucideCpu:wp,LucideCreativeCommons:bp,LucideCreditCard:Sc,LucideCroissant:Mp,LucideCrop:jp,LucideCross:Cp,LucideCrosshair:Sp,LucideCrown:Lp,LucideCuboid:Np,LucideCupSoda:Ip,LucideCurlyBraces:Qr,LucideCurrency:Ap,LucideCylinder:Pp,LucideDam:_p,LucideDatabase:qp,LucideDatabaseBackup:Rp,LucideDatabaseZap:Tp,LucideDelete:Dp,LucideDessert:zp,LucideDiameter:Ep,LucideDiamond:Hp,LucideDiamondMinus:Fp,LucideDiamondPercent:Wn,LucideDiamondPlus:Op,LucideDice1:Vp,LucideDice2:Bp,LucideDice3:$p,LucideDice4:Up,LucideDice5:Gp,LucideDice6:Wp,LucideDices:Zp,LucideDiff:Jp,LucideDisc:Qp,LucideDisc2:Xp,LucideDisc3:Yp,LucideDiscAlbum:Kp,LucideDivide:ey,LucideDivideCircle:Sn,LucideDivideSquare:ui,LucideDna:ay,LucideDnaOff:ty,LucideDock:ry,LucideDog:ny,LucideDollarSign:Lc,LucideDonut:sy,LucideDoorClosed:iy,LucideDoorOpen:oy,LucideDot:cy,LucideDotSquare:pi,LucideDownload:Nc,LucideDownloadCloud:Vn,LucideDraftingCompass:ly,LucideDrama:dy,LucideDribbble:hy,LucideDrill:uy,LucideDroplet:py,LucideDroplets:yy,LucideDrum:my,LucideDrumstick:fy,LucideDumbbell:xy,LucideEar:ky,LucideEarOff:gy,LucideEarth:Zn,LucideEarthLock:vy,LucideEclipse:wy,LucideEdit:Pt,LucideEdit2:Rs,LucideEdit3:_s,LucideEgg:jy,LucideEggFried:by,LucideEggOff:My,LucideEllipsis:Xn,LucideEllipsisVertical:Jn,LucideEqual:Sy,LucideEqualNot:Cy,LucideEqualSquare:yi,LucideEraser:Ly,LucideEthernetPort:Ny,LucideEuro:Iy,LucideExpand:Ay,LucideExternalLink:co,LucideEye:Oo,LucideEyeClosed:Py,LucideEyeOff:Ic,LucideFacebook:_y,LucideFactory:Ry,LucideFan:Ty,LucideFastForward:qy,LucideFeather:Dy,LucideFence:zy,LucideFerrisWheel:Ey,LucideFigma:Fy,LucideFile:qm,LucideFileArchive:Oy,LucideFileAudio:Vy,LucideFileAudio2:Hy,LucideFileAxis3D:Yn,LucideFileAxis3d:Yn,LucideFileBadge:$y,LucideFileBadge2:By,LucideFileBarChart:Kn,LucideFileBarChart2:Qn,LucideFileBox:Uy,LucideFileChartColumn:Qn,LucideFileChartColumnIncreasing:Kn,LucideFileChartLine:es,LucideFileChartPie:ts,LucideFileCheck:Wy,LucideFileCheck2:Gy,LucideFileClock:Zy,LucideFileCode:Xy,LucideFileCode2:Jy,LucideFileCog:as,LucideFileCog2:as,LucideFileDiff:Yy,LucideFileDigit:Ky,LucideFileDown:Qy,LucideFileEdit:ns,LucideFileHeart:em,LucideFileImage:tm,LucideFileInput:am,LucideFileJson:nm,LucideFileJson2:rm,LucideFileKey:im,LucideFileKey2:sm,LucideFileLineChart:es,LucideFileLock:cm,LucideFileLock2:om,LucideFileMinus:dm,LucideFileMinus2:lm,LucideFileMusic:hm,LucideFileOutput:um,LucideFilePen:ns,LucideFilePenLine:rs,LucideFilePieChart:ts,LucideFilePlus:ym,LucideFilePlus2:pm,LucideFileQuestion:mm,LucideFileScan:fm,LucideFileSearch:gm,LucideFileSearch2:xm,LucideFileSignature:rs,LucideFileSliders:km,LucideFileSpreadsheet:vm,LucideFileStack:wm,LucideFileSymlink:bm,LucideFileTerminal:Mm,LucideFileText:Ho,LucideFileType:Cm,LucideFileType2:jm,LucideFileUp:Sm,LucideFileUser:Lm,LucideFileVideo:Im,LucideFileVideo2:Nm,LucideFileVolume:Pm,LucideFileVolume2:Am,LucideFileWarning:_m,LucideFileX:Tm,LucideFileX2:Rm,LucideFiles:Dm,LucideFilm:zm,LucideFilter:yr,LucideFilterX:Em,LucideFingerprint:Fm,LucideFireExtinguisher:Om,LucideFish:Bm,LucideFishOff:Hm,LucideFishSymbol:Vm,LucideFlag:Ac,LucideFlagOff:$m,LucideFlagTriangleLeft:Um,LucideFlagTriangleRight:Gm,LucideFlame:Zm,LucideFlameKindling:Wm,LucideFlashlight:Xm,LucideFlashlightOff:Jm,LucideFlaskConical:Km,LucideFlaskConicalOff:Ym,LucideFlaskRound:Qm,LucideFlipHorizontal:tf,LucideFlipHorizontal2:ef,LucideFlipVertical:rf,LucideFlipVertical2:af,LucideFlower:sf,LucideFlower2:nf,LucideFocus:of,LucideFoldHorizontal:cf,LucideFoldVertical:lf,LucideFolder:zf,LucideFolderArchive:df,LucideFolderCheck:hf,LucideFolderClock:uf,LucideFolderClosed:pf,LucideFolderCode:yf,LucideFolderCog:ss,LucideFolderCog2:ss,LucideFolderDot:mf,LucideFolderDown:ff,LucideFolderEdit:is,LucideFolderGit:gf,LucideFolderGit2:xf,LucideFolderHeart:kf,LucideFolderInput:vf,LucideFolderKanban:wf,LucideFolderKey:bf,LucideFolderLock:Mf,LucideFolderMinus:jf,LucideFolderOpen:Sf,LucideFolderOpenDot:Cf,LucideFolderOutput:Lf,LucideFolderPen:is,LucideFolderPlus:Nf,LucideFolderRoot:If,LucideFolderSearch:Pf,LucideFolderSearch2:Af,LucideFolderSymlink:_f,LucideFolderSync:Rf,LucideFolderTree:Tf,LucideFolderUp:qf,LucideFolderX:Df,LucideFolders:Ef,LucideFootprints:Ff,LucideForkKnife:eo,LucideForkKnifeCrossed:Qi,LucideForklift:Of,LucideFormInput:qs,LucideForward:Hf,LucideFrame:Vf,LucideFramer:Bf,LucideFrown:$f,LucideFuel:Uf,LucideFullscreen:Gf,LucideFunctionSquare:mi,LucideGalleryHorizontal:Zf,LucideGalleryHorizontalEnd:Wf,LucideGalleryThumbnails:Jf,LucideGalleryVertical:Yf,LucideGalleryVerticalEnd:Xf,LucideGamepad:Kf,LucideGamepad2:Pc,LucideGanttChart:hn,LucideGanttChartSquare:ma,LucideGauge:Qf,LucideGaugeCircle:Ln,LucideGavel:ex,LucideGem:tx,LucideGhost:ax,LucideGift:rx,LucideGitBranch:sx,LucideGitBranchPlus:nx,LucideGitCommit:os,LucideGitCommitHorizontal:os,LucideGitCommitVertical:ix,LucideGitCompare:cx,LucideGitCompareArrows:ox,LucideGitFork:lx,LucideGitGraph:dx,LucideGitMerge:hx,LucideGitPullRequest:xx,LucideGitPullRequestArrow:ux,LucideGitPullRequestClosed:px,LucideGitPullRequestCreate:mx,LucideGitPullRequestCreateArrow:yx,LucideGitPullRequestDraft:fx,LucideGithub:gx,LucideGitlab:kx,LucideGlassWater:vx,LucideGlasses:wx,LucideGlobe:Qt,LucideGlobe2:Zn,LucideGlobeLock:bx,LucideGoal:Mx,LucideGrab:jx,LucideGraduationCap:mr,LucideGrape:Cx,LucideGrid:ia,LucideGrid2X2:cs,LucideGrid2x2:cs,LucideGrid2x2Check:Sx,LucideGrid2x2Plus:Lx,LucideGrid2x2X:Nx,LucideGrid3X3:ia,LucideGrid3x3:ia,LucideGrip:Px,LucideGripHorizontal:Ix,LucideGripVertical:Ax,LucideGroup:_x,LucideGuitar:Rx,LucideHam:Tx,LucideHammer:qx,LucideHand:Ox,LucideHandCoins:Dx,LucideHandHeart:zx,LucideHandHelping:ls,LucideHandMetal:Ex,LucideHandPlatter:Fx,LucideHandshake:Hx,LucideHardDrive:$x,LucideHardDriveDownload:Vx,LucideHardDriveUpload:Bx,LucideHardHat:Ux,LucideHash:Gx,LucideHaze:Wx,LucideHdmiPort:Zx,LucideHeading:tg,LucideHeading1:Jx,LucideHeading2:Xx,LucideHeading3:Yx,LucideHeading4:Kx,LucideHeading5:Qx,LucideHeading6:eg,LucideHeadphoneOff:ag,LucideHeadphones:rg,LucideHeadset:ng,LucideHeart:Vo,LucideHeartCrack:sg,LucideHeartHandshake:ig,LucideHeartOff:og,LucideHeartPulse:cg,LucideHeater:lg,LucideHelpCircle:ir,LucideHelpingHand:ls,LucideHexagon:dg,LucideHighlighter:hg,LucideHistory:ug,LucideHome:za,LucideHop:yg,LucideHopOff:pg,LucideHospital:mg,LucideHotel:fg,LucideHourglass:xg,LucideHouse:za,LucideHousePlug:gg,LucideHousePlus:kg,LucideIceCream:hs,LucideIceCream2:ds,LucideIceCreamBowl:ds,LucideIceCreamCone:hs,LucideIdCard:vg,LucideImage:Lg,LucideImageDown:wg,LucideImageMinus:bg,LucideImageOff:Mg,LucideImagePlay:jg,LucideImagePlus:Cg,LucideImageUp:Sg,LucideImages:Ng,LucideImport:Ig,LucideInbox:Ag,LucideIndent:ps,LucideIndentDecrease:us,LucideIndentIncrease:ps,LucideIndianRupee:Pg,LucideInfinity:_g,LucideInfo:Rg,LucideInspect:wi,LucideInspectionPanel:Tg,LucideInstagram:qg,LucideItalic:Dg,LucideIterationCcw:zg,LucideIterationCw:Eg,LucideJapaneseYen:Fg,LucideJoystick:Og,LucideKanban:Hg,LucideKanbanSquare:fi,LucideKanbanSquareDashed:li,LucideKey:$g,LucideKeyRound:Vg,LucideKeySquare:Bg,LucideKeyboard:Wg,LucideKeyboardMusic:Ug,LucideKeyboardOff:Gg,LucideLamp:Qg,LucideLampCeiling:Zg,LucideLampDesk:Jg,LucideLampFloor:Xg,LucideLampWallDown:Yg,LucideLampWallUp:Kg,LucideLandPlot:e4,LucideLandmark:t4,LucideLanguages:_c,LucideLaptop:a4,LucideLaptop2:ys,LucideLaptopMinimal:ys,LucideLasso:n4,LucideLassoSelect:r4,LucideLaugh:s4,LucideLayers:c4,LucideLayers2:i4,LucideLayers3:o4,LucideLayout:Ps,LucideLayoutDashboard:Rc,LucideLayoutGrid:l4,LucideLayoutList:d4,LucideLayoutPanelLeft:h4,LucideLayoutPanelTop:u4,LucideLayoutTemplate:p4,LucideLeaf:y4,LucideLeafyGreen:m4,LucideLectern:f4,LucideLetterText:x4,LucideLibrary:k4,LucideLibraryBig:g4,LucideLibrarySquare:xi,LucideLifeBuoy:v4,LucideLigature:w4,LucideLightbulb:M4,LucideLightbulbOff:b4,LucideLineChart:ln,LucideLink:Tc,LucideLink2:C4,LucideLink2Off:j4,LucideLinkedin:qc,LucideList:Dc,LucideListCheck:S4,LucideListChecks:L4,LucideListCollapse:N4,LucideListEnd:I4,LucideListFilter:A4,LucideListMinus:P4,LucideListMusic:_4,LucideListOrdered:R4,LucideListPlus:T4,LucideListRestart:q4,LucideListStart:D4,LucideListTodo:z4,LucideListTree:E4,LucideListVideo:F4,LucideListX:O4,LucideLoader:V4,LucideLoader2:ms,LucideLoaderCircle:ms,LucideLoaderPinwheel:H4,LucideLocate:U4,LucideLocateFixed:B4,LucideLocateOff:$4,LucideLock:lo,LucideLockKeyhole:G4,LucideLockKeyholeOpen:fs,LucideLockOpen:xs,LucideLogIn:W4,LucideLogOut:zc,LucideLogs:Z4,LucideLollipop:J4,LucideLuggage:X4,LucideMSquare:gi,LucideMagnet:Y4,LucideMail:ea,LucideMailCheck:K4,LucideMailMinus:Q4,LucideMailOpen:ek,LucideMailPlus:tk,LucideMailQuestion:ak,LucideMailSearch:rk,LucideMailWarning:nk,LucideMailX:sk,LucideMailbox:ik,LucideMails:ok,LucideMap:kk,LucideMapPin:it,LucideMapPinCheck:lk,LucideMapPinCheckInside:ck,LucideMapPinHouse:dk,LucideMapPinMinus:uk,LucideMapPinMinusInside:hk,LucideMapPinOff:pk,LucideMapPinPlus:mk,LucideMapPinPlusInside:yk,LucideMapPinX:xk,LucideMapPinXInside:fk,LucideMapPinned:gk,LucideMartini:vk,LucideMaximize:bk,LucideMaximize2:wk,LucideMedal:Mk,LucideMegaphone:Ck,LucideMegaphoneOff:jk,LucideMeh:Sk,LucideMemoryStick:Lk,LucideMenu:Bo,LucideMenuSquare:ki,LucideMerge:Nk,LucideMessageCircle:Fk,LucideMessageCircleCode:Ik,LucideMessageCircleDashed:Ak,LucideMessageCircleHeart:Pk,LucideMessageCircleMore:_k,LucideMessageCircleOff:Rk,LucideMessageCirclePlus:Tk,LucideMessageCircleQuestion:qk,LucideMessageCircleReply:Dk,LucideMessageCircleWarning:zk,LucideMessageCircleX:Ek,LucideMessageSquare:fr,LucideMessageSquareCode:Ok,LucideMessageSquareDashed:Hk,LucideMessageSquareDiff:Vk,LucideMessageSquareDot:Bk,LucideMessageSquareHeart:$k,LucideMessageSquareLock:Uk,LucideMessageSquareMore:Gk,LucideMessageSquareOff:Wk,LucideMessageSquarePlus:Zk,LucideMessageSquareQuote:Jk,LucideMessageSquareReply:Xk,LucideMessageSquareShare:Yk,LucideMessageSquareText:Kk,LucideMessageSquareWarning:Qk,LucideMessageSquareX:e5,LucideMessagesSquare:t5,LucideMic:r5,LucideMic2:gs,LucideMicOff:a5,LucideMicVocal:gs,LucideMicrochip:n5,LucideMicroscope:s5,LucideMicrowave:i5,LucideMilestone:o5,LucideMilk:l5,LucideMilkOff:c5,LucideMinimize:h5,LucideMinimize2:d5,LucideMinus:Ec,LucideMinusCircle:Nn,LucideMinusSquare:vi,LucideMonitor:j5,LucideMonitorCheck:u5,LucideMonitorCog:p5,LucideMonitorDot:y5,LucideMonitorDown:m5,LucideMonitorOff:f5,LucideMonitorPause:x5,LucideMonitorPlay:g5,LucideMonitorSmartphone:k5,LucideMonitorSpeaker:v5,LucideMonitorStop:w5,LucideMonitorUp:b5,LucideMonitorX:M5,LucideMoon:S5,LucideMoonStar:C5,LucideMoreHorizontal:Xn,LucideMoreVertical:Jn,LucideMountain:N5,LucideMountainSnow:L5,LucideMouse:T5,LucideMouseOff:I5,LucideMousePointer:R5,LucideMousePointer2:A5,LucideMousePointerBan:P5,LucideMousePointerClick:_5,LucideMousePointerSquareDashed:di,LucideMove:W5,LucideMove3D:ks,LucideMove3d:ks,LucideMoveDiagonal:D5,LucideMoveDiagonal2:q5,LucideMoveDown:F5,LucideMoveDownLeft:z5,LucideMoveDownRight:E5,LucideMoveHorizontal:O5,LucideMoveLeft:H5,LucideMoveRight:V5,LucideMoveUp:U5,LucideMoveUpLeft:B5,LucideMoveUpRight:$5,LucideMoveVertical:G5,LucideMusic:Y5,LucideMusic2:Z5,LucideMusic3:J5,LucideMusic4:X5,LucideNavigation:tv,LucideNavigation2:Q5,LucideNavigation2Off:K5,LucideNavigationOff:ev,LucideNetwork:av,LucideNewspaper:Ma,LucideNfc:rv,LucideNotebook:ov,LucideNotebookPen:nv,LucideNotebookTabs:sv,LucideNotebookText:iv,LucideNotepadText:lv,LucideNotepadTextDashed:cv,LucideNut:hv,LucideNutOff:dv,LucideOctagon:pv,LucideOctagonAlert:vs,LucideOctagonMinus:uv,LucideOctagonPause:ws,LucideOctagonX:bs,LucideOmega:yv,LucideOption:mv,LucideOrbit:fv,LucideOrigami:xv,LucideOutdent:us,LucidePackage:Fc,LucidePackage2:gv,LucidePackageCheck:kv,LucidePackageMinus:vv,LucidePackageOpen:wv,LucidePackagePlus:bv,LucidePackageSearch:Mv,LucidePackageX:jv,LucidePaintBucket:Cv,LucidePaintRoller:Sv,LucidePaintbrush:Lv,LucidePaintbrush2:Ms,LucidePaintbrushVertical:Ms,LucidePalette:Nv,LucidePalmtree:Vi,LucidePanelBottom:Pv,LucidePanelBottomClose:Iv,LucidePanelBottomDashed:js,LucidePanelBottomInactive:js,LucidePanelBottomOpen:Av,LucidePanelLeft:Ns,LucidePanelLeftClose:Cs,LucidePanelLeftDashed:Ss,LucidePanelLeftInactive:Ss,LucidePanelLeftOpen:Ls,LucidePanelRight:Tv,LucidePanelRightClose:_v,LucidePanelRightDashed:Is,LucidePanelRightInactive:Is,LucidePanelRightOpen:Rv,LucidePanelTop:zv,LucidePanelTopClose:qv,LucidePanelTopDashed:As,LucidePanelTopInactive:As,LucidePanelTopOpen:Dv,LucidePanelsLeftBottom:Ev,LucidePanelsLeftRight:Un,LucidePanelsRightBottom:Fv,LucidePanelsTopBottom:Es,LucidePanelsTopLeft:Ps,LucidePaperclip:Ov,LucideParentheses:Hv,LucideParkingCircle:An,LucideParkingCircleOff:In,LucideParkingMeter:Vv,LucideParkingSquare:Mi,LucideParkingSquareOff:bi,LucidePartyPopper:Bv,LucidePause:$v,LucidePauseCircle:Pn,LucidePauseOctagon:ws,LucidePawPrint:Uv,LucidePcCase:Gv,LucidePen:Rs,LucidePenBox:Pt,LucidePenLine:_s,LucidePenOff:Wv,LucidePenSquare:Pt,LucidePenTool:Zv,LucidePencil:Kv,LucidePencilLine:Jv,LucidePencilOff:Xv,LucidePencilRuler:Yv,LucidePentagon:Qv,LucidePercent:e3,LucidePercentCircle:_n,LucidePercentDiamond:Wn,LucidePercentSquare:ji,LucidePersonStanding:t3,LucidePhilippinePeso:a3,LucidePhone:xr,LucidePhoneCall:r3,LucidePhoneForwarded:n3,LucidePhoneIncoming:s3,LucidePhoneMissed:i3,LucidePhoneOff:o3,LucidePhoneOutgoing:c3,LucidePi:l3,LucidePiSquare:Ci,LucidePiano:d3,LucidePickaxe:h3,LucidePictureInPicture:p3,LucidePictureInPicture2:u3,LucidePieChart:un,LucidePiggyBank:y3,LucidePilcrow:x3,LucidePilcrowLeft:m3,LucidePilcrowRight:f3,LucidePilcrowSquare:Si,LucidePill:k3,LucidePillBottle:g3,LucidePin:w3,LucidePinOff:v3,LucidePipette:b3,LucidePizza:M3,LucidePlane:S3,LucidePlaneLanding:j3,LucidePlaneTakeoff:C3,LucidePlay:Oc,LucidePlayCircle:Rn,LucidePlaySquare:Li,LucidePlug:N3,LucidePlug2:L3,LucidePlugZap:Ts,LucidePlugZap2:Ts,LucidePlus:$o,LucidePlusCircle:Tn,LucidePlusSquare:Ni,LucidePocket:A3,LucidePocketKnife:I3,LucidePodcast:P3,LucidePointer:R3,LucidePointerOff:_3,LucidePopcorn:T3,LucidePopsicle:q3,LucidePoundSterling:D3,LucidePower:E3,LucidePowerCircle:qn,LucidePowerOff:z3,LucidePowerSquare:Ii,LucidePresentation:F3,LucidePrinter:H3,LucidePrinterCheck:O3,LucideProjector:V3,LucideProportions:B3,LucidePuzzle:$3,LucidePyramid:U3,LucideQrCode:G3,LucideQuote:Uo,LucideRabbit:W3,LucideRadar:Z3,LucideRadiation:J3,LucideRadical:X3,LucideRadio:Q3,LucideRadioReceiver:Y3,LucideRadioTower:K3,LucideRadius:e6,LucideRailSymbol:t6,LucideRainbow:a6,LucideRat:r6,LucideRatio:n6,LucideReceipt:p6,LucideReceiptCent:s6,LucideReceiptEuro:i6,LucideReceiptIndianRupee:o6,LucideReceiptJapaneseYen:c6,LucideReceiptPoundSterling:l6,LucideReceiptRussianRuble:d6,LucideReceiptSwissFranc:h6,LucideReceiptText:u6,LucideRectangleEllipsis:qs,LucideRectangleHorizontal:y6,LucideRectangleVertical:m6,LucideRecycle:f6,LucideRedo:k6,LucideRedo2:x6,LucideRedoDot:g6,LucideRefreshCcw:w6,LucideRefreshCcwDot:v6,LucideRefreshCw:M6,LucideRefreshCwOff:b6,LucideRefrigerator:j6,LucideRegex:C6,LucideRemoveFormatting:S6,LucideRepeat:I6,LucideRepeat1:L6,LucideRepeat2:N6,LucideReplace:P6,LucideReplaceAll:A6,LucideReply:R6,LucideReplyAll:_6,LucideRewind:T6,LucideRibbon:q6,LucideRocket:D6,LucideRockingChair:z6,LucideRollerCoaster:E6,LucideRotate3D:Ds,LucideRotate3d:Ds,LucideRotateCcw:O6,LucideRotateCcwSquare:F6,LucideRotateCw:V6,LucideRotateCwSquare:H6,LucideRoute:$6,LucideRouteOff:B6,LucideRouter:U6,LucideRows:zs,LucideRows2:zs,LucideRows3:Es,LucideRows4:G6,LucideRss:W6,LucideRuler:Z6,LucideRussianRuble:J6,LucideSailboat:X6,LucideSalad:Y6,LucideSandwich:K6,LucideSatellite:e8,LucideSatelliteDish:Q6,LucideSave:r8,LucideSaveAll:t8,LucideSaveOff:a8,LucideScale:n8,LucideScale3D:Fs,LucideScale3d:Fs,LucideScaling:s8,LucideScan:p8,LucideScanBarcode:i8,LucideScanEye:o8,LucideScanFace:c8,LucideScanLine:l8,LucideScanQrCode:d8,LucideScanSearch:h8,LucideScanText:u8,LucideScatterChart:pn,LucideSchool:y8,LucideSchool2:Ui,LucideScissors:f8,LucideScissorsLineDashed:m8,LucideScissorsSquare:Ai,LucideScissorsSquareDashedBottom:ti,LucideScreenShare:g8,LucideScreenShareOff:x8,LucideScroll:v8,LucideScrollText:k8,LucideSearch:Ot,LucideSearchCheck:w8,LucideSearchCode:b8,LucideSearchSlash:M8,LucideSearchX:j8,LucideSection:C8,LucideSend:Hc,LucideSendHorizonal:Os,LucideSendHorizontal:Os,LucideSendToBack:S8,LucideSeparatorHorizontal:L8,LucideSeparatorVertical:N8,LucideServer:_8,LucideServerCog:I8,LucideServerCrash:A8,LucideServerOff:P8,LucideSettings:Go,LucideSettings2:R8,LucideShapes:T8,LucideShare:q8,LucideShare2:ho,LucideSheet:D8,LucideShell:z8,LucideShield:gr,LucideShieldAlert:E8,LucideShieldBan:F8,LucideShieldCheck:Vc,LucideShieldClose:Hs,LucideShieldEllipsis:O8,LucideShieldHalf:H8,LucideShieldMinus:V8,LucideShieldOff:B8,LucideShieldPlus:$8,LucideShieldQuestion:U8,LucideShieldX:Hs,LucideShip:W8,LucideShipWheel:G8,LucideShirt:Z8,LucideShoppingBag:J8,LucideShoppingBasket:X8,LucideShoppingCart:Wo,LucideShovel:Y8,LucideShowerHead:K8,LucideShrink:Q8,LucideShrub:ew,LucideShuffle:tw,LucideSidebar:Ns,LucideSidebarClose:Cs,LucideSidebarOpen:Ls,LucideSigma:aw,LucideSigmaSquare:Pi,LucideSignal:Bc,LucideSignalHigh:rw,LucideSignalLow:nw,LucideSignalMedium:sw,LucideSignalZero:iw,LucideSignature:ow,LucideSignpost:lw,LucideSignpostBig:cw,LucideSiren:dw,LucideSkipBack:hw,LucideSkipForward:uw,LucideSkull:pw,LucideSlack:yw,LucideSlash:mw,LucideSlashSquare:_i,LucideSlice:fw,LucideSliders:Vs,LucideSlidersHorizontal:kr,LucideSlidersVertical:Vs,LucideSmartphone:kw,LucideSmartphoneCharging:xw,LucideSmartphoneNfc:gw,LucideSmile:ww,LucideSmilePlus:vw,LucideSnail:bw,LucideSnowflake:Mw,LucideSofa:jw,LucideSortAsc:Gr,LucideSortDesc:Br,LucideSoup:Cw,LucideSpace:Sw,LucideSpade:Lw,LucideSparkle:Nw,LucideSparkles:ga,LucideSpeaker:Iw,LucideSpeech:Aw,LucideSpellCheck:_w,LucideSpellCheck2:Pw,LucideSpline:Rw,LucideSplit:Tw,LucideSplitSquareHorizontal:Ri,LucideSplitSquareVertical:Ti,LucideSprayCan:qw,LucideSprout:Dw,LucideSquare:Vw,LucideSquareActivity:Bs,LucideSquareArrowDown:Gs,LucideSquareArrowDownLeft:$s,LucideSquareArrowDownRight:Us,LucideSquareArrowLeft:Ea,LucideSquareArrowOutDownLeft:Ws,LucideSquareArrowOutDownRight:Zs,LucideSquareArrowOutUpLeft:Js,LucideSquareArrowOutUpRight:Xs,LucideSquareArrowRight:Fa,LucideSquareArrowUp:Qs,LucideSquareArrowUpLeft:Ys,LucideSquareArrowUpRight:Ks,LucideSquareAsterisk:ei,LucideSquareBottomDashedScissors:ti,LucideSquareChartGantt:ma,LucideSquareCheck:ri,LucideSquareCheckBig:ai,LucideSquareChevronDown:ni,LucideSquareChevronLeft:si,LucideSquareChevronRight:ii,LucideSquareChevronUp:oi,LucideSquareCode:ci,LucideSquareDashed:hi,LucideSquareDashedBottom:Ew,LucideSquareDashedBottomCode:zw,LucideSquareDashedKanban:li,LucideSquareDashedMousePointer:di,LucideSquareDivide:ui,LucideSquareDot:pi,LucideSquareEqual:yi,LucideSquareFunction:mi,LucideSquareGanttChart:ma,LucideSquareKanban:fi,LucideSquareLibrary:xi,LucideSquareM:gi,LucideSquareMenu:ki,LucideSquareMinus:vi,LucideSquareMousePointer:wi,LucideSquareParking:Mi,LucideSquareParkingOff:bi,LucideSquarePen:Pt,LucideSquarePercent:ji,LucideSquarePi:Ci,LucideSquarePilcrow:Si,LucideSquarePlay:Li,LucideSquarePlus:Ni,LucideSquarePower:Ii,LucideSquareRadical:Fw,LucideSquareScissors:Ai,LucideSquareSigma:Pi,LucideSquareSlash:_i,LucideSquareSplitHorizontal:Ri,LucideSquareSplitVertical:Ti,LucideSquareSquare:Ow,LucideSquareStack:Hw,LucideSquareTerminal:qi,LucideSquareUser:zi,LucideSquareUserRound:Di,LucideSquareX:Ei,LucideSquircle:Bw,LucideSquirrel:$w,LucideStamp:Uw,LucideStar:vt,LucideStarHalf:Gw,LucideStarOff:Ww,LucideStars:ga,LucideStepBack:Zw,LucideStepForward:Jw,LucideStethoscope:Xw,LucideSticker:Yw,LucideStickyNote:Kw,LucideStopCircle:zn,LucideStore:Qw,LucideStretchHorizontal:e7,LucideStretchVertical:t7,LucideStrikethrough:a7,LucideSubscript:r7,LucideSubtitles:en,LucideSun:c7,LucideSunDim:n7,LucideSunMedium:s7,LucideSunMoon:i7,LucideSunSnow:o7,LucideSunrise:l7,LucideSunset:d7,LucideSuperscript:h7,LucideSwatchBook:u7,LucideSwissFranc:p7,LucideSwitchCamera:y7,LucideSword:m7,LucideSwords:f7,LucideSyringe:x7,LucideTable:C7,LucideTable2:g7,LucideTableCellsMerge:k7,LucideTableCellsSplit:v7,LucideTableColumnsSplit:w7,LucideTableOfContents:b7,LucideTableProperties:M7,LucideTableRowsSplit:j7,LucideTablet:L7,LucideTabletSmartphone:S7,LucideTablets:N7,LucideTag:$c,LucideTags:I7,LucideTally1:A7,LucideTally2:P7,LucideTally3:_7,LucideTally4:R7,LucideTally5:T7,LucideTangent:q7,LucideTarget:D7,LucideTelescope:z7,LucideTent:F7,LucideTentTree:E7,LucideTerminal:O7,LucideTerminalSquare:qi,LucideTestTube:H7,LucideTestTube2:Fi,LucideTestTubeDiagonal:Fi,LucideTestTubes:V7,LucideText:W7,LucideTextCursor:$7,LucideTextCursorInput:B7,LucideTextQuote:U7,LucideTextSearch:G7,LucideTextSelect:Oi,LucideTextSelection:Oi,LucideTheater:Z7,LucideThermometer:Y7,LucideThermometerSnowflake:J7,LucideThermometerSun:X7,LucideThumbsDown:K7,LucideThumbsUp:Q7,LucideTicket:ib,LucideTicketCheck:eb,LucideTicketMinus:tb,LucideTicketPercent:ab,LucideTicketPlus:rb,LucideTicketSlash:nb,LucideTicketX:sb,LucideTickets:cb,LucideTicketsPlane:ob,LucideTimer:hb,LucideTimerOff:lb,LucideTimerReset:db,LucideToggleLeft:ub,LucideToggleRight:pb,LucideTornado:yb,LucideTorus:mb,LucideTouchpad:xb,LucideTouchpadOff:fb,LucideTowerControl:gb,LucideToyBrick:kb,LucideTractor:vb,LucideTrafficCone:wb,LucideTrain:Hi,LucideTrainFront:Mb,LucideTrainFrontTunnel:bb,LucideTrainTrack:jb,LucideTramFront:Hi,LucideTrash:Cb,LucideTrash2:Zo,LucideTreeDeciduous:Sb,LucideTreePalm:Vi,LucideTreePine:Lb,LucideTrees:Nb,LucideTrello:Ib,LucideTrendingDown:Ab,LucideTrendingUp:ja,LucideTrendingUpDown:Pb,LucideTriangle:Rb,LucideTriangleAlert:Bi,LucideTriangleRight:_b,LucideTrophy:Tb,LucideTruck:qb,LucideTurtle:Db,LucideTv:Eb,LucideTv2:$i,LucideTvMinimal:$i,LucideTvMinimalPlay:zb,LucideTwitch:Fb,LucideTwitter:Ob,LucideType:Vb,LucideTypeOutline:Hb,LucideUmbrella:$b,LucideUmbrellaOff:Bb,LucideUnderline:Ub,LucideUndo:Zb,LucideUndo2:Gb,LucideUndoDot:Wb,LucideUnfoldHorizontal:Jb,LucideUnfoldVertical:Xb,LucideUngroup:Yb,LucideUniversity:Ui,LucideUnlink:Qb,LucideUnlink2:Kb,LucideUnlock:xs,LucideUnlockKeyhole:fs,LucideUnplug:eM,LucideUpload:Uc,LucideUploadCloud:or,LucideUsb:tM,LucideUser:Jo,LucideUser2:Yi,LucideUserCheck:Gc,LucideUserCheck2:Gi,LucideUserCircle:Fn,LucideUserCircle2:En,LucideUserCog:aM,LucideUserCog2:Wi,LucideUserMinus:rM,LucideUserMinus2:Zi,LucideUserPen:nM,LucideUserPlus:sM,LucideUserPlus2:Ji,LucideUserRound:Yi,LucideUserRoundCheck:Gi,LucideUserRoundCog:Wi,LucideUserRoundMinus:Zi,LucideUserRoundPen:iM,LucideUserRoundPlus:Ji,LucideUserRoundSearch:oM,LucideUserRoundX:Xi,LucideUserSearch:cM,LucideUserSquare:zi,LucideUserSquare2:Di,LucideUserX:lM,LucideUserX2:Xi,LucideUsers:jt,LucideUsers2:Ki,LucideUsersRound:Ki,LucideUtensils:eo,LucideUtensilsCrossed:Qi,LucideUtilityPole:dM,LucideVariable:hM,LucideVault:uM,LucideVegan:pM,LucideVenetianMask:yM,LucideVerified:Jr,LucideVibrate:fM,LucideVibrateOff:mM,LucideVideo:gM,LucideVideoOff:xM,LucideVideotape:kM,LucideView:vM,LucideVoicemail:wM,LucideVolleyball:bM,LucideVolume:LM,LucideVolume1:MM,LucideVolume2:jM,LucideVolumeOff:CM,LucideVolumeX:SM,LucideVote:NM,LucideWallet:AM,LucideWallet2:to,LucideWalletCards:IM,LucideWalletMinimal:to,LucideWallpaper:PM,LucideWand:_M,LucideWand2:ao,LucideWandSparkles:ao,LucideWarehouse:RM,LucideWashingMachine:TM,LucideWatch:qM,LucideWaves:DM,LucideWaypoints:zM,LucideWebcam:EM,LucideWebhook:OM,LucideWebhookOff:FM,LucideWeight:HM,LucideWheat:BM,LucideWheatOff:VM,LucideWholeWord:$M,LucideWifi:JM,LucideWifiHigh:UM,LucideWifiLow:GM,LucideWifiOff:WM,LucideWifiZero:ZM,LucideWind:XM,LucideWine:KM,LucideWineOff:YM,LucideWorkflow:QM,LucideWorm:e9,LucideWrapText:t9,LucideWrench:a9,LucideX:wt,LucideXCircle:xa,LucideXOctagon:bs,LucideXSquare:Ei,LucideYoutube:r9,LucideZap:Wc,LucideZapOff:n9,LucideZoomIn:s9,LucideZoomOut:i9,Luggage:X4,LuggageIcon:X4,MSquare:gi,MSquareIcon:gi,Magnet:Y4,MagnetIcon:Y4,Mail:ea,MailCheck:K4,MailCheckIcon:K4,MailIcon:ea,MailMinus:Q4,MailMinusIcon:Q4,MailOpen:ek,MailOpenIcon:ek,MailPlus:tk,MailPlusIcon:tk,MailQuestion:ak,MailQuestionIcon:ak,MailSearch:rk,MailSearchIcon:rk,MailWarning:nk,MailWarningIcon:nk,MailX:sk,MailXIcon:sk,Mailbox:ik,MailboxIcon:ik,Mails:ok,MailsIcon:ok,Map:kk,MapIcon:kk,MapPin:it,MapPinCheck:lk,MapPinCheckIcon:lk,MapPinCheckInside:ck,MapPinCheckInsideIcon:ck,MapPinHouse:dk,MapPinHouseIcon:dk,MapPinIcon:it,MapPinMinus:uk,MapPinMinusIcon:uk,MapPinMinusInside:hk,MapPinMinusInsideIcon:hk,MapPinOff:pk,MapPinOffIcon:pk,MapPinPlus:mk,MapPinPlusIcon:mk,MapPinPlusInside:yk,MapPinPlusInsideIcon:yk,MapPinX:xk,MapPinXIcon:xk,MapPinXInside:fk,MapPinXInsideIcon:fk,MapPinned:gk,MapPinnedIcon:gk,Martini:vk,MartiniIcon:vk,Maximize:bk,Maximize2:wk,Maximize2Icon:wk,MaximizeIcon:bk,Medal:Mk,MedalIcon:Mk,Megaphone:Ck,MegaphoneIcon:Ck,MegaphoneOff:jk,MegaphoneOffIcon:jk,Meh:Sk,MehIcon:Sk,MemoryStick:Lk,MemoryStickIcon:Lk,Menu:Bo,MenuIcon:Bo,MenuSquare:ki,MenuSquareIcon:ki,Merge:Nk,MergeIcon:Nk,MessageCircle:Fk,MessageCircleCode:Ik,MessageCircleCodeIcon:Ik,MessageCircleDashed:Ak,MessageCircleDashedIcon:Ak,MessageCircleHeart:Pk,MessageCircleHeartIcon:Pk,MessageCircleIcon:Fk,MessageCircleMore:_k,MessageCircleMoreIcon:_k,MessageCircleOff:Rk,MessageCircleOffIcon:Rk,MessageCirclePlus:Tk,MessageCirclePlusIcon:Tk,MessageCircleQuestion:qk,MessageCircleQuestionIcon:qk,MessageCircleReply:Dk,MessageCircleReplyIcon:Dk,MessageCircleWarning:zk,MessageCircleWarningIcon:zk,MessageCircleX:Ek,MessageCircleXIcon:Ek,MessageSquare:fr,MessageSquareCode:Ok,MessageSquareCodeIcon:Ok,MessageSquareDashed:Hk,MessageSquareDashedIcon:Hk,MessageSquareDiff:Vk,MessageSquareDiffIcon:Vk,MessageSquareDot:Bk,MessageSquareDotIcon:Bk,MessageSquareHeart:$k,MessageSquareHeartIcon:$k,MessageSquareIcon:fr,MessageSquareLock:Uk,MessageSquareLockIcon:Uk,MessageSquareMore:Gk,MessageSquareMoreIcon:Gk,MessageSquareOff:Wk,MessageSquareOffIcon:Wk,MessageSquarePlus:Zk,MessageSquarePlusIcon:Zk,MessageSquareQuote:Jk,MessageSquareQuoteIcon:Jk,MessageSquareReply:Xk,MessageSquareReplyIcon:Xk,MessageSquareShare:Yk,MessageSquareShareIcon:Yk,MessageSquareText:Kk,MessageSquareTextIcon:Kk,MessageSquareWarning:Qk,MessageSquareWarningIcon:Qk,MessageSquareX:e5,MessageSquareXIcon:e5,MessagesSquare:t5,MessagesSquareIcon:t5,Mic:r5,Mic2:gs,Mic2Icon:gs,MicIcon:r5,MicOff:a5,MicOffIcon:a5,MicVocal:gs,MicVocalIcon:gs,Microchip:n5,MicrochipIcon:n5,Microscope:s5,MicroscopeIcon:s5,Microwave:i5,MicrowaveIcon:i5,Milestone:o5,MilestoneIcon:o5,Milk:l5,MilkIcon:l5,MilkOff:c5,MilkOffIcon:c5,Minimize:h5,Minimize2:d5,Minimize2Icon:d5,MinimizeIcon:h5,Minus:Ec,MinusCircle:Nn,MinusCircleIcon:Nn,MinusIcon:Ec,MinusSquare:vi,MinusSquareIcon:vi,Monitor:j5,MonitorCheck:u5,MonitorCheckIcon:u5,MonitorCog:p5,MonitorCogIcon:p5,MonitorDot:y5,MonitorDotIcon:y5,MonitorDown:m5,MonitorDownIcon:m5,MonitorIcon:j5,MonitorOff:f5,MonitorOffIcon:f5,MonitorPause:x5,MonitorPauseIcon:x5,MonitorPlay:g5,MonitorPlayIcon:g5,MonitorSmartphone:k5,MonitorSmartphoneIcon:k5,MonitorSpeaker:v5,MonitorSpeakerIcon:v5,MonitorStop:w5,MonitorStopIcon:w5,MonitorUp:b5,MonitorUpIcon:b5,MonitorX:M5,MonitorXIcon:M5,Moon:S5,MoonIcon:S5,MoonStar:C5,MoonStarIcon:C5,MoreHorizontal:Xn,MoreHorizontalIcon:Xn,MoreVertical:Jn,MoreVerticalIcon:Jn,Mountain:N5,MountainIcon:N5,MountainSnow:L5,MountainSnowIcon:L5,Mouse:T5,MouseIcon:T5,MouseOff:I5,MouseOffIcon:I5,MousePointer:R5,MousePointer2:A5,MousePointer2Icon:A5,MousePointerBan:P5,MousePointerBanIcon:P5,MousePointerClick:_5,MousePointerClickIcon:_5,MousePointerIcon:R5,MousePointerSquareDashed:di,MousePointerSquareDashedIcon:di,Move:W5,Move3D:ks,Move3DIcon:ks,Move3d:ks,Move3dIcon:ks,MoveDiagonal:D5,MoveDiagonal2:q5,MoveDiagonal2Icon:q5,MoveDiagonalIcon:D5,MoveDown:F5,MoveDownIcon:F5,MoveDownLeft:z5,MoveDownLeftIcon:z5,MoveDownRight:E5,MoveDownRightIcon:E5,MoveHorizontal:O5,MoveHorizontalIcon:O5,MoveIcon:W5,MoveLeft:H5,MoveLeftIcon:H5,MoveRight:V5,MoveRightIcon:V5,MoveUp:U5,MoveUpIcon:U5,MoveUpLeft:B5,MoveUpLeftIcon:B5,MoveUpRight:$5,MoveUpRightIcon:$5,MoveVertical:G5,MoveVerticalIcon:G5,Music:Y5,Music2:Z5,Music2Icon:Z5,Music3:J5,Music3Icon:J5,Music4:X5,Music4Icon:X5,MusicIcon:Y5,Navigation:tv,Navigation2:Q5,Navigation2Icon:Q5,Navigation2Off:K5,Navigation2OffIcon:K5,NavigationIcon:tv,NavigationOff:ev,NavigationOffIcon:ev,Network:av,NetworkIcon:av,Newspaper:Ma,NewspaperIcon:Ma,Nfc:rv,NfcIcon:rv,Notebook:ov,NotebookIcon:ov,NotebookPen:nv,NotebookPenIcon:nv,NotebookTabs:sv,NotebookTabsIcon:sv,NotebookText:iv,NotebookTextIcon:iv,NotepadText:lv,NotepadTextDashed:cv,NotepadTextDashedIcon:cv,NotepadTextIcon:lv,Nut:hv,NutIcon:hv,NutOff:dv,NutOffIcon:dv,Octagon:pv,OctagonAlert:vs,OctagonAlertIcon:vs,OctagonIcon:pv,OctagonMinus:uv,OctagonMinusIcon:uv,OctagonPause:ws,OctagonPauseIcon:ws,OctagonX:bs,OctagonXIcon:bs,Omega:yv,OmegaIcon:yv,Option:mv,OptionIcon:mv,Orbit:fv,OrbitIcon:fv,Origami:xv,OrigamiIcon:xv,Outdent:us,OutdentIcon:us,Package:Fc,Package2:gv,Package2Icon:gv,PackageCheck:kv,PackageCheckIcon:kv,PackageIcon:Fc,PackageMinus:vv,PackageMinusIcon:vv,PackageOpen:wv,PackageOpenIcon:wv,PackagePlus:bv,PackagePlusIcon:bv,PackageSearch:Mv,PackageSearchIcon:Mv,PackageX:jv,PackageXIcon:jv,PaintBucket:Cv,PaintBucketIcon:Cv,PaintRoller:Sv,PaintRollerIcon:Sv,Paintbrush:Lv,Paintbrush2:Ms,Paintbrush2Icon:Ms,PaintbrushIcon:Lv,PaintbrushVertical:Ms,PaintbrushVerticalIcon:Ms,Palette:Nv,PaletteIcon:Nv,Palmtree:Vi,PalmtreeIcon:Vi,PanelBottom:Pv,PanelBottomClose:Iv,PanelBottomCloseIcon:Iv,PanelBottomDashed:js,PanelBottomDashedIcon:js,PanelBottomIcon:Pv,PanelBottomInactive:js,PanelBottomInactiveIcon:js,PanelBottomOpen:Av,PanelBottomOpenIcon:Av,PanelLeft:Ns,PanelLeftClose:Cs,PanelLeftCloseIcon:Cs,PanelLeftDashed:Ss,PanelLeftDashedIcon:Ss,PanelLeftIcon:Ns,PanelLeftInactive:Ss,PanelLeftInactiveIcon:Ss,PanelLeftOpen:Ls,PanelLeftOpenIcon:Ls,PanelRight:Tv,PanelRightClose:_v,PanelRightCloseIcon:_v,PanelRightDashed:Is,PanelRightDashedIcon:Is,PanelRightIcon:Tv,PanelRightInactive:Is,PanelRightInactiveIcon:Is,PanelRightOpen:Rv,PanelRightOpenIcon:Rv,PanelTop:zv,PanelTopClose:qv,PanelTopCloseIcon:qv,PanelTopDashed:As,PanelTopDashedIcon:As,PanelTopIcon:zv,PanelTopInactive:As,PanelTopInactiveIcon:As,PanelTopOpen:Dv,PanelTopOpenIcon:Dv,PanelsLeftBottom:Ev,PanelsLeftBottomIcon:Ev,PanelsLeftRight:Un,PanelsLeftRightIcon:Un,PanelsRightBottom:Fv,PanelsRightBottomIcon:Fv,PanelsTopBottom:Es,PanelsTopBottomIcon:Es,PanelsTopLeft:Ps,PanelsTopLeftIcon:Ps,Paperclip:Ov,PaperclipIcon:Ov,Parentheses:Hv,ParenthesesIcon:Hv,ParkingCircle:An,ParkingCircleIcon:An,ParkingCircleOff:In,ParkingCircleOffIcon:In,ParkingMeter:Vv,ParkingMeterIcon:Vv,ParkingSquare:Mi,ParkingSquareIcon:Mi,ParkingSquareOff:bi,ParkingSquareOffIcon:bi,PartyPopper:Bv,PartyPopperIcon:Bv,Pause:$v,PauseCircle:Pn,PauseCircleIcon:Pn,PauseIcon:$v,PauseOctagon:ws,PauseOctagonIcon:ws,PawPrint:Uv,PawPrintIcon:Uv,PcCase:Gv,PcCaseIcon:Gv,Pen:Rs,PenBox:Pt,PenBoxIcon:Pt,PenIcon:Rs,PenLine:_s,PenLineIcon:_s,PenOff:Wv,PenOffIcon:Wv,PenSquare:Pt,PenSquareIcon:Pt,PenTool:Zv,PenToolIcon:Zv,Pencil:Kv,PencilIcon:Kv,PencilLine:Jv,PencilLineIcon:Jv,PencilOff:Xv,PencilOffIcon:Xv,PencilRuler:Yv,PencilRulerIcon:Yv,Pentagon:Qv,PentagonIcon:Qv,Percent:e3,PercentCircle:_n,PercentCircleIcon:_n,PercentDiamond:Wn,PercentDiamondIcon:Wn,PercentIcon:e3,PercentSquare:ji,PercentSquareIcon:ji,PersonStanding:t3,PersonStandingIcon:t3,PhilippinePeso:a3,PhilippinePesoIcon:a3,Phone:xr,PhoneCall:r3,PhoneCallIcon:r3,PhoneForwarded:n3,PhoneForwardedIcon:n3,PhoneIcon:xr,PhoneIncoming:s3,PhoneIncomingIcon:s3,PhoneMissed:i3,PhoneMissedIcon:i3,PhoneOff:o3,PhoneOffIcon:o3,PhoneOutgoing:c3,PhoneOutgoingIcon:c3,Pi:l3,PiIcon:l3,PiSquare:Ci,PiSquareIcon:Ci,Piano:d3,PianoIcon:d3,Pickaxe:h3,PickaxeIcon:h3,PictureInPicture:p3,PictureInPicture2:u3,PictureInPicture2Icon:u3,PictureInPictureIcon:p3,PieChart:un,PieChartIcon:un,PiggyBank:y3,PiggyBankIcon:y3,Pilcrow:x3,PilcrowIcon:x3,PilcrowLeft:m3,PilcrowLeftIcon:m3,PilcrowRight:f3,PilcrowRightIcon:f3,PilcrowSquare:Si,PilcrowSquareIcon:Si,Pill:k3,PillBottle:g3,PillBottleIcon:g3,PillIcon:k3,Pin:w3,PinIcon:w3,PinOff:v3,PinOffIcon:v3,Pipette:b3,PipetteIcon:b3,Pizza:M3,PizzaIcon:M3,Plane:S3,PlaneIcon:S3,PlaneLanding:j3,PlaneLandingIcon:j3,PlaneTakeoff:C3,PlaneTakeoffIcon:C3,Play:Oc,PlayCircle:Rn,PlayCircleIcon:Rn,PlayIcon:Oc,PlaySquare:Li,PlaySquareIcon:Li,Plug:N3,Plug2:L3,Plug2Icon:L3,PlugIcon:N3,PlugZap:Ts,PlugZap2:Ts,PlugZap2Icon:Ts,PlugZapIcon:Ts,Plus:$o,PlusCircle:Tn,PlusCircleIcon:Tn,PlusIcon:$o,PlusSquare:Ni,PlusSquareIcon:Ni,Pocket:A3,PocketIcon:A3,PocketKnife:I3,PocketKnifeIcon:I3,Podcast:P3,PodcastIcon:P3,Pointer:R3,PointerIcon:R3,PointerOff:_3,PointerOffIcon:_3,Popcorn:T3,PopcornIcon:T3,Popsicle:q3,PopsicleIcon:q3,PoundSterling:D3,PoundSterlingIcon:D3,Power:E3,PowerCircle:qn,PowerCircleIcon:qn,PowerIcon:E3,PowerOff:z3,PowerOffIcon:z3,PowerSquare:Ii,PowerSquareIcon:Ii,Presentation:F3,PresentationIcon:F3,Printer:H3,PrinterCheck:O3,PrinterCheckIcon:O3,PrinterIcon:H3,Projector:V3,ProjectorIcon:V3,Proportions:B3,ProportionsIcon:B3,Puzzle:$3,PuzzleIcon:$3,Pyramid:U3,PyramidIcon:U3,QrCode:G3,QrCodeIcon:G3,Quote:Uo,QuoteIcon:Uo,Rabbit:W3,RabbitIcon:W3,Radar:Z3,RadarIcon:Z3,Radiation:J3,RadiationIcon:J3,Radical:X3,RadicalIcon:X3,Radio:Q3,RadioIcon:Q3,RadioReceiver:Y3,RadioReceiverIcon:Y3,RadioTower:K3,RadioTowerIcon:K3,Radius:e6,RadiusIcon:e6,RailSymbol:t6,RailSymbolIcon:t6,Rainbow:a6,RainbowIcon:a6,Rat:r6,RatIcon:r6,Ratio:n6,RatioIcon:n6,Receipt:p6,ReceiptCent:s6,ReceiptCentIcon:s6,ReceiptEuro:i6,ReceiptEuroIcon:i6,ReceiptIcon:p6,ReceiptIndianRupee:o6,ReceiptIndianRupeeIcon:o6,ReceiptJapaneseYen:c6,ReceiptJapaneseYenIcon:c6,ReceiptPoundSterling:l6,ReceiptPoundSterlingIcon:l6,ReceiptRussianRuble:d6,ReceiptRussianRubleIcon:d6,ReceiptSwissFranc:h6,ReceiptSwissFrancIcon:h6,ReceiptText:u6,ReceiptTextIcon:u6,RectangleEllipsis:qs,RectangleEllipsisIcon:qs,RectangleHorizontal:y6,RectangleHorizontalIcon:y6,RectangleVertical:m6,RectangleVerticalIcon:m6,Recycle:f6,RecycleIcon:f6,Redo:k6,Redo2:x6,Redo2Icon:x6,RedoDot:g6,RedoDotIcon:g6,RedoIcon:k6,RefreshCcw:w6,RefreshCcwDot:v6,RefreshCcwDotIcon:v6,RefreshCcwIcon:w6,RefreshCw:M6,RefreshCwIcon:M6,RefreshCwOff:b6,RefreshCwOffIcon:b6,Refrigerator:j6,RefrigeratorIcon:j6,Regex:C6,RegexIcon:C6,RemoveFormatting:S6,RemoveFormattingIcon:S6,Repeat:I6,Repeat1:L6,Repeat1Icon:L6,Repeat2:N6,Repeat2Icon:N6,RepeatIcon:I6,Replace:P6,ReplaceAll:A6,ReplaceAllIcon:A6,ReplaceIcon:P6,Reply:R6,ReplyAll:_6,ReplyAllIcon:_6,ReplyIcon:R6,Rewind:T6,RewindIcon:T6,Ribbon:q6,RibbonIcon:q6,Rocket:D6,RocketIcon:D6,RockingChair:z6,RockingChairIcon:z6,RollerCoaster:E6,RollerCoasterIcon:E6,Rotate3D:Ds,Rotate3DIcon:Ds,Rotate3d:Ds,Rotate3dIcon:Ds,RotateCcw:O6,RotateCcwIcon:O6,RotateCcwSquare:F6,RotateCcwSquareIcon:F6,RotateCw:V6,RotateCwIcon:V6,RotateCwSquare:H6,RotateCwSquareIcon:H6,Route:$6,RouteIcon:$6,RouteOff:B6,RouteOffIcon:B6,Router:U6,RouterIcon:U6,Rows:zs,Rows2:zs,Rows2Icon:zs,Rows3:Es,Rows3Icon:Es,Rows4:G6,Rows4Icon:G6,RowsIcon:zs,Rss:W6,RssIcon:W6,Ruler:Z6,RulerIcon:Z6,RussianRuble:J6,RussianRubleIcon:J6,Sailboat:X6,SailboatIcon:X6,Salad:Y6,SaladIcon:Y6,Sandwich:K6,SandwichIcon:K6,Satellite:e8,SatelliteDish:Q6,SatelliteDishIcon:Q6,SatelliteIcon:e8,Save:r8,SaveAll:t8,SaveAllIcon:t8,SaveIcon:r8,SaveOff:a8,SaveOffIcon:a8,Scale:n8,Scale3D:Fs,Scale3DIcon:Fs,Scale3d:Fs,Scale3dIcon:Fs,ScaleIcon:n8,Scaling:s8,ScalingIcon:s8,Scan:p8,ScanBarcode:i8,ScanBarcodeIcon:i8,ScanEye:o8,ScanEyeIcon:o8,ScanFace:c8,ScanFaceIcon:c8,ScanIcon:p8,ScanLine:l8,ScanLineIcon:l8,ScanQrCode:d8,ScanQrCodeIcon:d8,ScanSearch:h8,ScanSearchIcon:h8,ScanText:u8,ScanTextIcon:u8,ScatterChart:pn,ScatterChartIcon:pn,School:y8,School2:Ui,School2Icon:Ui,SchoolIcon:y8,Scissors:f8,ScissorsIcon:f8,ScissorsLineDashed:m8,ScissorsLineDashedIcon:m8,ScissorsSquare:Ai,ScissorsSquareDashedBottom:ti,ScissorsSquareDashedBottomIcon:ti,ScissorsSquareIcon:Ai,ScreenShare:g8,ScreenShareIcon:g8,ScreenShareOff:x8,ScreenShareOffIcon:x8,Scroll:v8,ScrollIcon:v8,ScrollText:k8,ScrollTextIcon:k8,Search:Ot,SearchCheck:w8,SearchCheckIcon:w8,SearchCode:b8,SearchCodeIcon:b8,SearchIcon:Ot,SearchSlash:M8,SearchSlashIcon:M8,SearchX:j8,SearchXIcon:j8,Section:C8,SectionIcon:C8,Send:Hc,SendHorizonal:Os,SendHorizonalIcon:Os,SendHorizontal:Os,SendHorizontalIcon:Os,SendIcon:Hc,SendToBack:S8,SendToBackIcon:S8,SeparatorHorizontal:L8,SeparatorHorizontalIcon:L8,SeparatorVertical:N8,SeparatorVerticalIcon:N8,Server:_8,ServerCog:I8,ServerCogIcon:I8,ServerCrash:A8,ServerCrashIcon:A8,ServerIcon:_8,ServerOff:P8,ServerOffIcon:P8,Settings:Go,Settings2:R8,Settings2Icon:R8,SettingsIcon:Go,Shapes:T8,ShapesIcon:T8,Share:q8,Share2:ho,Share2Icon:ho,ShareIcon:q8,Sheet:D8,SheetIcon:D8,Shell:z8,ShellIcon:z8,Shield:gr,ShieldAlert:E8,ShieldAlertIcon:E8,ShieldBan:F8,ShieldBanIcon:F8,ShieldCheck:Vc,ShieldCheckIcon:Vc,ShieldClose:Hs,ShieldCloseIcon:Hs,ShieldEllipsis:O8,ShieldEllipsisIcon:O8,ShieldHalf:H8,ShieldHalfIcon:H8,ShieldIcon:gr,ShieldMinus:V8,ShieldMinusIcon:V8,ShieldOff:B8,ShieldOffIcon:B8,ShieldPlus:$8,ShieldPlusIcon:$8,ShieldQuestion:U8,ShieldQuestionIcon:U8,ShieldX:Hs,ShieldXIcon:Hs,Ship:W8,ShipIcon:W8,ShipWheel:G8,ShipWheelIcon:G8,Shirt:Z8,ShirtIcon:Z8,ShoppingBag:J8,ShoppingBagIcon:J8,ShoppingBasket:X8,ShoppingBasketIcon:X8,ShoppingCart:Wo,ShoppingCartIcon:Wo,Shovel:Y8,ShovelIcon:Y8,ShowerHead:K8,ShowerHeadIcon:K8,Shrink:Q8,ShrinkIcon:Q8,Shrub:ew,ShrubIcon:ew,Shuffle:tw,ShuffleIcon:tw,Sidebar:Ns,SidebarClose:Cs,SidebarCloseIcon:Cs,SidebarIcon:Ns,SidebarOpen:Ls,SidebarOpenIcon:Ls,Sigma:aw,SigmaIcon:aw,SigmaSquare:Pi,SigmaSquareIcon:Pi,Signal:Bc,SignalHigh:rw,SignalHighIcon:rw,SignalIcon:Bc,SignalLow:nw,SignalLowIcon:nw,SignalMedium:sw,SignalMediumIcon:sw,SignalZero:iw,SignalZeroIcon:iw,Signature:ow,SignatureIcon:ow,Signpost:lw,SignpostBig:cw,SignpostBigIcon:cw,SignpostIcon:lw,Siren:dw,SirenIcon:dw,SkipBack:hw,SkipBackIcon:hw,SkipForward:uw,SkipForwardIcon:uw,Skull:pw,SkullIcon:pw,Slack:yw,SlackIcon:yw,Slash:mw,SlashIcon:mw,SlashSquare:_i,SlashSquareIcon:_i,Slice:fw,SliceIcon:fw,Sliders:Vs,SlidersHorizontal:kr,SlidersHorizontalIcon:kr,SlidersIcon:Vs,SlidersVertical:Vs,SlidersVerticalIcon:Vs,Smartphone:kw,SmartphoneCharging:xw,SmartphoneChargingIcon:xw,SmartphoneIcon:kw,SmartphoneNfc:gw,SmartphoneNfcIcon:gw,Smile:ww,SmileIcon:ww,SmilePlus:vw,SmilePlusIcon:vw,Snail:bw,SnailIcon:bw,Snowflake:Mw,SnowflakeIcon:Mw,Sofa:jw,SofaIcon:jw,SortAsc:Gr,SortAscIcon:Gr,SortDesc:Br,SortDescIcon:Br,Soup:Cw,SoupIcon:Cw,Space:Sw,SpaceIcon:Sw,Spade:Lw,SpadeIcon:Lw,Sparkle:Nw,SparkleIcon:Nw,Sparkles:ga,SparklesIcon:ga,Speaker:Iw,SpeakerIcon:Iw,Speech:Aw,SpeechIcon:Aw,SpellCheck:_w,SpellCheck2:Pw,SpellCheck2Icon:Pw,SpellCheckIcon:_w,Spline:Rw,SplineIcon:Rw,Split:Tw,SplitIcon:Tw,SplitSquareHorizontal:Ri,SplitSquareHorizontalIcon:Ri,SplitSquareVertical:Ti,SplitSquareVerticalIcon:Ti,SprayCan:qw,SprayCanIcon:qw,Sprout:Dw,SproutIcon:Dw,Square:Vw,SquareActivity:Bs,SquareActivityIcon:Bs,SquareArrowDown:Gs,SquareArrowDownIcon:Gs,SquareArrowDownLeft:$s,SquareArrowDownLeftIcon:$s,SquareArrowDownRight:Us,SquareArrowDownRightIcon:Us,SquareArrowLeft:Ea,SquareArrowLeftIcon:Ea,SquareArrowOutDownLeft:Ws,SquareArrowOutDownLeftIcon:Ws,SquareArrowOutDownRight:Zs,SquareArrowOutDownRightIcon:Zs,SquareArrowOutUpLeft:Js,SquareArrowOutUpLeftIcon:Js,SquareArrowOutUpRight:Xs,SquareArrowOutUpRightIcon:Xs,SquareArrowRight:Fa,SquareArrowRightIcon:Fa,SquareArrowUp:Qs,SquareArrowUpIcon:Qs,SquareArrowUpLeft:Ys,SquareArrowUpLeftIcon:Ys,SquareArrowUpRight:Ks,SquareArrowUpRightIcon:Ks,SquareAsterisk:ei,SquareAsteriskIcon:ei,SquareBottomDashedScissors:ti,SquareBottomDashedScissorsIcon:ti,SquareChartGantt:ma,SquareChartGanttIcon:ma,SquareCheck:ri,SquareCheckBig:ai,SquareCheckBigIcon:ai,SquareCheckIcon:ri,SquareChevronDown:ni,SquareChevronDownIcon:ni,SquareChevronLeft:si,SquareChevronLeftIcon:si,SquareChevronRight:ii,SquareChevronRightIcon:ii,SquareChevronUp:oi,SquareChevronUpIcon:oi,SquareCode:ci,SquareCodeIcon:ci,SquareDashed:hi,SquareDashedBottom:Ew,SquareDashedBottomCode:zw,SquareDashedBottomCodeIcon:zw,SquareDashedBottomIcon:Ew,SquareDashedIcon:hi,SquareDashedKanban:li,SquareDashedKanbanIcon:li,SquareDashedMousePointer:di,SquareDashedMousePointerIcon:di,SquareDivide:ui,SquareDivideIcon:ui,SquareDot:pi,SquareDotIcon:pi,SquareEqual:yi,SquareEqualIcon:yi,SquareFunction:mi,SquareFunctionIcon:mi,SquareGanttChart:ma,SquareGanttChartIcon:ma,SquareIcon:Vw,SquareKanban:fi,SquareKanbanIcon:fi,SquareLibrary:xi,SquareLibraryIcon:xi,SquareM:gi,SquareMIcon:gi,SquareMenu:ki,SquareMenuIcon:ki,SquareMinus:vi,SquareMinusIcon:vi,SquareMousePointer:wi,SquareMousePointerIcon:wi,SquareParking:Mi,SquareParkingIcon:Mi,SquareParkingOff:bi,SquareParkingOffIcon:bi,SquarePen:Pt,SquarePenIcon:Pt,SquarePercent:ji,SquarePercentIcon:ji,SquarePi:Ci,SquarePiIcon:Ci,SquarePilcrow:Si,SquarePilcrowIcon:Si,SquarePlay:Li,SquarePlayIcon:Li,SquarePlus:Ni,SquarePlusIcon:Ni,SquarePower:Ii,SquarePowerIcon:Ii,SquareRadical:Fw,SquareRadicalIcon:Fw,SquareScissors:Ai,SquareScissorsIcon:Ai,SquareSigma:Pi,SquareSigmaIcon:Pi,SquareSlash:_i,SquareSlashIcon:_i,SquareSplitHorizontal:Ri,SquareSplitHorizontalIcon:Ri,SquareSplitVertical:Ti,SquareSplitVerticalIcon:Ti,SquareSquare:Ow,SquareSquareIcon:Ow,SquareStack:Hw,SquareStackIcon:Hw,SquareTerminal:qi,SquareTerminalIcon:qi,SquareUser:zi,SquareUserIcon:zi,SquareUserRound:Di,SquareUserRoundIcon:Di,SquareX:Ei,SquareXIcon:Ei,Squircle:Bw,SquircleIcon:Bw,Squirrel:$w,SquirrelIcon:$w,Stamp:Uw,StampIcon:Uw,Star:vt,StarHalf:Gw,StarHalfIcon:Gw,StarIcon:vt,StarOff:Ww,StarOffIcon:Ww,Stars:ga,StarsIcon:ga,StepBack:Zw,StepBackIcon:Zw,StepForward:Jw,StepForwardIcon:Jw,Stethoscope:Xw,StethoscopeIcon:Xw,Sticker:Yw,StickerIcon:Yw,StickyNote:Kw,StickyNoteIcon:Kw,StopCircle:zn,StopCircleIcon:zn,Store:Qw,StoreIcon:Qw,StretchHorizontal:e7,StretchHorizontalIcon:e7,StretchVertical:t7,StretchVerticalIcon:t7,Strikethrough:a7,StrikethroughIcon:a7,Subscript:r7,SubscriptIcon:r7,Subtitles:en,SubtitlesIcon:en,Sun:c7,SunDim:n7,SunDimIcon:n7,SunIcon:c7,SunMedium:s7,SunMediumIcon:s7,SunMoon:i7,SunMoonIcon:i7,SunSnow:o7,SunSnowIcon:o7,Sunrise:l7,SunriseIcon:l7,Sunset:d7,SunsetIcon:d7,Superscript:h7,SuperscriptIcon:h7,SwatchBook:u7,SwatchBookIcon:u7,SwissFranc:p7,SwissFrancIcon:p7,SwitchCamera:y7,SwitchCameraIcon:y7,Sword:m7,SwordIcon:m7,Swords:f7,SwordsIcon:f7,Syringe:x7,SyringeIcon:x7,Table:C7,Table2:g7,Table2Icon:g7,TableCellsMerge:k7,TableCellsMergeIcon:k7,TableCellsSplit:v7,TableCellsSplitIcon:v7,TableColumnsSplit:w7,TableColumnsSplitIcon:w7,TableIcon:C7,TableOfContents:b7,TableOfContentsIcon:b7,TableProperties:M7,TablePropertiesIcon:M7,TableRowsSplit:j7,TableRowsSplitIcon:j7,Tablet:L7,TabletIcon:L7,TabletSmartphone:S7,TabletSmartphoneIcon:S7,Tablets:N7,TabletsIcon:N7,Tag:$c,TagIcon:$c,Tags:I7,TagsIcon:I7,Tally1:A7,Tally1Icon:A7,Tally2:P7,Tally2Icon:P7,Tally3:_7,Tally3Icon:_7,Tally4:R7,Tally4Icon:R7,Tally5:T7,Tally5Icon:T7,Tangent:q7,TangentIcon:q7,Target:D7,TargetIcon:D7,Telescope:z7,TelescopeIcon:z7,Tent:F7,TentIcon:F7,TentTree:E7,TentTreeIcon:E7,Terminal:O7,TerminalIcon:O7,TerminalSquare:qi,TerminalSquareIcon:qi,TestTube:H7,TestTube2:Fi,TestTube2Icon:Fi,TestTubeDiagonal:Fi,TestTubeDiagonalIcon:Fi,TestTubeIcon:H7,TestTubes:V7,TestTubesIcon:V7,Text:W7,TextCursor:$7,TextCursorIcon:$7,TextCursorInput:B7,TextCursorInputIcon:B7,TextIcon:W7,TextQuote:U7,TextQuoteIcon:U7,TextSearch:G7,TextSearchIcon:G7,TextSelect:Oi,TextSelectIcon:Oi,TextSelection:Oi,TextSelectionIcon:Oi,Theater:Z7,TheaterIcon:Z7,Thermometer:Y7,ThermometerIcon:Y7,ThermometerSnowflake:J7,ThermometerSnowflakeIcon:J7,ThermometerSun:X7,ThermometerSunIcon:X7,ThumbsDown:K7,ThumbsDownIcon:K7,ThumbsUp:Q7,ThumbsUpIcon:Q7,Ticket:ib,TicketCheck:eb,TicketCheckIcon:eb,TicketIcon:ib,TicketMinus:tb,TicketMinusIcon:tb,TicketPercent:ab,TicketPercentIcon:ab,TicketPlus:rb,TicketPlusIcon:rb,TicketSlash:nb,TicketSlashIcon:nb,TicketX:sb,TicketXIcon:sb,Tickets:cb,TicketsIcon:cb,TicketsPlane:ob,TicketsPlaneIcon:ob,Timer:hb,TimerIcon:hb,TimerOff:lb,TimerOffIcon:lb,TimerReset:db,TimerResetIcon:db,ToggleLeft:ub,ToggleLeftIcon:ub,ToggleRight:pb,ToggleRightIcon:pb,Tornado:yb,TornadoIcon:yb,Torus:mb,TorusIcon:mb,Touchpad:xb,TouchpadIcon:xb,TouchpadOff:fb,TouchpadOffIcon:fb,TowerControl:gb,TowerControlIcon:gb,ToyBrick:kb,ToyBrickIcon:kb,Tractor:vb,TractorIcon:vb,TrafficCone:wb,TrafficConeIcon:wb,Train:Hi,TrainFront:Mb,TrainFrontIcon:Mb,TrainFrontTunnel:bb,TrainFrontTunnelIcon:bb,TrainIcon:Hi,TrainTrack:jb,TrainTrackIcon:jb,TramFront:Hi,TramFrontIcon:Hi,Trash:Cb,Trash2:Zo,Trash2Icon:Zo,TrashIcon:Cb,TreeDeciduous:Sb,TreeDeciduousIcon:Sb,TreePalm:Vi,TreePalmIcon:Vi,TreePine:Lb,TreePineIcon:Lb,Trees:Nb,TreesIcon:Nb,Trello:Ib,TrelloIcon:Ib,TrendingDown:Ab,TrendingDownIcon:Ab,TrendingUp:ja,TrendingUpDown:Pb,TrendingUpDownIcon:Pb,TrendingUpIcon:ja,Triangle:Rb,TriangleAlert:Bi,TriangleAlertIcon:Bi,TriangleIcon:Rb,TriangleRight:_b,TriangleRightIcon:_b,Trophy:Tb,TrophyIcon:Tb,Truck:qb,TruckIcon:qb,Turtle:Db,TurtleIcon:Db,Tv:Eb,Tv2:$i,Tv2Icon:$i,TvIcon:Eb,TvMinimal:$i,TvMinimalIcon:$i,TvMinimalPlay:zb,TvMinimalPlayIcon:zb,Twitch:Fb,TwitchIcon:Fb,Twitter:Ob,TwitterIcon:Ob,Type:Vb,TypeIcon:Vb,TypeOutline:Hb,TypeOutlineIcon:Hb,Umbrella:$b,UmbrellaIcon:$b,UmbrellaOff:Bb,UmbrellaOffIcon:Bb,Underline:Ub,UnderlineIcon:Ub,Undo:Zb,Undo2:Gb,Undo2Icon:Gb,UndoDot:Wb,UndoDotIcon:Wb,UndoIcon:Zb,UnfoldHorizontal:Jb,UnfoldHorizontalIcon:Jb,UnfoldVertical:Xb,UnfoldVerticalIcon:Xb,Ungroup:Yb,UngroupIcon:Yb,University:Ui,UniversityIcon:Ui,Unlink:Qb,Unlink2:Kb,Unlink2Icon:Kb,UnlinkIcon:Qb,Unlock:xs,UnlockIcon:xs,UnlockKeyhole:fs,UnlockKeyholeIcon:fs,Unplug:eM,UnplugIcon:eM,Upload:Uc,UploadCloud:or,UploadCloudIcon:or,UploadIcon:Uc,Usb:tM,UsbIcon:tM,User:Jo,User2:Yi,User2Icon:Yi,UserCheck:Gc,UserCheck2:Gi,UserCheck2Icon:Gi,UserCheckIcon:Gc,UserCircle:Fn,UserCircle2:En,UserCircle2Icon:En,UserCircleIcon:Fn,UserCog:aM,UserCog2:Wi,UserCog2Icon:Wi,UserCogIcon:aM,UserIcon:Jo,UserMinus:rM,UserMinus2:Zi,UserMinus2Icon:Zi,UserMinusIcon:rM,UserPen:nM,UserPenIcon:nM,UserPlus:sM,UserPlus2:Ji,UserPlus2Icon:Ji,UserPlusIcon:sM,UserRound:Yi,UserRoundCheck:Gi,UserRoundCheckIcon:Gi,UserRoundCog:Wi,UserRoundCogIcon:Wi,UserRoundIcon:Yi,UserRoundMinus:Zi,UserRoundMinusIcon:Zi,UserRoundPen:iM,UserRoundPenIcon:iM,UserRoundPlus:Ji,UserRoundPlusIcon:Ji,UserRoundSearch:oM,UserRoundSearchIcon:oM,UserRoundX:Xi,UserRoundXIcon:Xi,UserSearch:cM,UserSearchIcon:cM,UserSquare:zi,UserSquare2:Di,UserSquare2Icon:Di,UserSquareIcon:zi,UserX:lM,UserX2:Xi,UserX2Icon:Xi,UserXIcon:lM,Users:jt,Users2:Ki,Users2Icon:Ki,UsersIcon:jt,UsersRound:Ki,UsersRoundIcon:Ki,Utensils:eo,UtensilsCrossed:Qi,UtensilsCrossedIcon:Qi,UtensilsIcon:eo,UtilityPole:dM,UtilityPoleIcon:dM,Variable:hM,VariableIcon:hM,Vault:uM,VaultIcon:uM,Vegan:pM,VeganIcon:pM,VenetianMask:yM,VenetianMaskIcon:yM,Verified:Jr,VerifiedIcon:Jr,Vibrate:fM,VibrateIcon:fM,VibrateOff:mM,VibrateOffIcon:mM,Video:gM,VideoIcon:gM,VideoOff:xM,VideoOffIcon:xM,Videotape:kM,VideotapeIcon:kM,View:vM,ViewIcon:vM,Voicemail:wM,VoicemailIcon:wM,Volleyball:bM,VolleyballIcon:bM,Volume:LM,Volume1:MM,Volume1Icon:MM,Volume2:jM,Volume2Icon:jM,VolumeIcon:LM,VolumeOff:CM,VolumeOffIcon:CM,VolumeX:SM,VolumeXIcon:SM,Vote:NM,VoteIcon:NM,Wallet:AM,Wallet2:to,Wallet2Icon:to,WalletCards:IM,WalletCardsIcon:IM,WalletIcon:AM,WalletMinimal:to,WalletMinimalIcon:to,Wallpaper:PM,WallpaperIcon:PM,Wand:_M,Wand2:ao,Wand2Icon:ao,WandIcon:_M,WandSparkles:ao,WandSparklesIcon:ao,Warehouse:RM,WarehouseIcon:RM,WashingMachine:TM,WashingMachineIcon:TM,Watch:qM,WatchIcon:qM,Waves:DM,WavesIcon:DM,Waypoints:zM,WaypointsIcon:zM,Webcam:EM,WebcamIcon:EM,Webhook:OM,WebhookIcon:OM,WebhookOff:FM,WebhookOffIcon:FM,Weight:HM,WeightIcon:HM,Wheat:BM,WheatIcon:BM,WheatOff:VM,WheatOffIcon:VM,WholeWord:$M,WholeWordIcon:$M,Wifi:JM,WifiHigh:UM,WifiHighIcon:UM,WifiIcon:JM,WifiLow:GM,WifiLowIcon:GM,WifiOff:WM,WifiOffIcon:WM,WifiZero:ZM,WifiZeroIcon:ZM,Wind:XM,WindIcon:XM,Wine:KM,WineIcon:KM,WineOff:YM,WineOffIcon:YM,Workflow:QM,WorkflowIcon:QM,Worm:e9,WormIcon:e9,WrapText:t9,WrapTextIcon:t9,Wrench:a9,WrenchIcon:a9,X:wt,XCircle:xa,XCircleIcon:xa,XIcon:wt,XOctagon:bs,XOctagonIcon:bs,XSquare:Ei,XSquareIcon:Ei,Youtube:r9,YoutubeIcon:r9,Zap:Wc,ZapIcon:Wc,ZapOff:n9,ZapOffIcon:n9,ZoomIn:s9,ZoomInIcon:s9,ZoomOut:i9,ZoomOutIcon:i9,createLucideIcon:o,icons:fq},Symbol.toStringTag,{value:"Module"})),gq=({availableTags:t,selectedTagIds:a,onTagSelect:r,onTagDeselect:n,onCreateTag:s,maxTags:i=10,placeholder:c="Add tags..."})=>{const[l,d]=M.useState(!1),[h,u]=M.useState(""),[p,m]=M.useState("#3B82F6"),[y,x]=M.useState(""),[f,v]=M.useState(-1),k=M.useMemo(()=>t.filter(j=>j.name.toLowerCase().includes(y.toLowerCase())),[t,y]),w=M.useMemo(()=>t.filter(j=>a.includes(j.id)),[t,a]),b=M.useMemo(()=>k.filter(j=>!a.includes(j.id)),[k,a]),S=y.trim().length>0&&!t.some(j=>j.name.toLowerCase()===y.trim().toLowerCase()),C=b.length+(S?1:0),A=async()=>{const j=h.trim();if(j)try{await s({name:j,color:p}),u(""),d(!1)}catch(N){console.error("Failed to create tag:",N)}},L=j=>{if(C)switch(j.key){case"ArrowDown":{j.preventDefault(),v(N=>(N+1)%C);break}case"ArrowUp":{j.preventDefault(),v(N=>(N-1+C)%C);break}case"Enter":{if(f===-1)return;if(j.preventDefault(),f<b.length){const N=b[f];r(N.id),x(""),v(-1)}else S&&(d(!0),u(y.trim()),x(""),v(-1));break}case"Escape":{x(""),v(-1);break}}};return e.jsxs("div",{className:"tag-picker",children:[e.jsx("div",{className:"selected-tags flex flex-wrap gap-2 mb-2",children:w.map(j=>e.jsxs("span",{className:"inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm border",style:{backgroundColor:`${j.color}20`,color:j.color,borderColor:j.color},children:[j.name,e.jsx("button",{type:"button",onClick:()=>n(j.id),className:"hover:opacity-70","aria-label":`Remove ${j.name}`,children:e.jsx(wt,{className:"w-3 h-3"})})]},j.id))}),a.length<i&&e.jsxs("div",{className:"tag-selector relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx($c,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),e.jsx("input",{type:"text",value:y,onChange:j=>{x(j.target.value),v(-1)},onKeyDown:L,placeholder:c,className:"w-full border rounded px-9 py-2","aria-haspopup":"listbox","aria-expanded":y.length>0})]}),y&&e.jsxs("div",{role:"listbox",className:"absolute z-10 w-full mt-1 bg-white border rounded shadow-lg max-h-48 overflow-y-auto",children:[b.map((j,N)=>e.jsxs("button",{type:"button",role:"option","aria-selected":f===N,onClick:()=>{r(j.id),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 flex items-center gap-2 ${f===N?"bg-gray-100":""}`,children:[e.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:j.color}}),e.jsx("span",{children:j.name}),j.category&&e.jsxs("span",{className:"text-xs text-gray-500",children:["(",j.category,")"]})]},j.id)),S&&e.jsxs("button",{type:"button",role:"option","aria-selected":f===b.length,onClick:()=>{d(!0),u(y.trim()),x(""),v(-1)},className:`w-full px-3 py-2 text-left hover:bg-gray-100 text-blue-600 flex items-center gap-2 ${f===b.length?"bg-gray-100":""}`,children:[e.jsx($o,{className:"w-4 h-4"}),'Create "',y.trim(),'"']}),!b.length&&!S&&e.jsx("div",{className:"px-3 py-2 text-sm text-gray-500",children:"No tags found."})]})]}),l&&e.jsxs("div",{className:"create-tag-form mt-2 p-3 border rounded",children:[e.jsx("input",{type:"text",value:h,onChange:j=>u(j.target.value),placeholder:"Tag name",className:"w-full border rounded px-3 py-2 mb-2"}),e.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-600",children:["Color",e.jsx("input",{type:"color",value:p,onChange:j=>m(j.target.value),className:"w-12 h-8 rounded","aria-label":"Pick tag color"})]}),e.jsx("button",{type:"button",onClick:A,onKeyDown:j=>{j.key==="Enter"&&(j.preventDefault(),A())},className:"flex-1 bg-blue-600 text-white px-3 py-2 rounded hover:bg-blue-700",children:"Create"}),e.jsx("button",{type:"button",onClick:()=>{d(!1),u("")},className:"px-3 py-2 border rounded hover:bg-gray-100",children:"Cancel"})]})]})]})},kq={sm:"px-2 py-0.5 text-xs",md:"px-3 py-1 text-sm",lg:"px-4 py-1.5 text-base"},AC=({name:t,color:a,size:r="md",removable:n=!1,onRemove:s,onClick:i,href:c,className:l})=>{const d=!!(i||c),h=p=>{!i||c||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),i())},u=c?"a":"span";return e.jsxs(u,{className:`inline-flex items-center gap-1 rounded-full font-medium border transition-opacity ${kq[r]} ${d?"cursor-pointer hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2":""} ${l??""}`,style:{backgroundColor:`${a}20`,color:a,borderColor:a},onClick:i,onKeyDown:h,role:!c&&i?"button":void 0,tabIndex:!c&&i?0:void 0,href:c,children:[t,n&&s&&e.jsx("button",{type:"button",onClick:p=>{p.stopPropagation(),s()},className:"hover:opacity-70 ml-1","aria-label":`Remove ${t} tag`,children:e.jsx(wt,{className:"w-3 h-3"})})]})};function Ba(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function vq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,wq(s,...a)]}function wq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function bq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];function h(p){const{scope:m,children:y,...x}=p,f=(m==null?void 0:m[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})}function u(p,m){const y=(m==null?void 0:m[t][d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,Mq(s,...a)]}function Mq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function jq(t,a){typeof t=="function"?t(a):t!=null&&(t.current=a)}function PC(...t){return a=>t.forEach(r=>jq(r,a))}function f9(...t){return g.useCallback(PC(...t),t)}var Uj=g.forwardRef((t,a)=>{const{children:r,...n}=t,s=g.Children.toArray(r),i=s.find(Sq);if(i){const c=i.props.children,l=s.map(d=>d===i?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return e.jsx(Gj,{...n,ref:a,children:g.isValidElement(c)?g.cloneElement(c,void 0,l):null})}return e.jsx(Gj,{...n,ref:a,children:r})});Uj.displayName="Slot";var Gj=g.forwardRef((t,a)=>{const{children:r,...n}=t;if(g.isValidElement(r)){const s=Nq(r);return g.cloneElement(r,{...Lq(n,r.props),ref:a?PC(a,s):s})}return g.Children.count(r)>1?g.Children.only(null):null});Gj.displayName="SlotClone";var Cq=({children:t})=>e.jsx(e.Fragment,{children:t});function Sq(t){return g.isValidElement(t)&&t.type===Cq}function Lq(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{i(...l),s(...l)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function Nq(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Iq(t){const a=t+"CollectionProvider",[r,n]=bq(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=y=>{const{scope:x,children:f}=y,v=M.useRef(null),k=M.useRef(new Map).current;return e.jsx(s,{scope:x,itemMap:k,collectionRef:v,children:f})};c.displayName=a;const l=t+"CollectionSlot",d=M.forwardRef((y,x)=>{const{scope:f,children:v}=y,k=i(l,f),w=f9(x,k.collectionRef);return e.jsx(Uj,{ref:w,children:v})});d.displayName=l;const h=t+"CollectionItemSlot",u="data-radix-collection-item",p=M.forwardRef((y,x)=>{const{scope:f,children:v,...k}=y,w=M.useRef(null),b=f9(x,w),S=i(h,f);return M.useEffect(()=>(S.itemMap.set(w,{ref:w,...k}),()=>void S.itemMap.delete(w))),e.jsx(Uj,{[u]:"",ref:b,children:v})});p.displayName=h;function m(y){const x=i(t+"CollectionConsumer",y);return M.useCallback(()=>{const v=x.collectionRef.current;if(!v)return[];const k=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((S,C)=>k.indexOf(S.ref.current)-k.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:c,Slot:d,ItemSlot:p},m,n]}function Aq(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];function h(p){const{scope:m,children:y,...x}=p,f=(m==null?void 0:m[t][d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})}function u(p,m){const y=(m==null?void 0:m[t][d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return h.displayName=i+"Provider",[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,Pq(s,...a)]}function Pq(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var Wj=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},_q=g.useId||(()=>{}),Rq=0;function qN(t){const[a,r]=g.useState(_q());return Wj(()=>{t||r(n=>n??String(Rq++))},[t]),t||(a?`radix-${a}`:"")}var DN=g.forwardRef((t,a)=>{const{children:r,...n}=t,s=g.Children.toArray(r),i=s.find(qq);if(i){const c=i.props.children,l=s.map(d=>d===i?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return e.jsx(Zj,{...n,ref:a,children:g.isValidElement(c)?g.cloneElement(c,void 0,l):null})}return e.jsx(Zj,{...n,ref:a,children:r})});DN.displayName="Slot";var Zj=g.forwardRef((t,a)=>{const{children:r,...n}=t;if(g.isValidElement(r)){const s=zq(r);return g.cloneElement(r,{...Dq(n,r.props),ref:a?PC(a,s):s})}return g.Children.count(r)>1?g.Children.only(null):null});Zj.displayName="SlotClone";var Tq=({children:t})=>e.jsx(e.Fragment,{children:t});function qq(t){return g.isValidElement(t)&&t.type===Tq}function Dq(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{i(...l),s(...l)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function zq(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],So=Eq.reduce((t,a)=>{const r=g.forwardRef((n,s)=>{const{asChild:i,...c}=n,l=i?DN:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(l,{...c,ref:s})});return r.displayName=`Primitive.${a}`,{...t,[a]:r}},{});function _C(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function zN({prop:t,defaultProp:a,onChange:r=()=>{}}){const[n,s]=Fq({defaultProp:a,onChange:r}),i=t!==void 0,c=i?t:n,l=_C(r),d=g.useCallback(h=>{if(i){const p=typeof h=="function"?h(t):h;p!==t&&l(p)}else s(h)},[i,t,s,l]);return[c,d]}function Fq({defaultProp:t,onChange:a}){const r=g.useState(t),[n]=r,s=g.useRef(n),i=_C(a);return g.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}var Oq=g.createContext(void 0);function EN(t){const a=g.useContext(Oq);return t||a||"ltr"}var yj="rovingFocusGroup.onEntryFocus",Hq={bubbles:!1,cancelable:!0},z9="RovingFocusGroup",[Jj,FN,Vq]=Iq(z9),[Bq,ON]=Aq(z9,[Vq]),[$q,Uq]=Bq(z9),HN=g.forwardRef((t,a)=>e.jsx(Jj.Provider,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Jj.Slot,{scope:t.__scopeRovingFocusGroup,children:e.jsx(Gq,{...t,ref:a})})}));HN.displayName=z9;var Gq=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:u=!1,...p}=t,m=g.useRef(null),y=f9(a,m),x=EN(i),[f=null,v]=zN({prop:c,defaultProp:l,onChange:d}),[k,w]=g.useState(!1),b=_C(h),S=FN(r),C=g.useRef(!1),[A,L]=g.useState(0);return g.useEffect(()=>{const j=m.current;if(j)return j.addEventListener(yj,b),()=>j.removeEventListener(yj,b)},[b]),e.jsx($q,{scope:r,orientation:n,dir:x,loop:s,currentTabStopId:f,onItemFocus:g.useCallback(j=>v(j),[v]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>L(j=>j+1),[]),onFocusableItemRemove:g.useCallback(()=>L(j=>j-1),[]),children:e.jsx(So.div,{tabIndex:k||A===0?-1:0,"data-orientation":n,...p,ref:y,style:{outline:"none",...t.style},onMouseDown:Ba(t.onMouseDown,()=>{C.current=!0}),onFocus:Ba(t.onFocus,j=>{const N=!C.current;if(j.target===j.currentTarget&&N&&!k){const q=new CustomEvent(yj,Hq);if(j.currentTarget.dispatchEvent(q),!q.defaultPrevented){const P=S().filter(B=>B.focusable),T=P.find(B=>B.active),R=P.find(B=>B.id===f),$=[T,R,...P].filter(Boolean).map(B=>B.ref.current);$N($,u)}}C.current=!1}),onBlur:Ba(t.onBlur,()=>w(!1))})})}),VN="RovingFocusGroupItem",BN=g.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...c}=t,l=qN(),d=i||l,h=Uq(VN,r),u=h.currentTabStopId===d,p=FN(r),{onFocusableItemAdd:m,onFocusableItemRemove:y}=h;return g.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),e.jsx(Jj.ItemSlot,{scope:r,id:d,focusable:n,active:s,children:e.jsx(So.span,{tabIndex:u?0:-1,"data-orientation":h.orientation,...c,ref:a,onMouseDown:Ba(t.onMouseDown,x=>{n?h.onItemFocus(d):x.preventDefault()}),onFocus:Ba(t.onFocus,()=>h.onItemFocus(d)),onKeyDown:Ba(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){h.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const f=Jq(x,h.orientation,h.dir);if(f!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let k=p().filter(w=>w.focusable).map(w=>w.ref.current);if(f==="last")k.reverse();else if(f==="prev"||f==="next"){f==="prev"&&k.reverse();const w=k.indexOf(x.currentTarget);k=h.loop?Xq(k,w+1):k.slice(w+1)}setTimeout(()=>$N(k))}})})})});BN.displayName=VN;var Wq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Zq(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Jq(t,a,r){const n=Zq(t.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Wq[n]}function $N(t,a=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:a}),document.activeElement!==r))return}function Xq(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var Yq=HN,Kq=BN;function Qq(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var UN=t=>{const{present:a,children:r}=t,n=eD(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=f9(n.ref,tD(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};UN.displayName="Presence";function eD(t){const[a,r]=g.useState(),n=g.useRef({}),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=Qq(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=gl(n.current);i.current=l==="mounted"?h:"none"},[l]),Wj(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=gl(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),Wj(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=gl(n.current).includes(y.animationName);if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=gl(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{h&&(n.current=getComputedStyle(h)),r(h)},[])}}function gl(t){return(t==null?void 0:t.animationName)||"none"}function tD(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var RC="Tabs",[aD,XG]=vq(RC,[ON]),GN=ON(),[rD,TC]=aD(RC),WN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:c="horizontal",dir:l,activationMode:d="automatic",...h}=t,u=EN(l),[p,m]=zN({prop:n,onChange:s,defaultProp:i});return e.jsx(rD,{scope:r,baseId:qN(),value:p,onValueChange:m,orientation:c,dir:u,activationMode:d,children:e.jsx(So.div,{dir:u,"data-orientation":c,...h,ref:a})})});WN.displayName=RC;var ZN="TabsList",JN=g.forwardRef((t,a)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=TC(ZN,r),c=GN(r);return e.jsx(Yq,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:n,children:e.jsx(So.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:a})})});JN.displayName=ZN;var XN="TabsTrigger",YN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,c=TC(XN,r),l=GN(r),d=eI(c.baseId,n),h=tI(c.baseId,n),u=n===c.value;return e.jsx(Kq,{asChild:!0,...l,focusable:!s,active:u,children:e.jsx(So.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":h,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...i,ref:a,onMouseDown:Ba(t.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?c.onValueChange(n):p.preventDefault()}),onKeyDown:Ba(t.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&c.onValueChange(n)}),onFocus:Ba(t.onFocus,()=>{const p=c.activationMode!=="manual";!u&&!s&&p&&c.onValueChange(n)})})})});YN.displayName=XN;var KN="TabsContent",QN=g.forwardRef((t,a)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...c}=t,l=TC(KN,r),d=eI(l.baseId,n),h=tI(l.baseId,n),u=n===l.value,p=g.useRef(u);return g.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),e.jsx(UN,{present:s||u,children:({present:m})=>e.jsx(So.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!m,id:h,tabIndex:0,...c,ref:a,style:{...t.style,animationDuration:p.current?"0s":void 0},children:m&&i})})});QN.displayName=KN;function eI(t,a){return`${t}-trigger-${a}`}function tI(t,a){return`${t}-content-${a}`}var nD=WN,aI=JN,rI=YN,nI=QN;const Ir=nD,Za=g.forwardRef(({className:t,...a},r)=>e.jsx(aI,{ref:r,className:ue("inline-flex items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...a}));Za.displayName=aI.displayName;const Ce=g.forwardRef(({className:t,...a},r)=>e.jsx(rI,{ref:r,className:ue("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...a}));Ce.displayName=rI.displayName;const Se=g.forwardRef(({className:t,...a},r)=>e.jsx(nI,{ref:r,className:ue("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a}));Se.displayName=nI.displayName;const re=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("rounded-xl border bg-card text-card-foreground shadow",t),...a}));re.displayName="Card";const ye=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("flex flex-col space-y-1.5 p-6",t),...a}));ye.displayName="CardHeader";const ge=g.forwardRef(({className:t,...a},r)=>e.jsx("h3",{ref:r,className:ue("font-semibold leading-none tracking-tight",t),...a}));ge.displayName="CardTitle";const Ue=g.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));Ue.displayName="CardDescription";const oe=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("p-6 pt-0",t),...a}));oe.displayName="CardContent";const xo=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("flex items-center p-6 pt-0",t),...a}));xo.displayName="CardFooter";function sD({groupedIds:t,tabTitles:a,lang:r,url:n,PromotionsTitle:s,buttonMsg:i="Select Plan"}){const[c,l]=M.useState([]),[d,h]=M.useState("tab-0"),u=n||window.location.origin||"http://localhost:8000";M.useEffect(()=>{(async()=>{try{const x=r??"en",f=t.map(async k=>(await fetch(`${u}/api/v1/promotions/?ids=${k}`,{method:"GET",headers:{"Accept-Language":x,"Content-Type":"application/json"}})).json()),v=await Promise.all(f);l(v)}catch{}})()},[t,u,r]);const p=y=>{const x=new CustomEvent("planSelected",{bubbles:!0,detail:{plan:y,tabType:d,timestamp:new Date().toISOString()}}),f=document.querySelector(".group-prices-component");f&&f.dispatchEvent(x)},m=`grid sm:grid-cols-2 lg:grid-cols-${a.length} mb-8`;return e.jsx("section",{id:"pricing",className:"w-full py-12 md:py-24 lg:py-32",children:e.jsxs("div",{className:"container px-4 md:px-6",children:[s??e.jsx("h2",{className:"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl text-center mb-8",children:s}),e.jsxs(Ir,{defaultValue:"tab-0",className:"w-full",onValueChange:y=>h(y),children:[e.jsx(Za,{className:m,children:a.map((y,x)=>e.jsx(Ce,{value:`tab-${x}`,children:y},x))}),c.map((y,x)=>e.jsx(Se,{value:`tab-${x}`,children:e.jsx("div",{className:"grid gap-8 sm:grid-cols-2 lg:grid-cols-3",children:y.map((f,v)=>e.jsxs(re,{className:"flex flex-col",children:[e.jsxs(ye,{children:[e.jsx(ge,{children:f.title}),e.jsx(Ue,{children:f.short_description})]}),e.jsxs(oe,{className:"flex-1",children:[e.jsxs("p",{className:"text-3xl font-bold",children:["€",f.price]}),e.jsx("ul",{className:"mt-4 space-y-2",children:f.features&&f.features.map((k,w)=>e.jsxs("li",{className:"flex items-center",children:[e.jsx(Eo,{className:"mr-2 h-4 w-4 text-primary"})," ",k]},w))})]}),e.jsx(xo,{children:e.jsx(D,{onClick:()=>p(f),className:"w-full bg-primary text-primary-foreground hover:bg-primary/90",children:i})})]},v))})},x))]})]})})}function iD({isOpen:t,items:a}){const r=a.reduce((n,s)=>n+s.price,0);return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:ue("fixed inset-y-0 right-0 w-80 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-30",t?"translate-x-0":"translate-x-full"),children:e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"p-4 border-b flex items-center justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Summary"}),e.jsxs("button",{onClick:()=>{const n=document.querySelector('.sliding-summary-component[data-open="true"]');n&&n.setAttribute("data-open","false")},className:"hover:bg-gray-100 rounded p-2",children:[e.jsx(wt,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close panel"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:a.map(n=>e.jsxs("div",{className:"mb-4 p-3 border rounded-lg",children:[e.jsxs("div",{className:"flex justify-between items-start mb-1",children:[e.jsx("span",{className:"font-medium",children:n.name}),e.jsxs("span",{className:"text-sm",children:["$",n.price.toFixed(2)]})]}),e.jsx("p",{className:"text-sm text-gray-600",children:n.description})]},n.id))}),e.jsx("div",{className:"p-4 border-t",children:e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"font-semibold",children:"Total:"}),e.jsxs("span",{className:"font-semibold",children:["$",r.toFixed(2)]})]})})]})}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/20 z-20",onClick:()=>{const n=document.querySelector('.sliding-summary-component[data-open="true"]');n&&n.setAttribute("data-open","false")}})]})}function Da(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sI(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a}/*!
|
|
7726
7726
|
* GSAP 3.12.5
|
|
7727
7727
|
* https://gsap.com
|
|
7728
7728
|
*
|
|
@@ -7730,7 +7730,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7730
7730
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7731
7731
|
* Club GSAP members, the agreement issued with that membership.
|
|
7732
7732
|
* @author: Jack Doyle, jack@greensock.com
|
|
7733
|
-
*/var Ht={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ac={duration:.5,overwrite:!1,delay:0},qC,yt,Ve,Xt=1e8,Fe=1/Xt,Xj=Math.PI*2,oD=Xj/4,cD=0,iI=Math.sqrt,lD=Math.cos,dD=Math.sin,ot=function(a){return typeof a=="string"},Je=function(a){return typeof a=="function"},$a=function(a){return typeof a=="number"},DC=function(a){return typeof a>"u"},La=function(a){return typeof a=="object"},Ct=function(a){return a!==!1},zC=function(){return typeof window<"u"},kl=function(a){return Je(a)||ot(a)},oI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},mt=Array.isArray,Yj=/(?:-?\.?\d|\.)+/gi,cI=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_o=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,mj=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,lI=/[+-]=-?[.\d]+/,dI=/[^,'"\[\]\s]+/gi,hD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,$e,fa,Kj,EC,Bt={},x9={},hI,uI=function(a){return(x9=go(a,Bt))&&It},FC=function(a,r){return console.warn("Invalid property",a,"set to",r,"Missing plugin? gsap.registerPlugin()")},el=function(a,r){return!r&&console.warn(a)},pI=function(a,r){return a&&(Bt[a]=r)&&x9&&(x9[a]=r)||Bt},tl=function(){return 0},uD={suppressEvents:!0,isStart:!0,kill:!1},o9={suppressEvents:!0,kill:!1},pD={suppressEvents:!0},OC={},vr=[],Qj={},yI,Rt={},fj={},tL=30,c9=[],HC="",VC=function(a){var r=a[0],n,s;if(La(r)||Je(r)||(a=[a]),!(n=(r._gsap||{}).harness)){for(s=c9.length;s--&&!c9[s].targetTest(r););n=c9[s]}for(s=a.length;s--;)a[s]&&(a[s]._gsap||(a[s]._gsap=new EI(a[s],n)))||a.splice(s,1);return a},uo=function(a){return a._gsap||VC(Yt(a))[0]._gsap},mI=function(a,r,n){return(n=a[r])&&Je(n)?a[r]():DC(n)&&a.getAttribute&&a.getAttribute(r)||n},St=function(a,r){return(a=a.split(",")).forEach(r)||a},Ke=function(a){return Math.round(a*1e5)/1e5||0},st=function(a){return Math.round(a*1e7)/1e7||0},Xo=function(a,r){var n=r.charAt(0),s=parseFloat(r.substr(2));return a=parseFloat(a),n==="+"?a+s:n==="-"?a-s:n==="*"?a*s:a/s},yD=function(a,r){for(var n=r.length,s=0;a.indexOf(r[s])<0&&++s<n;);return s<n},g9=function(){var a=vr.length,r=vr.slice(0),n,s;for(Qj={},vr.length=0,n=0;n<a;n++)s=r[n],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},fI=function(a,r,n,s){vr.length&&!yt&&g9(),a.render(r,n,yt&&r<0&&(a._initted||a._startAt)),vr.length&&!yt&&g9()},xI=function(a){var r=parseFloat(a);return(r||r===0)&&(a+"").match(dI).length<2?r:ot(a)?a.trim():a},gI=function(a){return a},ra=function(a,r){for(var n in r)n in a||(a[n]=r[n]);return a},mD=function(a){return function(r,n){for(var s in n)s in r||s==="duration"&&a||s==="ease"||(r[s]=n[s])}},go=function(a,r){for(var n in r)a[n]=r[n];return a},aL=function t(a,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(a[n]=La(r[n])?t(a[n]||(a[n]={}),r[n]):r[n]);return a},k9=function(a,r){var n={},s;for(s in a)s in r||(n[s]=a[s]);return n},Zc=function(a){var r=a.parent||$e,n=a.keyframes?mD(mt(a.keyframes)):ra;if(Ct(a.inherit))for(;r;)n(a,r.vars.defaults),r=r.parent||r._dp;return a},fD=function(a,r){for(var n=a.length,s=n===r.length;s&&n--&&a[n]===r[n];);return n<0},kI=function(a,r,n,s,i){var c=a[s],l;if(i)for(l=r[i];c&&c[i]>l;)c=c._prev;return c?(r._next=c._next,c._next=r):(r._next=a[n],a[n]=r),r._next?r._next._prev=r:a[s]=r,r._prev=c,r.parent=r._dp=a,r},E9=function(a,r,n,s){n===void 0&&(n="_first"),s===void 0&&(s="_last");var i=r._prev,c=r._next;i?i._next=c:a[n]===r&&(a[n]=c),c?c._prev=i:a[s]===r&&(a[s]=i),r._next=r._prev=r.parent=null},Mr=function(a,r){a.parent&&(!r||a.parent.autoRemoveChildren)&&a.parent.remove&&a.parent.remove(a),a._act=0},po=function(a,r){if(a&&(!r||r._end>a._dur||r._start<0))for(var n=a;n;)n._dirty=1,n=n.parent;return a},xD=function(a){for(var r=a.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return a},eC=function(a,r,n,s){return a._startAt&&(yt?a._startAt.revert(o9):a.vars.immediateRender&&!a.vars.autoRevert||a._startAt.render(r,!0,s))},gD=function t(a){return!a||a._ts&&t(a.parent)},rL=function(a){return a._repeat?rc(a._tTime,a=a.duration()+a._rDelay)*a:0},rc=function(a,r){var n=Math.floor(a/=r);return a&&n===a?n-1:n},v9=function(a,r){return(a-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},F9=function(a){return a._end=st(a._start+(a._tDur/Math.abs(a._ts||a._rts||Fe)||0))},O9=function(a,r){var n=a._dp;return n&&n.smoothChildTiming&&a._ts&&(a._start=st(n._time-(a._ts>0?r/a._ts:((a._dirty?a.totalDuration():a._tDur)-r)/-a._ts)),F9(a),n._dirty||po(n,a)),a},vI=function(a,r){var n;if((r._time||!r._dur&&r._initted||r._start<a._time&&(r._dur||!r.add))&&(n=v9(a.rawTime(),r),(!r._dur||hl(0,r.totalDuration(),n)-r._tTime>Fe)&&r.render(n,!0)),po(a,r)._dp&&a._initted&&a._time>=a._dur&&a._ts){if(a._dur<a.duration())for(n=a;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;a._zTime=-Fe}},ka=function(a,r,n,s){return r.parent&&Mr(r),r._start=st(($a(n)?n:n||a!==$e?Zt(a,n,r):a._time)+r._delay),r._end=st(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),kI(a,r,"_first","_last",a._sort?"_start":0),tC(r)||(a._recent=r),s||vI(a,r),a._ts<0&&O9(a,a._tTime),a},wI=function(a,r){return(Bt.ScrollTrigger||FC("scrollTrigger",r))&&Bt.ScrollTrigger.create(r,a)},bI=function(a,r,n,s,i){if($C(a,r,i),!a._initted)return 1;if(!n&&a._pt&&!yt&&(a._dur&&a.vars.lazy!==!1||!a._dur&&a.vars.lazy)&&yI!==zt.frame)return vr.push(a),a._lazy=[i,s],1},kD=function t(a){var r=a.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},tC=function(a){var r=a.data;return r==="isFromStart"||r==="isStart"},vD=function(a,r,n,s){var i=a.ratio,c=r<0||!r&&(!a._start&&kD(a)&&!(!a._initted&&tC(a))||(a._ts<0||a._dp._ts<0)&&!tC(a))?0:1,l=a._rDelay,d=0,h,u,p;if(l&&a._repeat&&(d=hl(0,a._tDur,r),u=rc(d,l),a._yoyo&&u&1&&(c=1-c),u!==rc(a._tTime,l)&&(i=1-c,a.vars.repeatRefresh&&a._initted&&a.invalidate())),c!==i||yt||s||a._zTime===Fe||!r&&a._zTime){if(!a._initted&&bI(a,r,s,n,d))return;for(p=a._zTime,a._zTime=r||(n?Fe:0),n||(n=r&&!p),a.ratio=c,a._from&&(c=1-c),a._time=0,a._tTime=d,h=a._pt;h;)h.r(c,h.d),h=h._next;r<0&&eC(a,r,n,!0),a._onUpdate&&!n&&Ft(a,"onUpdate"),d&&a._repeat&&!n&&a.parent&&Ft(a,"onRepeat"),(r>=a._tDur||r<0)&&a.ratio===c&&(c&&Mr(a,1),!n&&!yt&&(Ft(a,c?"onComplete":"onReverseComplete",!0),a._prom&&a._prom()))}else a._zTime||(a._zTime=r)},wD=function(a,r,n){var s;if(n>r)for(s=a._first;s&&s._start<=n;){if(s.data==="isPause"&&s._start>r)return s;s=s._next}else for(s=a._last;s&&s._start>=n;){if(s.data==="isPause"&&s._start<r)return s;s=s._prev}},nc=function(a,r,n,s){var i=a._repeat,c=st(r)||0,l=a._tTime/a._tDur;return l&&!s&&(a._time*=c/a._dur),a._dur=c,a._tDur=i?i<0?1e10:st(c*(i+1)+a._rDelay*i):c,l>0&&!s&&O9(a,a._tTime=a._tDur*l),a.parent&&F9(a),n||po(a.parent,a),a},nL=function(a){return a instanceof kt?po(a):nc(a,a._dur)},bD={_start:0,endTime:tl,totalDuration:tl},Zt=function t(a,r,n){var s=a.labels,i=a._recent||bD,c=a.duration()>=Xt?i.endTime(!1):a._dur,l,d,h;return ot(r)&&(isNaN(r)||r in s)?(d=r.charAt(0),h=r.substr(-1)==="%",l=r.indexOf("="),d==="<"||d===">"?(l>=0&&(r=r.replace(/=/,"")),(d==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(r.substr(1))||0)*(h?(l<0?i:n).totalDuration()/100:1)):l<0?(r in s||(s[r]=c),s[r]):(d=parseFloat(r.charAt(l-1)+r.substr(l+1)),h&&n&&(d=d/100*(mt(n)?n[0]:n).totalDuration()),l>1?t(a,r.substr(0,l-1),n)+d:c+d)):r==null?c:+r},Jc=function(a,r,n){var s=$a(r[1]),i=(s?2:1)+(a<2?0:1),c=r[i],l,d;if(s&&(c.duration=r[1]),c.parent=n,a){for(l=c,d=n;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Ct(d.vars.inherit)&&d.parent;c.immediateRender=Ct(l.immediateRender),a<2?c.runBackwards=1:c.startAt=r[i-1]}return new Qe(r[0],c,r[i+1])},Ar=function(a,r){return a||a===0?r(a):r},hl=function(a,r,n){return n<a?a:n>r?r:n},ut=function(a,r){return!ot(a)||!(r=hD.exec(a))?"":r[1]},MD=function(a,r,n){return Ar(n,function(s){return hl(a,r,s)})},aC=[].slice,MI=function(a,r){return a&&La(a)&&"length"in a&&(!r&&!a.length||a.length-1 in a&&La(a[0]))&&!a.nodeType&&a!==fa},jD=function(a,r,n){return n===void 0&&(n=[]),a.forEach(function(s){var i;return ot(s)&&!r||MI(s,1)?(i=n).push.apply(i,Yt(s)):n.push(s)})||n},Yt=function(a,r,n){return Ve&&!r&&Ve.selector?Ve.selector(a):ot(a)&&!n&&(Kj||!sc())?aC.call((r||EC).querySelectorAll(a),0):mt(a)?jD(a,n):MI(a)?aC.call(a,0):a?[a]:[]},rC=function(a){return a=Yt(a)[0]||el("Invalid scope")||{},function(r){var n=a.current||a.nativeElement||a;return Yt(r,n.querySelectorAll?n:n===a?el("Invalid scope")||EC.createElement("div"):a)}},jI=function(a){return a.sort(function(){return .5-Math.random()})},CI=function(a){if(Je(a))return a;var r=La(a)?a:{each:a},n=yo(r.ease),s=r.from||0,i=parseFloat(r.base)||0,c={},l=s>0&&s<1,d=isNaN(s)||l,h=r.axis,u=s,p=s;return ot(s)?u=p={center:.5,edges:.5,end:1}[s]||0:!l&&d&&(u=s[0],p=s[1]),function(y,m,x){var f=(x||r).length,v=c[f],k,w,b,S,C,A,L,j,N;if(!v){if(N=r.grid==="auto"?0:(r.grid||[1,Xt])[1],!N){for(L=-Xt;L<(L=x[N++].getBoundingClientRect().left)&&N<f;);N<f&&N--}for(v=c[f]=[],k=d?Math.min(N,f)*u-.5:s%N,w=N===Xt?0:d?f*p/N-.5:s/N|0,L=0,j=Xt,A=0;A<f;A++)b=A%N-k,S=w-(A/N|0),v[A]=C=h?Math.abs(h==="y"?S:b):iI(b*b+S*S),C>L&&(L=C),C<j&&(j=C);s==="random"&&jI(v),v.max=L-j,v.min=j,v.v=f=(parseFloat(r.amount)||parseFloat(r.each)*(N>f?f-1:h?h==="y"?f/N:N:Math.max(N,f/N))||0)*(s==="edges"?-1:1),v.b=f<0?i-f:i,v.u=ut(r.amount||r.each)||0,n=n&&f<0?qI(n):n}return f=(v[y]-v.min)/v.max||0,st(v.b+(n?n(f):f)*v.v)+v.u}},nC=function(a){var r=Math.pow(10,((a+"").split(".")[1]||"").length);return function(n){var s=st(Math.round(parseFloat(n)/a)*a*r);return(s-s%1)/r+($a(n)?0:ut(n))}},SI=function(a,r){var n=mt(a),s,i;return!n&&La(a)&&(s=n=a.radius||Xt,a.values?(a=Yt(a.values),(i=!$a(a[0]))&&(s*=s)):a=nC(a.increment)),Ar(r,n?Je(a)?function(c){return i=a(c),Math.abs(i-c)<=s?i:c}:function(c){for(var l=parseFloat(i?c.x:c),d=parseFloat(i?c.y:0),h=Xt,u=0,p=a.length,y,m;p--;)i?(y=a[p].x-l,m=a[p].y-d,y=y*y+m*m):y=Math.abs(a[p]-l),y<h&&(h=y,u=p);return u=!s||h<=s?a[u]:c,i||u===c||$a(c)?u:u+ut(c)}:nC(a))},LI=function(a,r,n,s){return Ar(mt(a)?!r:n===!0?!!(n=0):!s,function(){return mt(a)?a[~~(Math.random()*a.length)]:(n=n||1e-5)&&(s=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((a-n/2+Math.random()*(r-a+n*.99))/n)*n*s)/s})},CD=function(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return function(s){return r.reduce(function(i,c){return c(i)},s)}},SD=function(a,r){return function(n){return a(parseFloat(n))+(r||ut(n))}},LD=function(a,r,n){return II(a,r,0,1,n)},NI=function(a,r,n){return Ar(n,function(s){return a[~~r(s)]})},ND=function t(a,r,n){var s=r-a;return mt(a)?NI(a,t(0,a.length),r):Ar(n,function(i){return(s+(i-a)%s)%s+a})},ID=function t(a,r,n){var s=r-a,i=s*2;return mt(a)?NI(a,t(0,a.length-1),r):Ar(n,function(c){return c=(i+(c-a)%i)%i||0,a+(c>s?i-c:c)})},al=function(a){for(var r=0,n="",s,i,c,l;~(s=a.indexOf("random(",r));)c=a.indexOf(")",s),l=a.charAt(s+7)==="[",i=a.substr(s+7,c-s-7).match(l?dI:Yj),n+=a.substr(r,s-r)+LI(l?i:+i[0],l?0:+i[1],+i[2]||1e-5),r=c+1;return n+a.substr(r,a.length-r)},II=function(a,r,n,s,i){var c=r-a,l=s-n;return Ar(i,function(d){return n+((d-a)/c*l||0)})},AD=function t(a,r,n,s){var i=isNaN(a+r)?0:function(m){return(1-m)*a+m*r};if(!i){var c=ot(a),l={},d,h,u,p,y;if(n===!0&&(s=1)&&(n=null),c)a={p:a},r={p:r};else if(mt(a)&&!mt(r)){for(u=[],p=a.length,y=p-2,h=1;h<p;h++)u.push(t(a[h-1],a[h]));p--,i=function(x){x*=p;var f=Math.min(y,~~x);return u[f](x-f)},n=r}else s||(a=go(mt(a)?[]:{},a));if(!u){for(d in r)BC.call(l,a,d,"get",r[d]);i=function(x){return WC(x,l)||(c?a.p:a)}}}return Ar(n,i)},sL=function(a,r,n){var s=a.labels,i=Xt,c,l,d;for(c in s)l=s[c]-r,l<0==!!n&&l&&i>(l=Math.abs(l))&&(d=c,i=l);return d},Ft=function(a,r,n){var s=a.vars,i=s[r],c=Ve,l=a._ctx,d,h,u;if(i)return d=s[r+"Params"],h=s.callbackScope||a,n&&vr.length&&g9(),l&&(Ve=l),u=d?i.apply(h,d):i.call(h),Ve=c,u},vc=function(a){return Mr(a),a.scrollTrigger&&a.scrollTrigger.kill(!!yt),a.progress()<1&&Ft(a,"onInterrupt"),a},Ro,AI=[],PI=function(a){if(a)if(a=!a.name&&a.default||a,zC()||a.headless){var r=a.name,n=Je(a),s=r&&!n&&a.init?function(){this._props=[]}:a,i={init:tl,render:WC,add:BC,kill:GD,modifier:UD,rawVars:0},c={targetTest:0,get:0,getSetter:GC,aliases:{},register:0};if(sc(),a!==s){if(Rt[r])return;ra(s,ra(k9(a,i),c)),go(s.prototype,go(i,k9(a,c))),Rt[s.prop=r]=s,a.targetTest&&(c9.push(s),OC[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}pI(r,s),a.register&&a.register(It,s,Lt)}else AI.push(a)},De=255,wc={aqua:[0,De,De],lime:[0,De,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,De],navy:[0,0,128],white:[De,De,De],olive:[128,128,0],yellow:[De,De,0],orange:[De,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[De,0,0],pink:[De,192,203],cyan:[0,De,De],transparent:[De,De,De,0]},xj=function(a,r,n){return a+=a<0?1:a>1?-1:0,(a*6<1?r+(n-r)*a*6:a<.5?n:a*3<2?r+(n-r)*(2/3-a)*6:r)*De+.5|0},_I=function(a,r,n){var s=a?$a(a)?[a>>16,a>>8&De,a&De]:0:wc.black,i,c,l,d,h,u,p,y,m,x;if(!s){if(a.substr(-1)===","&&(a=a.substr(0,a.length-1)),wc[a])s=wc[a];else if(a.charAt(0)==="#"){if(a.length<6&&(i=a.charAt(1),c=a.charAt(2),l=a.charAt(3),a="#"+i+i+c+c+l+l+(a.length===5?a.charAt(4)+a.charAt(4):"")),a.length===9)return s=parseInt(a.substr(1,6),16),[s>>16,s>>8&De,s&De,parseInt(a.substr(7),16)/255];a=parseInt(a.substr(1),16),s=[a>>16,a>>8&De,a&De]}else if(a.substr(0,3)==="hsl"){if(s=x=a.match(Yj),!r)d=+s[0]%360/360,h=+s[1]/100,u=+s[2]/100,c=u<=.5?u*(h+1):u+h-u*h,i=u*2-c,s.length>3&&(s[3]*=1),s[0]=xj(d+1/3,i,c),s[1]=xj(d,i,c),s[2]=xj(d-1/3,i,c);else if(~a.indexOf("="))return s=a.match(cI),n&&s.length<4&&(s[3]=1),s}else s=a.match(Yj)||wc.transparent;s=s.map(Number)}return r&&!x&&(i=s[0]/De,c=s[1]/De,l=s[2]/De,p=Math.max(i,c,l),y=Math.min(i,c,l),u=(p+y)/2,p===y?d=h=0:(m=p-y,h=u>.5?m/(2-p-y):m/(p+y),d=p===i?(c-l)/m+(c<l?6:0):p===c?(l-i)/m+2:(i-c)/m+4,d*=60),s[0]=~~(d+.5),s[1]=~~(h*100+.5),s[2]=~~(u*100+.5)),n&&s.length<4&&(s[3]=1),s},RI=function(a){var r=[],n=[],s=-1;return a.split(wr).forEach(function(i){var c=i.match(_o)||[];r.push.apply(r,c),n.push(s+=c.length+1)}),r.c=n,r},iL=function(a,r,n){var s="",i=(a+s).match(wr),c=r?"hsla(":"rgba(",l=0,d,h,u,p;if(!i)return a;if(i=i.map(function(y){return(y=_I(y,r,1))&&c+(r?y[0]+","+y[1]+"%,"+y[2]+"%,"+y[3]:y.join(","))+")"}),n&&(u=RI(a),d=n.c,d.join(s)!==u.c.join(s)))for(h=a.replace(wr,"1").split(_o),p=h.length-1;l<p;l++)s+=h[l]+(~d.indexOf(l)?i.shift()||c+"0,0,0,0)":(u.length?u:i.length?i:n).shift());if(!h)for(h=a.split(wr),p=h.length-1;l<p;l++)s+=h[l]+i[l];return s+h[p]},wr=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",a;for(a in wc)t+="|"+a+"\\b";return new RegExp(t+")","gi")}(),PD=/hsl[a]?\(/,TI=function(a){var r=a.join(" "),n;if(wr.lastIndex=0,wr.test(r))return n=PD.test(r),a[1]=iL(a[1],n),a[0]=iL(a[0],n,RI(a[1])),!0},rl,zt=function(){var t=Date.now,a=500,r=33,n=t(),s=n,i=1e3/240,c=i,l=[],d,h,u,p,y,m,x=function f(v){var k=t()-s,w=v===!0,b,S,C,A;if((k>a||k<0)&&(n+=k-r),s+=k,C=s-n,b=C-c,(b>0||w)&&(A=++p.frame,y=C-p.time*1e3,p.time=C=C/1e3,c+=b+(b>=i?4:i-b),S=1),w||(d=h(f)),S)for(m=0;m<l.length;m++)l[m](C,y,A,v)};return p={time:0,frame:0,tick:function(){x(!0)},deltaRatio:function(v){return y/(1e3/(v||60))},wake:function(){hI&&(!Kj&&zC()&&(fa=Kj=window,EC=fa.document||{},Bt.gsap=It,(fa.gsapVersions||(fa.gsapVersions=[])).push(It.version),uI(x9||fa.GreenSockGlobals||!fa.gsap&&fa||{}),AI.forEach(PI)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&p.sleep(),h=u||function(v){return setTimeout(v,c-p.time*1e3+1|0)},rl=1,x(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(d),rl=0,h=tl},lagSmoothing:function(v,k){a=v||1/0,r=Math.min(k||33,a)},fps:function(v){i=1e3/(v||240),c=p.time*1e3+i},add:function(v,k,w){var b=k?function(S,C,A,L){v(S,C,A,L),p.remove(b)}:v;return p.remove(v),l[w?"unshift":"push"](b),sc(),b},remove:function(v,k){~(k=l.indexOf(v))&&l.splice(k,1)&&m>=k&&m--},_listeners:l},p}(),sc=function(){return!rl&&zt.wake()},Le={},_D=/^[\d.\-M][\d.\-,\s]/,RD=/["']/g,TD=function(a){for(var r={},n=a.substr(1,a.length-3).split(":"),s=n[0],i=1,c=n.length,l,d,h;i<c;i++)d=n[i],l=i!==c-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),r[s]=isNaN(h)?h.replace(RD,"").trim():+h,s=d.substr(l+1).trim();return r},qD=function(a){var r=a.indexOf("(")+1,n=a.indexOf(")"),s=a.indexOf("(",r);return a.substring(r,~s&&s<n?a.indexOf(")",n+1):n)},DD=function(a){var r=(a+"").split("("),n=Le[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~a.indexOf("{")?[TD(r[1])]:qD(a).split(",").map(xI)):Le._CE&&_D.test(a)?Le._CE("",a):n},qI=function(a){return function(r){return 1-a(1-r)}},DI=function t(a,r){for(var n=a._first,s;n;)n instanceof kt?t(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?t(n.timeline,r):(s=n._ease,n._ease=n._yEase,n._yEase=s,n._yoyo=r)),n=n._next},yo=function(a,r){return a&&(Je(a)?a:Le[a]||DD(a))||r},Lo=function(a,r,n,s){n===void 0&&(n=function(d){return 1-r(1-d)}),s===void 0&&(s=function(d){return d<.5?r(d*2)/2:1-r((1-d)*2)/2});var i={easeIn:r,easeOut:n,easeInOut:s},c;return St(a,function(l){Le[l]=Bt[l]=i,Le[c=l.toLowerCase()]=n;for(var d in i)Le[c+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=Le[l+"."+d]=i[d]}),i},zI=function(a){return function(r){return r<.5?(1-a(1-r*2))/2:.5+a((r-.5)*2)/2}},gj=function t(a,r,n){var s=r>=1?r:1,i=(n||(a?.3:.45))/(r<1?r:1),c=i/Xj*(Math.asin(1/s)||0),l=function(u){return u===1?1:s*Math.pow(2,-10*u)*dD((u-c)*i)+1},d=a==="out"?l:a==="in"?function(h){return 1-l(1-h)}:zI(l);return i=Xj/i,d.config=function(h,u){return t(a,h,u)},d},kj=function t(a,r){r===void 0&&(r=1.70158);var n=function(c){return c?--c*c*((r+1)*c+r)+1:0},s=a==="out"?n:a==="in"?function(i){return 1-n(1-i)}:zI(n);return s.config=function(i){return t(a,i)},s};St("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,a){var r=a<5?a+1:a;Lo(t+",Power"+(r-1),a?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Le.Linear.easeNone=Le.none=Le.Linear.easeIn;Lo("Elastic",gj("in"),gj("out"),gj());(function(t,a){var r=1/a,n=2*r,s=2.5*r,i=function(l){return l<r?t*l*l:l<n?t*Math.pow(l-1.5/a,2)+.75:l<s?t*(l-=2.25/a)*l+.9375:t*Math.pow(l-2.625/a,2)+.984375};Lo("Bounce",function(c){return 1-i(1-c)},i)})(7.5625,2.75);Lo("Expo",function(t){return t?Math.pow(2,10*(t-1)):0});Lo("Circ",function(t){return-(iI(1-t*t)-1)});Lo("Sine",function(t){return t===1?1:-lD(t*oD)+1});Lo("Back",kj("in"),kj("out"),kj());Le.SteppedEase=Le.steps=Bt.SteppedEase={config:function(a,r){a===void 0&&(a=1);var n=1/a,s=a+(r?0:1),i=r?1:0,c=1-Fe;return function(l){return((s*hl(0,c,l)|0)+i)*n}}};ac.ease=Le["quad.out"];St("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return HC+=t+","+t+"Params,"});var EI=function(a,r){this.id=cD++,a._gsap=this,this.target=a,this.harness=r,this.get=r?r.get:mI,this.set=r?r.getSetter:GC},nl=function(){function t(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,nc(this,+r.duration,1,1),this.data=r.data,Ve&&(this._ctx=Ve,Ve.data.push(this)),rl||zt.wake()}var a=t.prototype;return a.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},a.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},a.totalDuration=function(n){return arguments.length?(this._dirty=0,nc(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},a.totalTime=function(n,s){if(sc(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(O9(this,n),!i._dp||i.parent||vI(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&ka(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===Fe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),fI(this,n,s)),this},a.time=function(n,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+rL(this))%(this._dur+this._rDelay)||(n?this._dur:0),s):this._time},a.totalProgress=function(n,s){return arguments.length?this.totalTime(this.totalDuration()*n,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},a.progress=function(n,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+rL(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},a.iteration=function(n,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,s):this._repeat?rc(this._tTime,i)+1:1},a.timeScale=function(n,s){if(!arguments.length)return this._rts===-Fe?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?v9(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Fe?0:this._rts,this.totalTime(hl(-Math.abs(this._delay),this._tDur,i),s!==!1),F9(this),xD(this)},a.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(sc(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Fe&&(this._tTime-=Fe)))),this):this._ps},a.startTime=function(n){if(arguments.length){this._start=n;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&ka(s,this,n-this._delay),this}return this._start},a.endTime=function(n){return this._start+(Ct(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},a.rawTime=function(n){var s=this.parent||this._dp;return s?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?v9(s.rawTime(n),this):this._tTime:this._tTime},a.revert=function(n){n===void 0&&(n=pD);var s=yt;return yt=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),yt=s,this},a.globalTime=function(n){for(var s=this,i=arguments.length?n:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},a.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,nL(this)):this._repeat===-2?1/0:this._repeat},a.repeatDelay=function(n){if(arguments.length){var s=this._time;return this._rDelay=n,nL(this),s?this.time(s):this}return this._rDelay},a.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},a.seek=function(n,s){return this.totalTime(Zt(this,n),Ct(s))},a.restart=function(n,s){return this.play().totalTime(n?-this._delay:0,Ct(s))},a.play=function(n,s){return n!=null&&this.seek(n,s),this.reversed(!1).paused(!1)},a.reverse=function(n,s){return n!=null&&this.seek(n||this.totalDuration(),s),this.reversed(!0).paused(!1)},a.pause=function(n,s){return n!=null&&this.seek(n,s),this.paused(!0)},a.resume=function(){return this.paused(!1)},a.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Fe:0)),this):this._rts<0},a.invalidate=function(){return this._initted=this._act=0,this._zTime=-Fe,this},a.isActive=function(){var n=this.parent||this._dp,s=this._start,i;return!!(!n||this._ts&&this._initted&&n.isActive()&&(i=n.rawTime(!0))>=s&&i<this.endTime(!0)-Fe)},a.eventCallback=function(n,s,i){var c=this.vars;return arguments.length>1?(s?(c[n]=s,i&&(c[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=s)):delete c[n],this):c[n]},a.then=function(n){var s=this;return new Promise(function(i){var c=Je(n)?n:gI,l=function(){var h=s.then;s.then=null,Je(c)&&(c=c(s))&&(c.then||c===s)&&(s.then=h),i(c),s.then=h};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},a.kill=function(){vc(this)},t}();ra(nl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Fe,_prom:0,_ps:!1,_rts:1});var kt=function(t){sI(a,t);function a(n,s){var i;return n===void 0&&(n={}),i=t.call(this,n)||this,i.labels={},i.smoothChildTiming=!!n.smoothChildTiming,i.autoRemoveChildren=!!n.autoRemoveChildren,i._sort=Ct(n.sortChildren),$e&&ka(n.parent||$e,Da(i),s),n.reversed&&i.reverse(),n.paused&&i.paused(!0),n.scrollTrigger&&wI(Da(i),n.scrollTrigger),i}var r=a.prototype;return r.to=function(s,i,c){return Jc(0,arguments,this),this},r.from=function(s,i,c){return Jc(1,arguments,this),this},r.fromTo=function(s,i,c,l){return Jc(2,arguments,this),this},r.set=function(s,i,c){return i.duration=0,i.parent=this,Zc(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Qe(s,i,Zt(this,c),1),this},r.call=function(s,i,c){return ka(this,Qe.delayedCall(0,s,i),c)},r.staggerTo=function(s,i,c,l,d,h,u){return c.duration=i,c.stagger=c.stagger||l,c.onComplete=h,c.onCompleteParams=u,c.parent=this,new Qe(s,c,Zt(this,d)),this},r.staggerFrom=function(s,i,c,l,d,h,u){return c.runBackwards=1,Zc(c).immediateRender=Ct(c.immediateRender),this.staggerTo(s,i,c,l,d,h,u)},r.staggerFromTo=function(s,i,c,l,d,h,u,p){return l.startAt=c,Zc(l).immediateRender=Ct(l.immediateRender),this.staggerTo(s,i,l,d,h,u,p)},r.render=function(s,i,c){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,u=s<=0?0:st(s),p=this._zTime<0!=s<0&&(this._initted||!h),y,m,x,f,v,k,w,b,S,C,A,L;if(this!==$e&&u>d&&s>=0&&(u=d),u!==this._tTime||c||p){if(l!==this._time&&h&&(u+=this._time-l,s+=this._time-l),y=u,S=this._start,b=this._ts,k=!b,p&&(h||(l=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(A=this._yoyo,v=h+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(v*100+s,i,c);if(y=st(u%v),u===d?(f=this._repeat,y=h):(f=~~(u/v),f&&f===u/v&&(y=h,f--),y>h&&(y=h)),C=rc(this._tTime,v),!l&&this._tTime&&C!==f&&this._tTime-C*v-this._dur<=0&&(C=f),A&&f&1&&(y=h-y,L=1),f!==C&&!this._lock){var j=A&&C&1,N=j===(A&&f&1);if(f<C&&(j=!j),l=j?0:u%h?h:u,this._lock=1,this.render(l||(L?0:st(f*v)),i,!h)._lock=0,this._tTime=u,!i&&this.parent&&Ft(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1),l&&l!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,N&&(this._lock=2,l=j?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;DI(this,L)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=wD(this,st(l),st(y)),w&&(u-=y-(y=w._start))),this._tTime=u,this._time=y,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,l=0),!l&&y&&!i&&!f&&(Ft(this,"onStart"),this._tTime!==u))return this;if(y>=l&&s>=0)for(m=this._first;m;){if(x=m._next,(m._act||y>=m._start)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,c);if(m.render(m._ts>0?(y-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(y-m._start)*m._ts,i,c),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=-Fe);break}}m=x}else{m=this._last;for(var q=s<0?s:y;m;){if(x=m._prev,(m._act||q<=m._end)&&m._ts&&w!==m){if(m.parent!==this)return this.render(s,i,c);if(m.render(m._ts>0?(q-m._start)*m._ts:(m._dirty?m.totalDuration():m._tDur)+(q-m._start)*m._ts,i,c||yt&&(m._initted||m._startAt)),y!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=q?-Fe:Fe);break}}m=x}}if(w&&!i&&(this.pause(),w.render(y>=l?0:-Fe)._zTime=y>=l?1:-1,this._ts))return this._start=S,F9(this),this.render(s,i,c);this._onUpdate&&!i&&Ft(this,"onUpdate",!0),(u===d&&this._tTime>=this.totalDuration()||!u&&l)&&(S===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((s||!h)&&(u===d&&this._ts>0||!u&&this._ts<0)&&Mr(this,1),!i&&!(s<0&&!l)&&(u||l||!d)&&(Ft(this,u===d&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(s,i){var c=this;if($a(i)||(i=Zt(this,i,s)),!(s instanceof nl)){if(mt(s))return s.forEach(function(l){return c.add(l,i)}),this;if(ot(s))return this.addLabel(s,i);if(Je(s))s=Qe.delayedCall(0,s);else return this}return this!==s?ka(this,s,i):this},r.getChildren=function(s,i,c,l){s===void 0&&(s=!0),i===void 0&&(i=!0),c===void 0&&(c=!0),l===void 0&&(l=-Xt);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof Qe?i&&d.push(h):(c&&d.push(h),s&&d.push.apply(d,h.getChildren(!0,i,c)))),h=h._next;return d},r.getById=function(s){for(var i=this.getChildren(1,1,1),c=i.length;c--;)if(i[c].vars.id===s)return i[c]},r.remove=function(s){return ot(s)?this.removeLabel(s):Je(s)?this.killTweensOf(s):(E9(this,s),s===this._recent&&(this._recent=this._last),po(this))},r.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=st(zt.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},r.addLabel=function(s,i){return this.labels[s]=Zt(this,i),this},r.removeLabel=function(s){return delete this.labels[s],this},r.addPause=function(s,i,c){var l=Qe.delayedCall(0,i||tl,c);return l.data="isPause",this._hasPause=1,ka(this,l,Zt(this,s))},r.removePause=function(s){var i=this._first;for(s=Zt(this,s);i;)i._start===s&&i.data==="isPause"&&Mr(i),i=i._next},r.killTweensOf=function(s,i,c){for(var l=this.getTweensOf(s,c),d=l.length;d--;)cr!==l[d]&&l[d].kill(s,i);return this},r.getTweensOf=function(s,i){for(var c=[],l=Yt(s),d=this._first,h=$a(i),u;d;)d instanceof Qe?yD(d._targets,l)&&(h?(!cr||d._initted&&d._ts)&&d.globalTime(0)<=i&&d.globalTime(d.totalDuration())>i:!i||d.isActive())&&c.push(d):(u=d.getTweensOf(l,i)).length&&c.push.apply(c,u),d=d._next;return c},r.tweenTo=function(s,i){i=i||{};var c=this,l=Zt(c,s),d=i,h=d.startAt,u=d.onStart,p=d.onStartParams,y=d.immediateRender,m,x=Qe.to(c,ra({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:i.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale())||Fe,onStart:function(){if(c.pause(),!m){var v=i.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale());x._dur!==v&&nc(x,v,0,1).render(x._time,!0,!0),m=1}u&&u.apply(x,p||[])}},i));return y?x.render(0):x},r.tweenFromTo=function(s,i,c){return this.tweenTo(i,ra({startAt:{time:Zt(this,s)}},c))},r.recent=function(){return this._recent},r.nextLabel=function(s){return s===void 0&&(s=this._time),sL(this,Zt(this,s))},r.previousLabel=function(s){return s===void 0&&(s=this._time),sL(this,Zt(this,s),1)},r.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+Fe)},r.shiftChildren=function(s,i,c){c===void 0&&(c=0);for(var l=this._first,d=this.labels,h;l;)l._start>=c&&(l._start+=s,l._end+=s),l=l._next;if(i)for(h in d)d[h]>=c&&(d[h]+=s);return po(this)},r.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},r.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,c;i;)c=i._next,this.remove(i),i=c;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),po(this)},r.totalDuration=function(s){var i=0,c=this,l=c._last,d=Xt,h,u,p;if(arguments.length)return c.timeScale((c._repeat<0?c.duration():c.totalDuration())/(c.reversed()?-s:s));if(c._dirty){for(p=c.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),u=l._start,u>d&&c._sort&&l._ts&&!c._lock?(c._lock=1,ka(c,l,u-l._delay,1)._lock=0):d=u,u<0&&l._ts&&(i-=u,(!p&&!c._dp||p&&p.smoothChildTiming)&&(c._start+=u/c._ts,c._time-=u,c._tTime-=u),c.shiftChildren(-u,!1,-1/0),d=0),l._end>i&&l._ts&&(i=l._end),l=h;nc(c,c===$e&&c._time>i?c._time:i,1,1),c._dirty=0}return c._tDur},a.updateRoot=function(s){if($e._ts&&(fI($e,v9(s,$e)),yI=zt.frame),zt.frame>=tL){tL+=Ht.autoSleep||120;var i=$e._first;if((!i||!i._ts)&&Ht.autoSleep&&zt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||zt.sleep()}}},a}(nl);ra(kt.prototype,{_lock:0,_hasPause:0,_forcing:0});var zD=function(a,r,n,s,i,c,l){var d=new Lt(this._pt,a,r,0,1,$I,null,i),h=0,u=0,p,y,m,x,f,v,k,w;for(d.b=n,d.e=s,n+="",s+="",(k=~s.indexOf("random("))&&(s=al(s)),c&&(w=[n,s],c(w,a,r),n=w[0],s=w[1]),y=n.match(mj)||[];p=mj.exec(s);)x=p[0],f=s.substring(h,p.index),m?m=(m+1)%5:f.substr(-5)==="rgba("&&(m=1),x!==y[u++]&&(v=parseFloat(y[u-1])||0,d._pt={_next:d._pt,p:f||u===1?f:",",s:v,c:x.charAt(1)==="="?Xo(v,x)-v:parseFloat(x)-v,m:m&&m<4?Math.round:0},h=mj.lastIndex);return d.c=h<s.length?s.substring(h,s.length):"",d.fp=l,(lI.test(s)||k)&&(d.e=0),this._pt=d,d},BC=function(a,r,n,s,i,c,l,d,h,u){Je(s)&&(s=s(i||0,a,c));var p=a[r],y=n!=="get"?n:Je(p)?h?a[r.indexOf("set")||!Je(a["get"+r.substr(3)])?r:"get"+r.substr(3)](h):a[r]():p,m=Je(p)?h?VD:VI:UC,x;if(ot(s)&&(~s.indexOf("random(")&&(s=al(s)),s.charAt(1)==="="&&(x=Xo(y,s)+(ut(y)||0),(x||x===0)&&(s=x))),!u||y!==s||sC)return!isNaN(y*s)&&s!==""?(x=new Lt(this._pt,a,r,+y||0,s-(y||0),typeof p=="boolean"?$D:BI,0,m),h&&(x.fp=h),l&&x.modifier(l,this,a),this._pt=x):(!p&&!(r in a)&&FC(r,s),zD.call(this,a,r,y,s,m,d||Ht.stringFilter,h))},ED=function(a,r,n,s,i){if(Je(a)&&(a=Xc(a,i,r,n,s)),!La(a)||a.style&&a.nodeType||mt(a)||oI(a))return ot(a)?Xc(a,i,r,n,s):a;var c={},l;for(l in a)c[l]=Xc(a[l],i,r,n,s);return c},FI=function(a,r,n,s,i,c){var l,d,h,u;if(Rt[a]&&(l=new Rt[a]).init(i,l.rawVars?r[a]:ED(r[a],s,i,c,n),n,s,c)!==!1&&(n._pt=d=new Lt(n._pt,i,a,0,1,l.render,l,0,l.priority),n!==Ro))for(h=n._ptLookup[n._targets.indexOf(i)],u=l._props.length;u--;)h[l._props[u]]=d;return l},cr,sC,$C=function t(a,r,n){var s=a.vars,i=s.ease,c=s.startAt,l=s.immediateRender,d=s.lazy,h=s.onUpdate,u=s.runBackwards,p=s.yoyoEase,y=s.keyframes,m=s.autoRevert,x=a._dur,f=a._startAt,v=a._targets,k=a.parent,w=k&&k.data==="nested"?k.vars.targets:v,b=a._overwrite==="auto"&&!qC,S=a.timeline,C,A,L,j,N,q,P,R,T,F,U,$,W;if(S&&(!y||!i)&&(i="none"),a._ease=yo(i,ac.ease),a._yEase=p?qI(yo(p===!0?i:p,ac.ease)):0,p&&a._yoyo&&!a._repeat&&(p=a._yEase,a._yEase=a._ease,a._ease=p),a._from=!S&&!!s.runBackwards,!S||y&&!s.stagger){if(R=v[0]?uo(v[0]).harness:0,$=R&&s[R.prop],C=k9(s,OC),f&&(f._zTime<0&&f.progress(1),r<0&&u&&l&&!m?f.render(-1,!0):f.revert(u&&x?o9:uD),f._lazy=0),c){if(Mr(a._startAt=Qe.set(v,ra({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!f&&Ct(d),startAt:null,delay:0,onUpdate:h&&function(){return Ft(a,"onUpdate")},stagger:0},c))),a._startAt._dp=0,a._startAt._sat=a,r<0&&(yt||!l&&!m)&&a._startAt.revert(o9),l&&x&&r<=0&&n<=0){r&&(a._zTime=r);return}}else if(u&&x&&!f){if(r&&(l=!1),L=ra({overwrite:!1,data:"isFromStart",lazy:l&&!f&&Ct(d),immediateRender:l,stagger:0,parent:k},C),$&&(L[R.prop]=$),Mr(a._startAt=Qe.set(v,L)),a._startAt._dp=0,a._startAt._sat=a,r<0&&(yt?a._startAt.revert(o9):a._startAt.render(-1,!0)),a._zTime=r,!l)t(a._startAt,Fe,Fe);else if(!r)return}for(a._pt=a._ptCache=0,d=x&&Ct(d)||d&&!x,A=0;A<v.length;A++){if(N=v[A],P=N._gsap||VC(v)[A]._gsap,a._ptLookup[A]=F={},Qj[P.id]&&vr.length&&g9(),U=w===v?A:w.indexOf(N),R&&(T=new R).init(N,$||C,a,U,w)!==!1&&(a._pt=j=new Lt(a._pt,N,T.name,0,1,T.render,T,0,T.priority),T._props.forEach(function(O){F[O]=j}),T.priority&&(q=1)),!R||$)for(L in C)Rt[L]&&(T=FI(L,C,a,U,N,w))?T.priority&&(q=1):F[L]=j=BC.call(a,N,L,"get",C[L],U,w,0,s.stringFilter);a._op&&a._op[A]&&a.kill(N,a._op[A]),b&&a._pt&&(cr=a,$e.killTweensOf(N,F,a.globalTime(r)),W=!a.parent,cr=0),a._pt&&d&&(Qj[P.id]=1)}q&&UI(a),a._onInit&&a._onInit(a)}a._onUpdate=h,a._initted=(!a._op||a._pt)&&!W,y&&r<=0&&S.render(Xt,!0,!0)},FD=function(a,r,n,s,i,c,l,d){var h=(a._pt&&a._ptCache||(a._ptCache={}))[r],u,p,y,m;if(!h)for(h=a._ptCache[r]=[],y=a._ptLookup,m=a._targets.length;m--;){if(u=y[m][r],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==r&&u.fp!==r;)u=u._next;if(!u)return sC=1,a.vars[r]="+=0",$C(a,l),sC=0,d?el(r+" not eligible for reset"):1;h.push(u)}for(m=h.length;m--;)p=h[m],u=p._pt||p,u.s=(s||s===0)&&!i?s:u.s+(s||0)+c*u.c,u.c=n-u.s,p.e&&(p.e=Ke(n)+ut(p.e)),p.b&&(p.b=u.s+ut(p.b))},OD=function(a,r){var n=a[0]?uo(a[0]).harness:0,s=n&&n.aliases,i,c,l,d;if(!s)return r;i=go({},r);for(c in s)if(c in i)for(d=s[c].split(","),l=d.length;l--;)i[d[l]]=i[c];return i},HD=function(a,r,n,s){var i=r.ease||s||"power1.inOut",c,l;if(mt(r))l=n[a]||(n[a]=[]),r.forEach(function(d,h){return l.push({t:h/(r.length-1)*100,v:d,e:i})});else for(c in r)l=n[c]||(n[c]=[]),c==="ease"||l.push({t:parseFloat(a),v:r[c],e:i})},Xc=function(a,r,n,s,i){return Je(a)?a.call(r,n,s,i):ot(a)&&~a.indexOf("random(")?al(a):a},OI=HC+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HI={};St(OI+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return HI[t]=1});var Qe=function(t){sI(a,t);function a(n,s,i,c){var l;typeof s=="number"&&(i.duration=s,s=i,i=null),l=t.call(this,c?s:Zc(s))||this;var d=l.vars,h=d.duration,u=d.delay,p=d.immediateRender,y=d.stagger,m=d.overwrite,x=d.keyframes,f=d.defaults,v=d.scrollTrigger,k=d.yoyoEase,w=s.parent||$e,b=(mt(n)||oI(n)?$a(n[0]):"length"in s)?[n]:Yt(n),S,C,A,L,j,N,q,P;if(l._targets=b.length?VC(b):el("GSAP target "+n+" not found. https://gsap.com",!Ht.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=m,x||y||kl(h)||kl(u)){if(s=l.vars,S=l.timeline=new kt({data:"nested",defaults:f||{},targets:w&&w.data==="nested"?w.vars.targets:b}),S.kill(),S.parent=S._dp=Da(l),S._start=0,y||kl(h)||kl(u)){if(L=b.length,q=y&&CI(y),La(y))for(j in y)~OI.indexOf(j)&&(P||(P={}),P[j]=y[j]);for(C=0;C<L;C++)A=k9(s,HI),A.stagger=0,k&&(A.yoyoEase=k),P&&go(A,P),N=b[C],A.duration=+Xc(h,Da(l),C,N,b),A.delay=(+Xc(u,Da(l),C,N,b)||0)-l._delay,!y&&L===1&&A.delay&&(l._delay=u=A.delay,l._start+=u,A.delay=0),S.to(N,A,q?q(C,N,b):0),S._ease=Le.none;S.duration()?h=u=0:l.timeline=0}else if(x){Zc(ra(S.vars.defaults,{ease:"none"})),S._ease=yo(x.ease||s.ease||"none");var R=0,T,F,U;if(mt(x))x.forEach(function($){return S.to(b,$,">")}),S.duration();else{A={};for(j in x)j==="ease"||j==="easeEach"||HD(j,x[j],A,x.easeEach);for(j in A)for(T=A[j].sort(function($,W){return $.t-W.t}),R=0,C=0;C<T.length;C++)F=T[C],U={ease:F.e,duration:(F.t-(C?T[C-1].t:0))/100*h},U[j]=F.v,S.to(b,U,R),R+=U.duration;S.duration()<h&&S.to({},{duration:h-S.duration()})}}h||l.duration(h=S.duration())}else l.timeline=0;return m===!0&&!qC&&(cr=Da(l),$e.killTweensOf(b),cr=0),ka(w,Da(l),i),s.reversed&&l.reverse(),s.paused&&l.paused(!0),(p||!h&&!x&&l._start===st(w._time)&&Ct(p)&&gD(Da(l))&&w.data!=="nested")&&(l._tTime=-Fe,l.render(Math.max(0,-u)||0)),v&&wI(Da(l),v),l}var r=a.prototype;return r.render=function(s,i,c){var l=this._time,d=this._tDur,h=this._dur,u=s<0,p=s>d-Fe&&!u?d:s<Fe?0:s,y,m,x,f,v,k,w,b,S;if(!h)vD(this,s,i,c);else if(p!==this._tTime||!s||c||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(y=p,b=this.timeline,this._repeat){if(f=h+this._rDelay,this._repeat<-1&&u)return this.totalTime(f*100+s,i,c);if(y=st(p%f),p===d?(x=this._repeat,y=h):(x=~~(p/f),x&&x===st(p/f)&&(y=h,x--),y>h&&(y=h)),k=this._yoyo&&x&1,k&&(S=this._yEase,y=h-y),v=rc(this._tTime,f),y===l&&!c&&this._initted&&x===v)return this._tTime=p,this;x!==v&&(b&&this._yEase&&DI(b,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==f&&this._initted&&(this._lock=c=1,this.render(st(f*x),!0).invalidate()._lock=0))}if(!this._initted){if(bI(this,u?s:y,c,i,p))return this._tTime=0,this;if(l!==this._time&&!(c&&this.vars.repeatRefresh&&x!==v))return this;if(h!==this._dur)return this.render(s,i,c)}if(this._tTime=p,this._time=y,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(S||this._ease)(y/h),this._from&&(this.ratio=w=1-w),y&&!l&&!i&&!x&&(Ft(this,"onStart"),this._tTime!==p))return this;for(m=this._pt;m;)m.r(w,m.d),m=m._next;b&&b.render(s<0?s:b._dur*b._ease(y/this._dur),i,c)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(u&&eC(this,s,i,c),Ft(this,"onUpdate")),this._repeat&&x!==v&&this.vars.onRepeat&&!i&&this.parent&&Ft(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(u&&!this._onUpdate&&eC(this,s,!0,!0),(s||!h)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&Mr(this,1),!i&&!(u&&!l)&&(p||l||k)&&(Ft(this,p===d?"onComplete":"onReverseComplete",!0),this._prom&&!(p<d&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},r.resetTo=function(s,i,c,l,d){rl||zt.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||$C(this,h),u=this._ease(h/this._dur),FD(this,s,i,c,l,u,h,d)?this.resetTo(s,i,c,l,1):(O9(this,0),this.parent||kI(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?vc(this):this;if(this.timeline){var c=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,cr&&cr.vars.overwrite!==!0)._first||vc(this),this.parent&&c!==this.timeline.totalDuration()&&nc(this,this._dur*this.timeline._tDur/c,0,1),this}var l=this._targets,d=s?Yt(s):l,h=this._ptLookup,u=this._pt,p,y,m,x,f,v,k;if((!i||i==="all")&&fD(l,d))return i==="all"&&(this._pt=0),vc(this);for(p=this._op=this._op||[],i!=="all"&&(ot(i)&&(f={},St(i,function(w){return f[w]=1}),i=f),i=OD(l,i)),k=l.length;k--;)if(~d.indexOf(l[k])){y=h[k],i==="all"?(p[k]=i,x=y,m={}):(m=p[k]=p[k]||{},x=i);for(f in x)v=y&&y[f],v&&((!("kill"in v.d)||v.d.kill(f)===!0)&&E9(this,v,"_pt"),delete y[f]),m!=="all"&&(m[f]=1)}return this._initted&&!this._pt&&u&&vc(this),this},a.to=function(s,i){return new a(s,i,arguments[2])},a.from=function(s,i){return Jc(1,arguments)},a.delayedCall=function(s,i,c,l){return new a(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:c,onReverseCompleteParams:c,callbackScope:l})},a.fromTo=function(s,i,c){return Jc(2,arguments)},a.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new a(s,i)},a.killTweensOf=function(s,i,c){return $e.killTweensOf(s,i,c)},a}(nl);ra(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});St("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var a=new kt,r=aC.call(arguments,0);return r.splice(t==="staggerFromTo"?5:4,0,0),a[t].apply(a,r)}});var UC=function(a,r,n){return a[r]=n},VI=function(a,r,n){return a[r](n)},VD=function(a,r,n,s){return a[r](s.fp,n)},BD=function(a,r,n){return a.setAttribute(r,n)},GC=function(a,r){return Je(a[r])?VI:DC(a[r])&&a.setAttribute?BD:UC},BI=function(a,r){return r.set(r.t,r.p,Math.round((r.s+r.c*a)*1e6)/1e6,r)},$D=function(a,r){return r.set(r.t,r.p,!!(r.s+r.c*a),r)},$I=function(a,r){var n=r._pt,s="";if(!a&&r.b)s=r.b;else if(a===1&&r.e)s=r.e;else{for(;n;)s=n.p+(n.m?n.m(n.s+n.c*a):Math.round((n.s+n.c*a)*1e4)/1e4)+s,n=n._next;s+=r.c}r.set(r.t,r.p,s,r)},WC=function(a,r){for(var n=r._pt;n;)n.r(a,n.d),n=n._next},UD=function(a,r,n,s){for(var i=this._pt,c;i;)c=i._next,i.p===s&&i.modifier(a,r,n),i=c},GD=function(a){for(var r=this._pt,n,s;r;)s=r._next,r.p===a&&!r.op||r.op===a?E9(this,r,"_pt"):r.dep||(n=1),r=s;return!n},WD=function(a,r,n,s){s.mSet(a,r,s.m.call(s.tween,n,s.mt),s)},UI=function(a){for(var r=a._pt,n,s,i,c;r;){for(n=r._next,s=i;s&&s.pr>r.pr;)s=s._next;(r._prev=s?s._prev:c)?r._prev._next=r:i=r,(r._next=s)?s._prev=r:c=r,r=n}a._pt=i},Lt=function(){function t(r,n,s,i,c,l,d,h,u){this.t=n,this.s=i,this.c=c,this.p=s,this.r=l||BI,this.d=d||this,this.set=h||UC,this.pr=u||0,this._next=r,r&&(r._prev=this)}var a=t.prototype;return a.modifier=function(n,s,i){this.mSet=this.mSet||this.set,this.set=WD,this.m=n,this.mt=i,this.tween=s},t}();St(HC+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return OC[t]=1});Bt.TweenMax=Bt.TweenLite=Qe;Bt.TimelineLite=Bt.TimelineMax=kt;$e=new kt({sortChildren:!1,defaults:ac,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ht.stringFilter=TI;var mo=[],l9={},ZD=[],oL=0,JD=0,vj=function(a){return(l9[a]||ZD).map(function(r){return r()})},iC=function(){var a=Date.now(),r=[];a-oL>2&&(vj("matchMediaInit"),mo.forEach(function(n){var s=n.queries,i=n.conditions,c,l,d,h;for(l in s)c=fa.matchMedia(s[l]).matches,c&&(d=1),c!==i[l]&&(i[l]=c,h=1);h&&(n.revert(),d&&r.push(n))}),vj("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(s){return n.add(null,s)})}),oL=a,vj("matchMedia"))},GI=function(){function t(r,n){this.selector=n&&rC(n),this.data=[],this._r=[],this.isReverted=!1,this.id=JD++,r&&this.add(r)}var a=t.prototype;return a.add=function(n,s,i){Je(n)&&(i=s,s=n,n=Je);var c=this,l=function(){var h=Ve,u=c.selector,p;return h&&h!==c&&h.data.push(c),i&&(c.selector=rC(i)),Ve=c,p=s.apply(c,arguments),Je(p)&&c._r.push(p),Ve=h,c.selector=u,c.isReverted=!1,p};return c.last=l,n===Je?l(c,function(d){return c.add(null,d)}):n?c[n]=l:l},a.ignore=function(n){var s=Ve;Ve=null,n(this),Ve=s},a.getTweens=function(){var n=[];return this.data.forEach(function(s){return s instanceof t?n.push.apply(n,s.getTweens()):s instanceof Qe&&!(s.parent&&s.parent.data==="nested")&&n.push(s)}),n},a.clear=function(){this._r.length=this.data.length=0},a.kill=function(n,s){var i=this;if(n?function(){for(var l=i.getTweens(),d=i.data.length,h;d--;)h=i.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(u){return l.splice(l.indexOf(u),1)}));for(l.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,p){return p.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),d=i.data.length;d--;)h=i.data[d],h instanceof kt?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Qe)&&h.revert&&h.revert(n);i._r.forEach(function(u){return u(n,i)}),i.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),s)for(var c=mo.length;c--;)mo[c].id===this.id&&mo.splice(c,1)},a.revert=function(n){this.kill(n||{})},t}(),XD=function(){function t(r){this.contexts=[],this.scope=r,Ve&&Ve.data.push(this)}var a=t.prototype;return a.add=function(n,s,i){La(n)||(n={matches:n});var c=new GI(0,i||this.scope),l=c.conditions={},d,h,u;Ve&&!c.selector&&(c.selector=Ve.selector),this.contexts.push(c),s=c.add("onMatch",s),c.queries=n;for(h in n)h==="all"?u=1:(d=fa.matchMedia(n[h]),d&&(mo.indexOf(c)<0&&mo.push(c),(l[h]=d.matches)&&(u=1),d.addListener?d.addListener(iC):d.addEventListener("change",iC)));return u&&s(c,function(p){return c.add(null,p)}),this},a.revert=function(n){this.kill(n||{})},a.kill=function(n){this.contexts.forEach(function(s){return s.kill(n,!0)})},t}(),w9={registerPlugin:function(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];r.forEach(function(s){return PI(s)})},timeline:function(a){return new kt(a)},getTweensOf:function(a,r){return $e.getTweensOf(a,r)},getProperty:function(a,r,n,s){ot(a)&&(a=Yt(a)[0]);var i=uo(a||{}).get,c=n?gI:xI;return n==="native"&&(n=""),a&&(r?c((Rt[r]&&Rt[r].get||i)(a,r,n,s)):function(l,d,h){return c((Rt[l]&&Rt[l].get||i)(a,l,d,h))})},quickSetter:function(a,r,n){if(a=Yt(a),a.length>1){var s=a.map(function(u){return It.quickSetter(u,r,n)}),i=s.length;return function(u){for(var p=i;p--;)s[p](u)}}a=a[0]||{};var c=Rt[r],l=uo(a),d=l.harness&&(l.harness.aliases||{})[r]||r,h=c?function(u){var p=new c;Ro._pt=0,p.init(a,n?u+n:u,Ro,0,[a]),p.render(1,p),Ro._pt&&WC(1,Ro)}:l.set(a,d);return c?h:function(u){return h(a,d,n?u+n:u,l,1)}},quickTo:function(a,r,n){var s,i=It.to(a,go((s={},s[r]="+=0.1",s.paused=!0,s),n||{})),c=function(d,h,u){return i.resetTo(r,d,h,u)};return c.tween=i,c},isTweening:function(a){return $e.getTweensOf(a,!0).length>0},defaults:function(a){return a&&a.ease&&(a.ease=yo(a.ease,ac.ease)),aL(ac,a||{})},config:function(a){return aL(Ht,a||{})},registerEffect:function(a){var r=a.name,n=a.effect,s=a.plugins,i=a.defaults,c=a.extendTimeline;(s||"").split(",").forEach(function(l){return l&&!Rt[l]&&!Bt[l]&&el(r+" effect requires "+l+" plugin.")}),fj[r]=function(l,d,h){return n(Yt(l),ra(d||{},i),h)},c&&(kt.prototype[r]=function(l,d,h){return this.add(fj[r](l,La(d)?d:(h=d)&&{},this),h)})},registerEase:function(a,r){Le[a]=yo(r)},parseEase:function(a,r){return arguments.length?yo(a,r):Le},getById:function(a){return $e.getById(a)},exportRoot:function(a,r){a===void 0&&(a={});var n=new kt(a),s,i;for(n.smoothChildTiming=Ct(a.smoothChildTiming),$e.remove(n),n._dp=0,n._time=n._tTime=$e._time,s=$e._first;s;)i=s._next,(r||!(!s._dur&&s instanceof Qe&&s.vars.onComplete===s._targets[0]))&&ka(n,s,s._start-s._delay),s=i;return ka($e,n,0),n},context:function(a,r){return a?new GI(a,r):Ve},matchMedia:function(a){return new XD(a)},matchMediaRefresh:function(){return mo.forEach(function(a){var r=a.conditions,n,s;for(s in r)r[s]&&(r[s]=!1,n=1);n&&a.revert()})||iC()},addEventListener:function(a,r){var n=l9[a]||(l9[a]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(a,r){var n=l9[a],s=n&&n.indexOf(r);s>=0&&n.splice(s,1)},utils:{wrap:ND,wrapYoyo:ID,distribute:CI,random:LI,snap:SI,normalize:LD,getUnit:ut,clamp:MD,splitColor:_I,toArray:Yt,selector:rC,mapRange:II,pipe:CD,unitize:SD,interpolate:AD,shuffle:jI},install:uI,effects:fj,ticker:zt,updateRoot:kt.updateRoot,plugins:Rt,globalTimeline:$e,core:{PropTween:Lt,globals:pI,Tween:Qe,Timeline:kt,Animation:nl,getCache:uo,_removeLinkedListItem:E9,reverting:function(){return yt},context:function(a){return a&&Ve&&(Ve.data.push(a),a._ctx=Ve),Ve},suppressOverwrites:function(a){return qC=a}}};St("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return w9[t]=Qe[t]});zt.add(kt.updateRoot);Ro=w9.to({},{duration:0});var YD=function(a,r){for(var n=a._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},KD=function(a,r){var n=a._targets,s,i,c;for(s in r)for(i=n.length;i--;)c=a._ptLookup[i][s],c&&(c=c.d)&&(c._pt&&(c=YD(c,s)),c&&c.modifier&&c.modifier(r[s],a,n[i],s))},wj=function(a,r){return{name:a,rawVars:1,init:function(s,i,c){c._onInit=function(l){var d,h;if(ot(i)&&(d={},St(i,function(u){return d[u]=1}),i=d),r){d={};for(h in i)d[h]=r(i[h]);i=d}KD(l,i)}}}},It=w9.registerPlugin({name:"attr",init:function(a,r,n,s,i){var c,l,d;this.tween=n;for(c in r)d=a.getAttribute(c)||"",l=this.add(a,"setAttribute",(d||0)+"",r[c],s,i,0,0,c),l.op=c,l.b=d,this._props.push(c)},render:function(a,r){for(var n=r._pt;n;)yt?n.set(n.t,n.p,n.b,n):n.r(a,n.d),n=n._next}},{name:"endArray",init:function(a,r){for(var n=r.length;n--;)this.add(a,n,a[n]||0,r[n],0,0,0,0,0,1)}},wj("roundProps",nC),wj("modifiers"),wj("snap",SI))||w9;Qe.version=kt.version=It.version="3.12.5";hI=1;zC()&&sc();Le.Power0;Le.Power1;Le.Power2;Le.Power3;Le.Power4;Le.Linear;Le.Quad;Le.Cubic;Le.Quart;Le.Quint;Le.Strong;Le.Elastic;Le.Back;Le.SteppedEase;Le.Bounce;Le.Sine;Le.Expo;Le.Circ;/*!
|
|
7733
|
+
*/var Ht={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ac={duration:.5,overwrite:!1,delay:0},qC,yt,Ve,Xt=1e8,Fe=1/Xt,Xj=Math.PI*2,oD=Xj/4,cD=0,iI=Math.sqrt,lD=Math.cos,dD=Math.sin,ot=function(a){return typeof a=="string"},Je=function(a){return typeof a=="function"},$a=function(a){return typeof a=="number"},DC=function(a){return typeof a>"u"},La=function(a){return typeof a=="object"},Ct=function(a){return a!==!1},zC=function(){return typeof window<"u"},kl=function(a){return Je(a)||ot(a)},oI=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},mt=Array.isArray,Yj=/(?:-?\.?\d|\.)+/gi,cI=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,_o=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,mj=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,lI=/[+-]=-?[.\d]+/,dI=/[^,'"\[\]\s]+/gi,hD=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,$e,fa,Kj,EC,Bt={},x9={},hI,uI=function(a){return(x9=go(a,Bt))&&It},FC=function(a,r){return console.warn("Invalid property",a,"set to",r,"Missing plugin? gsap.registerPlugin()")},el=function(a,r){return!r&&console.warn(a)},pI=function(a,r){return a&&(Bt[a]=r)&&x9&&(x9[a]=r)||Bt},tl=function(){return 0},uD={suppressEvents:!0,isStart:!0,kill:!1},o9={suppressEvents:!0,kill:!1},pD={suppressEvents:!0},OC={},vr=[],Qj={},yI,Rt={},fj={},tL=30,c9=[],HC="",VC=function(a){var r=a[0],n,s;if(La(r)||Je(r)||(a=[a]),!(n=(r._gsap||{}).harness)){for(s=c9.length;s--&&!c9[s].targetTest(r););n=c9[s]}for(s=a.length;s--;)a[s]&&(a[s]._gsap||(a[s]._gsap=new EI(a[s],n)))||a.splice(s,1);return a},uo=function(a){return a._gsap||VC(Yt(a))[0]._gsap},mI=function(a,r,n){return(n=a[r])&&Je(n)?a[r]():DC(n)&&a.getAttribute&&a.getAttribute(r)||n},St=function(a,r){return(a=a.split(",")).forEach(r)||a},Ke=function(a){return Math.round(a*1e5)/1e5||0},st=function(a){return Math.round(a*1e7)/1e7||0},Xo=function(a,r){var n=r.charAt(0),s=parseFloat(r.substr(2));return a=parseFloat(a),n==="+"?a+s:n==="-"?a-s:n==="*"?a*s:a/s},yD=function(a,r){for(var n=r.length,s=0;a.indexOf(r[s])<0&&++s<n;);return s<n},g9=function(){var a=vr.length,r=vr.slice(0),n,s;for(Qj={},vr.length=0,n=0;n<a;n++)s=r[n],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},fI=function(a,r,n,s){vr.length&&!yt&&g9(),a.render(r,n,yt&&r<0&&(a._initted||a._startAt)),vr.length&&!yt&&g9()},xI=function(a){var r=parseFloat(a);return(r||r===0)&&(a+"").match(dI).length<2?r:ot(a)?a.trim():a},gI=function(a){return a},ra=function(a,r){for(var n in r)n in a||(a[n]=r[n]);return a},mD=function(a){return function(r,n){for(var s in n)s in r||s==="duration"&&a||s==="ease"||(r[s]=n[s])}},go=function(a,r){for(var n in r)a[n]=r[n];return a},aL=function t(a,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(a[n]=La(r[n])?t(a[n]||(a[n]={}),r[n]):r[n]);return a},k9=function(a,r){var n={},s;for(s in a)s in r||(n[s]=a[s]);return n},Zc=function(a){var r=a.parent||$e,n=a.keyframes?mD(mt(a.keyframes)):ra;if(Ct(a.inherit))for(;r;)n(a,r.vars.defaults),r=r.parent||r._dp;return a},fD=function(a,r){for(var n=a.length,s=n===r.length;s&&n--&&a[n]===r[n];);return n<0},kI=function(a,r,n,s,i){var c=a[s],l;if(i)for(l=r[i];c&&c[i]>l;)c=c._prev;return c?(r._next=c._next,c._next=r):(r._next=a[n],a[n]=r),r._next?r._next._prev=r:a[s]=r,r._prev=c,r.parent=r._dp=a,r},E9=function(a,r,n,s){n===void 0&&(n="_first"),s===void 0&&(s="_last");var i=r._prev,c=r._next;i?i._next=c:a[n]===r&&(a[n]=c),c?c._prev=i:a[s]===r&&(a[s]=i),r._next=r._prev=r.parent=null},Mr=function(a,r){a.parent&&(!r||a.parent.autoRemoveChildren)&&a.parent.remove&&a.parent.remove(a),a._act=0},po=function(a,r){if(a&&(!r||r._end>a._dur||r._start<0))for(var n=a;n;)n._dirty=1,n=n.parent;return a},xD=function(a){for(var r=a.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return a},eC=function(a,r,n,s){return a._startAt&&(yt?a._startAt.revert(o9):a.vars.immediateRender&&!a.vars.autoRevert||a._startAt.render(r,!0,s))},gD=function t(a){return!a||a._ts&&t(a.parent)},rL=function(a){return a._repeat?rc(a._tTime,a=a.duration()+a._rDelay)*a:0},rc=function(a,r){var n=Math.floor(a/=r);return a&&n===a?n-1:n},v9=function(a,r){return(a-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},F9=function(a){return a._end=st(a._start+(a._tDur/Math.abs(a._ts||a._rts||Fe)||0))},O9=function(a,r){var n=a._dp;return n&&n.smoothChildTiming&&a._ts&&(a._start=st(n._time-(a._ts>0?r/a._ts:((a._dirty?a.totalDuration():a._tDur)-r)/-a._ts)),F9(a),n._dirty||po(n,a)),a},vI=function(a,r){var n;if((r._time||!r._dur&&r._initted||r._start<a._time&&(r._dur||!r.add))&&(n=v9(a.rawTime(),r),(!r._dur||hl(0,r.totalDuration(),n)-r._tTime>Fe)&&r.render(n,!0)),po(a,r)._dp&&a._initted&&a._time>=a._dur&&a._ts){if(a._dur<a.duration())for(n=a;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;a._zTime=-Fe}},ka=function(a,r,n,s){return r.parent&&Mr(r),r._start=st(($a(n)?n:n||a!==$e?Zt(a,n,r):a._time)+r._delay),r._end=st(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),kI(a,r,"_first","_last",a._sort?"_start":0),tC(r)||(a._recent=r),s||vI(a,r),a._ts<0&&O9(a,a._tTime),a},wI=function(a,r){return(Bt.ScrollTrigger||FC("scrollTrigger",r))&&Bt.ScrollTrigger.create(r,a)},bI=function(a,r,n,s,i){if($C(a,r,i),!a._initted)return 1;if(!n&&a._pt&&!yt&&(a._dur&&a.vars.lazy!==!1||!a._dur&&a.vars.lazy)&&yI!==zt.frame)return vr.push(a),a._lazy=[i,s],1},kD=function t(a){var r=a.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},tC=function(a){var r=a.data;return r==="isFromStart"||r==="isStart"},vD=function(a,r,n,s){var i=a.ratio,c=r<0||!r&&(!a._start&&kD(a)&&!(!a._initted&&tC(a))||(a._ts<0||a._dp._ts<0)&&!tC(a))?0:1,l=a._rDelay,d=0,h,u,p;if(l&&a._repeat&&(d=hl(0,a._tDur,r),u=rc(d,l),a._yoyo&&u&1&&(c=1-c),u!==rc(a._tTime,l)&&(i=1-c,a.vars.repeatRefresh&&a._initted&&a.invalidate())),c!==i||yt||s||a._zTime===Fe||!r&&a._zTime){if(!a._initted&&bI(a,r,s,n,d))return;for(p=a._zTime,a._zTime=r||(n?Fe:0),n||(n=r&&!p),a.ratio=c,a._from&&(c=1-c),a._time=0,a._tTime=d,h=a._pt;h;)h.r(c,h.d),h=h._next;r<0&&eC(a,r,n,!0),a._onUpdate&&!n&&Ft(a,"onUpdate"),d&&a._repeat&&!n&&a.parent&&Ft(a,"onRepeat"),(r>=a._tDur||r<0)&&a.ratio===c&&(c&&Mr(a,1),!n&&!yt&&(Ft(a,c?"onComplete":"onReverseComplete",!0),a._prom&&a._prom()))}else a._zTime||(a._zTime=r)},wD=function(a,r,n){var s;if(n>r)for(s=a._first;s&&s._start<=n;){if(s.data==="isPause"&&s._start>r)return s;s=s._next}else for(s=a._last;s&&s._start>=n;){if(s.data==="isPause"&&s._start<r)return s;s=s._prev}},nc=function(a,r,n,s){var i=a._repeat,c=st(r)||0,l=a._tTime/a._tDur;return l&&!s&&(a._time*=c/a._dur),a._dur=c,a._tDur=i?i<0?1e10:st(c*(i+1)+a._rDelay*i):c,l>0&&!s&&O9(a,a._tTime=a._tDur*l),a.parent&&F9(a),n||po(a.parent,a),a},nL=function(a){return a instanceof kt?po(a):nc(a,a._dur)},bD={_start:0,endTime:tl,totalDuration:tl},Zt=function t(a,r,n){var s=a.labels,i=a._recent||bD,c=a.duration()>=Xt?i.endTime(!1):a._dur,l,d,h;return ot(r)&&(isNaN(r)||r in s)?(d=r.charAt(0),h=r.substr(-1)==="%",l=r.indexOf("="),d==="<"||d===">"?(l>=0&&(r=r.replace(/=/,"")),(d==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(r.substr(1))||0)*(h?(l<0?i:n).totalDuration()/100:1)):l<0?(r in s||(s[r]=c),s[r]):(d=parseFloat(r.charAt(l-1)+r.substr(l+1)),h&&n&&(d=d/100*(mt(n)?n[0]:n).totalDuration()),l>1?t(a,r.substr(0,l-1),n)+d:c+d)):r==null?c:+r},Jc=function(a,r,n){var s=$a(r[1]),i=(s?2:1)+(a<2?0:1),c=r[i],l,d;if(s&&(c.duration=r[1]),c.parent=n,a){for(l=c,d=n;d&&!("immediateRender"in l);)l=d.vars.defaults||{},d=Ct(d.vars.inherit)&&d.parent;c.immediateRender=Ct(l.immediateRender),a<2?c.runBackwards=1:c.startAt=r[i-1]}return new Qe(r[0],c,r[i+1])},Ar=function(a,r){return a||a===0?r(a):r},hl=function(a,r,n){return n<a?a:n>r?r:n},ut=function(a,r){return!ot(a)||!(r=hD.exec(a))?"":r[1]},MD=function(a,r,n){return Ar(n,function(s){return hl(a,r,s)})},aC=[].slice,MI=function(a,r){return a&&La(a)&&"length"in a&&(!r&&!a.length||a.length-1 in a&&La(a[0]))&&!a.nodeType&&a!==fa},jD=function(a,r,n){return n===void 0&&(n=[]),a.forEach(function(s){var i;return ot(s)&&!r||MI(s,1)?(i=n).push.apply(i,Yt(s)):n.push(s)})||n},Yt=function(a,r,n){return Ve&&!r&&Ve.selector?Ve.selector(a):ot(a)&&!n&&(Kj||!sc())?aC.call((r||EC).querySelectorAll(a),0):mt(a)?jD(a,n):MI(a)?aC.call(a,0):a?[a]:[]},rC=function(a){return a=Yt(a)[0]||el("Invalid scope")||{},function(r){var n=a.current||a.nativeElement||a;return Yt(r,n.querySelectorAll?n:n===a?el("Invalid scope")||EC.createElement("div"):a)}},jI=function(a){return a.sort(function(){return .5-Math.random()})},CI=function(a){if(Je(a))return a;var r=La(a)?a:{each:a},n=yo(r.ease),s=r.from||0,i=parseFloat(r.base)||0,c={},l=s>0&&s<1,d=isNaN(s)||l,h=r.axis,u=s,p=s;return ot(s)?u=p={center:.5,edges:.5,end:1}[s]||0:!l&&d&&(u=s[0],p=s[1]),function(m,y,x){var f=(x||r).length,v=c[f],k,w,b,S,C,A,L,j,N;if(!v){if(N=r.grid==="auto"?0:(r.grid||[1,Xt])[1],!N){for(L=-Xt;L<(L=x[N++].getBoundingClientRect().left)&&N<f;);N<f&&N--}for(v=c[f]=[],k=d?Math.min(N,f)*u-.5:s%N,w=N===Xt?0:d?f*p/N-.5:s/N|0,L=0,j=Xt,A=0;A<f;A++)b=A%N-k,S=w-(A/N|0),v[A]=C=h?Math.abs(h==="y"?S:b):iI(b*b+S*S),C>L&&(L=C),C<j&&(j=C);s==="random"&&jI(v),v.max=L-j,v.min=j,v.v=f=(parseFloat(r.amount)||parseFloat(r.each)*(N>f?f-1:h?h==="y"?f/N:N:Math.max(N,f/N))||0)*(s==="edges"?-1:1),v.b=f<0?i-f:i,v.u=ut(r.amount||r.each)||0,n=n&&f<0?qI(n):n}return f=(v[m]-v.min)/v.max||0,st(v.b+(n?n(f):f)*v.v)+v.u}},nC=function(a){var r=Math.pow(10,((a+"").split(".")[1]||"").length);return function(n){var s=st(Math.round(parseFloat(n)/a)*a*r);return(s-s%1)/r+($a(n)?0:ut(n))}},SI=function(a,r){var n=mt(a),s,i;return!n&&La(a)&&(s=n=a.radius||Xt,a.values?(a=Yt(a.values),(i=!$a(a[0]))&&(s*=s)):a=nC(a.increment)),Ar(r,n?Je(a)?function(c){return i=a(c),Math.abs(i-c)<=s?i:c}:function(c){for(var l=parseFloat(i?c.x:c),d=parseFloat(i?c.y:0),h=Xt,u=0,p=a.length,m,y;p--;)i?(m=a[p].x-l,y=a[p].y-d,m=m*m+y*y):m=Math.abs(a[p]-l),m<h&&(h=m,u=p);return u=!s||h<=s?a[u]:c,i||u===c||$a(c)?u:u+ut(c)}:nC(a))},LI=function(a,r,n,s){return Ar(mt(a)?!r:n===!0?!!(n=0):!s,function(){return mt(a)?a[~~(Math.random()*a.length)]:(n=n||1e-5)&&(s=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((a-n/2+Math.random()*(r-a+n*.99))/n)*n*s)/s})},CD=function(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];return function(s){return r.reduce(function(i,c){return c(i)},s)}},SD=function(a,r){return function(n){return a(parseFloat(n))+(r||ut(n))}},LD=function(a,r,n){return II(a,r,0,1,n)},NI=function(a,r,n){return Ar(n,function(s){return a[~~r(s)]})},ND=function t(a,r,n){var s=r-a;return mt(a)?NI(a,t(0,a.length),r):Ar(n,function(i){return(s+(i-a)%s)%s+a})},ID=function t(a,r,n){var s=r-a,i=s*2;return mt(a)?NI(a,t(0,a.length-1),r):Ar(n,function(c){return c=(i+(c-a)%i)%i||0,a+(c>s?i-c:c)})},al=function(a){for(var r=0,n="",s,i,c,l;~(s=a.indexOf("random(",r));)c=a.indexOf(")",s),l=a.charAt(s+7)==="[",i=a.substr(s+7,c-s-7).match(l?dI:Yj),n+=a.substr(r,s-r)+LI(l?i:+i[0],l?0:+i[1],+i[2]||1e-5),r=c+1;return n+a.substr(r,a.length-r)},II=function(a,r,n,s,i){var c=r-a,l=s-n;return Ar(i,function(d){return n+((d-a)/c*l||0)})},AD=function t(a,r,n,s){var i=isNaN(a+r)?0:function(y){return(1-y)*a+y*r};if(!i){var c=ot(a),l={},d,h,u,p,m;if(n===!0&&(s=1)&&(n=null),c)a={p:a},r={p:r};else if(mt(a)&&!mt(r)){for(u=[],p=a.length,m=p-2,h=1;h<p;h++)u.push(t(a[h-1],a[h]));p--,i=function(x){x*=p;var f=Math.min(m,~~x);return u[f](x-f)},n=r}else s||(a=go(mt(a)?[]:{},a));if(!u){for(d in r)BC.call(l,a,d,"get",r[d]);i=function(x){return WC(x,l)||(c?a.p:a)}}}return Ar(n,i)},sL=function(a,r,n){var s=a.labels,i=Xt,c,l,d;for(c in s)l=s[c]-r,l<0==!!n&&l&&i>(l=Math.abs(l))&&(d=c,i=l);return d},Ft=function(a,r,n){var s=a.vars,i=s[r],c=Ve,l=a._ctx,d,h,u;if(i)return d=s[r+"Params"],h=s.callbackScope||a,n&&vr.length&&g9(),l&&(Ve=l),u=d?i.apply(h,d):i.call(h),Ve=c,u},vc=function(a){return Mr(a),a.scrollTrigger&&a.scrollTrigger.kill(!!yt),a.progress()<1&&Ft(a,"onInterrupt"),a},Ro,AI=[],PI=function(a){if(a)if(a=!a.name&&a.default||a,zC()||a.headless){var r=a.name,n=Je(a),s=r&&!n&&a.init?function(){this._props=[]}:a,i={init:tl,render:WC,add:BC,kill:GD,modifier:UD,rawVars:0},c={targetTest:0,get:0,getSetter:GC,aliases:{},register:0};if(sc(),a!==s){if(Rt[r])return;ra(s,ra(k9(a,i),c)),go(s.prototype,go(i,k9(a,c))),Rt[s.prop=r]=s,a.targetTest&&(c9.push(s),OC[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}pI(r,s),a.register&&a.register(It,s,Lt)}else AI.push(a)},De=255,wc={aqua:[0,De,De],lime:[0,De,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,De],navy:[0,0,128],white:[De,De,De],olive:[128,128,0],yellow:[De,De,0],orange:[De,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[De,0,0],pink:[De,192,203],cyan:[0,De,De],transparent:[De,De,De,0]},xj=function(a,r,n){return a+=a<0?1:a>1?-1:0,(a*6<1?r+(n-r)*a*6:a<.5?n:a*3<2?r+(n-r)*(2/3-a)*6:r)*De+.5|0},_I=function(a,r,n){var s=a?$a(a)?[a>>16,a>>8&De,a&De]:0:wc.black,i,c,l,d,h,u,p,m,y,x;if(!s){if(a.substr(-1)===","&&(a=a.substr(0,a.length-1)),wc[a])s=wc[a];else if(a.charAt(0)==="#"){if(a.length<6&&(i=a.charAt(1),c=a.charAt(2),l=a.charAt(3),a="#"+i+i+c+c+l+l+(a.length===5?a.charAt(4)+a.charAt(4):"")),a.length===9)return s=parseInt(a.substr(1,6),16),[s>>16,s>>8&De,s&De,parseInt(a.substr(7),16)/255];a=parseInt(a.substr(1),16),s=[a>>16,a>>8&De,a&De]}else if(a.substr(0,3)==="hsl"){if(s=x=a.match(Yj),!r)d=+s[0]%360/360,h=+s[1]/100,u=+s[2]/100,c=u<=.5?u*(h+1):u+h-u*h,i=u*2-c,s.length>3&&(s[3]*=1),s[0]=xj(d+1/3,i,c),s[1]=xj(d,i,c),s[2]=xj(d-1/3,i,c);else if(~a.indexOf("="))return s=a.match(cI),n&&s.length<4&&(s[3]=1),s}else s=a.match(Yj)||wc.transparent;s=s.map(Number)}return r&&!x&&(i=s[0]/De,c=s[1]/De,l=s[2]/De,p=Math.max(i,c,l),m=Math.min(i,c,l),u=(p+m)/2,p===m?d=h=0:(y=p-m,h=u>.5?y/(2-p-m):y/(p+m),d=p===i?(c-l)/y+(c<l?6:0):p===c?(l-i)/y+2:(i-c)/y+4,d*=60),s[0]=~~(d+.5),s[1]=~~(h*100+.5),s[2]=~~(u*100+.5)),n&&s.length<4&&(s[3]=1),s},RI=function(a){var r=[],n=[],s=-1;return a.split(wr).forEach(function(i){var c=i.match(_o)||[];r.push.apply(r,c),n.push(s+=c.length+1)}),r.c=n,r},iL=function(a,r,n){var s="",i=(a+s).match(wr),c=r?"hsla(":"rgba(",l=0,d,h,u,p;if(!i)return a;if(i=i.map(function(m){return(m=_I(m,r,1))&&c+(r?m[0]+","+m[1]+"%,"+m[2]+"%,"+m[3]:m.join(","))+")"}),n&&(u=RI(a),d=n.c,d.join(s)!==u.c.join(s)))for(h=a.replace(wr,"1").split(_o),p=h.length-1;l<p;l++)s+=h[l]+(~d.indexOf(l)?i.shift()||c+"0,0,0,0)":(u.length?u:i.length?i:n).shift());if(!h)for(h=a.split(wr),p=h.length-1;l<p;l++)s+=h[l]+i[l];return s+h[p]},wr=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",a;for(a in wc)t+="|"+a+"\\b";return new RegExp(t+")","gi")}(),PD=/hsl[a]?\(/,TI=function(a){var r=a.join(" "),n;if(wr.lastIndex=0,wr.test(r))return n=PD.test(r),a[1]=iL(a[1],n),a[0]=iL(a[0],n,RI(a[1])),!0},rl,zt=function(){var t=Date.now,a=500,r=33,n=t(),s=n,i=1e3/240,c=i,l=[],d,h,u,p,m,y,x=function f(v){var k=t()-s,w=v===!0,b,S,C,A;if((k>a||k<0)&&(n+=k-r),s+=k,C=s-n,b=C-c,(b>0||w)&&(A=++p.frame,m=C-p.time*1e3,p.time=C=C/1e3,c+=b+(b>=i?4:i-b),S=1),w||(d=h(f)),S)for(y=0;y<l.length;y++)l[y](C,m,A,v)};return p={time:0,frame:0,tick:function(){x(!0)},deltaRatio:function(v){return m/(1e3/(v||60))},wake:function(){hI&&(!Kj&&zC()&&(fa=Kj=window,EC=fa.document||{},Bt.gsap=It,(fa.gsapVersions||(fa.gsapVersions=[])).push(It.version),uI(x9||fa.GreenSockGlobals||!fa.gsap&&fa||{}),AI.forEach(PI)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,d&&p.sleep(),h=u||function(v){return setTimeout(v,c-p.time*1e3+1|0)},rl=1,x(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(d),rl=0,h=tl},lagSmoothing:function(v,k){a=v||1/0,r=Math.min(k||33,a)},fps:function(v){i=1e3/(v||240),c=p.time*1e3+i},add:function(v,k,w){var b=k?function(S,C,A,L){v(S,C,A,L),p.remove(b)}:v;return p.remove(v),l[w?"unshift":"push"](b),sc(),b},remove:function(v,k){~(k=l.indexOf(v))&&l.splice(k,1)&&y>=k&&y--},_listeners:l},p}(),sc=function(){return!rl&&zt.wake()},Le={},_D=/^[\d.\-M][\d.\-,\s]/,RD=/["']/g,TD=function(a){for(var r={},n=a.substr(1,a.length-3).split(":"),s=n[0],i=1,c=n.length,l,d,h;i<c;i++)d=n[i],l=i!==c-1?d.lastIndexOf(","):d.length,h=d.substr(0,l),r[s]=isNaN(h)?h.replace(RD,"").trim():+h,s=d.substr(l+1).trim();return r},qD=function(a){var r=a.indexOf("(")+1,n=a.indexOf(")"),s=a.indexOf("(",r);return a.substring(r,~s&&s<n?a.indexOf(")",n+1):n)},DD=function(a){var r=(a+"").split("("),n=Le[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~a.indexOf("{")?[TD(r[1])]:qD(a).split(",").map(xI)):Le._CE&&_D.test(a)?Le._CE("",a):n},qI=function(a){return function(r){return 1-a(1-r)}},DI=function t(a,r){for(var n=a._first,s;n;)n instanceof kt?t(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?t(n.timeline,r):(s=n._ease,n._ease=n._yEase,n._yEase=s,n._yoyo=r)),n=n._next},yo=function(a,r){return a&&(Je(a)?a:Le[a]||DD(a))||r},Lo=function(a,r,n,s){n===void 0&&(n=function(d){return 1-r(1-d)}),s===void 0&&(s=function(d){return d<.5?r(d*2)/2:1-r((1-d)*2)/2});var i={easeIn:r,easeOut:n,easeInOut:s},c;return St(a,function(l){Le[l]=Bt[l]=i,Le[c=l.toLowerCase()]=n;for(var d in i)Le[c+(d==="easeIn"?".in":d==="easeOut"?".out":".inOut")]=Le[l+"."+d]=i[d]}),i},zI=function(a){return function(r){return r<.5?(1-a(1-r*2))/2:.5+a((r-.5)*2)/2}},gj=function t(a,r,n){var s=r>=1?r:1,i=(n||(a?.3:.45))/(r<1?r:1),c=i/Xj*(Math.asin(1/s)||0),l=function(u){return u===1?1:s*Math.pow(2,-10*u)*dD((u-c)*i)+1},d=a==="out"?l:a==="in"?function(h){return 1-l(1-h)}:zI(l);return i=Xj/i,d.config=function(h,u){return t(a,h,u)},d},kj=function t(a,r){r===void 0&&(r=1.70158);var n=function(c){return c?--c*c*((r+1)*c+r)+1:0},s=a==="out"?n:a==="in"?function(i){return 1-n(1-i)}:zI(n);return s.config=function(i){return t(a,i)},s};St("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,a){var r=a<5?a+1:a;Lo(t+",Power"+(r-1),a?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Le.Linear.easeNone=Le.none=Le.Linear.easeIn;Lo("Elastic",gj("in"),gj("out"),gj());(function(t,a){var r=1/a,n=2*r,s=2.5*r,i=function(l){return l<r?t*l*l:l<n?t*Math.pow(l-1.5/a,2)+.75:l<s?t*(l-=2.25/a)*l+.9375:t*Math.pow(l-2.625/a,2)+.984375};Lo("Bounce",function(c){return 1-i(1-c)},i)})(7.5625,2.75);Lo("Expo",function(t){return t?Math.pow(2,10*(t-1)):0});Lo("Circ",function(t){return-(iI(1-t*t)-1)});Lo("Sine",function(t){return t===1?1:-lD(t*oD)+1});Lo("Back",kj("in"),kj("out"),kj());Le.SteppedEase=Le.steps=Bt.SteppedEase={config:function(a,r){a===void 0&&(a=1);var n=1/a,s=a+(r?0:1),i=r?1:0,c=1-Fe;return function(l){return((s*hl(0,c,l)|0)+i)*n}}};ac.ease=Le["quad.out"];St("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return HC+=t+","+t+"Params,"});var EI=function(a,r){this.id=cD++,a._gsap=this,this.target=a,this.harness=r,this.get=r?r.get:mI,this.set=r?r.getSetter:GC},nl=function(){function t(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,nc(this,+r.duration,1,1),this.data=r.data,Ve&&(this._ctx=Ve,Ve.data.push(this)),rl||zt.wake()}var a=t.prototype;return a.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},a.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},a.totalDuration=function(n){return arguments.length?(this._dirty=0,nc(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},a.totalTime=function(n,s){if(sc(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(O9(this,n),!i._dp||i.parent||vI(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&ka(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===Fe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),fI(this,n,s)),this},a.time=function(n,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+rL(this))%(this._dur+this._rDelay)||(n?this._dur:0),s):this._time},a.totalProgress=function(n,s){return arguments.length?this.totalTime(this.totalDuration()*n,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},a.progress=function(n,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+rL(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},a.iteration=function(n,s){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,s):this._repeat?rc(this._tTime,i)+1:1},a.timeScale=function(n,s){if(!arguments.length)return this._rts===-Fe?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?v9(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Fe?0:this._rts,this.totalTime(hl(-Math.abs(this._delay),this._tDur,i),s!==!1),F9(this),xD(this)},a.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(sc(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Fe&&(this._tTime-=Fe)))),this):this._ps},a.startTime=function(n){if(arguments.length){this._start=n;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&ka(s,this,n-this._delay),this}return this._start},a.endTime=function(n){return this._start+(Ct(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},a.rawTime=function(n){var s=this.parent||this._dp;return s?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?v9(s.rawTime(n),this):this._tTime:this._tTime},a.revert=function(n){n===void 0&&(n=pD);var s=yt;return yt=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),yt=s,this},a.globalTime=function(n){for(var s=this,i=arguments.length?n:s.rawTime();s;)i=s._start+i/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},a.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,nL(this)):this._repeat===-2?1/0:this._repeat},a.repeatDelay=function(n){if(arguments.length){var s=this._time;return this._rDelay=n,nL(this),s?this.time(s):this}return this._rDelay},a.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},a.seek=function(n,s){return this.totalTime(Zt(this,n),Ct(s))},a.restart=function(n,s){return this.play().totalTime(n?-this._delay:0,Ct(s))},a.play=function(n,s){return n!=null&&this.seek(n,s),this.reversed(!1).paused(!1)},a.reverse=function(n,s){return n!=null&&this.seek(n||this.totalDuration(),s),this.reversed(!0).paused(!1)},a.pause=function(n,s){return n!=null&&this.seek(n,s),this.paused(!0)},a.resume=function(){return this.paused(!1)},a.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Fe:0)),this):this._rts<0},a.invalidate=function(){return this._initted=this._act=0,this._zTime=-Fe,this},a.isActive=function(){var n=this.parent||this._dp,s=this._start,i;return!!(!n||this._ts&&this._initted&&n.isActive()&&(i=n.rawTime(!0))>=s&&i<this.endTime(!0)-Fe)},a.eventCallback=function(n,s,i){var c=this.vars;return arguments.length>1?(s?(c[n]=s,i&&(c[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=s)):delete c[n],this):c[n]},a.then=function(n){var s=this;return new Promise(function(i){var c=Je(n)?n:gI,l=function(){var h=s.then;s.then=null,Je(c)&&(c=c(s))&&(c.then||c===s)&&(s.then=h),i(c),s.then=h};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},a.kill=function(){vc(this)},t}();ra(nl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Fe,_prom:0,_ps:!1,_rts:1});var kt=function(t){sI(a,t);function a(n,s){var i;return n===void 0&&(n={}),i=t.call(this,n)||this,i.labels={},i.smoothChildTiming=!!n.smoothChildTiming,i.autoRemoveChildren=!!n.autoRemoveChildren,i._sort=Ct(n.sortChildren),$e&&ka(n.parent||$e,Da(i),s),n.reversed&&i.reverse(),n.paused&&i.paused(!0),n.scrollTrigger&&wI(Da(i),n.scrollTrigger),i}var r=a.prototype;return r.to=function(s,i,c){return Jc(0,arguments,this),this},r.from=function(s,i,c){return Jc(1,arguments,this),this},r.fromTo=function(s,i,c,l){return Jc(2,arguments,this),this},r.set=function(s,i,c){return i.duration=0,i.parent=this,Zc(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Qe(s,i,Zt(this,c),1),this},r.call=function(s,i,c){return ka(this,Qe.delayedCall(0,s,i),c)},r.staggerTo=function(s,i,c,l,d,h,u){return c.duration=i,c.stagger=c.stagger||l,c.onComplete=h,c.onCompleteParams=u,c.parent=this,new Qe(s,c,Zt(this,d)),this},r.staggerFrom=function(s,i,c,l,d,h,u){return c.runBackwards=1,Zc(c).immediateRender=Ct(c.immediateRender),this.staggerTo(s,i,c,l,d,h,u)},r.staggerFromTo=function(s,i,c,l,d,h,u,p){return l.startAt=c,Zc(l).immediateRender=Ct(l.immediateRender),this.staggerTo(s,i,l,d,h,u,p)},r.render=function(s,i,c){var l=this._time,d=this._dirty?this.totalDuration():this._tDur,h=this._dur,u=s<=0?0:st(s),p=this._zTime<0!=s<0&&(this._initted||!h),m,y,x,f,v,k,w,b,S,C,A,L;if(this!==$e&&u>d&&s>=0&&(u=d),u!==this._tTime||c||p){if(l!==this._time&&h&&(u+=this._time-l,s+=this._time-l),m=u,S=this._start,b=this._ts,k=!b,p&&(h||(l=this._zTime),(s||!i)&&(this._zTime=s)),this._repeat){if(A=this._yoyo,v=h+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(v*100+s,i,c);if(m=st(u%v),u===d?(f=this._repeat,m=h):(f=~~(u/v),f&&f===u/v&&(m=h,f--),m>h&&(m=h)),C=rc(this._tTime,v),!l&&this._tTime&&C!==f&&this._tTime-C*v-this._dur<=0&&(C=f),A&&f&1&&(m=h-m,L=1),f!==C&&!this._lock){var j=A&&C&1,N=j===(A&&f&1);if(f<C&&(j=!j),l=j?0:u%h?h:u,this._lock=1,this.render(l||(L?0:st(f*v)),i,!h)._lock=0,this._tTime=u,!i&&this.parent&&Ft(this,"onRepeat"),this.vars.repeatRefresh&&!L&&(this.invalidate()._lock=1),l&&l!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(h=this._dur,d=this._tDur,N&&(this._lock=2,l=j?h:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!L&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;DI(this,L)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=wD(this,st(l),st(m)),w&&(u-=m-(m=w._start))),this._tTime=u,this._time=m,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,l=0),!l&&m&&!i&&!f&&(Ft(this,"onStart"),this._tTime!==u))return this;if(m>=l&&s>=0)for(y=this._first;y;){if(x=y._next,(y._act||m>=y._start)&&y._ts&&w!==y){if(y.parent!==this)return this.render(s,i,c);if(y.render(y._ts>0?(m-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(m-y._start)*y._ts,i,c),m!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=-Fe);break}}y=x}else{y=this._last;for(var q=s<0?s:m;y;){if(x=y._prev,(y._act||q<=y._end)&&y._ts&&w!==y){if(y.parent!==this)return this.render(s,i,c);if(y.render(y._ts>0?(q-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(q-y._start)*y._ts,i,c||yt&&(y._initted||y._startAt)),m!==this._time||!this._ts&&!k){w=0,x&&(u+=this._zTime=q?-Fe:Fe);break}}y=x}}if(w&&!i&&(this.pause(),w.render(m>=l?0:-Fe)._zTime=m>=l?1:-1,this._ts))return this._start=S,F9(this),this.render(s,i,c);this._onUpdate&&!i&&Ft(this,"onUpdate",!0),(u===d&&this._tTime>=this.totalDuration()||!u&&l)&&(S===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((s||!h)&&(u===d&&this._ts>0||!u&&this._ts<0)&&Mr(this,1),!i&&!(s<0&&!l)&&(u||l||!d)&&(Ft(this,u===d&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<d&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(s,i){var c=this;if($a(i)||(i=Zt(this,i,s)),!(s instanceof nl)){if(mt(s))return s.forEach(function(l){return c.add(l,i)}),this;if(ot(s))return this.addLabel(s,i);if(Je(s))s=Qe.delayedCall(0,s);else return this}return this!==s?ka(this,s,i):this},r.getChildren=function(s,i,c,l){s===void 0&&(s=!0),i===void 0&&(i=!0),c===void 0&&(c=!0),l===void 0&&(l=-Xt);for(var d=[],h=this._first;h;)h._start>=l&&(h instanceof Qe?i&&d.push(h):(c&&d.push(h),s&&d.push.apply(d,h.getChildren(!0,i,c)))),h=h._next;return d},r.getById=function(s){for(var i=this.getChildren(1,1,1),c=i.length;c--;)if(i[c].vars.id===s)return i[c]},r.remove=function(s){return ot(s)?this.removeLabel(s):Je(s)?this.killTweensOf(s):(E9(this,s),s===this._recent&&(this._recent=this._last),po(this))},r.totalTime=function(s,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=st(zt.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),t.prototype.totalTime.call(this,s,i),this._forcing=0,this):this._tTime},r.addLabel=function(s,i){return this.labels[s]=Zt(this,i),this},r.removeLabel=function(s){return delete this.labels[s],this},r.addPause=function(s,i,c){var l=Qe.delayedCall(0,i||tl,c);return l.data="isPause",this._hasPause=1,ka(this,l,Zt(this,s))},r.removePause=function(s){var i=this._first;for(s=Zt(this,s);i;)i._start===s&&i.data==="isPause"&&Mr(i),i=i._next},r.killTweensOf=function(s,i,c){for(var l=this.getTweensOf(s,c),d=l.length;d--;)cr!==l[d]&&l[d].kill(s,i);return this},r.getTweensOf=function(s,i){for(var c=[],l=Yt(s),d=this._first,h=$a(i),u;d;)d instanceof Qe?yD(d._targets,l)&&(h?(!cr||d._initted&&d._ts)&&d.globalTime(0)<=i&&d.globalTime(d.totalDuration())>i:!i||d.isActive())&&c.push(d):(u=d.getTweensOf(l,i)).length&&c.push.apply(c,u),d=d._next;return c},r.tweenTo=function(s,i){i=i||{};var c=this,l=Zt(c,s),d=i,h=d.startAt,u=d.onStart,p=d.onStartParams,m=d.immediateRender,y,x=Qe.to(c,ra({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:i.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale())||Fe,onStart:function(){if(c.pause(),!y){var v=i.duration||Math.abs((l-(h&&"time"in h?h.time:c._time))/c.timeScale());x._dur!==v&&nc(x,v,0,1).render(x._time,!0,!0),y=1}u&&u.apply(x,p||[])}},i));return m?x.render(0):x},r.tweenFromTo=function(s,i,c){return this.tweenTo(i,ra({startAt:{time:Zt(this,s)}},c))},r.recent=function(){return this._recent},r.nextLabel=function(s){return s===void 0&&(s=this._time),sL(this,Zt(this,s))},r.previousLabel=function(s){return s===void 0&&(s=this._time),sL(this,Zt(this,s),1)},r.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+Fe)},r.shiftChildren=function(s,i,c){c===void 0&&(c=0);for(var l=this._first,d=this.labels,h;l;)l._start>=c&&(l._start+=s,l._end+=s),l=l._next;if(i)for(h in d)d[h]>=c&&(d[h]+=s);return po(this)},r.invalidate=function(s){var i=this._first;for(this._lock=0;i;)i.invalidate(s),i=i._next;return t.prototype.invalidate.call(this,s)},r.clear=function(s){s===void 0&&(s=!0);for(var i=this._first,c;i;)c=i._next,this.remove(i),i=c;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),po(this)},r.totalDuration=function(s){var i=0,c=this,l=c._last,d=Xt,h,u,p;if(arguments.length)return c.timeScale((c._repeat<0?c.duration():c.totalDuration())/(c.reversed()?-s:s));if(c._dirty){for(p=c.parent;l;)h=l._prev,l._dirty&&l.totalDuration(),u=l._start,u>d&&c._sort&&l._ts&&!c._lock?(c._lock=1,ka(c,l,u-l._delay,1)._lock=0):d=u,u<0&&l._ts&&(i-=u,(!p&&!c._dp||p&&p.smoothChildTiming)&&(c._start+=u/c._ts,c._time-=u,c._tTime-=u),c.shiftChildren(-u,!1,-1/0),d=0),l._end>i&&l._ts&&(i=l._end),l=h;nc(c,c===$e&&c._time>i?c._time:i,1,1),c._dirty=0}return c._tDur},a.updateRoot=function(s){if($e._ts&&(fI($e,v9(s,$e)),yI=zt.frame),zt.frame>=tL){tL+=Ht.autoSleep||120;var i=$e._first;if((!i||!i._ts)&&Ht.autoSleep&&zt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||zt.sleep()}}},a}(nl);ra(kt.prototype,{_lock:0,_hasPause:0,_forcing:0});var zD=function(a,r,n,s,i,c,l){var d=new Lt(this._pt,a,r,0,1,$I,null,i),h=0,u=0,p,m,y,x,f,v,k,w;for(d.b=n,d.e=s,n+="",s+="",(k=~s.indexOf("random("))&&(s=al(s)),c&&(w=[n,s],c(w,a,r),n=w[0],s=w[1]),m=n.match(mj)||[];p=mj.exec(s);)x=p[0],f=s.substring(h,p.index),y?y=(y+1)%5:f.substr(-5)==="rgba("&&(y=1),x!==m[u++]&&(v=parseFloat(m[u-1])||0,d._pt={_next:d._pt,p:f||u===1?f:",",s:v,c:x.charAt(1)==="="?Xo(v,x)-v:parseFloat(x)-v,m:y&&y<4?Math.round:0},h=mj.lastIndex);return d.c=h<s.length?s.substring(h,s.length):"",d.fp=l,(lI.test(s)||k)&&(d.e=0),this._pt=d,d},BC=function(a,r,n,s,i,c,l,d,h,u){Je(s)&&(s=s(i||0,a,c));var p=a[r],m=n!=="get"?n:Je(p)?h?a[r.indexOf("set")||!Je(a["get"+r.substr(3)])?r:"get"+r.substr(3)](h):a[r]():p,y=Je(p)?h?VD:VI:UC,x;if(ot(s)&&(~s.indexOf("random(")&&(s=al(s)),s.charAt(1)==="="&&(x=Xo(m,s)+(ut(m)||0),(x||x===0)&&(s=x))),!u||m!==s||sC)return!isNaN(m*s)&&s!==""?(x=new Lt(this._pt,a,r,+m||0,s-(m||0),typeof p=="boolean"?$D:BI,0,y),h&&(x.fp=h),l&&x.modifier(l,this,a),this._pt=x):(!p&&!(r in a)&&FC(r,s),zD.call(this,a,r,m,s,y,d||Ht.stringFilter,h))},ED=function(a,r,n,s,i){if(Je(a)&&(a=Xc(a,i,r,n,s)),!La(a)||a.style&&a.nodeType||mt(a)||oI(a))return ot(a)?Xc(a,i,r,n,s):a;var c={},l;for(l in a)c[l]=Xc(a[l],i,r,n,s);return c},FI=function(a,r,n,s,i,c){var l,d,h,u;if(Rt[a]&&(l=new Rt[a]).init(i,l.rawVars?r[a]:ED(r[a],s,i,c,n),n,s,c)!==!1&&(n._pt=d=new Lt(n._pt,i,a,0,1,l.render,l,0,l.priority),n!==Ro))for(h=n._ptLookup[n._targets.indexOf(i)],u=l._props.length;u--;)h[l._props[u]]=d;return l},cr,sC,$C=function t(a,r,n){var s=a.vars,i=s.ease,c=s.startAt,l=s.immediateRender,d=s.lazy,h=s.onUpdate,u=s.runBackwards,p=s.yoyoEase,m=s.keyframes,y=s.autoRevert,x=a._dur,f=a._startAt,v=a._targets,k=a.parent,w=k&&k.data==="nested"?k.vars.targets:v,b=a._overwrite==="auto"&&!qC,S=a.timeline,C,A,L,j,N,q,P,T,R,E,$,B,U;if(S&&(!m||!i)&&(i="none"),a._ease=yo(i,ac.ease),a._yEase=p?qI(yo(p===!0?i:p,ac.ease)):0,p&&a._yoyo&&!a._repeat&&(p=a._yEase,a._yEase=a._ease,a._ease=p),a._from=!S&&!!s.runBackwards,!S||m&&!s.stagger){if(T=v[0]?uo(v[0]).harness:0,B=T&&s[T.prop],C=k9(s,OC),f&&(f._zTime<0&&f.progress(1),r<0&&u&&l&&!y?f.render(-1,!0):f.revert(u&&x?o9:uD),f._lazy=0),c){if(Mr(a._startAt=Qe.set(v,ra({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!f&&Ct(d),startAt:null,delay:0,onUpdate:h&&function(){return Ft(a,"onUpdate")},stagger:0},c))),a._startAt._dp=0,a._startAt._sat=a,r<0&&(yt||!l&&!y)&&a._startAt.revert(o9),l&&x&&r<=0&&n<=0){r&&(a._zTime=r);return}}else if(u&&x&&!f){if(r&&(l=!1),L=ra({overwrite:!1,data:"isFromStart",lazy:l&&!f&&Ct(d),immediateRender:l,stagger:0,parent:k},C),B&&(L[T.prop]=B),Mr(a._startAt=Qe.set(v,L)),a._startAt._dp=0,a._startAt._sat=a,r<0&&(yt?a._startAt.revert(o9):a._startAt.render(-1,!0)),a._zTime=r,!l)t(a._startAt,Fe,Fe);else if(!r)return}for(a._pt=a._ptCache=0,d=x&&Ct(d)||d&&!x,A=0;A<v.length;A++){if(N=v[A],P=N._gsap||VC(v)[A]._gsap,a._ptLookup[A]=E={},Qj[P.id]&&vr.length&&g9(),$=w===v?A:w.indexOf(N),T&&(R=new T).init(N,B||C,a,$,w)!==!1&&(a._pt=j=new Lt(a._pt,N,R.name,0,1,R.render,R,0,R.priority),R._props.forEach(function(O){E[O]=j}),R.priority&&(q=1)),!T||B)for(L in C)Rt[L]&&(R=FI(L,C,a,$,N,w))?R.priority&&(q=1):E[L]=j=BC.call(a,N,L,"get",C[L],$,w,0,s.stringFilter);a._op&&a._op[A]&&a.kill(N,a._op[A]),b&&a._pt&&(cr=a,$e.killTweensOf(N,E,a.globalTime(r)),U=!a.parent,cr=0),a._pt&&d&&(Qj[P.id]=1)}q&&UI(a),a._onInit&&a._onInit(a)}a._onUpdate=h,a._initted=(!a._op||a._pt)&&!U,m&&r<=0&&S.render(Xt,!0,!0)},FD=function(a,r,n,s,i,c,l,d){var h=(a._pt&&a._ptCache||(a._ptCache={}))[r],u,p,m,y;if(!h)for(h=a._ptCache[r]=[],m=a._ptLookup,y=a._targets.length;y--;){if(u=m[y][r],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==r&&u.fp!==r;)u=u._next;if(!u)return sC=1,a.vars[r]="+=0",$C(a,l),sC=0,d?el(r+" not eligible for reset"):1;h.push(u)}for(y=h.length;y--;)p=h[y],u=p._pt||p,u.s=(s||s===0)&&!i?s:u.s+(s||0)+c*u.c,u.c=n-u.s,p.e&&(p.e=Ke(n)+ut(p.e)),p.b&&(p.b=u.s+ut(p.b))},OD=function(a,r){var n=a[0]?uo(a[0]).harness:0,s=n&&n.aliases,i,c,l,d;if(!s)return r;i=go({},r);for(c in s)if(c in i)for(d=s[c].split(","),l=d.length;l--;)i[d[l]]=i[c];return i},HD=function(a,r,n,s){var i=r.ease||s||"power1.inOut",c,l;if(mt(r))l=n[a]||(n[a]=[]),r.forEach(function(d,h){return l.push({t:h/(r.length-1)*100,v:d,e:i})});else for(c in r)l=n[c]||(n[c]=[]),c==="ease"||l.push({t:parseFloat(a),v:r[c],e:i})},Xc=function(a,r,n,s,i){return Je(a)?a.call(r,n,s,i):ot(a)&&~a.indexOf("random(")?al(a):a},OI=HC+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HI={};St(OI+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return HI[t]=1});var Qe=function(t){sI(a,t);function a(n,s,i,c){var l;typeof s=="number"&&(i.duration=s,s=i,i=null),l=t.call(this,c?s:Zc(s))||this;var d=l.vars,h=d.duration,u=d.delay,p=d.immediateRender,m=d.stagger,y=d.overwrite,x=d.keyframes,f=d.defaults,v=d.scrollTrigger,k=d.yoyoEase,w=s.parent||$e,b=(mt(n)||oI(n)?$a(n[0]):"length"in s)?[n]:Yt(n),S,C,A,L,j,N,q,P;if(l._targets=b.length?VC(b):el("GSAP target "+n+" not found. https://gsap.com",!Ht.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=y,x||m||kl(h)||kl(u)){if(s=l.vars,S=l.timeline=new kt({data:"nested",defaults:f||{},targets:w&&w.data==="nested"?w.vars.targets:b}),S.kill(),S.parent=S._dp=Da(l),S._start=0,m||kl(h)||kl(u)){if(L=b.length,q=m&&CI(m),La(m))for(j in m)~OI.indexOf(j)&&(P||(P={}),P[j]=m[j]);for(C=0;C<L;C++)A=k9(s,HI),A.stagger=0,k&&(A.yoyoEase=k),P&&go(A,P),N=b[C],A.duration=+Xc(h,Da(l),C,N,b),A.delay=(+Xc(u,Da(l),C,N,b)||0)-l._delay,!m&&L===1&&A.delay&&(l._delay=u=A.delay,l._start+=u,A.delay=0),S.to(N,A,q?q(C,N,b):0),S._ease=Le.none;S.duration()?h=u=0:l.timeline=0}else if(x){Zc(ra(S.vars.defaults,{ease:"none"})),S._ease=yo(x.ease||s.ease||"none");var T=0,R,E,$;if(mt(x))x.forEach(function(B){return S.to(b,B,">")}),S.duration();else{A={};for(j in x)j==="ease"||j==="easeEach"||HD(j,x[j],A,x.easeEach);for(j in A)for(R=A[j].sort(function(B,U){return B.t-U.t}),T=0,C=0;C<R.length;C++)E=R[C],$={ease:E.e,duration:(E.t-(C?R[C-1].t:0))/100*h},$[j]=E.v,S.to(b,$,T),T+=$.duration;S.duration()<h&&S.to({},{duration:h-S.duration()})}}h||l.duration(h=S.duration())}else l.timeline=0;return y===!0&&!qC&&(cr=Da(l),$e.killTweensOf(b),cr=0),ka(w,Da(l),i),s.reversed&&l.reverse(),s.paused&&l.paused(!0),(p||!h&&!x&&l._start===st(w._time)&&Ct(p)&&gD(Da(l))&&w.data!=="nested")&&(l._tTime=-Fe,l.render(Math.max(0,-u)||0)),v&&wI(Da(l),v),l}var r=a.prototype;return r.render=function(s,i,c){var l=this._time,d=this._tDur,h=this._dur,u=s<0,p=s>d-Fe&&!u?d:s<Fe?0:s,m,y,x,f,v,k,w,b,S;if(!h)vD(this,s,i,c);else if(p!==this._tTime||!s||c||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(m=p,b=this.timeline,this._repeat){if(f=h+this._rDelay,this._repeat<-1&&u)return this.totalTime(f*100+s,i,c);if(m=st(p%f),p===d?(x=this._repeat,m=h):(x=~~(p/f),x&&x===st(p/f)&&(m=h,x--),m>h&&(m=h)),k=this._yoyo&&x&1,k&&(S=this._yEase,m=h-m),v=rc(this._tTime,f),m===l&&!c&&this._initted&&x===v)return this._tTime=p,this;x!==v&&(b&&this._yEase&&DI(b,k),this.vars.repeatRefresh&&!k&&!this._lock&&this._time!==f&&this._initted&&(this._lock=c=1,this.render(st(f*x),!0).invalidate()._lock=0))}if(!this._initted){if(bI(this,u?s:m,c,i,p))return this._tTime=0,this;if(l!==this._time&&!(c&&this.vars.repeatRefresh&&x!==v))return this;if(h!==this._dur)return this.render(s,i,c)}if(this._tTime=p,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(S||this._ease)(m/h),this._from&&(this.ratio=w=1-w),m&&!l&&!i&&!x&&(Ft(this,"onStart"),this._tTime!==p))return this;for(y=this._pt;y;)y.r(w,y.d),y=y._next;b&&b.render(s<0?s:b._dur*b._ease(m/this._dur),i,c)||this._startAt&&(this._zTime=s),this._onUpdate&&!i&&(u&&eC(this,s,i,c),Ft(this,"onUpdate")),this._repeat&&x!==v&&this.vars.onRepeat&&!i&&this.parent&&Ft(this,"onRepeat"),(p===this._tDur||!p)&&this._tTime===p&&(u&&!this._onUpdate&&eC(this,s,!0,!0),(s||!h)&&(p===this._tDur&&this._ts>0||!p&&this._ts<0)&&Mr(this,1),!i&&!(u&&!l)&&(p||l||k)&&(Ft(this,p===d?"onComplete":"onReverseComplete",!0),this._prom&&!(p<d&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),t.prototype.invalidate.call(this,s)},r.resetTo=function(s,i,c,l,d){rl||zt.wake(),this._ts||this.play();var h=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||$C(this,h),u=this._ease(h/this._dur),FD(this,s,i,c,l,u,h,d)?this.resetTo(s,i,c,l,1):(O9(this,0),this.parent||kI(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(s,i){if(i===void 0&&(i="all"),!s&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?vc(this):this;if(this.timeline){var c=this.timeline.totalDuration();return this.timeline.killTweensOf(s,i,cr&&cr.vars.overwrite!==!0)._first||vc(this),this.parent&&c!==this.timeline.totalDuration()&&nc(this,this._dur*this.timeline._tDur/c,0,1),this}var l=this._targets,d=s?Yt(s):l,h=this._ptLookup,u=this._pt,p,m,y,x,f,v,k;if((!i||i==="all")&&fD(l,d))return i==="all"&&(this._pt=0),vc(this);for(p=this._op=this._op||[],i!=="all"&&(ot(i)&&(f={},St(i,function(w){return f[w]=1}),i=f),i=OD(l,i)),k=l.length;k--;)if(~d.indexOf(l[k])){m=h[k],i==="all"?(p[k]=i,x=m,y={}):(y=p[k]=p[k]||{},x=i);for(f in x)v=m&&m[f],v&&((!("kill"in v.d)||v.d.kill(f)===!0)&&E9(this,v,"_pt"),delete m[f]),y!=="all"&&(y[f]=1)}return this._initted&&!this._pt&&u&&vc(this),this},a.to=function(s,i){return new a(s,i,arguments[2])},a.from=function(s,i){return Jc(1,arguments)},a.delayedCall=function(s,i,c,l){return new a(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:i,onReverseComplete:i,onCompleteParams:c,onReverseCompleteParams:c,callbackScope:l})},a.fromTo=function(s,i,c){return Jc(2,arguments)},a.set=function(s,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new a(s,i)},a.killTweensOf=function(s,i,c){return $e.killTweensOf(s,i,c)},a}(nl);ra(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});St("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var a=new kt,r=aC.call(arguments,0);return r.splice(t==="staggerFromTo"?5:4,0,0),a[t].apply(a,r)}});var UC=function(a,r,n){return a[r]=n},VI=function(a,r,n){return a[r](n)},VD=function(a,r,n,s){return a[r](s.fp,n)},BD=function(a,r,n){return a.setAttribute(r,n)},GC=function(a,r){return Je(a[r])?VI:DC(a[r])&&a.setAttribute?BD:UC},BI=function(a,r){return r.set(r.t,r.p,Math.round((r.s+r.c*a)*1e6)/1e6,r)},$D=function(a,r){return r.set(r.t,r.p,!!(r.s+r.c*a),r)},$I=function(a,r){var n=r._pt,s="";if(!a&&r.b)s=r.b;else if(a===1&&r.e)s=r.e;else{for(;n;)s=n.p+(n.m?n.m(n.s+n.c*a):Math.round((n.s+n.c*a)*1e4)/1e4)+s,n=n._next;s+=r.c}r.set(r.t,r.p,s,r)},WC=function(a,r){for(var n=r._pt;n;)n.r(a,n.d),n=n._next},UD=function(a,r,n,s){for(var i=this._pt,c;i;)c=i._next,i.p===s&&i.modifier(a,r,n),i=c},GD=function(a){for(var r=this._pt,n,s;r;)s=r._next,r.p===a&&!r.op||r.op===a?E9(this,r,"_pt"):r.dep||(n=1),r=s;return!n},WD=function(a,r,n,s){s.mSet(a,r,s.m.call(s.tween,n,s.mt),s)},UI=function(a){for(var r=a._pt,n,s,i,c;r;){for(n=r._next,s=i;s&&s.pr>r.pr;)s=s._next;(r._prev=s?s._prev:c)?r._prev._next=r:i=r,(r._next=s)?s._prev=r:c=r,r=n}a._pt=i},Lt=function(){function t(r,n,s,i,c,l,d,h,u){this.t=n,this.s=i,this.c=c,this.p=s,this.r=l||BI,this.d=d||this,this.set=h||UC,this.pr=u||0,this._next=r,r&&(r._prev=this)}var a=t.prototype;return a.modifier=function(n,s,i){this.mSet=this.mSet||this.set,this.set=WD,this.m=n,this.mt=i,this.tween=s},t}();St(HC+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return OC[t]=1});Bt.TweenMax=Bt.TweenLite=Qe;Bt.TimelineLite=Bt.TimelineMax=kt;$e=new kt({sortChildren:!1,defaults:ac,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ht.stringFilter=TI;var mo=[],l9={},ZD=[],oL=0,JD=0,vj=function(a){return(l9[a]||ZD).map(function(r){return r()})},iC=function(){var a=Date.now(),r=[];a-oL>2&&(vj("matchMediaInit"),mo.forEach(function(n){var s=n.queries,i=n.conditions,c,l,d,h;for(l in s)c=fa.matchMedia(s[l]).matches,c&&(d=1),c!==i[l]&&(i[l]=c,h=1);h&&(n.revert(),d&&r.push(n))}),vj("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(s){return n.add(null,s)})}),oL=a,vj("matchMedia"))},GI=function(){function t(r,n){this.selector=n&&rC(n),this.data=[],this._r=[],this.isReverted=!1,this.id=JD++,r&&this.add(r)}var a=t.prototype;return a.add=function(n,s,i){Je(n)&&(i=s,s=n,n=Je);var c=this,l=function(){var h=Ve,u=c.selector,p;return h&&h!==c&&h.data.push(c),i&&(c.selector=rC(i)),Ve=c,p=s.apply(c,arguments),Je(p)&&c._r.push(p),Ve=h,c.selector=u,c.isReverted=!1,p};return c.last=l,n===Je?l(c,function(d){return c.add(null,d)}):n?c[n]=l:l},a.ignore=function(n){var s=Ve;Ve=null,n(this),Ve=s},a.getTweens=function(){var n=[];return this.data.forEach(function(s){return s instanceof t?n.push.apply(n,s.getTweens()):s instanceof Qe&&!(s.parent&&s.parent.data==="nested")&&n.push(s)}),n},a.clear=function(){this._r.length=this.data.length=0},a.kill=function(n,s){var i=this;if(n?function(){for(var l=i.getTweens(),d=i.data.length,h;d--;)h=i.data[d],h.data==="isFlip"&&(h.revert(),h.getChildren(!0,!0,!1).forEach(function(u){return l.splice(l.indexOf(u),1)}));for(l.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,p){return p.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),d=i.data.length;d--;)h=i.data[d],h instanceof kt?h.data!=="nested"&&(h.scrollTrigger&&h.scrollTrigger.revert(),h.kill()):!(h instanceof Qe)&&h.revert&&h.revert(n);i._r.forEach(function(u){return u(n,i)}),i.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),s)for(var c=mo.length;c--;)mo[c].id===this.id&&mo.splice(c,1)},a.revert=function(n){this.kill(n||{})},t}(),XD=function(){function t(r){this.contexts=[],this.scope=r,Ve&&Ve.data.push(this)}var a=t.prototype;return a.add=function(n,s,i){La(n)||(n={matches:n});var c=new GI(0,i||this.scope),l=c.conditions={},d,h,u;Ve&&!c.selector&&(c.selector=Ve.selector),this.contexts.push(c),s=c.add("onMatch",s),c.queries=n;for(h in n)h==="all"?u=1:(d=fa.matchMedia(n[h]),d&&(mo.indexOf(c)<0&&mo.push(c),(l[h]=d.matches)&&(u=1),d.addListener?d.addListener(iC):d.addEventListener("change",iC)));return u&&s(c,function(p){return c.add(null,p)}),this},a.revert=function(n){this.kill(n||{})},a.kill=function(n){this.contexts.forEach(function(s){return s.kill(n,!0)})},t}(),w9={registerPlugin:function(){for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];r.forEach(function(s){return PI(s)})},timeline:function(a){return new kt(a)},getTweensOf:function(a,r){return $e.getTweensOf(a,r)},getProperty:function(a,r,n,s){ot(a)&&(a=Yt(a)[0]);var i=uo(a||{}).get,c=n?gI:xI;return n==="native"&&(n=""),a&&(r?c((Rt[r]&&Rt[r].get||i)(a,r,n,s)):function(l,d,h){return c((Rt[l]&&Rt[l].get||i)(a,l,d,h))})},quickSetter:function(a,r,n){if(a=Yt(a),a.length>1){var s=a.map(function(u){return It.quickSetter(u,r,n)}),i=s.length;return function(u){for(var p=i;p--;)s[p](u)}}a=a[0]||{};var c=Rt[r],l=uo(a),d=l.harness&&(l.harness.aliases||{})[r]||r,h=c?function(u){var p=new c;Ro._pt=0,p.init(a,n?u+n:u,Ro,0,[a]),p.render(1,p),Ro._pt&&WC(1,Ro)}:l.set(a,d);return c?h:function(u){return h(a,d,n?u+n:u,l,1)}},quickTo:function(a,r,n){var s,i=It.to(a,go((s={},s[r]="+=0.1",s.paused=!0,s),n||{})),c=function(d,h,u){return i.resetTo(r,d,h,u)};return c.tween=i,c},isTweening:function(a){return $e.getTweensOf(a,!0).length>0},defaults:function(a){return a&&a.ease&&(a.ease=yo(a.ease,ac.ease)),aL(ac,a||{})},config:function(a){return aL(Ht,a||{})},registerEffect:function(a){var r=a.name,n=a.effect,s=a.plugins,i=a.defaults,c=a.extendTimeline;(s||"").split(",").forEach(function(l){return l&&!Rt[l]&&!Bt[l]&&el(r+" effect requires "+l+" plugin.")}),fj[r]=function(l,d,h){return n(Yt(l),ra(d||{},i),h)},c&&(kt.prototype[r]=function(l,d,h){return this.add(fj[r](l,La(d)?d:(h=d)&&{},this),h)})},registerEase:function(a,r){Le[a]=yo(r)},parseEase:function(a,r){return arguments.length?yo(a,r):Le},getById:function(a){return $e.getById(a)},exportRoot:function(a,r){a===void 0&&(a={});var n=new kt(a),s,i;for(n.smoothChildTiming=Ct(a.smoothChildTiming),$e.remove(n),n._dp=0,n._time=n._tTime=$e._time,s=$e._first;s;)i=s._next,(r||!(!s._dur&&s instanceof Qe&&s.vars.onComplete===s._targets[0]))&&ka(n,s,s._start-s._delay),s=i;return ka($e,n,0),n},context:function(a,r){return a?new GI(a,r):Ve},matchMedia:function(a){return new XD(a)},matchMediaRefresh:function(){return mo.forEach(function(a){var r=a.conditions,n,s;for(s in r)r[s]&&(r[s]=!1,n=1);n&&a.revert()})||iC()},addEventListener:function(a,r){var n=l9[a]||(l9[a]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(a,r){var n=l9[a],s=n&&n.indexOf(r);s>=0&&n.splice(s,1)},utils:{wrap:ND,wrapYoyo:ID,distribute:CI,random:LI,snap:SI,normalize:LD,getUnit:ut,clamp:MD,splitColor:_I,toArray:Yt,selector:rC,mapRange:II,pipe:CD,unitize:SD,interpolate:AD,shuffle:jI},install:uI,effects:fj,ticker:zt,updateRoot:kt.updateRoot,plugins:Rt,globalTimeline:$e,core:{PropTween:Lt,globals:pI,Tween:Qe,Timeline:kt,Animation:nl,getCache:uo,_removeLinkedListItem:E9,reverting:function(){return yt},context:function(a){return a&&Ve&&(Ve.data.push(a),a._ctx=Ve),Ve},suppressOverwrites:function(a){return qC=a}}};St("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return w9[t]=Qe[t]});zt.add(kt.updateRoot);Ro=w9.to({},{duration:0});var YD=function(a,r){for(var n=a._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},KD=function(a,r){var n=a._targets,s,i,c;for(s in r)for(i=n.length;i--;)c=a._ptLookup[i][s],c&&(c=c.d)&&(c._pt&&(c=YD(c,s)),c&&c.modifier&&c.modifier(r[s],a,n[i],s))},wj=function(a,r){return{name:a,rawVars:1,init:function(s,i,c){c._onInit=function(l){var d,h;if(ot(i)&&(d={},St(i,function(u){return d[u]=1}),i=d),r){d={};for(h in i)d[h]=r(i[h]);i=d}KD(l,i)}}}},It=w9.registerPlugin({name:"attr",init:function(a,r,n,s,i){var c,l,d;this.tween=n;for(c in r)d=a.getAttribute(c)||"",l=this.add(a,"setAttribute",(d||0)+"",r[c],s,i,0,0,c),l.op=c,l.b=d,this._props.push(c)},render:function(a,r){for(var n=r._pt;n;)yt?n.set(n.t,n.p,n.b,n):n.r(a,n.d),n=n._next}},{name:"endArray",init:function(a,r){for(var n=r.length;n--;)this.add(a,n,a[n]||0,r[n],0,0,0,0,0,1)}},wj("roundProps",nC),wj("modifiers"),wj("snap",SI))||w9;Qe.version=kt.version=It.version="3.12.5";hI=1;zC()&&sc();Le.Power0;Le.Power1;Le.Power2;Le.Power3;Le.Power4;Le.Linear;Le.Quad;Le.Cubic;Le.Quart;Le.Quint;Le.Strong;Le.Elastic;Le.Back;Le.SteppedEase;Le.Bounce;Le.Sine;Le.Expo;Le.Circ;/*!
|
|
7734
7734
|
* CSSPlugin 3.12.5
|
|
7735
7735
|
* https://gsap.com
|
|
7736
7736
|
*
|
|
@@ -7738,22 +7738,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7738
7738
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
7739
7739
|
* Club GSAP members, the agreement issued with that membership.
|
|
7740
7740
|
* @author: Jack Doyle, jack@greensock.com
|
|
7741
|
-
*/var cL,lr,Yo,ZC,so,lL,JC,QD=function(){return typeof window<"u"},Ua={},ro=180/Math.PI,Ko=Math.PI/180,No=Math.atan2,dL=1e8,XC=/([A-Z])/g,ez=/(left|right|width|margin|padding|x)/i,tz=/[\s,\(]\S/,wa={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},oC=function(a,r){return r.set(r.t,r.p,Math.round((r.s+r.c*a)*1e4)/1e4+r.u,r)},az=function(a,r){return r.set(r.t,r.p,a===1?r.e:Math.round((r.s+r.c*a)*1e4)/1e4+r.u,r)},rz=function(a,r){return r.set(r.t,r.p,a?Math.round((r.s+r.c*a)*1e4)/1e4+r.u:r.b,r)},nz=function(a,r){var n=r.s+r.c*a;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},WI=function(a,r){return r.set(r.t,r.p,a?r.e:r.b,r)},ZI=function(a,r){return r.set(r.t,r.p,a!==1?r.b:r.e,r)},sz=function(a,r,n){return a.style[r]=n},iz=function(a,r,n){return a.style.setProperty(r,n)},oz=function(a,r,n){return a._gsap[r]=n},cz=function(a,r,n){return a._gsap.scaleX=a._gsap.scaleY=n},lz=function(a,r,n,s,i){var c=a._gsap;c.scaleX=c.scaleY=n,c.renderTransform(i,c)},dz=function(a,r,n,s,i){var c=a._gsap;c[r]=n,c.renderTransform(i,c)},Ge="transform",Nt=Ge+"Origin",hz=function t(a,r){var n=this,s=this.target,i=s.style,c=s._gsap;if(a in Ua&&i){if(this.tfm=this.tfm||{},a!=="transform")a=wa[a]||a,~a.indexOf(",")?a.split(",").forEach(function(l){return n.tfm[l]=Oa(s,l)}):this.tfm[a]=c.x?c[a]:Oa(s,a),a===Nt&&(this.tfm.zOrigin=c.zOrigin);else return wa.transform.split(",").forEach(function(l){return t.call(n,l,r)});if(this.props.indexOf(Ge)>=0)return;c.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Nt,r,"")),a=Ge}(i||r)&&this.props.push(a,r,i[a])},JI=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},uz=function(){var a=this.props,r=this.target,n=r.style,s=r._gsap,i,c;for(i=0;i<a.length;i+=3)a[i+1]?r[a[i]]=a[i+2]:a[i+2]?n[a[i]]=a[i+2]:n.removeProperty(a[i].substr(0,2)==="--"?a[i]:a[i].replace(XC,"-$1").toLowerCase());if(this.tfm){for(c in this.tfm)s[c]=this.tfm[c];s.svg&&(s.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),i=JC(),(!i||!i.isStart)&&!n[Ge]&&(JI(n),s.zOrigin&&n[Nt]&&(n[Nt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},XI=function(a,r){var n={target:a,props:[],revert:uz,save:hz};return a._gsap||It.core.getCache(a),r&&r.split(",").forEach(function(s){return n.save(s)}),n},YI,cC=function(a,r){var n=lr.createElementNS?lr.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):lr.createElement(a);return n&&n.style?n:lr.createElement(a)},Ca=function t(a,r,n){var s=getComputedStyle(a);return s[r]||s.getPropertyValue(r.replace(XC,"-$1").toLowerCase())||s.getPropertyValue(r)||!n&&t(a,ic(r)||r,1)||""},hL="O,Moz,ms,Ms,Webkit".split(","),ic=function(a,r,n){var s=r||so,i=s.style,c=5;if(a in i&&!n)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);c--&&!(hL[c]+a in i););return c<0?null:(c===3?"ms":c>=0?hL[c]:"")+a},lC=function(){QD()&&window.document&&(cL=window,lr=cL.document,Yo=lr.documentElement,so=cC("div")||{style:{}},cC("div"),Ge=ic(Ge),Nt=Ge+"Origin",so.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",YI=!!ic("perspective"),JC=It.core.reverting,ZC=1)},bj=function t(a){var r=cC("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,i=this.style.cssText,c;if(Yo.appendChild(r),r.appendChild(this),this.style.display="block",a)try{c=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(c=this._gsapBBox());return n&&(s?n.insertBefore(this,s):n.appendChild(this)),Yo.removeChild(r),this.style.cssText=i,c},uL=function(a,r){for(var n=r.length;n--;)if(a.hasAttribute(r[n]))return a.getAttribute(r[n])},KI=function(a){var r;try{r=a.getBBox()}catch{r=bj.call(a,!0)}return r&&(r.width||r.height)||a.getBBox===bj||(r=bj.call(a,!0)),r&&!r.width&&!r.x&&!r.y?{x:+uL(a,["x","cx","x1"])||0,y:+uL(a,["y","cy","y1"])||0,width:0,height:0}:r},QI=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&KI(a))},ko=function(a,r){if(r){var n=a.style,s;r in Ua&&r!==Nt&&(r=Ge),n.removeProperty?(s=r.substr(0,2),(s==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(s==="--"?r:r.replace(XC,"-$1").toLowerCase())):n.removeAttribute(r)}},dr=function(a,r,n,s,i,c){var l=new Lt(a._pt,r,n,0,1,c?ZI:WI);return a._pt=l,l.b=s,l.e=i,a._props.push(n),l},pL={deg:1,rad:1,turn:1},pz={grid:1,flex:1},jr=function t(a,r,n,s){var i=parseFloat(n)||0,c=(n+"").trim().substr((i+"").length)||"px",l=so.style,d=ez.test(r),h=a.tagName.toLowerCase()==="svg",u=(h?"client":"offset")+(d?"Width":"Height"),p=100,y=s==="px",m=s==="%",x,f,v,k;if(s===c||!i||pL[s]||pL[c])return i;if(c!=="px"&&!y&&(i=t(a,r,n,"px")),k=a.getCTM&&QI(a),(m||c==="%")&&(Ua[r]||~r.indexOf("adius")))return x=k?a.getBBox()[d?"width":"height"]:a[u],Ke(m?i/x*p:i/100*x);if(l[d?"width":"height"]=p+(y?c:s),f=~r.indexOf("adius")||s==="em"&&a.appendChild&&!h?a:a.parentNode,k&&(f=(a.ownerSVGElement||{}).parentNode),(!f||f===lr||!f.appendChild)&&(f=lr.body),v=f._gsap,v&&m&&v.width&&d&&v.time===zt.time&&!v.uncache)return Ke(i/v.width*p);if(m&&(r==="height"||r==="width")){var w=a.style[r];a.style[r]=p+s,x=a[u],w?a.style[r]=w:ko(a,r)}else(m||c==="%")&&!pz[Ca(f,"display")]&&(l.position=Ca(a,"position")),f===a&&(l.position="static"),f.appendChild(so),x=so[u],f.removeChild(so),l.position="absolute";return d&&m&&(v=uo(f),v.time=zt.time,v.width=f[u]),Ke(y?x*i/p:x&&i?p/x*i:0)},Oa=function(a,r,n,s){var i;return ZC||lC(),r in wa&&r!=="transform"&&(r=wa[r],~r.indexOf(",")&&(r=r.split(",")[0])),Ua[r]&&r!=="transform"?(i=il(a,s),i=r!=="transformOrigin"?i[r]:i.svg?i.origin:M9(Ca(a,Nt))+" "+i.zOrigin+"px"):(i=a.style[r],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=b9[r]&&b9[r](a,r,n)||Ca(a,r)||mI(a,r)||(r==="opacity"?1:0))),n&&!~(i+"").trim().indexOf(" ")?jr(a,r,i,n)+n:i},yz=function(a,r,n,s){if(!n||n==="none"){var i=ic(r,a,1),c=i&&Ca(a,i,1);c&&c!==n?(r=i,n=c):r==="borderColor"&&(n=Ca(a,"borderTopColor"))}var l=new Lt(this._pt,a.style,r,0,1,$I),d=0,h=0,u,p,y,m,x,f,v,k,w,b,S,C;if(l.b=n,l.e=s,n+="",s+="",s==="auto"&&(f=a.style[r],a.style[r]=s,s=Ca(a,r)||s,f?a.style[r]=f:ko(a,r)),u=[n,s],TI(u),n=u[0],s=u[1],y=n.match(_o)||[],C=s.match(_o)||[],C.length){for(;p=_o.exec(s);)v=p[0],w=s.substring(d,p.index),x?x=(x+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(x=1),v!==(f=y[h++]||"")&&(m=parseFloat(f)||0,S=f.substr((m+"").length),v.charAt(1)==="="&&(v=Xo(m,v)+S),k=parseFloat(v),b=v.substr((k+"").length),d=_o.lastIndex-b.length,b||(b=b||Ht.units[r]||S,d===s.length&&(s+=b,l.e+=b)),S!==b&&(m=jr(a,r,f,b)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:m,c:k-m,m:x&&x<4||r==="zIndex"?Math.round:0});l.c=d<s.length?s.substring(d,s.length):""}else l.r=r==="display"&&s==="none"?ZI:WI;return lI.test(s)&&(l.e=0),this._pt=l,l},yL={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},mz=function(a){var r=a.split(" "),n=r[0],s=r[1]||"50%";return(n==="top"||n==="bottom"||s==="left"||s==="right")&&(a=n,n=s,s=a),r[0]=yL[n]||n,r[1]=yL[s]||s,r.join(" ")},fz=function(a,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,s=n.style,i=r.u,c=n._gsap,l,d,h;if(i==="all"||i===!0)s.cssText="",d=1;else for(i=i.split(","),h=i.length;--h>-1;)l=i[h],Ua[l]&&(d=1,l=l==="transformOrigin"?Nt:Ge),ko(n,l);d&&(ko(n,Ge),c&&(c.svg&&n.removeAttribute("transform"),il(n,1),c.uncache=1,JI(s)))}},b9={clearProps:function(a,r,n,s,i){if(i.data!=="isFromStart"){var c=a._pt=new Lt(a._pt,r,n,0,0,fz);return c.u=s,c.pr=-10,c.tween=i,a._props.push(n),1}}},sl=[1,0,0,1,0,0],eA={},tA=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},mL=function(a){var r=Ca(a,Ge);return tA(r)?sl:r.substr(7).match(cI).map(Ke)},YC=function(a,r){var n=a._gsap||uo(a),s=a.style,i=mL(a),c,l,d,h;return n.svg&&a.getAttribute("transform")?(d=a.transform.baseVal.consolidate().matrix,i=[d.a,d.b,d.c,d.d,d.e,d.f],i.join(",")==="1,0,0,1,0,0"?sl:i):(i===sl&&!a.offsetParent&&a!==Yo&&!n.svg&&(d=s.display,s.display="block",c=a.parentNode,(!c||!a.offsetParent)&&(h=1,l=a.nextElementSibling,Yo.appendChild(a)),i=mL(a),d?s.display=d:ko(a,"display"),h&&(l?c.insertBefore(a,l):c?c.appendChild(a):Yo.removeChild(a))),r&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},dC=function(a,r,n,s,i,c){var l=a._gsap,d=i||YC(a,!0),h=l.xOrigin||0,u=l.yOrigin||0,p=l.xOffset||0,y=l.yOffset||0,m=d[0],x=d[1],f=d[2],v=d[3],k=d[4],w=d[5],b=r.split(" "),S=parseFloat(b[0])||0,C=parseFloat(b[1])||0,A,L,j,N;n?d!==sl&&(L=m*v-x*f)&&(j=S*(v/L)+C*(-f/L)+(f*w-v*k)/L,N=S*(-x/L)+C*(m/L)-(m*w-x*k)/L,S=j,C=N):(A=KI(a),S=A.x+(~b[0].indexOf("%")?S/100*A.width:S),C=A.y+(~(b[1]||b[0]).indexOf("%")?C/100*A.height:C)),s||s!==!1&&l.smooth?(k=S-h,w=C-u,l.xOffset=p+(k*m+w*f)-k,l.yOffset=y+(k*x+w*v)-w):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=C,l.smooth=!!s,l.origin=r,l.originIsAbsolute=!!n,a.style[Nt]="0px 0px",c&&(dr(c,l,"xOrigin",h,S),dr(c,l,"yOrigin",u,C),dr(c,l,"xOffset",p,l.xOffset),dr(c,l,"yOffset",y,l.yOffset)),a.setAttribute("data-svg-origin",S+" "+C)},il=function(a,r){var n=a._gsap||new EI(a);if("x"in n&&!r&&!n.uncache)return n;var s=a.style,i=n.scaleX<0,c="px",l="deg",d=getComputedStyle(a),h=Ca(a,Nt)||"0",u,p,y,m,x,f,v,k,w,b,S,C,A,L,j,N,q,P,R,T,F,U,$,W,O,ae,ce,pe,ne,de,K,me;return u=p=y=f=v=k=w=b=S=0,m=x=1,n.svg=!!(a.getCTM&&QI(a)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(s[Ge]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Ge]!=="none"?d[Ge]:"")),s.scale=s.rotate=s.translate="none"),L=YC(a,n.svg),n.svg&&(n.uncache?(O=a.getBBox(),h=n.xOrigin-O.x+"px "+(n.yOrigin-O.y)+"px",W=""):W=!r&&a.getAttribute("data-svg-origin"),dC(a,W||h,!!W||n.originIsAbsolute,n.smooth!==!1,L)),C=n.xOrigin||0,A=n.yOrigin||0,L!==sl&&(P=L[0],R=L[1],T=L[2],F=L[3],u=U=L[4],p=$=L[5],L.length===6?(m=Math.sqrt(P*P+R*R),x=Math.sqrt(F*F+T*T),f=P||R?No(R,P)*ro:0,w=T||F?No(T,F)*ro+f:0,w&&(x*=Math.abs(Math.cos(w*Ko))),n.svg&&(u-=C-(C*P+A*T),p-=A-(C*R+A*F))):(me=L[6],de=L[7],ce=L[8],pe=L[9],ne=L[10],K=L[11],u=L[12],p=L[13],y=L[14],j=No(me,ne),v=j*ro,j&&(N=Math.cos(-j),q=Math.sin(-j),W=U*N+ce*q,O=$*N+pe*q,ae=me*N+ne*q,ce=U*-q+ce*N,pe=$*-q+pe*N,ne=me*-q+ne*N,K=de*-q+K*N,U=W,$=O,me=ae),j=No(-T,ne),k=j*ro,j&&(N=Math.cos(-j),q=Math.sin(-j),W=P*N-ce*q,O=R*N-pe*q,ae=T*N-ne*q,K=F*q+K*N,P=W,R=O,T=ae),j=No(R,P),f=j*ro,j&&(N=Math.cos(j),q=Math.sin(j),W=P*N+R*q,O=U*N+$*q,R=R*N-P*q,$=$*N-U*q,P=W,U=O),v&&Math.abs(v)+Math.abs(f)>359.9&&(v=f=0,k=180-k),m=Ke(Math.sqrt(P*P+R*R+T*T)),x=Ke(Math.sqrt($*$+me*me)),j=No(U,$),w=Math.abs(j)>2e-4?j*ro:0,S=K?1/(K<0?-K:K):0),n.svg&&(W=a.getAttribute("transform"),n.forceCSS=a.setAttribute("transform","")||!tA(Ca(a,Ge)),W&&a.setAttribute("transform",W))),Math.abs(w)>90&&Math.abs(w)<270&&(i?(m*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(x*=-1,w+=w<=0?180:-180)),r=r||n.uncache,n.x=u-((n.xPercent=u&&(!r&&n.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-u)?-50:0)))?a.offsetWidth*n.xPercent/100:0)+c,n.y=p-((n.yPercent=p&&(!r&&n.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-p)?-50:0)))?a.offsetHeight*n.yPercent/100:0)+c,n.z=y+c,n.scaleX=Ke(m),n.scaleY=Ke(x),n.rotation=Ke(f)+l,n.rotationX=Ke(v)+l,n.rotationY=Ke(k)+l,n.skewX=w+l,n.skewY=b+l,n.transformPerspective=S+c,(n.zOrigin=parseFloat(h.split(" ")[2])||!r&&n.zOrigin||0)&&(s[Nt]=M9(h)),n.xOffset=n.yOffset=0,n.force3D=Ht.force3D,n.renderTransform=n.svg?gz:YI?aA:xz,n.uncache=0,n},M9=function(a){return(a=a.split(" "))[0]+" "+a[1]},Mj=function(a,r,n){var s=ut(r);return Ke(parseFloat(r)+parseFloat(jr(a,"x",n+"px",s)))+s},xz=function(a,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,aA(a,r)},zr="0deg",kc="0px",Er=") ",aA=function(a,r){var n=r||this,s=n.xPercent,i=n.yPercent,c=n.x,l=n.y,d=n.z,h=n.rotation,u=n.rotationY,p=n.rotationX,y=n.skewX,m=n.skewY,x=n.scaleX,f=n.scaleY,v=n.transformPerspective,k=n.force3D,w=n.target,b=n.zOrigin,S="",C=k==="auto"&&a&&a!==1||k===!0;if(b&&(p!==zr||u!==zr)){var A=parseFloat(u)*Ko,L=Math.sin(A),j=Math.cos(A),N;A=parseFloat(p)*Ko,N=Math.cos(A),c=Mj(w,c,L*N*-b),l=Mj(w,l,-Math.sin(A)*-b),d=Mj(w,d,j*N*-b+b)}v!==kc&&(S+="perspective("+v+Er),(s||i)&&(S+="translate("+s+"%, "+i+"%) "),(C||c!==kc||l!==kc||d!==kc)&&(S+=d!==kc||C?"translate3d("+c+", "+l+", "+d+") ":"translate("+c+", "+l+Er),h!==zr&&(S+="rotate("+h+Er),u!==zr&&(S+="rotateY("+u+Er),p!==zr&&(S+="rotateX("+p+Er),(y!==zr||m!==zr)&&(S+="skew("+y+", "+m+Er),(x!==1||f!==1)&&(S+="scale("+x+", "+f+Er),w.style[Ge]=S||"translate(0, 0)"},gz=function(a,r){var n=r||this,s=n.xPercent,i=n.yPercent,c=n.x,l=n.y,d=n.rotation,h=n.skewX,u=n.skewY,p=n.scaleX,y=n.scaleY,m=n.target,x=n.xOrigin,f=n.yOrigin,v=n.xOffset,k=n.yOffset,w=n.forceCSS,b=parseFloat(c),S=parseFloat(l),C,A,L,j,N;d=parseFloat(d),h=parseFloat(h),u=parseFloat(u),u&&(u=parseFloat(u),h+=u,d+=u),d||h?(d*=Ko,h*=Ko,C=Math.cos(d)*p,A=Math.sin(d)*p,L=Math.sin(d-h)*-y,j=Math.cos(d-h)*y,h&&(u*=Ko,N=Math.tan(h-u),N=Math.sqrt(1+N*N),L*=N,j*=N,u&&(N=Math.tan(u),N=Math.sqrt(1+N*N),C*=N,A*=N)),C=Ke(C),A=Ke(A),L=Ke(L),j=Ke(j)):(C=p,j=y,A=L=0),(b&&!~(c+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(b=jr(m,"x",c,"px"),S=jr(m,"y",l,"px")),(x||f||v||k)&&(b=Ke(b+x-(x*C+f*L)+v),S=Ke(S+f-(x*A+f*j)+k)),(s||i)&&(N=m.getBBox(),b=Ke(b+s/100*N.width),S=Ke(S+i/100*N.height)),N="matrix("+C+","+A+","+L+","+j+","+b+","+S+")",m.setAttribute("transform",N),w&&(m.style[Ge]=N)},kz=function(a,r,n,s,i){var c=360,l=ot(i),d=parseFloat(i)*(l&&~i.indexOf("rad")?ro:1),h=d-s,u=s+h+"deg",p,y;return l&&(p=i.split("_")[1],p==="short"&&(h%=c,h!==h%(c/2)&&(h+=h<0?c:-c)),p==="cw"&&h<0?h=(h+c*dL)%c-~~(h/c)*c:p==="ccw"&&h>0&&(h=(h-c*dL)%c-~~(h/c)*c)),a._pt=y=new Lt(a._pt,r,n,s,h,az),y.e=u,y.u="deg",a._props.push(n),y},fL=function(a,r){for(var n in r)a[n]=r[n];return a},vz=function(a,r,n){var s=fL({},n._gsap),i="perspective,force3D,transformOrigin,svgOrigin",c=n.style,l,d,h,u,p,y,m,x;s.svg?(h=n.getAttribute("transform"),n.setAttribute("transform",""),c[Ge]=r,l=il(n,1),ko(n,Ge),n.setAttribute("transform",h)):(h=getComputedStyle(n)[Ge],c[Ge]=r,l=il(n,1),c[Ge]=h);for(d in Ua)h=s[d],u=l[d],h!==u&&i.indexOf(d)<0&&(m=ut(h),x=ut(u),p=m!==x?jr(n,d,h,x):parseFloat(h),y=parseFloat(u),a._pt=new Lt(a._pt,l,d,p,y-p,oC),a._pt.u=x||0,a._props.push(d));fL(l,s)};St("padding,margin,Width,Radius",function(t,a){var r="Top",n="Right",s="Bottom",i="Left",c=(a<3?[r,n,s,i]:[r+i,r+n,s+n,s+i]).map(function(l){return a<2?t+l:"border"+l+t});b9[a>1?"border"+t:t]=function(l,d,h,u,p){var y,m;if(arguments.length<4)return y=c.map(function(x){return Oa(l,x,h)}),m=y.join(" "),m.split(y[0]).length===5?y[0]:m;y=(u+"").split(" "),m={},c.forEach(function(x,f){return m[x]=y[f]=y[f]||y[(f-1)/2|0]}),l.init(d,m,p)}});var rA={name:"css",register:lC,targetTest:function(a){return a.style&&a.nodeType},init:function(a,r,n,s,i){var c=this._props,l=a.style,d=n.vars.startAt,h,u,p,y,m,x,f,v,k,w,b,S,C,A,L,j;ZC||lC(),this.styles=this.styles||XI(a),j=this.styles.props,this.tween=n;for(f in r)if(f!=="autoRound"&&(u=r[f],!(Rt[f]&&FI(f,r,n,s,a,i)))){if(m=typeof u,x=b9[f],m==="function"&&(u=u.call(n,s,a,i),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=al(u)),x)x(this,a,f,u,n)&&(L=1);else if(f.substr(0,2)==="--")h=(getComputedStyle(a).getPropertyValue(f)+"").trim(),u+="",wr.lastIndex=0,wr.test(h)||(v=ut(h),k=ut(u)),k?v!==k&&(h=jr(a,f,h,k)+k):v&&(u+=v),this.add(l,"setProperty",h,u,s,i,0,0,f),c.push(f),j.push(f,0,l[f]);else if(m!=="undefined"){if(d&&f in d?(h=typeof d[f]=="function"?d[f].call(n,s,a,i):d[f],ot(h)&&~h.indexOf("random(")&&(h=al(h)),ut(h+"")||h==="auto"||(h+=Ht.units[f]||ut(Oa(a,f))||""),(h+"").charAt(1)==="="&&(h=Oa(a,f))):h=Oa(a,f),y=parseFloat(h),w=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),p=parseFloat(u),f in wa&&(f==="autoAlpha"&&(y===1&&Oa(a,"visibility")==="hidden"&&p&&(y=0),j.push("visibility",0,l.visibility),dr(this,l,"visibility",y?"inherit":"hidden",p?"inherit":"hidden",!p)),f!=="scale"&&f!=="transform"&&(f=wa[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ua,b){if(this.styles.save(f),S||(C=a._gsap,C.renderTransform&&!r.parseTransform||il(a,r.parseTransform),A=r.smoothOrigin!==!1&&C.smooth,S=this._pt=new Lt(this._pt,l,Ge,0,1,C.renderTransform,C,0,-1),S.dep=1),f==="scale")this._pt=new Lt(this._pt,C,"scaleY",C.scaleY,(w?Xo(C.scaleY,w+p):p)-C.scaleY||0,oC),this._pt.u=0,c.push("scaleY",f),f+="X";else if(f==="transformOrigin"){j.push(Nt,0,l[Nt]),u=mz(u),C.svg?dC(a,u,0,A,0,this):(k=parseFloat(u.split(" ")[2])||0,k!==C.zOrigin&&dr(this,C,"zOrigin",C.zOrigin,k),dr(this,l,f,M9(h),M9(u)));continue}else if(f==="svgOrigin"){dC(a,u,1,A,0,this);continue}else if(f in eA){kz(this,C,f,y,w?Xo(y,w+u):u);continue}else if(f==="smoothOrigin"){dr(this,C,"smooth",C.smooth,u);continue}else if(f==="force3D"){C[f]=u;continue}else if(f==="transform"){vz(this,u,a);continue}}else f in l||(f=ic(f)||f);if(b||(p||p===0)&&(y||y===0)&&!tz.test(u)&&f in l)v=(h+"").substr((y+"").length),p||(p=0),k=ut(u)||(f in Ht.units?Ht.units[f]:v),v!==k&&(y=jr(a,f,h,k)),this._pt=new Lt(this._pt,b?C:l,f,y,(w?Xo(y,w+p):p)-y,!b&&(k==="px"||f==="zIndex")&&r.autoRound!==!1?nz:oC),this._pt.u=k||0,v!==k&&k!=="%"&&(this._pt.b=h,this._pt.r=rz);else if(f in l)yz.call(this,a,f,h,w?w+u:u);else if(f in a)this.add(a,f,h||a[f],w?w+u:u,s,i);else if(f!=="parseTransform"){FC(f,u);continue}b||(f in l?j.push(f,0,l[f]):j.push(f,1,h||a[f])),c.push(f)}}L&&UI(this)},render:function(a,r){if(r.tween._time||!JC())for(var n=r._pt;n;)n.r(a,n.d),n=n._next;else r.styles.revert()},get:Oa,aliases:wa,getSetter:function(a,r,n){var s=wa[r];return s&&s.indexOf(",")<0&&(r=s),r in Ua&&r!==Nt&&(a._gsap.x||Oa(a,"x"))?n&&lL===n?r==="scale"?cz:oz:(lL=n||{})&&(r==="scale"?lz:dz):a.style&&!DC(a.style[r])?sz:~r.indexOf("-")?iz:GC(a,r)},core:{_removeProperty:ko,_getMatrix:YC}};It.utils.checkPrefix=ic;It.core.getStyleSaver=XI;(function(t,a,r,n){var s=St(t+","+a+","+r,function(i){Ua[i]=1});St(a,function(i){Ht.units[i]="deg",eA[i]=1}),wa[s[13]]=t+","+a,St(n,function(i){var c=i.split(":");wa[c[1]]=s[c[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");St("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Ht.units[t]="px"});It.registerPlugin(rA);var nA=It.registerPlugin(rA)||It;nA.core.Tween;function KC(t){return xq[t]||ir}function sA({advantages:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((n,s)=>{const i=KC(n.icon);return e.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[e.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:n.title}),e.jsx("p",{className:"text-gray-600 mb-6",children:n.description}),n.ctaLink&&n.ctaText?e.jsx("div",{className:"mt-auto",children:e.jsxs("a",{href:n.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[n.ctaText,e.jsx(io,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},s)})})]})})}function wz({title:t="Get in Touch",description:a="Have questions? We're here to help you start your journey",nameLabel:r="Full Name",emailLabel:n="Email",messageLabel:s="Message",namePlaceholder:i="Your full name",emailPlaceholder:c="you@example.com",messagePlaceholder:l="How can we help?",submitButtonLabel:d="Send Message",contactEmail:h="contact@globalenglish.com",contactPhone:u="+1 (555) 123-4567",contactMessage:p="Live chat available 24/7",onSubmit:y,showContactDetails:m=!0}){const x=f=>{f.preventDefault();const v=new FormData(f.currentTarget);y==null||y({name:String(v.get("name")??""),email:String(v.get("email")??""),message:String(v.get("message")??"")})};return e.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[e.jsxs("form",{className:"space-y-6",onSubmit:x,children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:r}),e.jsx("input",{type:"text",id:"name",name:"name",placeholder:i,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:n}),e.jsx("input",{type:"email",id:"email",name:"email",placeholder:c,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:s}),e.jsx("textarea",{id:"message",name:"message",rows:4,placeholder:l,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:d})]}),m&&e.jsxs("div",{className:"mt-12 space-y-4",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ea,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:h})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(xr,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(fr,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:p})]})]})]})]})})}const iA=M.createContext(void 0);function bz({children:t}){const[a,r]=M.useState([]),[n,s]=M.useState(!1),i=M.useCallback(u=>{r(p=>p.find(m=>m.id===u.id)?p.map(m=>m.id===u.id?{...m,quantity:m.quantity+1}:m):[...p,{...u,quantity:1}]),s(!0)},[]),c=M.useCallback(u=>{r(p=>p.filter(y=>y.id!==u))},[]),l=M.useCallback((u,p)=>{r(y=>y.map(m=>m.id===u?{...m,quantity:Math.max(0,p)}:m))},[]),d=M.useCallback(()=>{s(u=>!u)},[]),h=a.reduce((u,p)=>u+p.price*p.quantity,0);return e.jsx(iA.Provider,{value:{items:a,isOpen:n,addItem:i,removeItem:c,updateQuantity:l,toggleCart:d,total:h},children:t})}function oA(){const t=M.useContext(iA);if(t===void 0)throw new Error("useCart must be used within a CartProvider");return t}function cA({courses:t,title:a,description:r}){const{addItem:n}=oA();return e.jsx("section",{id:"courses",className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:t.map(s=>e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:s.title}),e.jsxs("div",{className:"space-y-3 mb-6",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(da,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.duration})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(jt,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.type})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Bc,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.level})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:s.description}),e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",s.price]})}),e.jsxs("button",{onClick:()=>n({id:s.id,name:s.title,price:s.price,duration:s.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[e.jsx(Wo,{className:"h-5 w-5"}),e.jsx("span",{children:"Add to Cart"})]})]},s.id))})]})})}function lA({destinations:t,title:a,description:r}){const[n,s]=M.useState(0),[i,c]=M.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=M.useState(l());M.useEffect(()=>{const m=()=>{h(l())};return window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]),M.useEffect(()=>{let m;return i&&(m=setInterval(()=>{s(x=>(x+1)%(t.length-d+1))},5e3)),()=>clearInterval(m)},[i]);const u=()=>{s(m=>Math.max(0,m-1)),c(!1)},p=()=>{s(m=>Math.min(t.length-d,m+1)),c(!1)},y=t.slice(n,n+d);return e.jsx("section",{id:"destinations",className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsxs("div",{className:"mt-16 relative",children:[e.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:y.map((m,x)=>e.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[e.jsx("img",{src:m.image,alt:m.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:e.jsxs("div",{className:"absolute bottom-0 p-6",children:[e.jsxs("div",{className:"flex items-center text-white mb-2",children:[e.jsx(it,{className:"h-5 w-5 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold",children:m.name})]}),e.jsx("p",{className:"text-white/90 text-sm",children:m.description})]})})]},n+x))}),e.jsx("button",{onClick:u,disabled:n===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${n===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(ur,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:p,disabled:n>=t.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${n>=t.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(pr,{className:"h-6 w-6 text-gray-800"})})]}),e.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(t.length/d)}).map((m,x)=>e.jsx("button",{onClick:()=>{s(x*d),c(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(n/d)===x?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},x))})]})})}const Mz=[{label:"Destinations",href:"#destinations"},{label:"Courses",href:"#courses"},{label:"Services",href:"#services"}];function jz({title:t="GlobalEnglish",navItems:a=Mz,ctaLabel:r="Contact Us",ctaHref:n="#contact",brandIcon:s=e.jsx(Qt,{className:"h-8 w-8 text-yellow-600"}),defaultOpen:i=!1,isOpen:c,onToggleMenu:l,menuButtonAriaLabel:d="Toggle navigation"}){const[h,u]=M.useState(i),p=c??h,y=()=>{const x=!p;c===void 0&&u(x),l==null||l(x)},m=x=>e.jsx("a",{href:x.href,onClick:x.onClick,className:"text-gray-600 hover:text-yellow-600",children:x.label},x.label);return e.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex items-center",children:[s,e.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:t})]}),e.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.map(m),e.jsx("a",{href:n,className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:r})]}),e.jsx("div",{className:"md:hidden flex items-center",children:e.jsx("button",{onClick:y,className:"text-gray-600 hover:text-gray-900 focus:outline-none","aria-label":d,children:p?e.jsx(wt,{className:"h-6 w-6"}):e.jsx(Bo,{className:"h-6 w-6"})})})]})}),p&&e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[a.map(x=>e.jsx("a",{href:x.href,onClick:()=>{var f;(f=x.onClick)==null||f.call(x),y()},className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:x.label},x.label)),e.jsx("a",{href:n,className:"block px-3 py-2 text-yellow-600 font-medium",children:r})]})})]})}function dA({title:t,subtitle:a,bg_img:r,main_btn_text:n,main_btn_link:s,secondary_btn_text:i,secondary_btn_link:c}){return e.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx("img",{src:r,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),e.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:t}),e.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s&&n?e.jsxs("a",{href:s,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[n,e.jsx(io,{className:"ml-2 h-5 w-5"})]}):"",c&&i?e.jsx("a",{href:c,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:i}):""]})]})]})}function hA({title:t,description:a,services:r}){return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:r.map((n,s)=>{const i=KC(n.icon);return e.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[e.jsxs("div",{className:"text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:n.title}),e.jsx("p",{className:"mt-2 text-gray-500",children:n.description})]},s)})})]})})}function uA({testimonials:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.map((n,s)=>e.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[e.jsx("div",{className:"absolute -top-4 -left-4",children:e.jsx(Uo,{className:"h-8 w-8 text-yellow-600"})}),e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx("img",{src:n.image,alt:n.name,className:"h-14 w-14 rounded-full object-cover"}),e.jsxs("div",{className:"ml-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:n.name}),e.jsx("p",{className:"text-gray-600",children:n.from})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:n.text}),e.jsx("div",{className:"flex text-yellow-400",children:[...Array(n.rating)].map((i,c)=>e.jsx(vt,{className:"h-5 w-5 fill-current"},c))})]},s))})]})})}function pA({videos:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((n,s)=>e.jsxs("div",{className:"relative group",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[e.jsx("img",{src:n.thumbnail,alt:n.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:e.jsx(Oc,{className:"h-8 w-8 text-yellow-600"})})})}),e.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:n.duration})]}),e.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:n.title}),e.jsx("p",{className:"mt-2 text-gray-600",children:n.description})]},s))})]})})}function yA({features:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"space-y-24",children:t.map((n,s)=>e.jsxs("div",{className:`flex flex-col gap-8 items-center ${s%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:e.jsx("img",{src:n.image,alt:n.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),e.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:n.title}),e.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:n.description}),e.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},s))})]})})}function mA({faqs:t,title:a,description:r}){const[n,s]=M.useState(null),i=c=>{s(l=>l===c?null:c)};return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"space-y-4",children:t.map((c,l)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>i(l),children:[e.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:c.question}),n===l?e.jsx(Fo,{className:"h-5 w-5 text-gray-500"}):e.jsx(hr,{className:"h-5 w-5 text-gray-500"})]}),e.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${n===l?"max-h-96 py-4":"max-h-0"}`,children:e.jsx("p",{className:"text-gray-600 leading-relaxed",children:c.answer})})]},l))})]})})}function Cz({images:t,autoPlayInterval:a=5e3}){const[r,n]=M.useState(0);M.useEffect(()=>{const l=setInterval(()=>{n(d=>(d+1)%t.length)},a);return()=>clearInterval(l)},[t.length,a]);const s=l=>{n(l)},i=()=>{n(l=>(l-1+t.length)%t.length)},c=()=>{n(l=>(l+1)%t.length)};return e.jsxs("div",{className:"relative w-full h-[600px] group",children:[e.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:t.map((l,d)=>e.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===r?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-r)}%)`},children:[e.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:e.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),e.jsx("button",{onClick:i,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(ur,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:c,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(pr,{className:"h-6 w-6 text-gray-800"})}),e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:t.map((l,d)=>e.jsx("button",{onClick:()=>s(d),className:`w-2 h-2 rounded-full transition-all ${d===r?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function fA({images:t,title:a,description:r,autoPlayInterval:n=5e3}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx(Cz,{images:t,autoPlayInterval:n})]})})}function xA({initialMessages:t}){const[a,r]=M.useState(!1),[n,s]=M.useState(t),[i,c]=M.useState(""),l=d=>{if(d.preventDefault(),!i.trim())return;const h={text:i,isBot:!1,timestamp:new Date},u=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],y={text:u[Math.floor(Math.random()*u.length)],isBot:!0,timestamp:new Date};s(m=>[...m,h,y]),c("")};return e.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:a?e.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center text-white",children:[e.jsx(jc,{className:"h-6 w-6 mr-2"}),e.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),e.jsx("button",{onClick:()=>r(!1),className:"text-white hover:text-gray-200 transition-colors",children:e.jsx(wt,{className:"h-5 w-5"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:n.map((d,h)=>e.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:e.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[e.jsx("p",{className:"text-sm",children:d.text}),e.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),e.jsx("form",{onSubmit:l,className:"p-4 border-t",children:e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("input",{type:"text",value:i,onChange:d=>c(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),e.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Hc,{className:"h-5 w-5"})})]})})]}):e.jsx("button",{onClick:()=>r(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsx(fr,{className:"h-6 w-6"})})})}function gA({title:t="Your Cart",emptyMessage:a="Your cart is empty",totalLabel:r="Total:",checkoutButtonLabel:n="Proceed to Checkout",currencySymbol:s="$",floatingButtonAriaLabel:i="Toggle cart",onCheckout:c,onToggleCart:l}){const{items:d,isOpen:h,toggleCart:u,removeItem:p,updateQuantity:y,total:m}=oA(),x=()=>{l==null||l(!h),u()};return h?e.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-semibold",children:t}),e.jsx("button",{onClick:x,className:"text-white hover:text-gray-200 transition-colors","aria-label":i,children:e.jsx(wt,{className:"h-6 w-6"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:d.length===0?e.jsx("p",{className:"text-gray-500 text-center mt-8",children:a}):e.jsx("div",{className:"space-y-4",children:d.map(f=>e.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:f.name}),e.jsx("p",{className:"text-sm text-gray-500",children:f.duration})]}),e.jsx("button",{onClick:()=>p(f.id),className:"text-red-500 hover:text-red-600","aria-label":`Remove ${f.name}`,children:e.jsx(Zo,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>y(f.id,f.quantity-1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Decrease quantity for ${f.name}`,children:e.jsx(Ec,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-8 text-center",children:f.quantity}),e.jsx("button",{onClick:()=>y(f.id,f.quantity+1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Increase quantity for ${f.name}`,children:e.jsx($o,{className:"h-4 w-4"})})]}),e.jsxs("p",{className:"font-medium",children:[s,(f.price*f.quantity).toFixed(2)]})]})]},f.id))})}),e.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("span",{className:"font-medium",children:r}),e.jsxs("span",{className:"text-xl font-bold",children:[s,m.toFixed(2)]})]}),e.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.length===0,onClick:c,children:n})]})]}):e.jsx("button",{onClick:x,"aria-label":i,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsxs("div",{className:"relative",children:[e.jsx(Wo,{className:"h-6 w-6"}),d.length>0&&e.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:d.length})]})})}function kA({services:t,title:a,description:r,showBtn:n="Show",hideBtn:s="Hide",featuresBtn:i="Features"}){const[c,l]=M.useState(null),d=h=>{l(c===h?null:h)};return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:t.map((h,u)=>e.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),e.jsx("div",{className:`transition-all duration-300 overflow-hidden ${c===u?"max-h-[500px]":"max-h-0"}`,children:e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsx("p",{className:"text-gray-700",children:h.fullDescription}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:i}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((p,y)=>e.jsxs("li",{className:"text-gray-600",children:["• ",p]},y))})]})]})}),e.jsx("button",{onClick:()=>d(u),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:c===u?s:n})]})},u))})]})})}function vA({courses:t=[],title:a="Available Courses",description:r="Choose the best course for you.",priceLabel:n="From",currencySymbol:s="€",perDurationLabel:i="/week",reviewsText:c="reviews"}){const l=d=>{const h=d/10*5,u=Math.floor(h),p=h%1,y=5-Math.ceil(h);return e.jsxs("div",{className:"flex items-center",children:[[...Array(u)].map((m,x)=>e.jsx(vt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${x}`)),p>0&&e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(vt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),e.jsx("div",{className:"absolute overflow-hidden",style:{width:`${p*100}%`},children:e.jsx(vt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(y)].map((m,x)=>e.jsx(vt,{className:"w-5 h-5 text-gray-300"},`empty-${x}`))]})};return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((d,h)=>e.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),e.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),e.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",c,")"]})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[n," ",d.pricePerWeek,s]}),e.jsxs("span",{className:"text-gray-600",children:["/",i]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),e.jsx("div",{className:"space-y-4",children:d.features.map((u,p)=>{const y=KC(u.icon);return e.jsxs("div",{className:"flex items-center text-gray-700",children:[y?e.jsx(y,{className:"w-5 h-5"}):null,e.jsx("span",{className:"ml-3",children:u.text})]},p)})})]}),d.ctaLink&&d.ctaText?e.jsx("div",{className:"mt-8",children:e.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const Sz=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],Lz=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],Nz=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],Iz=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],Az=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],Pz=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],_z=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],Rz=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],Tz=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],qz=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],Dz=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],zz=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],Ez=()=>(M.useEffect(()=>{nA.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),e.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[e.jsx(bz,{children:e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(jz,{}),e.jsx(dA,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),e.jsx(hA,{services:Lz,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),e.jsx(kA,{services:Sz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(sA,{advantages:Iz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(yA,{features:Nz,title:"Titulo",description:"description"}),e.jsx(vA,{courses:zz,title:"Test",description:"test"}),e.jsx(fA,{images:Az,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),e.jsx(lA,{destinations:Pz,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),e.jsx(cA,{courses:_z,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(pA,{videos:Rz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(uA,{testimonials:Tz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(mA,{faqs:Dz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(wz,{}),e.jsx(xA,{initialMessages:qz}),e.jsx(gA,{})]})}),e.jsx("footer",{className:"bg-gray-800 text-white py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),e.jsxs("nav",{className:"flex justify-center space-x-6",children:[e.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),e.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),e.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function Fz({title:t,icon:a,jobs:r,viewAllText:n,viewAllHref:s,apiUrl:i}){const[c,l]=M.useState(r||[]),[d,h]=M.useState(!r),[u,p]=M.useState(null);M.useEffect(()=>{if(r)return;(async()=>{h(!0),p(null);try{const f=await fetch(i||"/api/featured-jobs");if(!f.ok)throw new Error(`Failed to fetch jobs: ${f.status}`);const v=await f.json();if(!Array.isArray(v))throw new Error("Expected an array of jobs");l(v)}catch(x){console.error("Error fetching jobs:",x),p(x instanceof Error?x.message:"Failed to load jobs"),l(y())}finally{h(!1)}})()},[r,i]);const y=()=>{const m=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],x=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],f=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(v,k)=>({id:`mock-job-${k}`,title:x[k%x.length],company:m[k%m.length],companyLogo:`/logos/${m[k%m.length].toLowerCase()}.png`,location:f[k%f.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((m,x)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),e.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},x))})})}):u&&c.length===0?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[e.jsx("p",{children:u}),e.jsx(D,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a&&e.jsx("div",{children:a}),e.jsx("h2",{className:"text-2xl font-bold",children:t})]}),c.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(m=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:e.jsx("img",{src:m.companyLogo||"/placeholder.svg",alt:`${m.company} logo`,width:48,height:48,className:"rounded",onError:x=>{x.target.src="/placeholder.svg"}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:m.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:m.company})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[e.jsx(it,{size:16}),e.jsx("span",{children:m.location})]}),e.jsx("div",{className:"text-green-600 font-medium mb-4",children:m.salary}),e.jsx(D,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},m.id))}),e.jsx("div",{className:"mt-8 text-center",children:e.jsx(D,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=s,children:n})})]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function wA({title:t,description:a,primaryButtonText:r,primaryButtonHref:n,secondaryButtonText:s,secondaryButtonHref:i}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:a}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(D,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=n,children:r}),e.jsx(D,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=i,children:s})]})]})})})}function bA({title:t,subtitle:a,backgroundImage:r="/placeholder.svg?height=800&width=1600",primaryButtonText:n,primaryButtonLink:s="#",secondaryButtonText:i,secondaryButtonLink:c="#"}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:e.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[t," ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[e.jsxs("a",{href:s,className:`justify-center whitespace-nowrap text-sm transition-colors
|
|
7741
|
+
*/var cL,lr,Yo,ZC,so,lL,JC,QD=function(){return typeof window<"u"},Ua={},ro=180/Math.PI,Ko=Math.PI/180,No=Math.atan2,dL=1e8,XC=/([A-Z])/g,ez=/(left|right|width|margin|padding|x)/i,tz=/[\s,\(]\S/,wa={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},oC=function(a,r){return r.set(r.t,r.p,Math.round((r.s+r.c*a)*1e4)/1e4+r.u,r)},az=function(a,r){return r.set(r.t,r.p,a===1?r.e:Math.round((r.s+r.c*a)*1e4)/1e4+r.u,r)},rz=function(a,r){return r.set(r.t,r.p,a?Math.round((r.s+r.c*a)*1e4)/1e4+r.u:r.b,r)},nz=function(a,r){var n=r.s+r.c*a;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},WI=function(a,r){return r.set(r.t,r.p,a?r.e:r.b,r)},ZI=function(a,r){return r.set(r.t,r.p,a!==1?r.b:r.e,r)},sz=function(a,r,n){return a.style[r]=n},iz=function(a,r,n){return a.style.setProperty(r,n)},oz=function(a,r,n){return a._gsap[r]=n},cz=function(a,r,n){return a._gsap.scaleX=a._gsap.scaleY=n},lz=function(a,r,n,s,i){var c=a._gsap;c.scaleX=c.scaleY=n,c.renderTransform(i,c)},dz=function(a,r,n,s,i){var c=a._gsap;c[r]=n,c.renderTransform(i,c)},Ge="transform",Nt=Ge+"Origin",hz=function t(a,r){var n=this,s=this.target,i=s.style,c=s._gsap;if(a in Ua&&i){if(this.tfm=this.tfm||{},a!=="transform")a=wa[a]||a,~a.indexOf(",")?a.split(",").forEach(function(l){return n.tfm[l]=Oa(s,l)}):this.tfm[a]=c.x?c[a]:Oa(s,a),a===Nt&&(this.tfm.zOrigin=c.zOrigin);else return wa.transform.split(",").forEach(function(l){return t.call(n,l,r)});if(this.props.indexOf(Ge)>=0)return;c.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Nt,r,"")),a=Ge}(i||r)&&this.props.push(a,r,i[a])},JI=function(a){a.translate&&(a.removeProperty("translate"),a.removeProperty("scale"),a.removeProperty("rotate"))},uz=function(){var a=this.props,r=this.target,n=r.style,s=r._gsap,i,c;for(i=0;i<a.length;i+=3)a[i+1]?r[a[i]]=a[i+2]:a[i+2]?n[a[i]]=a[i+2]:n.removeProperty(a[i].substr(0,2)==="--"?a[i]:a[i].replace(XC,"-$1").toLowerCase());if(this.tfm){for(c in this.tfm)s[c]=this.tfm[c];s.svg&&(s.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),i=JC(),(!i||!i.isStart)&&!n[Ge]&&(JI(n),s.zOrigin&&n[Nt]&&(n[Nt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},XI=function(a,r){var n={target:a,props:[],revert:uz,save:hz};return a._gsap||It.core.getCache(a),r&&r.split(",").forEach(function(s){return n.save(s)}),n},YI,cC=function(a,r){var n=lr.createElementNS?lr.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),a):lr.createElement(a);return n&&n.style?n:lr.createElement(a)},Ca=function t(a,r,n){var s=getComputedStyle(a);return s[r]||s.getPropertyValue(r.replace(XC,"-$1").toLowerCase())||s.getPropertyValue(r)||!n&&t(a,ic(r)||r,1)||""},hL="O,Moz,ms,Ms,Webkit".split(","),ic=function(a,r,n){var s=r||so,i=s.style,c=5;if(a in i&&!n)return a;for(a=a.charAt(0).toUpperCase()+a.substr(1);c--&&!(hL[c]+a in i););return c<0?null:(c===3?"ms":c>=0?hL[c]:"")+a},lC=function(){QD()&&window.document&&(cL=window,lr=cL.document,Yo=lr.documentElement,so=cC("div")||{style:{}},cC("div"),Ge=ic(Ge),Nt=Ge+"Origin",so.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",YI=!!ic("perspective"),JC=It.core.reverting,ZC=1)},bj=function t(a){var r=cC("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,i=this.style.cssText,c;if(Yo.appendChild(r),r.appendChild(this),this.style.display="block",a)try{c=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(c=this._gsapBBox());return n&&(s?n.insertBefore(this,s):n.appendChild(this)),Yo.removeChild(r),this.style.cssText=i,c},uL=function(a,r){for(var n=r.length;n--;)if(a.hasAttribute(r[n]))return a.getAttribute(r[n])},KI=function(a){var r;try{r=a.getBBox()}catch{r=bj.call(a,!0)}return r&&(r.width||r.height)||a.getBBox===bj||(r=bj.call(a,!0)),r&&!r.width&&!r.x&&!r.y?{x:+uL(a,["x","cx","x1"])||0,y:+uL(a,["y","cy","y1"])||0,width:0,height:0}:r},QI=function(a){return!!(a.getCTM&&(!a.parentNode||a.ownerSVGElement)&&KI(a))},ko=function(a,r){if(r){var n=a.style,s;r in Ua&&r!==Nt&&(r=Ge),n.removeProperty?(s=r.substr(0,2),(s==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(s==="--"?r:r.replace(XC,"-$1").toLowerCase())):n.removeAttribute(r)}},dr=function(a,r,n,s,i,c){var l=new Lt(a._pt,r,n,0,1,c?ZI:WI);return a._pt=l,l.b=s,l.e=i,a._props.push(n),l},pL={deg:1,rad:1,turn:1},pz={grid:1,flex:1},jr=function t(a,r,n,s){var i=parseFloat(n)||0,c=(n+"").trim().substr((i+"").length)||"px",l=so.style,d=ez.test(r),h=a.tagName.toLowerCase()==="svg",u=(h?"client":"offset")+(d?"Width":"Height"),p=100,m=s==="px",y=s==="%",x,f,v,k;if(s===c||!i||pL[s]||pL[c])return i;if(c!=="px"&&!m&&(i=t(a,r,n,"px")),k=a.getCTM&&QI(a),(y||c==="%")&&(Ua[r]||~r.indexOf("adius")))return x=k?a.getBBox()[d?"width":"height"]:a[u],Ke(y?i/x*p:i/100*x);if(l[d?"width":"height"]=p+(m?c:s),f=~r.indexOf("adius")||s==="em"&&a.appendChild&&!h?a:a.parentNode,k&&(f=(a.ownerSVGElement||{}).parentNode),(!f||f===lr||!f.appendChild)&&(f=lr.body),v=f._gsap,v&&y&&v.width&&d&&v.time===zt.time&&!v.uncache)return Ke(i/v.width*p);if(y&&(r==="height"||r==="width")){var w=a.style[r];a.style[r]=p+s,x=a[u],w?a.style[r]=w:ko(a,r)}else(y||c==="%")&&!pz[Ca(f,"display")]&&(l.position=Ca(a,"position")),f===a&&(l.position="static"),f.appendChild(so),x=so[u],f.removeChild(so),l.position="absolute";return d&&y&&(v=uo(f),v.time=zt.time,v.width=f[u]),Ke(m?x*i/p:x&&i?p/x*i:0)},Oa=function(a,r,n,s){var i;return ZC||lC(),r in wa&&r!=="transform"&&(r=wa[r],~r.indexOf(",")&&(r=r.split(",")[0])),Ua[r]&&r!=="transform"?(i=il(a,s),i=r!=="transformOrigin"?i[r]:i.svg?i.origin:M9(Ca(a,Nt))+" "+i.zOrigin+"px"):(i=a.style[r],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=b9[r]&&b9[r](a,r,n)||Ca(a,r)||mI(a,r)||(r==="opacity"?1:0))),n&&!~(i+"").trim().indexOf(" ")?jr(a,r,i,n)+n:i},yz=function(a,r,n,s){if(!n||n==="none"){var i=ic(r,a,1),c=i&&Ca(a,i,1);c&&c!==n?(r=i,n=c):r==="borderColor"&&(n=Ca(a,"borderTopColor"))}var l=new Lt(this._pt,a.style,r,0,1,$I),d=0,h=0,u,p,m,y,x,f,v,k,w,b,S,C;if(l.b=n,l.e=s,n+="",s+="",s==="auto"&&(f=a.style[r],a.style[r]=s,s=Ca(a,r)||s,f?a.style[r]=f:ko(a,r)),u=[n,s],TI(u),n=u[0],s=u[1],m=n.match(_o)||[],C=s.match(_o)||[],C.length){for(;p=_o.exec(s);)v=p[0],w=s.substring(d,p.index),x?x=(x+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(x=1),v!==(f=m[h++]||"")&&(y=parseFloat(f)||0,S=f.substr((y+"").length),v.charAt(1)==="="&&(v=Xo(y,v)+S),k=parseFloat(v),b=v.substr((k+"").length),d=_o.lastIndex-b.length,b||(b=b||Ht.units[r]||S,d===s.length&&(s+=b,l.e+=b)),S!==b&&(y=jr(a,r,f,b)||0),l._pt={_next:l._pt,p:w||h===1?w:",",s:y,c:k-y,m:x&&x<4||r==="zIndex"?Math.round:0});l.c=d<s.length?s.substring(d,s.length):""}else l.r=r==="display"&&s==="none"?ZI:WI;return lI.test(s)&&(l.e=0),this._pt=l,l},yL={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},mz=function(a){var r=a.split(" "),n=r[0],s=r[1]||"50%";return(n==="top"||n==="bottom"||s==="left"||s==="right")&&(a=n,n=s,s=a),r[0]=yL[n]||n,r[1]=yL[s]||s,r.join(" ")},fz=function(a,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,s=n.style,i=r.u,c=n._gsap,l,d,h;if(i==="all"||i===!0)s.cssText="",d=1;else for(i=i.split(","),h=i.length;--h>-1;)l=i[h],Ua[l]&&(d=1,l=l==="transformOrigin"?Nt:Ge),ko(n,l);d&&(ko(n,Ge),c&&(c.svg&&n.removeAttribute("transform"),il(n,1),c.uncache=1,JI(s)))}},b9={clearProps:function(a,r,n,s,i){if(i.data!=="isFromStart"){var c=a._pt=new Lt(a._pt,r,n,0,0,fz);return c.u=s,c.pr=-10,c.tween=i,a._props.push(n),1}}},sl=[1,0,0,1,0,0],eA={},tA=function(a){return a==="matrix(1, 0, 0, 1, 0, 0)"||a==="none"||!a},mL=function(a){var r=Ca(a,Ge);return tA(r)?sl:r.substr(7).match(cI).map(Ke)},YC=function(a,r){var n=a._gsap||uo(a),s=a.style,i=mL(a),c,l,d,h;return n.svg&&a.getAttribute("transform")?(d=a.transform.baseVal.consolidate().matrix,i=[d.a,d.b,d.c,d.d,d.e,d.f],i.join(",")==="1,0,0,1,0,0"?sl:i):(i===sl&&!a.offsetParent&&a!==Yo&&!n.svg&&(d=s.display,s.display="block",c=a.parentNode,(!c||!a.offsetParent)&&(h=1,l=a.nextElementSibling,Yo.appendChild(a)),i=mL(a),d?s.display=d:ko(a,"display"),h&&(l?c.insertBefore(a,l):c?c.appendChild(a):Yo.removeChild(a))),r&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},dC=function(a,r,n,s,i,c){var l=a._gsap,d=i||YC(a,!0),h=l.xOrigin||0,u=l.yOrigin||0,p=l.xOffset||0,m=l.yOffset||0,y=d[0],x=d[1],f=d[2],v=d[3],k=d[4],w=d[5],b=r.split(" "),S=parseFloat(b[0])||0,C=parseFloat(b[1])||0,A,L,j,N;n?d!==sl&&(L=y*v-x*f)&&(j=S*(v/L)+C*(-f/L)+(f*w-v*k)/L,N=S*(-x/L)+C*(y/L)-(y*w-x*k)/L,S=j,C=N):(A=KI(a),S=A.x+(~b[0].indexOf("%")?S/100*A.width:S),C=A.y+(~(b[1]||b[0]).indexOf("%")?C/100*A.height:C)),s||s!==!1&&l.smooth?(k=S-h,w=C-u,l.xOffset=p+(k*y+w*f)-k,l.yOffset=m+(k*x+w*v)-w):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=C,l.smooth=!!s,l.origin=r,l.originIsAbsolute=!!n,a.style[Nt]="0px 0px",c&&(dr(c,l,"xOrigin",h,S),dr(c,l,"yOrigin",u,C),dr(c,l,"xOffset",p,l.xOffset),dr(c,l,"yOffset",m,l.yOffset)),a.setAttribute("data-svg-origin",S+" "+C)},il=function(a,r){var n=a._gsap||new EI(a);if("x"in n&&!r&&!n.uncache)return n;var s=a.style,i=n.scaleX<0,c="px",l="deg",d=getComputedStyle(a),h=Ca(a,Nt)||"0",u,p,m,y,x,f,v,k,w,b,S,C,A,L,j,N,q,P,T,R,E,$,B,U,O,ae,ce,pe,ne,de,K,me;return u=p=m=f=v=k=w=b=S=0,y=x=1,n.svg=!!(a.getCTM&&QI(a)),d.translate&&((d.translate!=="none"||d.scale!=="none"||d.rotate!=="none")&&(s[Ge]=(d.translate!=="none"?"translate3d("+(d.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(d.rotate!=="none"?"rotate("+d.rotate+") ":"")+(d.scale!=="none"?"scale("+d.scale.split(" ").join(",")+") ":"")+(d[Ge]!=="none"?d[Ge]:"")),s.scale=s.rotate=s.translate="none"),L=YC(a,n.svg),n.svg&&(n.uncache?(O=a.getBBox(),h=n.xOrigin-O.x+"px "+(n.yOrigin-O.y)+"px",U=""):U=!r&&a.getAttribute("data-svg-origin"),dC(a,U||h,!!U||n.originIsAbsolute,n.smooth!==!1,L)),C=n.xOrigin||0,A=n.yOrigin||0,L!==sl&&(P=L[0],T=L[1],R=L[2],E=L[3],u=$=L[4],p=B=L[5],L.length===6?(y=Math.sqrt(P*P+T*T),x=Math.sqrt(E*E+R*R),f=P||T?No(T,P)*ro:0,w=R||E?No(R,E)*ro+f:0,w&&(x*=Math.abs(Math.cos(w*Ko))),n.svg&&(u-=C-(C*P+A*R),p-=A-(C*T+A*E))):(me=L[6],de=L[7],ce=L[8],pe=L[9],ne=L[10],K=L[11],u=L[12],p=L[13],m=L[14],j=No(me,ne),v=j*ro,j&&(N=Math.cos(-j),q=Math.sin(-j),U=$*N+ce*q,O=B*N+pe*q,ae=me*N+ne*q,ce=$*-q+ce*N,pe=B*-q+pe*N,ne=me*-q+ne*N,K=de*-q+K*N,$=U,B=O,me=ae),j=No(-R,ne),k=j*ro,j&&(N=Math.cos(-j),q=Math.sin(-j),U=P*N-ce*q,O=T*N-pe*q,ae=R*N-ne*q,K=E*q+K*N,P=U,T=O,R=ae),j=No(T,P),f=j*ro,j&&(N=Math.cos(j),q=Math.sin(j),U=P*N+T*q,O=$*N+B*q,T=T*N-P*q,B=B*N-$*q,P=U,$=O),v&&Math.abs(v)+Math.abs(f)>359.9&&(v=f=0,k=180-k),y=Ke(Math.sqrt(P*P+T*T+R*R)),x=Ke(Math.sqrt(B*B+me*me)),j=No($,B),w=Math.abs(j)>2e-4?j*ro:0,S=K?1/(K<0?-K:K):0),n.svg&&(U=a.getAttribute("transform"),n.forceCSS=a.setAttribute("transform","")||!tA(Ca(a,Ge)),U&&a.setAttribute("transform",U))),Math.abs(w)>90&&Math.abs(w)<270&&(i?(y*=-1,w+=f<=0?180:-180,f+=f<=0?180:-180):(x*=-1,w+=w<=0?180:-180)),r=r||n.uncache,n.x=u-((n.xPercent=u&&(!r&&n.xPercent||(Math.round(a.offsetWidth/2)===Math.round(-u)?-50:0)))?a.offsetWidth*n.xPercent/100:0)+c,n.y=p-((n.yPercent=p&&(!r&&n.yPercent||(Math.round(a.offsetHeight/2)===Math.round(-p)?-50:0)))?a.offsetHeight*n.yPercent/100:0)+c,n.z=m+c,n.scaleX=Ke(y),n.scaleY=Ke(x),n.rotation=Ke(f)+l,n.rotationX=Ke(v)+l,n.rotationY=Ke(k)+l,n.skewX=w+l,n.skewY=b+l,n.transformPerspective=S+c,(n.zOrigin=parseFloat(h.split(" ")[2])||!r&&n.zOrigin||0)&&(s[Nt]=M9(h)),n.xOffset=n.yOffset=0,n.force3D=Ht.force3D,n.renderTransform=n.svg?gz:YI?aA:xz,n.uncache=0,n},M9=function(a){return(a=a.split(" "))[0]+" "+a[1]},Mj=function(a,r,n){var s=ut(r);return Ke(parseFloat(r)+parseFloat(jr(a,"x",n+"px",s)))+s},xz=function(a,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,aA(a,r)},zr="0deg",kc="0px",Er=") ",aA=function(a,r){var n=r||this,s=n.xPercent,i=n.yPercent,c=n.x,l=n.y,d=n.z,h=n.rotation,u=n.rotationY,p=n.rotationX,m=n.skewX,y=n.skewY,x=n.scaleX,f=n.scaleY,v=n.transformPerspective,k=n.force3D,w=n.target,b=n.zOrigin,S="",C=k==="auto"&&a&&a!==1||k===!0;if(b&&(p!==zr||u!==zr)){var A=parseFloat(u)*Ko,L=Math.sin(A),j=Math.cos(A),N;A=parseFloat(p)*Ko,N=Math.cos(A),c=Mj(w,c,L*N*-b),l=Mj(w,l,-Math.sin(A)*-b),d=Mj(w,d,j*N*-b+b)}v!==kc&&(S+="perspective("+v+Er),(s||i)&&(S+="translate("+s+"%, "+i+"%) "),(C||c!==kc||l!==kc||d!==kc)&&(S+=d!==kc||C?"translate3d("+c+", "+l+", "+d+") ":"translate("+c+", "+l+Er),h!==zr&&(S+="rotate("+h+Er),u!==zr&&(S+="rotateY("+u+Er),p!==zr&&(S+="rotateX("+p+Er),(m!==zr||y!==zr)&&(S+="skew("+m+", "+y+Er),(x!==1||f!==1)&&(S+="scale("+x+", "+f+Er),w.style[Ge]=S||"translate(0, 0)"},gz=function(a,r){var n=r||this,s=n.xPercent,i=n.yPercent,c=n.x,l=n.y,d=n.rotation,h=n.skewX,u=n.skewY,p=n.scaleX,m=n.scaleY,y=n.target,x=n.xOrigin,f=n.yOrigin,v=n.xOffset,k=n.yOffset,w=n.forceCSS,b=parseFloat(c),S=parseFloat(l),C,A,L,j,N;d=parseFloat(d),h=parseFloat(h),u=parseFloat(u),u&&(u=parseFloat(u),h+=u,d+=u),d||h?(d*=Ko,h*=Ko,C=Math.cos(d)*p,A=Math.sin(d)*p,L=Math.sin(d-h)*-m,j=Math.cos(d-h)*m,h&&(u*=Ko,N=Math.tan(h-u),N=Math.sqrt(1+N*N),L*=N,j*=N,u&&(N=Math.tan(u),N=Math.sqrt(1+N*N),C*=N,A*=N)),C=Ke(C),A=Ke(A),L=Ke(L),j=Ke(j)):(C=p,j=m,A=L=0),(b&&!~(c+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(b=jr(y,"x",c,"px"),S=jr(y,"y",l,"px")),(x||f||v||k)&&(b=Ke(b+x-(x*C+f*L)+v),S=Ke(S+f-(x*A+f*j)+k)),(s||i)&&(N=y.getBBox(),b=Ke(b+s/100*N.width),S=Ke(S+i/100*N.height)),N="matrix("+C+","+A+","+L+","+j+","+b+","+S+")",y.setAttribute("transform",N),w&&(y.style[Ge]=N)},kz=function(a,r,n,s,i){var c=360,l=ot(i),d=parseFloat(i)*(l&&~i.indexOf("rad")?ro:1),h=d-s,u=s+h+"deg",p,m;return l&&(p=i.split("_")[1],p==="short"&&(h%=c,h!==h%(c/2)&&(h+=h<0?c:-c)),p==="cw"&&h<0?h=(h+c*dL)%c-~~(h/c)*c:p==="ccw"&&h>0&&(h=(h-c*dL)%c-~~(h/c)*c)),a._pt=m=new Lt(a._pt,r,n,s,h,az),m.e=u,m.u="deg",a._props.push(n),m},fL=function(a,r){for(var n in r)a[n]=r[n];return a},vz=function(a,r,n){var s=fL({},n._gsap),i="perspective,force3D,transformOrigin,svgOrigin",c=n.style,l,d,h,u,p,m,y,x;s.svg?(h=n.getAttribute("transform"),n.setAttribute("transform",""),c[Ge]=r,l=il(n,1),ko(n,Ge),n.setAttribute("transform",h)):(h=getComputedStyle(n)[Ge],c[Ge]=r,l=il(n,1),c[Ge]=h);for(d in Ua)h=s[d],u=l[d],h!==u&&i.indexOf(d)<0&&(y=ut(h),x=ut(u),p=y!==x?jr(n,d,h,x):parseFloat(h),m=parseFloat(u),a._pt=new Lt(a._pt,l,d,p,m-p,oC),a._pt.u=x||0,a._props.push(d));fL(l,s)};St("padding,margin,Width,Radius",function(t,a){var r="Top",n="Right",s="Bottom",i="Left",c=(a<3?[r,n,s,i]:[r+i,r+n,s+n,s+i]).map(function(l){return a<2?t+l:"border"+l+t});b9[a>1?"border"+t:t]=function(l,d,h,u,p){var m,y;if(arguments.length<4)return m=c.map(function(x){return Oa(l,x,h)}),y=m.join(" "),y.split(m[0]).length===5?m[0]:y;m=(u+"").split(" "),y={},c.forEach(function(x,f){return y[x]=m[f]=m[f]||m[(f-1)/2|0]}),l.init(d,y,p)}});var rA={name:"css",register:lC,targetTest:function(a){return a.style&&a.nodeType},init:function(a,r,n,s,i){var c=this._props,l=a.style,d=n.vars.startAt,h,u,p,m,y,x,f,v,k,w,b,S,C,A,L,j;ZC||lC(),this.styles=this.styles||XI(a),j=this.styles.props,this.tween=n;for(f in r)if(f!=="autoRound"&&(u=r[f],!(Rt[f]&&FI(f,r,n,s,a,i)))){if(y=typeof u,x=b9[f],y==="function"&&(u=u.call(n,s,a,i),y=typeof u),y==="string"&&~u.indexOf("random(")&&(u=al(u)),x)x(this,a,f,u,n)&&(L=1);else if(f.substr(0,2)==="--")h=(getComputedStyle(a).getPropertyValue(f)+"").trim(),u+="",wr.lastIndex=0,wr.test(h)||(v=ut(h),k=ut(u)),k?v!==k&&(h=jr(a,f,h,k)+k):v&&(u+=v),this.add(l,"setProperty",h,u,s,i,0,0,f),c.push(f),j.push(f,0,l[f]);else if(y!=="undefined"){if(d&&f in d?(h=typeof d[f]=="function"?d[f].call(n,s,a,i):d[f],ot(h)&&~h.indexOf("random(")&&(h=al(h)),ut(h+"")||h==="auto"||(h+=Ht.units[f]||ut(Oa(a,f))||""),(h+"").charAt(1)==="="&&(h=Oa(a,f))):h=Oa(a,f),m=parseFloat(h),w=y==="string"&&u.charAt(1)==="="&&u.substr(0,2),w&&(u=u.substr(2)),p=parseFloat(u),f in wa&&(f==="autoAlpha"&&(m===1&&Oa(a,"visibility")==="hidden"&&p&&(m=0),j.push("visibility",0,l.visibility),dr(this,l,"visibility",m?"inherit":"hidden",p?"inherit":"hidden",!p)),f!=="scale"&&f!=="transform"&&(f=wa[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Ua,b){if(this.styles.save(f),S||(C=a._gsap,C.renderTransform&&!r.parseTransform||il(a,r.parseTransform),A=r.smoothOrigin!==!1&&C.smooth,S=this._pt=new Lt(this._pt,l,Ge,0,1,C.renderTransform,C,0,-1),S.dep=1),f==="scale")this._pt=new Lt(this._pt,C,"scaleY",C.scaleY,(w?Xo(C.scaleY,w+p):p)-C.scaleY||0,oC),this._pt.u=0,c.push("scaleY",f),f+="X";else if(f==="transformOrigin"){j.push(Nt,0,l[Nt]),u=mz(u),C.svg?dC(a,u,0,A,0,this):(k=parseFloat(u.split(" ")[2])||0,k!==C.zOrigin&&dr(this,C,"zOrigin",C.zOrigin,k),dr(this,l,f,M9(h),M9(u)));continue}else if(f==="svgOrigin"){dC(a,u,1,A,0,this);continue}else if(f in eA){kz(this,C,f,m,w?Xo(m,w+u):u);continue}else if(f==="smoothOrigin"){dr(this,C,"smooth",C.smooth,u);continue}else if(f==="force3D"){C[f]=u;continue}else if(f==="transform"){vz(this,u,a);continue}}else f in l||(f=ic(f)||f);if(b||(p||p===0)&&(m||m===0)&&!tz.test(u)&&f in l)v=(h+"").substr((m+"").length),p||(p=0),k=ut(u)||(f in Ht.units?Ht.units[f]:v),v!==k&&(m=jr(a,f,h,k)),this._pt=new Lt(this._pt,b?C:l,f,m,(w?Xo(m,w+p):p)-m,!b&&(k==="px"||f==="zIndex")&&r.autoRound!==!1?nz:oC),this._pt.u=k||0,v!==k&&k!=="%"&&(this._pt.b=h,this._pt.r=rz);else if(f in l)yz.call(this,a,f,h,w?w+u:u);else if(f in a)this.add(a,f,h||a[f],w?w+u:u,s,i);else if(f!=="parseTransform"){FC(f,u);continue}b||(f in l?j.push(f,0,l[f]):j.push(f,1,h||a[f])),c.push(f)}}L&&UI(this)},render:function(a,r){if(r.tween._time||!JC())for(var n=r._pt;n;)n.r(a,n.d),n=n._next;else r.styles.revert()},get:Oa,aliases:wa,getSetter:function(a,r,n){var s=wa[r];return s&&s.indexOf(",")<0&&(r=s),r in Ua&&r!==Nt&&(a._gsap.x||Oa(a,"x"))?n&&lL===n?r==="scale"?cz:oz:(lL=n||{})&&(r==="scale"?lz:dz):a.style&&!DC(a.style[r])?sz:~r.indexOf("-")?iz:GC(a,r)},core:{_removeProperty:ko,_getMatrix:YC}};It.utils.checkPrefix=ic;It.core.getStyleSaver=XI;(function(t,a,r,n){var s=St(t+","+a+","+r,function(i){Ua[i]=1});St(a,function(i){Ht.units[i]="deg",eA[i]=1}),wa[s[13]]=t+","+a,St(n,function(i){var c=i.split(":");wa[c[1]]=s[c[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");St("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Ht.units[t]="px"});It.registerPlugin(rA);var nA=It.registerPlugin(rA)||It;nA.core.Tween;function KC(t){return xq[t]||ir}function sA({advantages:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-gradient-to-b from-white to-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((n,s)=>{const i=KC(n.icon);return e.jsxs("div",{className:"relative bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow flex flex-col",children:[e.jsxs("div",{className:"w-12 h-12 flex items-center justify-center bg-yellow-50 rounded-lg text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:n.title}),e.jsx("p",{className:"text-gray-600 mb-6",children:n.description}),n.ctaLink&&n.ctaText?e.jsx("div",{className:"mt-auto",children:e.jsxs("a",{href:n.ctaLink,className:"inline-flex items-center text-yellow-600 hover:text-yellow-700 font-medium group",children:[n.ctaText,e.jsx(io,{className:"ml-2 h-4 w-4 transform group-hover:translate-x-1 transition-transform"})]})}):""]},s)})})]})})}function wz({title:t="Get in Touch",description:a="Have questions? We're here to help you start your journey",nameLabel:r="Full Name",emailLabel:n="Email",messageLabel:s="Message",namePlaceholder:i="Your full name",emailPlaceholder:c="you@example.com",messagePlaceholder:l="How can we help?",submitButtonLabel:d="Send Message",contactEmail:h="contact@globalenglish.com",contactPhone:u="+1 (555) 123-4567",contactMessage:p="Live chat available 24/7",onSubmit:m,showContactDetails:y=!0}){const x=f=>{f.preventDefault();const v=new FormData(f.currentTarget);m==null||m({name:String(v.get("name")??""),email:String(v.get("email")??""),message:String(v.get("message")??"")})};return e.jsx("section",{id:"contact",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsxs("div",{className:"mt-16 max-w-lg mx-auto",children:[e.jsxs("form",{className:"space-y-6",onSubmit:x,children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700",children:r}),e.jsx("input",{type:"text",id:"name",name:"name",placeholder:i,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:n}),e.jsx("input",{type:"email",id:"email",name:"email",placeholder:c,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-700",children:s}),e.jsx("textarea",{id:"message",name:"message",rows:4,placeholder:l,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-yellow-500 focus:ring-blue-500"})]}),e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-md hover:bg-yellow-700 transition-colors",children:d})]}),y&&e.jsxs("div",{className:"mt-12 space-y-4",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(ea,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:h})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(xr,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:u})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(fr,{className:"h-6 w-6 mr-3"}),e.jsx("span",{children:p})]})]})]})]})})}const iA=M.createContext(void 0);function bz({children:t}){const[a,r]=M.useState([]),[n,s]=M.useState(!1),i=M.useCallback(u=>{r(p=>p.find(y=>y.id===u.id)?p.map(y=>y.id===u.id?{...y,quantity:y.quantity+1}:y):[...p,{...u,quantity:1}]),s(!0)},[]),c=M.useCallback(u=>{r(p=>p.filter(m=>m.id!==u))},[]),l=M.useCallback((u,p)=>{r(m=>m.map(y=>y.id===u?{...y,quantity:Math.max(0,p)}:y))},[]),d=M.useCallback(()=>{s(u=>!u)},[]),h=a.reduce((u,p)=>u+p.price*p.quantity,0);return e.jsx(iA.Provider,{value:{items:a,isOpen:n,addItem:i,removeItem:c,updateQuantity:l,toggleCart:d,total:h},children:t})}function oA(){const t=M.useContext(iA);if(t===void 0)throw new Error("useCart must be used within a CartProvider");return t}function cA({courses:t,title:a,description:r}){const{addItem:n}=oA();return e.jsx("section",{id:"courses",className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4",children:t.map(s=>e.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 hover:border-yellow-500 transition-colors",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:s.title}),e.jsxs("div",{className:"space-y-3 mb-6",children:[e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(da,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.duration})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(jt,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.type})]}),e.jsxs("div",{className:"flex items-center text-gray-600",children:[e.jsx(Bc,{className:"h-5 w-5 mr-2"}),e.jsx("span",{children:s.level})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:s.description}),e.jsx("div",{className:"flex items-center justify-between mb-4",children:e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:["$",s.price]})}),e.jsxs("button",{onClick:()=>n({id:s.id,name:s.title,price:s.price,duration:s.duration}),className:"w-full bg-yellow-600 text-white py-2 px-4 rounded-md hover:bg-yellow-700 transition-colors flex items-center justify-center space-x-2",children:[e.jsx(Wo,{className:"h-5 w-5"}),e.jsx("span",{children:"Add to Cart"})]})]},s.id))})]})})}function lA({destinations:t,title:a,description:r}){const[n,s]=M.useState(0),[i,c]=M.useState(!0),l=()=>typeof window<"u"?window.innerWidth<640?1:window.innerWidth<1024?2:4:4,[d,h]=M.useState(l());M.useEffect(()=>{const y=()=>{h(l())};return window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]),M.useEffect(()=>{let y;return i&&(y=setInterval(()=>{s(x=>(x+1)%(t.length-d+1))},5e3)),()=>clearInterval(y)},[i]);const u=()=>{s(y=>Math.max(0,y-1)),c(!1)},p=()=>{s(y=>Math.min(t.length-d,y+1)),c(!1)},m=t.slice(n,n+d);return e.jsx("section",{id:"destinations",className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsxs("div",{className:"mt-16 relative",children:[e.jsx("div",{className:"flex gap-4 md:gap-6 lg:gap-8",children:m.map((y,x)=>e.jsxs("div",{className:"w-full md:w-1/2 lg:w-1/4 relative group overflow-hidden rounded-lg shadow-lg hover:shadow-xl transition-all",children:[e.jsx("img",{src:y.image,alt:y.name,className:"w-full h-64 object-cover group-hover:scale-110 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent",children:e.jsxs("div",{className:"absolute bottom-0 p-6",children:[e.jsxs("div",{className:"flex items-center text-white mb-2",children:[e.jsx(it,{className:"h-5 w-5 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold",children:y.name})]}),e.jsx("p",{className:"text-white/90 text-sm",children:y.description})]})})]},n+x))}),e.jsx("button",{onClick:u,disabled:n===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${n===0?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(ur,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:p,disabled:n>=t.length-d,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white/90 p-2 rounded-full shadow-lg transition-opacity ${n>=t.length-d?"opacity-50 cursor-not-allowed":"hover:bg-white"}`,children:e.jsx(pr,{className:"h-6 w-6 text-gray-800"})})]}),e.jsx("div",{className:"flex justify-center mt-8 space-x-2",children:Array.from({length:Math.ceil(t.length/d)}).map((y,x)=>e.jsx("button",{onClick:()=>{s(x*d),c(!1)},className:`w-2 h-2 rounded-full transition-all ${Math.floor(n/d)===x?"bg-yellow-600 w-4":"bg-gray-300 hover:bg-gray-400"}`},x))})]})})}const Mz=[{label:"Destinations",href:"#destinations"},{label:"Courses",href:"#courses"},{label:"Services",href:"#services"}];function jz({title:t="GlobalEnglish",navItems:a=Mz,ctaLabel:r="Contact Us",ctaHref:n="#contact",brandIcon:s=e.jsx(Qt,{className:"h-8 w-8 text-yellow-600"}),defaultOpen:i=!1,isOpen:c,onToggleMenu:l,menuButtonAriaLabel:d="Toggle navigation"}){const[h,u]=M.useState(i),p=c??h,m=()=>{const x=!p;c===void 0&&u(x),l==null||l(x)},y=x=>e.jsx("a",{href:x.href,onClick:x.onClick,className:"text-gray-600 hover:text-yellow-600",children:x.label},x.label);return e.jsxs("nav",{className:"bg-white shadow-lg fixed w-full z-50",children:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex items-center",children:[s,e.jsx("span",{className:"ml-2 text-xl font-bold text-gray-800",children:t})]}),e.jsxs("div",{className:"hidden md:flex items-center space-x-8",children:[a.map(y),e.jsx("a",{href:n,className:"bg-yellow-600 text-white px-4 py-2 rounded-md hover:bg-yellow-700",children:r})]}),e.jsx("div",{className:"md:hidden flex items-center",children:e.jsx("button",{onClick:m,className:"text-gray-600 hover:text-gray-900 focus:outline-none","aria-label":d,children:p?e.jsx(wt,{className:"h-6 w-6"}):e.jsx(Bo,{className:"h-6 w-6"})})})]})}),p&&e.jsx("div",{className:"md:hidden",children:e.jsxs("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[a.map(x=>e.jsx("a",{href:x.href,onClick:()=>{var f;(f=x.onClick)==null||f.call(x),m()},className:"block px-3 py-2 text-gray-600 hover:text-yellow-600",children:x.label},x.label)),e.jsx("a",{href:n,className:"block px-3 py-2 text-yellow-600 font-medium",children:r})]})})]})}function dA({title:t,subtitle:a,bg_img:r,main_btn_text:n,main_btn_link:s,secondary_btn_text:i,secondary_btn_link:c}){return e.jsxs("div",{className:"relative bg-yellow-600 h-screen flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx("img",{src:r,alt:"Students studying",className:"w-full h-full object-cover opacity-20"})}),e.jsxs("div",{className:"relative max-w-7xl mx-auto py-24 px-4 sm:py-32 sm:px-6 lg:px-8",children:[e.jsx("h1",{className:"text-4xl md:text-6xl font-bold text-white mb-8",children:t}),e.jsx("p",{className:"text-xl text-white mb-12 max-w-3xl",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s&&n?e.jsxs("a",{href:s,className:"inline-flex items-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50",children:[n,e.jsx(io,{className:"ml-2 h-5 w-5"})]}):"",c&&i?e.jsx("a",{href:c,className:"inline-flex items-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-yellow-700",children:i}):""]})]})]})}function hA({title:t,description:a,services:r}){return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:t}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:a})]}),e.jsx("div",{className:"mt-20 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:r.map((n,s)=>{const i=KC(n.icon);return e.jsxs("div",{className:"relative group bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-all",children:[e.jsxs("div",{className:"text-yellow-600 mb-4",children:[i?e.jsx(i,{className:"h-8 w-8"}):null," "]}),e.jsx("h3",{className:"text-lg font-medium text-gray-900",children:n.title}),e.jsx("p",{className:"mt-2 text-gray-500",children:n.description})]},s)})})]})})}function uA({testimonials:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-3",children:t.map((n,s)=>e.jsxs("div",{className:"relative bg-white p-8 rounded-xl shadow-lg",children:[e.jsx("div",{className:"absolute -top-4 -left-4",children:e.jsx(Uo,{className:"h-8 w-8 text-yellow-600"})}),e.jsxs("div",{className:"flex items-center mb-6",children:[e.jsx("img",{src:n.image,alt:n.name,className:"h-14 w-14 rounded-full object-cover"}),e.jsxs("div",{className:"ml-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:n.name}),e.jsx("p",{className:"text-gray-600",children:n.from})]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:n.text}),e.jsx("div",{className:"flex text-yellow-400",children:[...Array(n.rating)].map((i,c)=>e.jsx(vt,{className:"h-5 w-5 fill-current"},c))})]},s))})]})})}function pA({videos:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3",children:t.map((n,s)=>e.jsxs("div",{className:"relative group",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-lg",children:[e.jsx("img",{src:n.thumbnail,alt:n.title,className:"w-full h-64 object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-black/40 group-hover:bg-black/50 transition-colors",children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("button",{className:"bg-white/90 p-4 rounded-full group-hover:bg-white transition-colors",children:e.jsx(Oc,{className:"h-8 w-8 text-yellow-600"})})})}),e.jsx("div",{className:"absolute bottom-4 right-4 bg-black/70 px-2 py-1 rounded text-white text-sm",children:n.duration})]}),e.jsx("h3",{className:"mt-4 text-xl font-semibold text-gray-900",children:n.title}),e.jsx("p",{className:"mt-2 text-gray-600",children:n.description})]},s))})]})})}function yA({features:t,title:a,description:r}){return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"space-y-24",children:t.map((n,s)=>e.jsxs("div",{className:`flex flex-col gap-8 items-center ${s%2===0?"lg:flex-row":"lg:flex-row-reverse"}`,children:[e.jsx("div",{className:"w-full lg:w-1/2",children:e.jsx("div",{className:"relative h-[400px] overflow-hidden rounded-xl shadow-lg",children:e.jsx("img",{src:n.image,alt:n.imageAlt,className:"absolute inset-0 w-full h-full object-cover"})})}),e.jsxs("div",{className:"w-full lg:w-1/2 lg:px-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:n.title}),e.jsx("p",{className:"text-lg text-gray-600 leading-relaxed",children:n.description}),e.jsx("button",{className:"mt-8 inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 transition-colors",children:"Learn More"})]})]},s))})]})})}function mA({faqs:t,title:a,description:r}){const[n,s]=M.useState(null),i=c=>{s(l=>l===c?null:c)};return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"space-y-4",children:t.map((c,l)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{className:"w-full px-6 py-4 flex items-center justify-between bg-white hover:bg-gray-50 transition-colors",onClick:()=>i(l),children:[e.jsx("span",{className:"text-lg font-medium text-gray-900 text-left",children:c.question}),n===l?e.jsx(Fo,{className:"h-5 w-5 text-gray-500"}):e.jsx(hr,{className:"h-5 w-5 text-gray-500"})]}),e.jsx("div",{className:`px-6 overflow-hidden transition-all duration-300 ease-in-out ${n===l?"max-h-96 py-4":"max-h-0"}`,children:e.jsx("p",{className:"text-gray-600 leading-relaxed",children:c.answer})})]},l))})]})})}function Cz({images:t,autoPlayInterval:a=5e3}){const[r,n]=M.useState(0);M.useEffect(()=>{const l=setInterval(()=>{n(d=>(d+1)%t.length)},a);return()=>clearInterval(l)},[t.length,a]);const s=l=>{n(l)},i=()=>{n(l=>(l-1+t.length)%t.length)},c=()=>{n(l=>(l+1)%t.length)};return e.jsxs("div",{className:"relative w-full h-[600px] group",children:[e.jsx("div",{className:"relative h-full overflow-hidden rounded-xl",children:t.map((l,d)=>e.jsxs("div",{className:`absolute w-full h-full transition-transform duration-500 ease-out ${d===r?"translate-x-0":"translate-x-full"}`,style:{transform:`translateX(${100*(d-r)}%)`},children:[e.jsx("img",{src:l.url,alt:l.alt,className:"absolute w-full h-full object-cover"}),l.caption&&e.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-black/50 text-white p-4",children:e.jsx("p",{className:"text-lg",children:l.caption})})]},d))}),e.jsx("button",{onClick:i,className:"absolute left-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(ur,{className:"h-6 w-6 text-gray-800"})}),e.jsx("button",{onClick:c,className:"absolute right-4 top-1/2 -translate-y-1/2 bg-white/80 hover:bg-white p-2 rounded-full shadow-lg opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(pr,{className:"h-6 w-6 text-gray-800"})}),e.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2",children:t.map((l,d)=>e.jsx("button",{onClick:()=>s(d),className:`w-2 h-2 rounded-full transition-all ${d===r?"bg-white w-4":"bg-white/50 hover:bg-white/80"}`},d))})]})}function fA({images:t,title:a,description:r,autoPlayInterval:n=5e3}){return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx(Cz,{images:t,autoPlayInterval:n})]})})}function xA({initialMessages:t}){const[a,r]=M.useState(!1),[n,s]=M.useState(t),[i,c]=M.useState(""),l=d=>{if(d.preventDefault(),!i.trim())return;const h={text:i,isBot:!1,timestamp:new Date},u=["I'll help you find the perfect English course for your needs. Could you tell me your current English level?","That's a great question! Our courses are available in multiple locations. Would you like to know more about a specific destination?","We offer flexible course durations ranging from 2 weeks to 12 months. When would you like to start?","I can help you with visa requirements. Which country are you from?"],m={text:u[Math.floor(Math.random()*u.length)],isBot:!0,timestamp:new Date};s(y=>[...y,h,m]),c("")};return e.jsx("div",{className:"fixed bottom-4 right-4 z-50",children:a?e.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-96 max-h-[600px] flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 rounded-t-lg flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center text-white",children:[e.jsx(jc,{className:"h-6 w-6 mr-2"}),e.jsx("span",{className:"font-medium",children:"GlobalEnglish Assistant"})]}),e.jsx("button",{onClick:()=>r(!1),className:"text-white hover:text-gray-200 transition-colors",children:e.jsx(wt,{className:"h-5 w-5"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:n.map((d,h)=>e.jsx("div",{className:`flex ${d.isBot?"justify-start":"justify-end"}`,children:e.jsxs("div",{className:`max-w-[80%] rounded-lg p-3 ${d.isBot?"bg-gray-100 text-gray-800":"bg-yellow-600 text-white"}`,children:[e.jsx("p",{className:"text-sm",children:d.text}),e.jsx("span",{className:"text-xs opacity-75 mt-1 block",children:d.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},h))}),e.jsx("form",{onSubmit:l,className:"p-4 border-t",children:e.jsxs("div",{className:"flex space-x-2",children:[e.jsx("input",{type:"text",value:i,onChange:d=>c(d.target.value),placeholder:"Type your message...",className:"flex-1 border rounded-lg px-4 py-2 focus:outline-none focus:border-yellow-500"}),e.jsx("button",{type:"submit",className:"bg-yellow-600 text-white p-2 rounded-lg hover:bg-yellow-700 transition-colors",children:e.jsx(Hc,{className:"h-5 w-5"})})]})})]}):e.jsx("button",{onClick:()=>r(!0),className:"bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsx(fr,{className:"h-6 w-6"})})})}function gA({title:t="Your Cart",emptyMessage:a="Your cart is empty",totalLabel:r="Total:",checkoutButtonLabel:n="Proceed to Checkout",currencySymbol:s="$",floatingButtonAriaLabel:i="Toggle cart",onCheckout:c,onToggleCart:l}){const{items:d,isOpen:h,toggleCart:u,removeItem:p,updateQuantity:m,total:y}=oA(),x=()=>{l==null||l(!h),u()};return h?e.jsxs("div",{className:"fixed right-0 top-0 h-full w-96 bg-white shadow-xl z-50 flex flex-col",children:[e.jsxs("div",{className:"p-4 bg-yellow-600 text-white flex justify-between items-center",children:[e.jsx("h2",{className:"text-xl font-semibold",children:t}),e.jsx("button",{onClick:x,className:"text-white hover:text-gray-200 transition-colors","aria-label":i,children:e.jsx(wt,{className:"h-6 w-6"})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:d.length===0?e.jsx("p",{className:"text-gray-500 text-center mt-8",children:a}):e.jsx("div",{className:"space-y-4",children:d.map(f=>e.jsxs("div",{className:"border rounded-lg p-4 flex flex-col space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium",children:f.name}),e.jsx("p",{className:"text-sm text-gray-500",children:f.duration})]}),e.jsx("button",{onClick:()=>p(f.id),className:"text-red-500 hover:text-red-600","aria-label":`Remove ${f.name}`,children:e.jsx(Zo,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>m(f.id,f.quantity-1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Decrease quantity for ${f.name}`,children:e.jsx(Ec,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-8 text-center",children:f.quantity}),e.jsx("button",{onClick:()=>m(f.id,f.quantity+1),className:"p-1 rounded-md hover:bg-gray-100","aria-label":`Increase quantity for ${f.name}`,children:e.jsx($o,{className:"h-4 w-4"})})]}),e.jsxs("p",{className:"font-medium",children:[s,(f.price*f.quantity).toFixed(2)]})]})]},f.id))})}),e.jsxs("div",{className:"border-t p-4 bg-gray-50",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("span",{className:"font-medium",children:r}),e.jsxs("span",{className:"text-xl font-bold",children:[s,y.toFixed(2)]})]}),e.jsx("button",{className:"w-full bg-yellow-600 text-white py-3 px-4 rounded-lg hover:bg-yellow-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.length===0,onClick:c,children:n})]})]}):e.jsx("button",{onClick:x,"aria-label":i,className:"fixed bottom-20 right-4 z-40 bg-yellow-600 text-white p-4 rounded-full shadow-lg hover:bg-yellow-700 transition-colors",children:e.jsxs("div",{className:"relative",children:[e.jsx(Wo,{className:"h-6 w-6"}),d.length>0&&e.jsx("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center",children:d.length})]})})}function kA({services:t,title:a,description:r,showBtn:n="Show",hideBtn:s="Hide",featuresBtn:i="Features"}){const[c,l]=M.useState(null),d=h=>{l(c===h?null:h)};return e.jsx("section",{id:"services",className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"mt-16 grid grid-cols-1 gap-8 lg:grid-cols-2",children:t.map((h,u)=>e.jsx("div",{className:"bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300",children:e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-3",children:h.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:h.shortDescription}),e.jsx("div",{className:`transition-all duration-300 overflow-hidden ${c===u?"max-h-[500px]":"max-h-0"}`,children:e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsx("p",{className:"text-gray-700",children:h.fullDescription}),e.jsxs("div",{className:"border-t pt-4",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:i}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:h.features.map((p,m)=>e.jsxs("li",{className:"text-gray-600",children:["• ",p]},m))})]})]})}),e.jsx("button",{onClick:()=>d(u),className:"mt-4 text-yellow-600 hover:text-yellow-700 font-medium focus:outline-none",children:c===u?s:n})]})},u))})]})})}function vA({courses:t=[],title:a="Available Courses",description:r="Choose the best course for you.",priceLabel:n="From",currencySymbol:s="€",perDurationLabel:i="/week",reviewsText:c="reviews"}){const l=d=>{const h=d/10*5,u=Math.floor(h),p=h%1,m=5-Math.ceil(h);return e.jsxs("div",{className:"flex items-center",children:[[...Array(u)].map((y,x)=>e.jsx(vt,{className:"w-5 h-5 text-yellow-400 fill-current"},`full-${x}`)),p>0&&e.jsxs("div",{className:"relative w-5 h-5",children:[e.jsx(vt,{className:"absolute w-5 h-5 text-gray-300 fill-current"}),e.jsx("div",{className:"absolute overflow-hidden",style:{width:`${p*100}%`},children:e.jsx(vt,{className:"w-5 h-5 text-yellow-400 fill-current"})})]}),[...Array(m)].map((y,x)=>e.jsx(vt,{className:"w-5 h-5 text-gray-300"},`empty-${x}`))]})};return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 sm:text-4xl",children:a}),e.jsx("p",{className:"mt-4 text-xl text-gray-600",children:r})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:t.map((d,h)=>e.jsxs("div",{className:"bg-white rounded-xl p-8 shadow-sm hover:shadow-md transition-shadow flex flex-col h-full",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:d.title}),e.jsxs("div",{className:"flex items-center mb-4",children:[l(d.rating),e.jsxs("span",{className:"ml-2 text-gray-600",children:[d.rating,"/10 (",d.reviews," ",c,")"]})]}),e.jsxs("div",{className:"mb-4",children:[e.jsxs("span",{className:"text-2xl font-bold text-gray-900",children:[n," ",d.pricePerWeek,s]}),e.jsxs("span",{className:"text-gray-600",children:["/",i]})]}),e.jsx("p",{className:"text-gray-600 mb-6",children:d.description}),e.jsx("div",{className:"space-y-4",children:d.features.map((u,p)=>{const m=KC(u.icon);return e.jsxs("div",{className:"flex items-center text-gray-700",children:[m?e.jsx(m,{className:"w-5 h-5"}):null,e.jsx("span",{className:"ml-3",children:u.text})]},p)})})]}),d.ctaLink&&d.ctaText?e.jsx("div",{className:"mt-8",children:e.jsx("a",{href:d.ctaLink,className:"w-full bg-black text-white py-3 px-6 rounded-lg hover:bg-gray-800 transition-colors",children:d.ctaText})}):""]},h))})]})})}const Sz=[{title:"Asistencia con el Visado",shortDescription:"Orientación experta durante todo el proceso de solicitud de visado para tu experiencia de estudio en el extranjero.",fullDescription:"Nuestro equipo dedicado a soporte de visados ofrece asistencia integral durante todo el proceso de solicitud. Te ayudamos a comprender los requisitos, preparar la documentación y asegurarnos de que tu solicitud cumpla con todos los criterios necesarios.",features:["Preparación y verificación de documentos","Asistencia con el formulario de solicitud","Orientación para la preparación de entrevistas","Consulta sobre los requisitos del visado","Soporte de seguimiento","Asistencia de emergencia"]},{title:"Servicios de Alojamiento",shortDescription:"Encuentra tu hogar perfecto lejos de casa con nuestras opciones de alojamiento cuidadosamente seleccionadas.",fullDescription:"Ofrecemos una amplia variedad de opciones de alojamiento previamente inspeccionadas para adaptarse a cada preferencia y presupuesto. Nuestro equipo de vivienda inspecciona personalmente todas las propiedades para garantizar que cumplan con nuestros estándares de calidad.",features:["Alojamiento en familia local","Residencias estudiantiles","Apartamentos compartidos","Estudios privados","Opciones a corto y largo plazo","Todos los servicios incluidos"]},{title:"Selección en Cursos de Idiomas",shortDescription:"Selección de cursos personalizada para adaptarse a tus objetivos de aprendizaje y nivel de competencia actual.",fullDescription:"Nuestros asesores académicos trabajan contigo para crear un plan de estudio personalizado basado en tus metas, horario y nivel actual de inglés. Nos aseguramos de que estés en el curso adecuado para maximizar tu potencial de aprendizaje.",features:["Evaluación de nivel gratuita","Planes de estudio personalizados","Monitoreo regular del progreso","Opciones de horario flexibles","Cursos especializados disponibles","Preparación para certificaciones"]},{title:"Seguro para Estudiantes",shortDescription:"Cobertura de seguro integral para una experiencia de estudio sin preocupaciones en el extranjero.",fullDescription:"Colaboramos con proveedores de seguros líderes para ofrecer coberturas integrales diseñadas específicamente para estudiantes internacionales. Nuestros paquetes incluyen protección de salud, viajes y bienes personales.",features:["Cobertura de seguro médico","Seguro de viajes","Protección de bienes personales","Asistencia de emergencia","Línea de soporte 24/7","Facturación directa con hospitales"]},{title:"Programa de Integración Cultural",shortDescription:"Sumérgete en la cultura local con actividades y eventos organizados.",fullDescription:"Nuestro programa de integración cultural te ayuda a adaptarte a tu nuevo entorno y a aprovechar al máximo tu experiencia de estudio en el extranjero. Organizamos actividades regulares, eventos y excursiones para que explores y comprendas la cultura local.",features:["Actividades sociales semanales","Talleres culturales","Sistema de compañeros locales","Eventos de intercambio de idiomas","Recorridos por la ciudad y excursiones","Celebraciones de festivales"]},{title:"Soporte para el Desarrollo Profesional",shortDescription:"Mejora tus perspectivas profesionales con nuestros servicios integrales de desarrollo profesional.",fullDescription:"Nuestro equipo de desarrollo profesional brinda orientación y apoyo para ayudarte a alcanzar tus metas laborales. Desde la redacción de CV hasta la preparación para entrevistas, te ayudamos a prepararte para tu carrera futura.",features:["Redacción de CV y cartas de presentación","Preparación para entrevistas","Asistencia en la búsqueda de empleo","Eventos de networking","Talleres de la industria","Colocación en prácticas profesionales"]}],Lz=[{icon:"Plane",title:"Visa Assistance",description:"Complete support with visa applications and documentation."},{icon:"Home",title:"Accommodation",description:"Find the perfect place to stay with our accommodation services."},{icon:"BookOpen",title:"Language Courses",description:"Comprehensive English courses for all levels."},{icon:"Shield",title:"Travel Insurance",description:"Stay protected with our travel insurance packages."},{icon:"Map",title:"Local Activities",description:"Explore the local culture with organized activities."},{icon:"Briefcase",title:"Job Opportunities",description:"Access to job markets and career guidance."}],Nz=[{title:"Learn in World-Class Facilities",description:"Our modern campuses are equipped with state-of-the-art technology and comfortable learning spaces. Each classroom is designed to facilitate interactive learning with smart boards, multimedia equipment, and flexible seating arrangements. Students also have access to self-study areas, a library with extensive English learning resources, and comfortable student lounges.",image:"https://images.unsplash.com/photo-1592280771190-3e2e4d571952?auto=format&fit=crop&q=80",imageAlt:"Modern classroom facility"},{title:"Cultural Immersion Programs",description:"Go beyond traditional language learning with our immersive cultural programs. Participate in local events, join conversation clubs with native speakers, and engage in cultural workshops. Our programs include guided city tours, cooking classes featuring local cuisine, and regular social activities where you can practice English in real-world situations.",image:"https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80",imageAlt:"Students engaging in cultural activities"},{title:"Career Development Support",description:"Launch your international career with our comprehensive career support services. We offer professional development workshops, CV writing assistance, and interview preparation in English. Our partnerships with local businesses provide internship opportunities, and our career counselors help you navigate the job market in English-speaking countries.",image:"https://images.unsplash.com/photo-1552581234-26160f608093?auto=format&fit=crop&q=80",imageAlt:"Career counseling session"}],Iz=[{icon:"Users",title:"Small Class Sizes",description:"Maximum of 12 students per class ensures personalized attention"},{icon:"Trophy",title:"Certified Teachers",description:"Native speakers with CELTA/DELTA qualifications"},{icon:"Calendar",title:"Flexible Schedule",description:"Morning, afternoon, and evening classes available"},{icon:"GraduationCap",title:"Recognized Certificates",description:"Internationally recognized certifications upon completion"},{icon:"Globe2",title:"Cultural Exchange",description:"Regular events and activities with international students"},{icon:"CheckCircle",title:"Job Support",description:"CV workshops and job placement assistance"}],Az=[{url:"https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&q=80",alt:"Students studying together",caption:"Collaborative learning environment"},{url:"https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80",alt:"Modern campus library",caption:"State-of-the-art study facilities"},{url:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&q=80",alt:"Student accommodation",caption:"Comfortable student residences"},{url:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",alt:"Group activity",caption:"Engaging extracurricular activities"},{url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",alt:"Student life",caption:"Vibrant campus community"}],Pz=[{name:"London, UK",image:"https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&q=80",description:"Study English in the heart of the UK with access to world-class institutions."},{name:"New York, USA",image:"https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?auto=format&fit=crop&q=80",description:"Experience American English while living in the most vibrant city in the world."},{name:"Sydney, Australia",image:"https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?auto=format&fit=crop&q=80",description:"Combine English studies with an amazing lifestyle in beautiful Sydney."},{name:"Toronto, Canada",image:"https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&q=80",description:"Study in one of the most multicultural cities with excellent quality of life."},{name:"Dublin, Ireland",image:"https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?auto=format&fit=crop&q=80",description:"Experience Irish hospitality while studying in this historic and vibrant city."},{name:"Vancouver, Canada",image:"https://images.unsplash.com/photo-1559511260-66a654ae982a?auto=format&fit=crop&q=80",description:"Study surrounded by stunning nature and a high quality of life."},{name:"Melbourne, Australia",image:"https://images.unsplash.com/photo-1514395462725-fb4566210144?auto=format&fit=crop&q=80",description:"Join the world's most liveable city with excellent educational opportunities."},{name:"Edinburgh, UK",image:"https://images.unsplash.com/photo-1506377585622-bedcbb027afc?auto=format&fit=crop&q=80",description:"Study in Scotland's historic capital surrounded by stunning architecture."},{name:"San Francisco, USA",image:"https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&q=80",description:"Learn English in the tech capital of the world."},{name:"Auckland, New Zealand",image:"https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&q=80",description:"Study in New Zealand's largest city surrounded by natural beauty."},{name:"Manchester, UK",image:"https://images.unsplash.com/photo-1519677100203-a0e668c92439?auto=format&fit=crop&q=80",description:"Experience northern English culture in this vibrant student city."},{name:"Boston, USA",image:"https://images.unsplash.com/photo-1501979376754-f1e8d89c7fe0?auto=format&fit=crop&q=80",description:"Study in America's premier educational hub."},{name:"Brisbane, Australia",image:"https://images.unsplash.com/photo-1452859030917-45a0de82ef4c?auto=format&fit=crop&q=80",description:"Enjoy subtropical climate while studying in this growing city."},{name:"Montreal, Canada",image:"https://images.unsplash.com/photo-1519178614-68673b201f36?auto=format&fit=crop&q=80",description:"Experience bilingual culture in this historic Canadian city."},{name:"Oxford, UK",image:"https://images.unsplash.com/photo-1590510616176-67c87a688639?auto=format&fit=crop&q=80",description:"Study in one of the world's most prestigious academic cities."},{name:"Seattle, USA",image:"https://images.unsplash.com/photo-1502175353174-a7a70e73b362?auto=format&fit=crop&q=80",description:"Learn English in the innovative Pacific Northwest."},{name:"Perth, Australia",image:"https://images.unsplash.com/photo-1573935448851-e0a5d7507f4e?auto=format&fit=crop&q=80",description:"Study in Australia's sunniest capital city."},{name:"Cambridge, UK",image:"https://images.unsplash.com/photo-1579619002916-88cd4c81a70c?auto=format&fit=crop&q=80",description:"Experience academic excellence in this historic university city."},{name:"Wellington, New Zealand",image:"https://images.unsplash.com/photo-1589871973318-9ca1258faa5d?auto=format&fit=crop&q=80",description:"Study in New Zealand's cultural capital."},{name:"Chicago, USA",image:"https://images.unsplash.com/photo-1494522855154-9297ac14b55f?auto=format&fit=crop&q=80",description:"Experience American culture in the heart of the Midwest."}],_z=[{id:"1",title:"Intensive English",type:"in-person",duration:"4-12 weeks",level:"All levels",description:"Accelerated learning with focused daily classes.",price:1299},{id:"2",title:"Business English",type:"in-person",duration:"8-16 weeks",level:"Intermediate to Advanced",description:"Specialized English for professional environments.",price:1599},{id:"3",title:"Online Live Classes",type:"online",duration:"Flexible",level:"All levels",description:"Interactive online classes with expert teachers.",price:799},{id:"4",title:"IELTS Preparation",type:"in-person",duration:"12 weeks",level:"Intermediate to Advanced",description:"Comprehensive preparation for IELTS exam.",price:1499}],Rz=[{thumbnail:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80",title:"Campus Life in London",duration:"3:45",description:"Experience a day in the life of our London students"},{thumbnail:"https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&q=80",title:"Student Success Stories",duration:"5:20",description:"See how our students achieved their English learning goals"},{thumbnail:"https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&q=80",title:"Virtual Campus Tour",duration:"4:15",description:"Take a tour of our modern facilities and classrooms"}],Tz=[{name:"Sarah Chen",from:"Singapore",image:"https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&q=80",text:"The support I received from GlobalEnglish was exceptional. From visa assistance to finding accommodation, everything was handled professionally.",rating:5},{name:"Carlos Rodriguez",from:"Spain",image:"https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&q=80",text:"The Business English course helped me secure a job at an international company. The teachers were experienced and the course material was practical.",rating:5},{name:"Maria Kowalski",from:"Poland",image:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?auto=format&fit=crop&q=80",text:"Studying in London through GlobalEnglish was a life-changing experience. The cultural immersion and quality of education exceeded my expectations.",rating:5}],qz=[{text:"👋 Hi! I'm here to help you with any questions about our English courses. How can I assist you today?",isBot:!0,timestamp:new Date}],Dz=[{question:"What visa requirements are needed to study English abroad?",answer:"Requirements vary by destination. Generally, you'll need: a valid passport, proof of enrollment in an accredited language school, proof of sufficient funds (usually 3-6 months of living expenses), and health insurance. We provide comprehensive visa assistance to ensure a smooth application process."},{question:"How long are the English courses?",answer:"We offer flexible course durations ranging from 2 weeks to 12 months. Intensive courses typically run for 4-12 weeks, while standard courses can be taken for any duration. Business English and exam preparation courses usually require a minimum commitment of 8-12 weeks for optimal results."},{question:"What accommodation options are available?",answer:"We offer various accommodation options including: homestays with local families, student residences, shared apartments, and private studios. All options are carefully vetted and located within easy reach of our schools. Homestays are particularly popular for full language immersion."},{question:"Can I work while studying?",answer:"Work possibilities depend on your visa type and destination country. Many student visas allow part-time work (usually 20 hours per week). Our student services team can provide detailed information about work rights and help with job searching in your chosen destination."},{question:"What level of English do I need to start?",answer:"We accept students at all levels, from complete beginners to advanced speakers. Before starting, you'll take a placement test to ensure you're placed in the appropriate level. Our courses follow the Common European Framework of Reference (CEFR) from A1 to C2 levels."}],zz=[{title:"General English",rating:9.5,reviews:226,pricePerWeek:95,description:"Learn English at your own pace while making the most of your stay in Malta.",features:[{icon:"Clock",text:"20 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"Intensive English",rating:9.2,reviews:229,pricePerWeek:189,description:"For those who want to learn faster. Combine exclusive Speaking classes with your General English course.",features:[{icon:"Clock",text:"30 classes of 45 min per week"},{icon:"Calendar",text:"You choose the number of weeks"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 16 to 99 years"}]},{title:"English 30+",rating:9.5,reviews:190,pricePerWeek:180,description:"For those who want to study with people of a similar age.",features:[{icon:"Clock",text:"20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"15 students maximum per class"},{icon:"LineChart",text:"All levels"},{icon:"User",text:"From 30 years onwards"}]},{title:"Business English",rating:9.2,reviews:195,pricePerWeek:190,description:"For those looking to boost their professional career and access job opportunities worldwide.",features:[{icon:"Clock",text:"10, 20 or 30 classes per week"},{icon:"Calendar",text:"You choose the duration"},{icon:"Users",text:"Reduced groups"},{icon:"LineChart",text:"B1 level or higher"},{icon:"User",text:"From 18 years"}]}],Ez=()=>(M.useEffect(()=>{nA.fromTo(".animated-text",{opacity:0,y:30},{opacity:1,y:0,duration:1,stagger:.2})},[]),e.jsxs("div",{className:"relative min-h-screen flex flex-col bg-gray-50",children:[e.jsx(bz,{children:e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(jz,{}),e.jsx(dA,{title:"Estudia inglés en Malta: Vive, Aprende trabaja y Crece",subtitle:"Tu aventura comienza aquí: Te ayudamos con visado, viaje, estadía, trabajo y más para que aprendas inglés en Malta.",bg_img:"https://maltalovers.com/wp-content/uploads/2017/05/cropped-Valletta2-2.jpg",main_btn_text:"Explore Courses",main_btn_link:"#courses",secondary_btn_text:"View Destinations",secondary_btn_link:"#destinations"}),e.jsx(hA,{services:Lz,title:"Nuestro Servicios",description:"Todo lo que necesitas para aprender inglés en el menor tiempo y al mejor costo"}),e.jsx(kA,{services:Sz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(sA,{advantages:Iz,title:"Why Choose GlobalEnglish?",description:"Discover what sets us apart from other language schools"}),e.jsx(yA,{features:Nz,title:"Titulo",description:"description"}),e.jsx(vA,{courses:zz,title:"Test",description:"test"}),e.jsx(fA,{images:Az,autoPlayInterval:5e3,title:"Campus Life Gallery",description:"Take a visual tour of our facilities and student activities"}),e.jsx(lA,{destinations:Pz,title:"Popular Destinations",description:"Choose from our carefully selected locations worldwide"}),e.jsx(cA,{courses:_z,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(pA,{videos:Rz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(uA,{testimonials:Tz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(mA,{faqs:Dz,title:"Our Courses",description:"Find the perfect course to match your goals"}),e.jsx(wz,{}),e.jsx(xA,{initialMessages:qz}),e.jsx(gA,{})]})}),e.jsx("footer",{className:"bg-gray-800 text-white py-8",children:e.jsxs("div",{className:"max-w-7xl mx-auto text-center space-y-4",children:[e.jsx("p",{className:"text-sm",children:"© 2024 Learn English. All Rights Reserved."}),e.jsxs("nav",{className:"flex justify-center space-x-6",children:[e.jsx("a",{href:"#home",className:"hover:text-yellow-400",children:"Home"}),e.jsx("a",{href:"#courses",className:"hover:text-yellow-400",children:"Courses"}),e.jsx("a",{href:"#contact",className:"hover:text-yellow-400",children:"Contact Us"})]})]})})]}));function Fz({title:t,icon:a,jobs:r,viewAllText:n,viewAllHref:s,apiUrl:i}){const[c,l]=M.useState(r||[]),[d,h]=M.useState(!r),[u,p]=M.useState(null);M.useEffect(()=>{if(r)return;(async()=>{h(!0),p(null);try{const f=await fetch(i||"/api/featured-jobs");if(!f.ok)throw new Error(`Failed to fetch jobs: ${f.status}`);const v=await f.json();if(!Array.isArray(v))throw new Error("Expected an array of jobs");l(v)}catch(x){console.error("Error fetching jobs:",x),p(x instanceof Error?x.message:"Failed to load jobs"),l(m())}finally{h(!1)}})()},[r,i]);const m=()=>{const y=["Bet365","Entain","Flutter","DraftKings","Pinnacle"],x=["Game Developer","CRM Manager","VIP Account Manager","Compliance Specialist","UX Designer"],f=["Malta","London","Gibraltar","Remote","New York"];return Array.from({length:6},(v,k)=>({id:`mock-job-${k}`,title:x[k%x.length],company:y[k%y.length],companyLogo:`/logos/${y[k%y.length].toLowerCase()}.png`,location:f[k%f.length],salary:`€${Math.floor(Math.random()*30)+40},000`}))};return d?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[...Array(3)].map((y,x)=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 animate-pulse",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-200 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]})]}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/2 mb-4"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-1/4 mb-4"}),e.jsx("div",{className:"h-10 bg-gray-200 rounded"})]},x))})})}):u&&c.length===0?e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"container mx-auto px-4 text-center",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6 inline-block",children:[e.jsx("p",{children:u}),e.jsx(D,{variant:"outline",className:"mt-4 border-red-300 text-red-800",onClick:()=>window.location.reload(),children:"Try Again"})]})})}):e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[a&&e.jsx("div",{children:a}),e.jsx("h2",{className:"text-2xl font-bold",children:t})]}),c.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(y=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded flex items-center justify-center",children:e.jsx("img",{src:y.companyLogo||"/placeholder.svg",alt:`${y.company} logo`,width:48,height:48,className:"rounded",onError:x=>{x.target.src="/placeholder.svg"}})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:y.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:y.company})]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 mb-2",children:[e.jsx(it,{size:16}),e.jsx("span",{children:y.location})]}),e.jsx("div",{className:"text-green-600 font-medium mb-4",children:y.salary}),e.jsx(D,{className:"w-full bg-[#0f1219] hover:bg-[#1a2236]",children:"Apply Now"})]},y.id))}),e.jsx("div",{className:"mt-8 text-center",children:e.jsx(D,{variant:"outline",className:"border-[#0f1219] text-[#0f1219] hover:bg-[#0f1219] hover:text-white",onClick:()=>window.location.href=s,children:n})})]}):e.jsx("div",{className:"text-center py-8",children:e.jsx("p",{className:"text-gray-500",children:"No featured jobs available at the moment."})})]})})}function wA({title:t,description:a,primaryButtonText:r,primaryButtonHref:n,secondaryButtonText:s,secondaryButtonHref:i}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#1a2236] to-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:a}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4",children:[e.jsx(D,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6 py-2 rounded",onClick:()=>window.location.href=n,children:r}),e.jsx(D,{variant:"outline",className:"bg-transparent border-white hover:bg-white/10 text-white font-medium px-6 py-2 rounded",onClick:()=>window.location.href=i,children:s})]})]})})})}function bA({title:t,subtitle:a,backgroundImage:r="/placeholder.svg?height=800&width=1600",primaryButtonText:n,primaryButtonLink:s="#",secondaryButtonText:i,secondaryButtonLink:c="#"}){return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsx("div",{className:"container mx-auto px-4 relative z-10",children:e.jsx("div",{className:"relative z-10 container mx-auto px-4 text-center",children:e.jsxs("div",{className:"max-w-4xl mx-auto animate-fade-in",children:[e.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-primary-foreground mb-6 leading-tight",children:[t," ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"iGaming"})]}),e.jsx("p",{className:"text-xl md:text-2xl text-primary-foreground/80 mb-8 leading-relaxed",children:a}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center items-center animate-slide-in",children:[e.jsxs("a",{href:s,className:`justify-center whitespace-nowrap text-sm transition-colors
|
|
7742
7742
|
focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
|
|
7743
7743
|
disabled:opacity-50 shadow h-9 bg-yellow-500 hover:bg-yellow-400 text-black font-medium px-6
|
|
7744
7744
|
py-2 rounded flex items-center gap-2`,children:[e.jsx(Ot,{size:18}),n]}),e.jsxs("a",{href:c,className:`justify-center whitespace-nowrap text-sm transition-colors focus-visible:outline-none
|
|
7745
7745
|
focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
|
|
7746
7746
|
disabled:opacity-50 border shadow-sm hover:text-accent-foreground h-9
|
|
7747
7747
|
bg-transparent border-white hover:bg-white/10 text-white font-medium
|
|
7748
|
-
px-6 py-2 rounded flex items-center gap-2`,children:[e.jsx(Uc,{size:18}),i]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function MA({title:t,values:a}){return e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:t}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:a.map((r,n)=>{const s=r.icon;return e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:e.jsx(s,{className:"w-8 h-8 text-yellow-500"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]},n)})})]})})}function jA({title:t,testimonial:a,stats:r,partnerLogos:n}){const[s,i]=M.useState(0),c=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];M.useEffect(()=>{const h=setInterval(()=>{i(u=>(u+1)%c.length)},5e3);return()=>clearInterval(h)},[c.length]);const l=()=>{i(h=>(h+1)%c.length)},d=()=>{i(h=>(h-1+c.length)%c.length)};return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:t}),e.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),e.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[e.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[e.jsx(Uo,{className:"h-12 w-12 text-yellow-500 mb-6"}),e.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',c[s].content,'"']}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:c[s].name.charAt(0)})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:c[s].name}),e.jsxs("div",{className:"text-primary-foreground/70",children:[c[s].role," at ",c[s].company]}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:c[s].location})]})]}),e.jsx("div",{className:"flex items-center gap-1",children:[...Array(c[s].rating)].map((h,u)=>e.jsx(vt,{className:"h-5 w-5 text-yellow-500 fill-current"},u))})]})]}),e.jsxs("div",{className:"flex items-center justify-between mt-8",children:[e.jsx(D,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(ur,{className:"h-6 w-6"})}),e.jsx("div",{className:"flex gap-2",children:c.map((h,u)=>e.jsx("button",{onClick:()=>i(u),className:`w-3 h-3 rounded-full transition-all duration-300 ${u===s?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},u))}),e.jsx(D,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(pr,{className:"h-6 w-6"})})]})]}),e.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function CA({title:t,description:a,inputPlaceholder:r,api_url:n="http://localhost:5147",buttonText:s,isSubscribed:i=!1,email:c=null}){const[l,d]=M.useState(c??""),[h,u]=M.useState(!1),[p,y]=M.useState(!1);M.useEffect(()=>{if(i){y(!0),c&&d(c);return}try{const v=localStorage.getItem("email"),k=localStorage.getItem("leadId");v&&k&&(y(!0),d(v))}catch{}},[i,c]);const m=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}u(!0);try{const v=await fetch(`${n}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(v.ok){const k=await v.json();localStorage.setItem("leadId",k.id),localStorage.setItem("email",l),y(!0)}else{const k=await v.text();alert("Submission failed: "+k)}}catch{alert("Network error while submitting")}finally{u(!1)}},x=p||i,f=c??l;return e.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-gray-300 mb-6",children:a}),x?e.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",f?` as ${f}`:"","."]}):e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[e.jsx(Pe,{type:"email",placeholder:r,value:l,onChange:v=>d(v.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),e.jsx(D,{onClick:m,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":s})]})]})})})}function SA({title:t,locations:a,trendingKeywords:r,searchButtonText:n,apiUrl:s,className:i="",showTrending:c=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[u,p]=M.useState(""),[y,m]=M.useState(""),[x,f]=M.useState([]),[v,k]=M.useState(!1),w="Browse 3,500+ iGaming Jobs",b=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],S=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];M.useEffect(()=>{const N=new URLSearchParams(window.location.search),q=N.get("q")||"",P=N.get("location")||"";p(q),m(P)},[]),M.useEffect(()=>{if(u.length<3){f([]);return}const N=setTimeout(()=>{C(u)},300);return()=>clearTimeout(N)},[u]);const C=async N=>{if(!s||d){f([`${N} Developer`,`${N} Manager`,`${N} Specialist`,`${N} Coordinator`,`${N} Agent`]);return}try{k(!0);const q=await fetch(`${s}/suggestions?q=${encodeURIComponent(N)}`);if(!q.ok)throw new Error("Failed to fetch suggestions");const P=await q.json();f(P.suggestions||[])}catch(q){console.error("Error fetching suggestions:",q),f([])}finally{k(!1)}},A=N=>p(N),L=N=>{N.key==="Enter"&&j()},j=()=>{if(d){console.log(`Mock Search - Term: ${u}, Location: ${y}`);return}const N=new URLSearchParams;u&&N.set("q",u),y&&N.set("location",y),window.location.href=`/jobs?${N.toString()}`};return e.jsxs("section",{className:`py-12 bg-gray-100 ${i}`,children:[e.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:t||w}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex-grow relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-5 w-5 text-gray-400"})}),e.jsx(Pe,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:u,onChange:N=>A(N.target.value),onKeyDown:L,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:x.map((N,q)=>e.jsx("option",{value:N},q))}),u&&e.jsx("button",{onClick:()=>p(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(xa,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),v&&e.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&e.jsx("div",{className:"w-full md:w-1/3",children:e.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:y,onChange:N=>m(N.target.value),children:[e.jsx("option",{value:"",children:"All Locations"}),(a||b).map(N=>e.jsx("option",{value:N.id,children:N.name},N.id))]})}),e.jsxs(D,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:j,disabled:v,children:[e.jsx(Ot,{size:18}),v?"Searching...":n||"Search"]})]}),c&&(r||S).length>0&&e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[e.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(r||S).map((N,q)=>e.jsx("a",{href:N.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:N.label},q))]})]})})]})}function LA({logo:t,navItems:a}){const[r,n]=M.useState(!1);return e.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[e.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[e.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("nav",{className:"hidden md:flex items-center gap-6",children:a.map((s,i)=>e.jsx("a",{href:s.href,className:"hover:text-yellow-400 transition-colors",children:s.label},i))}),e.jsx("button",{className:"md:hidden text-white",onClick:()=>n(!r),children:r?e.jsx(wt,{size:24}):e.jsx(Bo,{size:24})})]}),r&&e.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:e.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:a.map((s,i)=>e.jsx("a",{href:s.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>n(!1),children:s.label},i))})})]})}function NA({logo:t,tagline:a,socialLinks:r,columns:n,contactInfo:s,copyright:i,poweredBy:c}){return e.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[e.jsxs("div",{className:"col-span-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("p",{className:"text-gray-400 mb-4",children:a}),e.jsx("div",{className:"flex gap-4",children:r.map((l,d)=>e.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),n.map((l,d)=>e.jsxs("div",{className:"col-span-1",children:[e.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),e.jsx("ul",{className:"space-y-2",children:l.links.map((h,u)=>e.jsx("li",{children:e.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},u))})]},d))]}),e.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(ea,{size:16}),e.jsx("span",{children:s.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(xr,{size:16}),e.jsx("span",{children:s.phone})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(it,{size:16}),e.jsx("span",{children:s.location})]})]})}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[e.jsx("p",{children:i}),e.jsx("p",{children:c})]})]})})}const IA=()=>{const[t,a]=M.useState(null),r=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return e.jsx("section",{className:"py-20 bg-gray-100",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:r.map((n,s)=>e.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${s*.05}s`},onMouseEnter:()=>a(n.id),onMouseLeave:()=>a(null),children:[e.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:e.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:e.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:n.logo})})}),e.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:n.name}),t===n.id&&e.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:n.name}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:n.description}),e.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),e.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},n.id))}),e.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),e.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[e.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:e.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function Oz(){const[t,a]=M.useState(null);return M.useEffect(()=>{try{const r=localStorage.getItem("email");r&&a(r)}catch{}},[]),{isSubscribed:!!t,email:t}}const AA=M.createContext({consent:{analytics:!1,marketing:!1,preferences:!1},ready:!1,update:async()=>{console.log("ConsentContext not initialized")}});function PA({notification_url:t="http://localhost:5147",children:a}){const[r,n]=M.useState({analytics:!1,marketing:!1,preferences:!1}),[s,i]=M.useState(!1),l=(p=>p.replace(/\/+$/,""))(t??"http://localhost:5147"),[d,h]=M.useState(null);M.useEffect(()=>{try{const p=localStorage.getItem("leadId");p&&h(p)}catch{}},[]),M.useEffect(()=>{const p=localStorage.getItem("consent");if(p)try{n(JSON.parse(p)),i(!0);return}catch{}if(!d){i(!0);return}fetch(`${l}/api/leads/${d}/consents/latest`).then(y=>y.ok?y.json():null).then(y=>{y&&n({analytics:!!y.analytics,marketing:!!y.marketing,preferences:!!y.preferences,timestamp:y.createdAt})}).catch(()=>{}).finally(()=>i(!0))},[d]);const u=async p=>{const y={...r,...p,timestamp:new Date().toISOString()};n(y),localStorage.setItem("consent",JSON.stringify(y));const m={analytics:y.analytics,marketing:y.marketing,preferences:y.preferences,policyVersion:"cmp-v1.0",source:"web:banner"};try{d?await fetch(`${l}/api/leads/${d}/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)}):await fetch(`${l}/api/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(m)})}catch(x){console.warn("Consent API unavailable, kept only locally",x)}};return e.jsx(AA.Provider,{value:{consent:r,ready:s,update:u},children:a})}const QC=()=>M.useContext(AA);function Hz({allow:t,children:a}){const{consent:r,ready:n}=QC();return!n||!r[t]?null:e.jsx(e.Fragment,{children:a})}function _A({title:t="Cookie consent",description:a="We use cookies to improve your experience. You can accept all or manage preferences. Non-essential cookies are off until you opt in.",buttonAcceptLabel:r="Accept all",buttonRejectLabel:n="Reject non-essential",defaultOpen:s=!1,isOpen:i,onAccept:c,onReject:l}){const{consent:d,update:h,ready:u}=QC(),[p,y]=M.useState(s);M.useEffect(()=>{i===void 0&&u&&!d.timestamp&&y(!0)},[d.timestamp,i,u]);const m=M.useMemo(()=>i??p,[i,p]),x=()=>{i===void 0&&y(!1)};if(!m)return null;const f=()=>{h({analytics:!0,marketing:!0,preferences:!0}),x(),c==null||c()},v=()=>{h({analytics:!1,marketing:!1,preferences:!1}),x(),l==null||l()};return e.jsxs("div",{role:"dialog","aria-label":t,className:"fixed bottom-4 left-4 right-4 z-50 rounded-2xl bg-white p-4 shadow-xl",children:[e.jsx("p",{className:"text-sm",children:a}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsx("button",{className:"px-3 py-2 rounded-xl border",onClick:v,children:n}),e.jsx("button",{className:"px-3 py-2 rounded-xl bg-black text-white",onClick:f,children:r})]})]})}const Vz={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},Bz={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
|
|
7749
|
-
sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},$z={title:"Why Choose Us?",values:[{icon:at,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:jt,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:sr,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:mr,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},Uz={title:"Browse 3,500+ iGaming Jobs",locations:[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],trendingKeywords:[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}],searchButtonText:"Search"},Gz={title:"Trusted by Professionals & Companies",testimonial:{quote:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",name:"Sarah",title:"Product Manager",avatar:"/placeholder.svg?height=80&width=80"},stats:[{value:"10,000+",label:"Candidates hired through our platform"},{value:"500+",label:"iGaming companies trust us"},{value:"25+",label:"Countries with active job listings"}],partnerLogos:Array(5).fill("/placeholder.svg?height=60&width=120")},Wz={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe"},Zz={title:"Hire Top iGaming Talent",description:"Access 50,000+ skilled professionals. Post a job in 5 minutes.",primaryButtonText:"Post a Job",primaryButtonHref:"/employers/post-job",secondaryButtonText:"Learn More",secondaryButtonHref:"/employers"},Jz={logo:{text:"iGamingCareer.com",initials:"iG"},tagline:"We bet on the people behind the game.",socialLinks:[{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-linkedin",children:[e.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),e.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),e.jsx("circle",{cx:"4",cy:"4",r:"2"})]}),href:"#"},{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-instagram",children:[e.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),e.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),e.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]}),href:"#"}],columns:[{title:"Company",links:[{label:"About Us",href:"/about"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]},{title:"Resources",links:[{label:"Job Board",href:"/jobs"},{label:"Courses",href:"/courses"},{label:"Salary Guide",href:"/salary-guide"}]},{title:"Legal",links:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact Us",href:"/contact"}]}],contactInfo:{email:"info@igamingcareer.com",phone:"+1 (234) 567-89",location:"Malta, Europe"},copyright:"© 2025 iGaming Career Finder. All rights reserved.",poweredBy:"Powered by iGamingCareer.com"},rr=(t,a)=>({...t,...a??{}});function Xz({headerData:t,heroData:a,valuePropositionData:r,jobSearchData:n,trustSignalsData:s,newsletterData:i,forEmployersData:c,footerData:l,showValueProposition:d=!0,showJobSearchWidget:h=!0,showTrustSignals:u=!0,showPartners:p=!0,showNewsletter:y=!0,showForEmployers:m=!0,showConsentBanner:x=!0,consentNotificationUrl:f="http://localhost:5147",consentBannerProps:v}){const{isSubscribed:k,email:w}=Oz(),b=rr(Vz,t),S=rr(Bz,a),C=rr($z,r),A=rr(Uz,n),L=rr(Gz,s),j=rr(Wz,i),N=rr(Zz,c),q=rr(Jz,l),P={...j,isSubscribed:(i==null?void 0:i.isSubscribed)??k,email:(i==null?void 0:i.email)??w};return e.jsx(PA,{notification_url:f,children:e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(LA,{...b}),e.jsxs("main",{className:"flex-grow",children:[e.jsx(bA,{...S}),d&&e.jsx(MA,{...C}),h&&e.jsx(SA,{...A}),u&&e.jsx(jA,{...L}),p&&e.jsx(IA,{}),y&&e.jsx(CA,{...P}),m&&e.jsx(wA,{...N})]}),e.jsx(NA,{...q}),x&&e.jsx(_A,{...v})]})})}function eS({title:t="Premium Job Alerts",description:a="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:r="Your email address",buttonText:n="Subscribe",api_url:s="http://localhost:5147"}){const[i,c]=M.useState(""),[l,d]=M.useState(!1),[h,u]=M.useState(!1);M.useEffect(()=>{const y=localStorage.getItem("email");y&&(u(!0),c(y))},[]);const p=async()=>{if(!i||!i.includes("@")){alert("Please enter a valid email");return}d(!0);try{const y=await fetch(`${s}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(y.ok){const m=await y.json();localStorage.setItem("leadId",m.id),localStorage.setItem("email",i),u(!0)}else{const m=await y.text();alert("Submission failed: "+m)}}catch{alert("Network error while submitting")}finally{d(!1)}};return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:t}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:a}),h?e.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"flex flex-col",children:[e.jsx(Pe,{type:"email",value:i,onChange:y=>c(y.target.value),placeholder:r,className:"mb-3"}),e.jsx(D,{type:"button",onClick:p,disabled:l,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:l?"Subscribing...":n})]})]})}function RA({open:t,type:a,message:r,onClose:n}){if(M.useEffect(()=>{if(t){const i=setTimeout(n,5e3);return()=>clearTimeout(i)}},[t,n]),!t)return null;const s={success:"bg-green-100 text-green-800 border-green-300",error:"bg-red-100 text-red-800 border-red-300",info:"bg-yellow-100 text-yellow-800 border-yellow-300"};return e.jsx("div",{className:`fixed top-6 right-6 z-50 max-w-sm w-full p-4 rounded-lg border shadow-md ${s[a]}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("p",{className:"text-sm font-medium",children:r}),e.jsx("button",{onClick:n,className:"ml-4",children:e.jsx(xa,{className:"w-5 h-5"})})]})})}const ol=({position:t,url:a,alt:r,link:n})=>{let s="",i="";switch(t){case"top":s="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"bottom":s="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-green-100 mt-8",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"sidebar":s="w-[300px] h-[250px] flex justify-center items-center bg-yellow-100",i="w-[300px] h-[250px]";break}const c=a.match(/\.(mp4|webm|ogg)$/i);return e.jsx("div",{className:s,children:e.jsx("a",{href:n,target:"_blank",children:c?e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${i} object-cover`,children:[e.jsx("source",{src:a,type:"video/mp4"}),"Your browser does not support the video tag."]}):e.jsx("img",{src:a,alt:r,className:`${i} object-cover`})})})},H9=({options:t,value:a,onChange:r,placeholder:n,className:s=""})=>{const[i,c]=M.useState(!1),[l,d]=M.useState(""),h=M.useRef(null),u=t.filter(p=>p.toLowerCase().includes(l.toLowerCase()));return M.useEffect(()=>{const p=y=>{h.current&&!h.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),e.jsxs("div",{className:`searchable-select-container relative ${s}`,ref:h,children:[e.jsxs("div",{className:"searchable-select-header px-3 py-2 border border-gray-300 rounded-lg bg-white cursor-pointer flex justify-between items-center",onClick:()=>c(!i),children:[e.jsx("span",{className:a?"text-gray-900":"text-gray-500",children:a||n}),e.jsx("svg",{className:`h-5 w-5 text-gray-400 transition-transform ${i?"transform rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),i&&e.jsxs("div",{className:"searchable-select-dropdown absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg",children:[e.jsx("div",{className:"p-2",children:e.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",placeholder:"Search...",value:l,onChange:p=>d(p.target.value),onClick:p=>p.stopPropagation(),autoFocus:!0})}),e.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[e.jsx("div",{className:"py-1 px-2 hover:bg-gray-100 cursor-pointer text-gray-500",onClick:()=>{r(""),c(!1),d("")},children:n}),u.length>0?u.map((p,y)=>e.jsx("div",{className:`py-1 px-2 cursor-pointer ${a===p?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{r(p),c(!1),d("")},children:p},y)):e.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},Yz=({filterKeys:t,filtersData:a,activeFilters:r,handleFilterChange:n,searchFilters:s,removeSearchFilter:i,clearAllFilters:c,searchableFilters:l})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters-grid",children:t.map(d=>{var u,p;return(l==null?void 0:l.includes(d))?e.jsx(H9,{options:((u=a[d])==null?void 0:u.filter(y=>typeof y=="string"))||[],value:r[d]||"",onChange:y=>n(d,y),placeholder:`Select ${d.replace(/_/g," ")}`},d):e.jsxs("select",{className:"filter-select",onChange:y=>n(d,y.target.value),value:r[d]||"",children:[e.jsxs("option",{value:"",children:["Select ",d.replace(/_/g," ")]}),(p=a[d])==null?void 0:p.map((y,m)=>typeof y!="string"?null:e.jsx("option",{value:y,children:y},`${d}-${m}`))]},d)})}),e.jsxs("div",{className:"active-filters",children:[s.map(d=>e.jsxs("div",{className:"filter-badge search-filter-badge",children:[e.jsx("span",{className:"filter-value",children:d}),e.jsx("button",{className:"remove-filter",onClick:()=>i(d),"aria-label":`Remove search filter ${d}`,children:"×"})]},`search-${d}`)),Object.entries(r).map(([d,h])=>e.jsxs("div",{className:"filter-badge",children:[e.jsxs("span",{className:"filter-label",children:[d.replace(/_/g," "),":"]}),e.jsx("span",{className:"filter-value",children:h}),e.jsx("button",{className:"remove-filter",onClick:()=>n(d,""),"aria-label":`Remove ${d} filter`,children:"×"})]},d)),(Object.keys(r).length>0||s.length>0)&&e.jsx("button",{className:"clear-all-filters",onClick:c,children:"Clear All"})]})]}),Kz=({searchTerm:t,handleSearchChange:a,handleSearchKeyDown:r,suggestions:n})=>e.jsx("div",{className:"search-container",children:e.jsxs("div",{className:"search-input-wrapper",children:[e.jsxs("svg",{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",className:"search-icon",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.3-4.3"})]}),e.jsx("input",{type:"text",className:"search-input",placeholder:"Search jobs and press Enter to add as filter...",value:t,onChange:s=>a(s.target.value),onKeyDown:r,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:n.map((s,i)=>e.jsx("option",{value:s},i))})]})}),Qz={not_registered:{status:"not_registered",registered:!1,allowSaving:!1,maskExternalLinks:!1,blurCompanyTitle:!0,notHrefJobsLink:!0},freemium:{status:"freemium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1},premium:{status:"premium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1}},V9=t=>{const a=(t==null?void 0:t.status)??(t!=null&&t.registered?"freemium":"not_registered"),r=Qz[a],n=(t==null?void 0:t.registered)??r.registered,s=!n;return{...r,registered:n,allowSaving:(t==null?void 0:t.allowSaving)??r.allowSaving,maskExternalLinks:(t==null?void 0:t.maskExternalLinks)??r.maskExternalLinks,blurCompanyTitle:(t==null?void 0:t.blurCompanyTitle)??(s?!0:r.blurCompanyTitle),notHrefJobsLink:(t==null?void 0:t.notHrefJobsLink)??(s?!0:r.notHrefJobsLink),note:t==null?void 0:t.note}},tS={not_registered:"Guest access",freemium:"Freemium member",premium:"Premium member"},TA=({job:t,positionInList:a,onSaveJob:r,onViewJob:n,onApplyJob:s,isSaved:i,layout:c="grid",userAccess:l})=>{var A;if(!t||typeof t!="object")return console.error("❌ Invalid job data:",t),e.jsx("div",{className:"job-card bg-red-50",children:e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]})});const d=L=>{if(v||w){L.preventDefault(),L.stopPropagation();return}const j=v||w?"external":t.description&&t.description!==""?"same_tab":"new_tab";s==null||s(t,a,"external"),n(t,a,j)},h=L=>{L.preventDefault(),L.stopPropagation(),f&&r(t,a)};t.published_at||t.created_at||t.scraped_at;const u=t.min_salary||0,p=t.max_salary||0,y=`$${u.toLocaleString()} - $${p.toLocaleString()}`,x=(L=>{if(!L)return"Recently posted";try{const j=new Date(L),q=Math.abs(new Date().getTime()-j.getTime()),P=Math.floor(q/(1e3*60*60*24));return P===0?"Today":P===1?"Yesterday":P<7?`${P} days ago`:P<30?`${Math.floor(P/7)} weeks ago`:P<365?`${Math.floor(P/30)} months ago`:`${Math.floor(P/365)} years ago`}catch{return"Recently posted"}})(t.published_at||t.created_at||t.scraped_at),f=l.allowSaving,v=l.maskExternalLinks,k=l.blurCompanyTitle,w=l.notHrefJobsLink,b=tS[l.status],S=f?"Save job":"Log in to save this job",C=t.description&&t.description!==""?"/jobs/"+(t.slug||t.id):t.link;return e.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
|
|
7748
|
+
px-6 py-2 rounded flex items-center gap-2`,children:[e.jsx(Uc,{size:18}),i]})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function MA({title:t,values:a}){return e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:t}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:a.map((r,n)=>{const s=r.icon;return e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:e.jsx(s,{className:"w-8 h-8 text-yellow-500"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]},n)})})]})})}function jA({title:t,testimonial:a,stats:r,partnerLogos:n}){const[s,i]=M.useState(0),c=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];M.useEffect(()=>{const h=setInterval(()=>{i(u=>(u+1)%c.length)},5e3);return()=>clearInterval(h)},[c.length]);const l=()=>{i(h=>(h+1)%c.length)},d=()=>{i(h=>(h-1+c.length)%c.length)};return e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:t}),e.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),e.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[e.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[e.jsx(Uo,{className:"h-12 w-12 text-yellow-500 mb-6"}),e.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',c[s].content,'"']}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:e.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:c[s].name.charAt(0)})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:c[s].name}),e.jsxs("div",{className:"text-primary-foreground/70",children:[c[s].role," at ",c[s].company]}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:c[s].location})]})]}),e.jsx("div",{className:"flex items-center gap-1",children:[...Array(c[s].rating)].map((h,u)=>e.jsx(vt,{className:"h-5 w-5 text-yellow-500 fill-current"},u))})]})]}),e.jsxs("div",{className:"flex items-center justify-between mt-8",children:[e.jsx(D,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(ur,{className:"h-6 w-6"})}),e.jsx("div",{className:"flex gap-2",children:c.map((h,u)=>e.jsx("button",{onClick:()=>i(u),className:`w-3 h-3 rounded-full transition-all duration-300 ${u===s?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},u))}),e.jsx(D,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:e.jsx(pr,{className:"h-6 w-6"})})]})]}),e.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),e.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),e.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function CA({title:t,description:a,inputPlaceholder:r,api_url:n="http://localhost:5147",buttonText:s,isSubscribed:i=!1,email:c=null}){const[l,d]=M.useState(c??""),[h,u]=M.useState(!1),[p,m]=M.useState(!1);M.useEffect(()=>{if(i){m(!0),c&&d(c);return}try{const v=localStorage.getItem("email"),k=localStorage.getItem("leadId");v&&k&&(m(!0),d(v))}catch{}},[i,c]);const y=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}u(!0);try{const v=await fetch(`${n}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(v.ok){const k=await v.json();localStorage.setItem("leadId",k.id),localStorage.setItem("email",l),m(!0)}else{const k=await v.text();alert("Submission failed: "+k)}}catch{alert("Network error while submitting")}finally{u(!1)}},x=p||i,f=c??l;return e.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:t}),e.jsx("p",{className:"text-gray-300 mb-6",children:a}),x?e.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",f?` as ${f}`:"","."]}):e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[e.jsx(Pe,{type:"email",placeholder:r,value:l,onChange:v=>d(v.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),e.jsx(D,{onClick:y,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":s})]})]})})})}function SA({title:t,locations:a,trendingKeywords:r,searchButtonText:n,apiUrl:s,className:i="",showTrending:c=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[u,p]=M.useState(""),[m,y]=M.useState(""),[x,f]=M.useState([]),[v,k]=M.useState(!1),w="Browse 3,500+ iGaming Jobs",b=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],S=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];M.useEffect(()=>{const N=new URLSearchParams(window.location.search),q=N.get("q")||"",P=N.get("location")||"";p(q),y(P)},[]),M.useEffect(()=>{if(u.length<3){f([]);return}const N=setTimeout(()=>{C(u)},300);return()=>clearTimeout(N)},[u]);const C=async N=>{if(!s||d){f([`${N} Developer`,`${N} Manager`,`${N} Specialist`,`${N} Coordinator`,`${N} Agent`]);return}try{k(!0);const q=await fetch(`${s}/suggestions?q=${encodeURIComponent(N)}`);if(!q.ok)throw new Error("Failed to fetch suggestions");const P=await q.json();f(P.suggestions||[])}catch(q){console.error("Error fetching suggestions:",q),f([])}finally{k(!1)}},A=N=>p(N),L=N=>{N.key==="Enter"&&j()},j=()=>{if(d){console.log(`Mock Search - Term: ${u}, Location: ${m}`);return}const N=new URLSearchParams;u&&N.set("q",u),m&&N.set("location",m),window.location.href=`/jobs?${N.toString()}`};return e.jsxs("section",{className:`py-12 bg-gray-100 ${i}`,children:[e.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:t||w}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex-grow relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-5 w-5 text-gray-400"})}),e.jsx(Pe,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:u,onChange:N=>A(N.target.value),onKeyDown:L,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:x.map((N,q)=>e.jsx("option",{value:N},q))}),u&&e.jsx("button",{onClick:()=>p(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(xa,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),v&&e.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&e.jsx("div",{className:"w-full md:w-1/3",children:e.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:m,onChange:N=>y(N.target.value),children:[e.jsx("option",{value:"",children:"All Locations"}),(a||b).map(N=>e.jsx("option",{value:N.id,children:N.name},N.id))]})}),e.jsxs(D,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:j,disabled:v,children:[e.jsx(Ot,{size:18}),v?"Searching...":n||"Search"]})]}),c&&(r||S).length>0&&e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[e.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(r||S).map((N,q)=>e.jsx("a",{href:N.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:N.label},q))]})]})})]})}function LA({logo:t,navItems:a}){const[r,n]=M.useState(!1);return e.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[e.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[e.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("nav",{className:"hidden md:flex items-center gap-6",children:a.map((s,i)=>e.jsx("a",{href:s.href,className:"hover:text-yellow-400 transition-colors",children:s.label},i))}),e.jsx("button",{className:"md:hidden text-white",onClick:()=>n(!r),children:r?e.jsx(wt,{size:24}):e.jsx(Bo,{size:24})})]}),r&&e.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:e.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:a.map((s,i)=>e.jsx("a",{href:s.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>n(!1),children:s.label},i))})})]})}function NA({logo:t,tagline:a,socialLinks:r,columns:n,contactInfo:s,copyright:i,poweredBy:c}){return e.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[e.jsxs("div",{className:"col-span-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:e.jsx("span",{className:"text-black font-bold text-sm",children:t.initials})}),e.jsx("span",{className:"font-bold text-xl",children:t.text})]}),e.jsx("p",{className:"text-gray-400 mb-4",children:a}),e.jsx("div",{className:"flex gap-4",children:r.map((l,d)=>e.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),n.map((l,d)=>e.jsxs("div",{className:"col-span-1",children:[e.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),e.jsx("ul",{className:"space-y-2",children:l.links.map((h,u)=>e.jsx("li",{children:e.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},u))})]},d))]}),e.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(ea,{size:16}),e.jsx("span",{children:s.email})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(xr,{size:16}),e.jsx("span",{children:s.phone})]}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(it,{size:16}),e.jsx("span",{children:s.location})]})]})}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[e.jsx("p",{children:i}),e.jsx("p",{children:c})]})]})})}const IA=()=>{const[t,a]=M.useState(null),r=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return e.jsx("section",{className:"py-20 bg-gray-100",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:r.map((n,s)=>e.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${s*.05}s`},onMouseEnter:()=>a(n.id),onMouseLeave:()=>a(null),children:[e.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:e.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:e.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:n.logo})})}),e.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:n.name}),t===n.id&&e.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:n.name}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:n.description}),e.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),e.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},n.id))}),e.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),e.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),e.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[e.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),e.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:e.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function Oz(){const[t,a]=M.useState(null);return M.useEffect(()=>{try{const r=localStorage.getItem("email");r&&a(r)}catch{}},[]),{isSubscribed:!!t,email:t}}const AA=M.createContext({consent:{analytics:!1,marketing:!1,preferences:!1},ready:!1,update:async()=>{console.log("ConsentContext not initialized")}});function PA({notification_url:t="http://localhost:5147",children:a}){const[r,n]=M.useState({analytics:!1,marketing:!1,preferences:!1}),[s,i]=M.useState(!1),l=(p=>p.replace(/\/+$/,""))(t??"http://localhost:5147"),[d,h]=M.useState(null);M.useEffect(()=>{try{const p=localStorage.getItem("leadId");p&&h(p)}catch{}},[]),M.useEffect(()=>{const p=localStorage.getItem("consent");if(p)try{n(JSON.parse(p)),i(!0);return}catch{}if(!d){i(!0);return}fetch(`${l}/api/leads/${d}/consents/latest`).then(m=>m.ok?m.json():null).then(m=>{m&&n({analytics:!!m.analytics,marketing:!!m.marketing,preferences:!!m.preferences,timestamp:m.createdAt})}).catch(()=>{}).finally(()=>i(!0))},[d]);const u=async p=>{const m={...r,...p,timestamp:new Date().toISOString()};n(m),localStorage.setItem("consent",JSON.stringify(m));const y={analytics:m.analytics,marketing:m.marketing,preferences:m.preferences,policyVersion:"cmp-v1.0",source:"web:banner"};try{d?await fetch(`${l}/api/leads/${d}/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}):await fetch(`${l}/api/consents`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)})}catch(x){console.warn("Consent API unavailable, kept only locally",x)}};return e.jsx(AA.Provider,{value:{consent:r,ready:s,update:u},children:a})}const QC=()=>M.useContext(AA);function Hz({allow:t,children:a}){const{consent:r,ready:n}=QC();return!n||!r[t]?null:e.jsx(e.Fragment,{children:a})}function _A({title:t="Cookie consent",description:a="We use cookies to improve your experience. You can accept all or manage preferences. Non-essential cookies are off until you opt in.",buttonAcceptLabel:r="Accept all",buttonRejectLabel:n="Reject non-essential",defaultOpen:s=!1,isOpen:i,onAccept:c,onReject:l}){const{consent:d,update:h,ready:u}=QC(),[p,m]=M.useState(s);M.useEffect(()=>{i===void 0&&u&&!d.timestamp&&m(!0)},[d.timestamp,i,u]);const y=M.useMemo(()=>i??p,[i,p]),x=()=>{i===void 0&&m(!1)};if(!y)return null;const f=()=>{h({analytics:!0,marketing:!0,preferences:!0}),x(),c==null||c()},v=()=>{h({analytics:!1,marketing:!1,preferences:!1}),x(),l==null||l()};return e.jsxs("div",{role:"dialog","aria-label":t,className:"fixed bottom-4 left-4 right-4 z-50 rounded-2xl bg-white p-4 shadow-xl",children:[e.jsx("p",{className:"text-sm",children:a}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsx("button",{className:"px-3 py-2 rounded-xl border",onClick:v,children:n}),e.jsx("button",{className:"px-3 py-2 rounded-xl bg-black text-white",onClick:f,children:r})]})]})}const Vz={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},Bz={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
|
|
7749
|
+
sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},$z={title:"Why Choose Us?",values:[{icon:at,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:jt,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:sr,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:mr,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},Uz={title:"Browse 3,500+ iGaming Jobs",locations:[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],trendingKeywords:[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}],searchButtonText:"Search"},Gz={title:"Trusted by Professionals & Companies",testimonial:{quote:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",name:"Sarah",title:"Product Manager",avatar:"/placeholder.svg?height=80&width=80"},stats:[{value:"10,000+",label:"Candidates hired through our platform"},{value:"500+",label:"iGaming companies trust us"},{value:"25+",label:"Countries with active job listings"}],partnerLogos:Array(5).fill("/placeholder.svg?height=60&width=120")},Wz={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe"},Zz={title:"Hire Top iGaming Talent",description:"Access 50,000+ skilled professionals. Post a job in 5 minutes.",primaryButtonText:"Post a Job",primaryButtonHref:"/employers/post-job",secondaryButtonText:"Learn More",secondaryButtonHref:"/employers"},Jz={logo:{text:"iGamingCareer.com",initials:"iG"},tagline:"We bet on the people behind the game.",socialLinks:[{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-linkedin",children:[e.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),e.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),e.jsx("circle",{cx:"4",cy:"4",r:"2"})]}),href:"#"},{icon:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-instagram",children:[e.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),e.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),e.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]}),href:"#"}],columns:[{title:"Company",links:[{label:"About Us",href:"/about"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]},{title:"Resources",links:[{label:"Job Board",href:"/jobs"},{label:"Courses",href:"/courses"},{label:"Salary Guide",href:"/salary-guide"}]},{title:"Legal",links:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact Us",href:"/contact"}]}],contactInfo:{email:"info@igamingcareer.com",phone:"+1 (234) 567-89",location:"Malta, Europe"},copyright:"© 2025 iGaming Career Finder. All rights reserved.",poweredBy:"Powered by iGamingCareer.com"},rr=(t,a)=>({...t,...a??{}});function Xz({headerData:t,heroData:a,valuePropositionData:r,jobSearchData:n,trustSignalsData:s,newsletterData:i,forEmployersData:c,footerData:l,showValueProposition:d=!0,showJobSearchWidget:h=!0,showTrustSignals:u=!0,showPartners:p=!0,showNewsletter:m=!0,showForEmployers:y=!0,showConsentBanner:x=!0,consentNotificationUrl:f="http://localhost:5147",consentBannerProps:v}){const{isSubscribed:k,email:w}=Oz(),b=rr(Vz,t),S=rr(Bz,a),C=rr($z,r),A=rr(Uz,n),L=rr(Gz,s),j=rr(Wz,i),N=rr(Zz,c),q=rr(Jz,l),P={...j,isSubscribed:(i==null?void 0:i.isSubscribed)??k,email:(i==null?void 0:i.email)??w};return e.jsx(PA,{notification_url:f,children:e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx(LA,{...b}),e.jsxs("main",{className:"flex-grow",children:[e.jsx(bA,{...S}),d&&e.jsx(MA,{...C}),h&&e.jsx(SA,{...A}),u&&e.jsx(jA,{...L}),p&&e.jsx(IA,{}),m&&e.jsx(CA,{...P}),y&&e.jsx(wA,{...N})]}),e.jsx(NA,{...q}),x&&e.jsx(_A,{...v})]})})}function eS({title:t="Premium Job Alerts",description:a="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:r="Your email address",buttonText:n="Subscribe",api_url:s="http://localhost:5147"}){const[i,c]=M.useState(""),[l,d]=M.useState(!1),[h,u]=M.useState(!1);M.useEffect(()=>{const m=localStorage.getItem("email");m&&(u(!0),c(m))},[]);const p=async()=>{if(!i||!i.includes("@")){alert("Please enter a valid email");return}d(!0);try{const m=await fetch(`${s}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(m.ok){const y=await m.json();localStorage.setItem("leadId",y.id),localStorage.setItem("email",i),u(!0)}else{const y=await m.text();alert("Submission failed: "+y)}}catch{alert("Network error while submitting")}finally{d(!1)}};return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:t}),e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:a}),h?e.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"flex flex-col",children:[e.jsx(Pe,{type:"email",value:i,onChange:m=>c(m.target.value),placeholder:r,className:"mb-3"}),e.jsx(D,{type:"button",onClick:p,disabled:l,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:l?"Subscribing...":n})]})]})}function RA({open:t,type:a,message:r,onClose:n}){if(M.useEffect(()=>{if(t){const i=setTimeout(n,5e3);return()=>clearTimeout(i)}},[t,n]),!t)return null;const s={success:"bg-green-100 text-green-800 border-green-300",error:"bg-red-100 text-red-800 border-red-300",info:"bg-yellow-100 text-yellow-800 border-yellow-300"};return e.jsx("div",{className:`fixed top-6 right-6 z-50 max-w-sm w-full p-4 rounded-lg border shadow-md ${s[a]}`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsx("p",{className:"text-sm font-medium",children:r}),e.jsx("button",{onClick:n,className:"ml-4",children:e.jsx(xa,{className:"w-5 h-5"})})]})})}const ol=({position:t,url:a,alt:r,link:n})=>{let s="",i="";switch(t){case"top":s="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"bottom":s="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-green-100 mt-8",i="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"sidebar":s="w-[300px] h-[250px] flex justify-center items-center bg-yellow-100",i="w-[300px] h-[250px]";break}const c=a.match(/\.(mp4|webm|ogg)$/i);return e.jsx("div",{className:s,children:e.jsx("a",{href:n,target:"_blank",children:c?e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${i} object-cover`,children:[e.jsx("source",{src:a,type:"video/mp4"}),"Your browser does not support the video tag."]}):e.jsx("img",{src:a,alt:r,className:`${i} object-cover`})})})},H9=({options:t,value:a,onChange:r,placeholder:n,className:s=""})=>{const[i,c]=M.useState(!1),[l,d]=M.useState(""),h=M.useRef(null),u=t.filter(p=>p.toLowerCase().includes(l.toLowerCase()));return M.useEffect(()=>{const p=m=>{h.current&&!h.current.contains(m.target)&&c(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),e.jsxs("div",{className:`searchable-select-container relative ${s}`,ref:h,children:[e.jsxs("div",{className:"searchable-select-header px-3 py-2 border border-gray-300 rounded-lg bg-white cursor-pointer flex justify-between items-center",onClick:()=>c(!i),children:[e.jsx("span",{className:a?"text-gray-900":"text-gray-500",children:a||n}),e.jsx("svg",{className:`h-5 w-5 text-gray-400 transition-transform ${i?"transform rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),i&&e.jsxs("div",{className:"searchable-select-dropdown absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg",children:[e.jsx("div",{className:"p-2",children:e.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",placeholder:"Search...",value:l,onChange:p=>d(p.target.value),onClick:p=>p.stopPropagation(),autoFocus:!0})}),e.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[e.jsx("div",{className:"py-1 px-2 hover:bg-gray-100 cursor-pointer text-gray-500",onClick:()=>{r(""),c(!1),d("")},children:n}),u.length>0?u.map((p,m)=>e.jsx("div",{className:`py-1 px-2 cursor-pointer ${a===p?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{r(p),c(!1),d("")},children:p},m)):e.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},Yz=({filterKeys:t,filtersData:a,activeFilters:r,handleFilterChange:n,searchFilters:s,removeSearchFilter:i,clearAllFilters:c,searchableFilters:l})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters-grid",children:t.map(d=>{var u,p;return(l==null?void 0:l.includes(d))?e.jsx(H9,{options:((u=a[d])==null?void 0:u.filter(m=>typeof m=="string"))||[],value:r[d]||"",onChange:m=>n(d,m),placeholder:`Select ${d.replace(/_/g," ")}`},d):e.jsxs("select",{className:"filter-select",onChange:m=>n(d,m.target.value),value:r[d]||"",children:[e.jsxs("option",{value:"",children:["Select ",d.replace(/_/g," ")]}),(p=a[d])==null?void 0:p.map((m,y)=>typeof m!="string"?null:e.jsx("option",{value:m,children:m},`${d}-${y}`))]},d)})}),e.jsxs("div",{className:"active-filters",children:[s.map(d=>e.jsxs("div",{className:"filter-badge search-filter-badge",children:[e.jsx("span",{className:"filter-value",children:d}),e.jsx("button",{className:"remove-filter",onClick:()=>i(d),"aria-label":`Remove search filter ${d}`,children:"×"})]},`search-${d}`)),Object.entries(r).map(([d,h])=>e.jsxs("div",{className:"filter-badge",children:[e.jsxs("span",{className:"filter-label",children:[d.replace(/_/g," "),":"]}),e.jsx("span",{className:"filter-value",children:h}),e.jsx("button",{className:"remove-filter",onClick:()=>n(d,""),"aria-label":`Remove ${d} filter`,children:"×"})]},d)),(Object.keys(r).length>0||s.length>0)&&e.jsx("button",{className:"clear-all-filters",onClick:c,children:"Clear All"})]})]}),Kz=({searchTerm:t,handleSearchChange:a,handleSearchKeyDown:r,suggestions:n})=>e.jsx("div",{className:"search-container",children:e.jsxs("div",{className:"search-input-wrapper",children:[e.jsxs("svg",{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",className:"search-icon",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"m21 21-4.3-4.3"})]}),e.jsx("input",{type:"text",className:"search-input",placeholder:"Search jobs and press Enter to add as filter...",value:t,onChange:s=>a(s.target.value),onKeyDown:r,list:"job-suggestions"}),e.jsx("datalist",{id:"job-suggestions",children:n.map((s,i)=>e.jsx("option",{value:s},i))})]})}),Qz={not_registered:{status:"not_registered",registered:!1,allowSaving:!1,maskExternalLinks:!1,blurCompanyTitle:!0,notHrefJobsLink:!0},freemium:{status:"freemium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1},premium:{status:"premium",registered:!0,allowSaving:!0,maskExternalLinks:!1,blurCompanyTitle:!1,notHrefJobsLink:!1}},V9=t=>{const a=(t==null?void 0:t.status)??(t!=null&&t.registered?"freemium":"not_registered"),r=Qz[a],n=(t==null?void 0:t.registered)??r.registered,s=!n;return{...r,registered:n,allowSaving:(t==null?void 0:t.allowSaving)??r.allowSaving,maskExternalLinks:(t==null?void 0:t.maskExternalLinks)??r.maskExternalLinks,blurCompanyTitle:(t==null?void 0:t.blurCompanyTitle)??(s?!0:r.blurCompanyTitle),notHrefJobsLink:(t==null?void 0:t.notHrefJobsLink)??(s?!0:r.notHrefJobsLink),note:t==null?void 0:t.note}},tS={not_registered:"Guest access",freemium:"Freemium member",premium:"Premium member"},TA=({job:t,positionInList:a,onSaveJob:r,onViewJob:n,onApplyJob:s,isSaved:i,layout:c="grid",userAccess:l})=>{var A;if(!t||typeof t!="object")return console.error("❌ Invalid job data:",t),e.jsx("div",{className:"job-card bg-red-50",children:e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]})});const d=L=>{if(v||w){L.preventDefault(),L.stopPropagation();return}const j=v||w?"external":t.description&&t.description!==""?"same_tab":"new_tab";s==null||s(t,a,"external"),n(t,a,j)},h=L=>{L.preventDefault(),L.stopPropagation(),f&&r(t,a)};t.published_at||t.created_at||t.scraped_at;const u=t.min_salary||0,p=t.max_salary||0,m=`$${u.toLocaleString()} - $${p.toLocaleString()}`,x=(L=>{if(!L)return"Recently posted";try{const j=new Date(L),q=Math.abs(new Date().getTime()-j.getTime()),P=Math.floor(q/(1e3*60*60*24));return P===0?"Today":P===1?"Yesterday":P<7?`${P} days ago`:P<30?`${Math.floor(P/7)} weeks ago`:P<365?`${Math.floor(P/30)} months ago`:`${Math.floor(P/365)} years ago`}catch{return"Recently posted"}})(t.published_at||t.created_at||t.scraped_at),f=l.allowSaving,v=l.maskExternalLinks,k=l.blurCompanyTitle,w=l.notHrefJobsLink,b=tS[l.status],S=f?"Save job":"Log in to save this job",C=t.description&&t.description!==""?"/jobs/"+(t.slug||t.id):t.link;return e.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
|
|
7750
7750
|
${c==="grid"?"flex flex-col h-full":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("img",{src:t.logo||`/placeholder.svg?height=48&width=48&text=${((A=t.company)==null?void 0:A.charAt(0))||"C"}`,alt:`${t.company} logo`,className:"w-12 h-12 rounded-lg object-contain bg-gray-50"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:t.title||"No Title Available"}),e.jsx("p",{className:`text-sm text-muted-foreground ${k?"blur-sm select-none":""}`,children:t.company||"Unknown Company"}),e.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:b}),l.note&&e.jsx("span",{className:"text-xs text-gray-500",children:l.note})]})]})]}),e.jsxs("div",{className:`
|
|
7751
7751
|
mt-4 ${c==="list"?"md:mt-0 md:flex-1":""}
|
|
7752
|
-
`,children:[e.jsx("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"w-4 h-4 mr-1"}),t.location||"Remote"]})}),e.jsxs("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(at,{className:"w-4 h-4 mr-1"}),t.department||"Full-time"]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"h-3.5 w-3.5 mr-1.5"}),e.jsx("span",{children:x})]})]}),e.jsx("div",{className:"hidden mt-2 text-xs text-gray-500",children:
|
|
7752
|
+
`,children:[e.jsx("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"w-4 h-4 mr-1"}),t.location||"Remote"]})}),e.jsxs("div",{className:"flex items-center space-x-4 text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(at,{className:"w-4 h-4 mr-1"}),t.department||"Full-time"]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"h-3.5 w-3.5 mr-1.5"}),e.jsx("span",{children:x})]})]}),e.jsx("div",{className:"hidden mt-2 text-xs text-gray-500",children:m})]}),e.jsxs("div",{className:`mt-auto pt-4 flex items-center space-x-3 ${c==="list"?"md:mt-0 md:ml-4":""}`,children:[e.jsx("button",{onClick:h,disabled:!f,className:`
|
|
7753
7753
|
p-2 rounded-lg transition-colors
|
|
7754
7754
|
${i?"text-yellow-600 bg-yellow-50 hover:bg-yellow-100":"text-gray-400 hover:text-gray-600 hover:bg-gray-100"}
|
|
7755
7755
|
`,"aria-label":i?"Unsave job":"Save job",title:S,children:e.jsx(Va,{size:20,className:`transition-colors ${i?"fill-blue-600 text-yellow-600":""}`})}),v||w?e.jsx("button",{className:"flex-1 px-4 py-2 bg-gray-200 text-gray-600 rounded-lg cursor-not-allowed text-sm font-medium text-center","aria-disabled":"true",onClick:d,children:"Sign in to view links"}):e.jsx("a",{href:C,target:t.description&&t.description!=""?"_self":"_blank",rel:"noopener noreferrer",className:`flex-1 px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700
|
|
7756
|
-
transition-colors text-sm font-medium text-center`,onClick:d,children:"Apply Now"})]}),!f&&e.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Create an account to save this item."})]})},eE=({jobs:t,onSaveJob:a,onViewJob:r,isJobSaved:n,userAccess:s})=>t.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No jobs found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:"jobs-grid",children:t.map(i=>e.jsx(TA,{job:i,onSaveJob:a,onViewJob:r,isSaved:n(i),userAccess:s},i.link))}),tE=({currentPage:t,totalPages:a,setCurrentPage:r})=>{if(a<=1)return null;const n=[];if(a<=5)for(let i=1;i<=a;i++)n.push(i);else if(t<=3)for(let i=1;i<=5;i++)n.push(i);else if(t>=a-2)for(let i=a-4;i<=a;i++)n.push(i);else for(let i=t-2;i<=t+2;i++)n.push(i);return e.jsxs("div",{className:"pagination",children:[e.jsx("button",{className:"pagination-button prev-button",disabled:t===1,onClick:()=>r(t-1),children:e.jsx(Ea,{})}),n.map(i=>e.jsx("button",{className:`pagination-button ${t===i?"active":""}`,onClick:()=>r(i),children:i},i)),e.jsx("button",{className:"pagination-button next-button",disabled:t===a,onClick:()=>r(t+1),children:e.jsx(Fa,{})})]})},aE=({isOpen:t,onClose:a,filterKeys:r,filtersData:n,activeFilters:s,handleFilterChange:i,handleSearchChange:c,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:u})=>e.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${t?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${t?"transform translate-x-0":"transform translate-x-full"}`,children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),e.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700",children:e.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"mb-4",children:e.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:p=>c(p.target.value)})}),r.map(p=>{var y;return e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:`mobile-${p}`,className:"block text-sm font-medium text-gray-700 mb-1",children:p.replace(/_/g," ")}),e.jsxs("select",{id:`mobile-${p}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:m=>i(p,m.target.value),value:s[p]||"",children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=n[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),Object.keys(s).length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(s).map(([p,y])=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[e.jsxs("span",{children:[p.replace(/_/g," "),": ",y]}),e.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>i(p,""),children:"×"})]},p)),e.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),rE=({apiUrl:t,itemsPerPage:a,filterKeys:r,enableSearch:n,enablePagination:s,enableMobileFilter:i,banners:c,userAccess:l})=>{const[d,h]=M.useState([]),[u,p]=M.useState(1),[y,m]=M.useState({}),[x,f]=M.useState([]),[v,k]=M.useState({}),[w,b]=M.useState(""),[S,C]=M.useState([]),[A,L]=M.useState(!1),j=V9(l);M.useEffect(()=>{fetch(`${t}/items`).then(de=>de.json()).then(de=>{h(de)}).catch(de=>console.error("Error fetching items:",de))},[t]);const N=de=>{const K={};de.forEach(je=>{r.forEach(Z=>{K[Z]||(K[Z]=new Set);const Y=je[Z];Y!=null&&K[Z].add(String(Y))})});const me={};return Object.keys(K).forEach(je=>{me[je]=Array.from(K[je])}),me};function q(de,K,me){let je=de.filter(Z=>Object.entries(K).every(([Y,ke])=>{const fe=Z[Y];return typeof fe=="string"&&fe.toLowerCase()===ke.toLowerCase()}));return me.length>0&&(je=je.filter(Z=>me.every(Y=>Z.title.toLowerCase().includes(Y.toLowerCase())))),je}const P=M.useMemo(()=>q(d,y,x),[y,d,x]),R=(de,K)=>{m(me=>{const je=K?{...me,[de]:K}:{...me};return K||delete je[de],je})},T=de=>{if(b(de),de){const K=d.map(me=>me.title).filter((me,je,Z)=>me&&me.toLowerCase().includes(de.toLowerCase())&&Z.indexOf(me)===je).slice(0,5);C(K)}else C([])},F=de=>{if(de.key==="Enter"&&w.trim()){de.preventDefault();const K=[...x,w.trim()];f(K),b("")}},U=de=>{const K=x.filter(me=>me!==de);f(K)},$=()=>{m({}),f([]),p(1)};M.useEffect(()=>{k(N(P))},[r,P]),M.useEffect(()=>{p(1)},[y,x]);const W=()=>{L(!A)},O=(de,K)=>{},ae=de=>{},ce=de=>!1,pe=Math.ceil(P.length/a),ne=P.slice((u-1)*a,u*a);return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("div",{className:"flex-grow",children:e.jsxs("div",{className:"job-listings-container",children:[e.jsx("div",{className:"header-container",children:e.jsxs("div",{className:"header-content",children:[e.jsx("h1",{className:"main-title",children:"Job Listings"}),e.jsxs("p",{className:"items-count",children:["Total: ",e.jsx("span",{className:"count-value",children:P.length})]})]})}),e.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:W,children:A?"Close Filters":"Open Filters"}),e.jsxs("div",{className:"hidden md:block filters-container",children:[e.jsx(Kz,{searchTerm:w,handleSearchChange:T,handleSearchKeyDown:F,suggestions:S}),e.jsx(Yz,{filterKeys:r,filtersData:v,activeFilters:y,handleFilterChange:R,searchFilters:x,removeSearchFilter:U,clearAllFilters:$,searchableFilters:["company"]})]}),e.jsx(aE,{isOpen:A,onClose:W,filterKeys:r,filtersData:v,activeFilters:y,handleFilterChange:R,handleSearchChange:T,searchTerm:w,clearAllFilters:$,handleSearchKeyDown:F,searchFilters:x,removeSearchFilter:U}),e.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[e.jsx("h2",{className:"section-title",children:"Open Positions"}),e.jsx(eE,{jobs:ne,onSaveJob:O,onViewJob:ae,isJobSaved:ce,userAccess:j}),e.jsx(tE,{currentPage:u,totalPages:pe,setCurrentPage:p})]}),e.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:e.jsx("div",{className:"sticky top-4",children:c.sidebar.enabled&&c.sidebar.url&&e.jsx(ol,{position:"sidebar",url:c.sidebar.url,link:c.sidebar.link,alt:c.sidebar.alt})})})]})]})}),c.bottom.enabled&&c.bottom.url&&e.jsx(ol,{position:"top",url:c.bottom.url,link:c.bottom.link,alt:c.bottom.alt})]})},nE=({title:t="Subscribe to our newsletter",description:a="The latest job opportunities and career tips, weekly in your inbox.",links:r=[]})=>{const[n,s]=M.useState(!1),[i,c]=M.useState(null);M.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(s(!0),c(d))}catch{}},[]);const l=d=>{d.preventDefault()};return e.jsx("footer",{className:"bg-gray-800 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[e.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[e.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:e.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(r)&&r.map((d,h)=>{var u;return Array.isArray(d)&&d.length>0?e.jsxs("div",{className:"mt-12 md:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((u=d[0])==null?void 0:u.text)||"Section"}),e.jsx("ul",{className:"mt-4 space-y-4",children:d.map((p,y)=>e.jsx("li",{children:e.jsx("a",{href:p.url,className:"hover:text-gray-300",children:p.text})},y))})]},h):null})})}),e.jsxs("div",{className:"mt-8 xl:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:t}),e.jsx("p",{className:"mt-4 text-base text-gray-300",children:a}),n?e.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[e.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),e.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),e.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),e.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:e.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},sE=({logo:t="",links:a=[],buttonText:r="Post a Job",buttonUrl:n="/post-job"})=>e.jsx("nav",{className:"bg-white shadow-md",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:t?e.jsx("img",{src:t,alt:"Logo",className:"h-6 w-6"}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:e.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:a.map((s,i)=>e.jsx("a",{href:s.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:s.text},i))})]}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:e.jsx("a",{href:n,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:r})})]})})}),qA=({savedJobsCount:t})=>{const[a,r]=M.useState("");M.useEffect(()=>{typeof window<"u"&&r(window.location.pathname)},[]);const n=s=>a===s;return e.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:e.jsxs("div",{className:"grid grid-cols-5 h-16",children:[e.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${n("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(za,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),e.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${n("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(at,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),e.jsxs("a",{href:"/saved","aria-label":"Saved Jobs",className:`flex flex-col items-center justify-center relative ${n("/saved")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Do,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Saved"}),t>0&&e.jsx("span",{className:"absolute -top-1 -right-1 bg-primary-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs",children:t})]}),e.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${n("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Kt,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),e.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${n("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ma,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},iE=t=>{const a=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],r=["Engineering","Marketing","Sales","Design","Product","HR"],n=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],s=["New York","San Francisco","Austin","Seattle","Chicago"],i=["USA","Canada","UK","Germany","Australia"],c=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:t},(d,h)=>{const u=l(120);return{id:`job-${h}`,title:`${r[h%r.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:a[h%a.length],department:r[h%r.length],location:n[h%n.length],city:s[h%s.length],country:i[h%i.length],company_type:c[h%c.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${a[h%a.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:u,created_at:u,views:Math.floor(Math.random()*2e3),sponsored:h%7===0}})},DA=({activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:r="Published",options:n=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsxs("div",{className:"date-filter",children:[r&&e.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[r,":"]}),e.jsx("select",{id:"date-filter",value:t,onChange:s=>a(s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:n.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]}),zA=({activeDateFilter:t,handleDateFilterChange:a,filterKeys:r,searchableFilters:n,dateFieldLabel:s,activeFilters:i,handleFilterChange:c,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:u=!1,isMobileFilterOpen:p,toggleMobileFilter:y,dateOptions:m=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsx("div",{children:e.jsxs("div",{className:p?"block":"hidden",children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>y(!p)}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),e.jsx("button",{onClick:()=>y(!p),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:s}),e.jsx(DA,{activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:"",options:m})]}),r.map(x=>{var v;const f=x.replace(/_/g," ");return e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900 capitalize whitespace-nowrap",children:f}),n.includes(x)?e.jsx(H9,{options:d[x]||[],value:i[x]||"",onChange:k=>c(x,k),placeholder:`Select ${f}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow-500 focus:border-yellow-500 bg-white",value:i[x]||"",onChange:k=>c(x,k.target.value),children:[e.jsxs("option",{value:"",children:["Select ",f]}),(v=d[x])==null?void 0:v.map(k=>e.jsx("option",{value:k,children:k},k))]})]},x)}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsx("button",{onClick:()=>y(!p),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),aS=({totalColumns:t=2})=>e.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${t} gap-6`,children:[...Array(4)].map((a,r)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),e.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},r))})]})})}),rS=({data:t,onSelect:a,placeholder:r="Search...",debounceMs:n=250,onTyping:s,className:i="",showSubmitButton:c=!1})=>{const[l,d]=M.useState(""),[h,u]=M.useState([]),[p,y]=M.useState(!1),m=M.useRef(null),x=k=>{d(k),y(!0),s&&s(k)},f=()=>{d(""),u([]),y(!1),s==null||s("")},v=k=>{a(k),d(""),u([]),y(!1)};return M.useEffect(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{if(!l){u([]);return}const k=t.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,b,S)=>S.indexOf(w)===b).slice(0,5);u(k)},n)},[l,t]),e.jsxs("div",{className:`relative w-full ${i}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-4 w-4 text-gray-400"})}),e.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:r,value:l,onChange:k=>x(k.target.value),onFocus:()=>y(h.length>0),onBlur:()=>setTimeout(()=>y(!1),200),onKeyDown:k=>{k.key==="Enter"&&l.trim()&&(k.preventDefault(),v(l.trim()))}}),l&&!c&&e.jsx("button",{onClick:f,className:"absolute inset-y-0 right-2 flex items-center",children:e.jsx(wt,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),c&&e.jsx("button",{onClick:()=>l.trim()&&v(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:e.jsx(Ot,{className:"h-4 w-4"})})]}),p&&h.length>0&&e.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((k,w)=>e.jsx("li",{children:e.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>v(k),children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ot,{className:"h-4 w-4 mr-2 text-gray-400"}),k]})})},w))})]})},nS=({onSearchChange:t,title:a="Gaming News",description:r="Latest news and insights from the gaming industry",searchPlaceholder:n="Search news...",popularTags:s=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:i=u=>`?q=${encodeURIComponent(u)}`,onTagClick:c,onTagRemove:l,popularTagColor:d="#CA8A04",allowTagRemoval:h=!1})=>{M.useState("");const[u,p]=M.useState(()=>new Set),y=s.filter(x=>!u.has(x)),m=x=>{p(f=>{const v=new Set(f);return v.add(x),v}),l==null||l(x)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:a}),e.jsx("p",{className:"hidden lg:block text-gray-600",children:r})]})})})}),e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"overflow-x-auto",children:y.length>0&&e.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[e.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),y.map(x=>e.jsx(AC,{name:`#${x}`,color:d,size:"sm",href:c?void 0:i(x),onClick:c?()=>c(x):void 0,removable:h,onRemove:h?()=>m(x):void 0},x))]})})})})]})},oE=t=>t.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function sS(t){const a=oE(t),r={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},n=[...r.gambling,...r.compliance,...r.business,...r.format,...r.misc];for(const s of n)if(new RegExp(`\\b${s.replace(/\s+/g,"\\s+")}\\b`,"i").test(a))return s;return null}function cE(t){const a=sS(t);return a||lE(t)}function lE(t){const a=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),r=t.toLowerCase().split(/\W+/).filter(i=>i.length>2&&!a.has(i)),n={};for(const i of r)n[i]=(n[i]||0)+1;const s=Object.entries(n).sort((i,c)=>c[1]-i[1]);return s.length>0?s[0][0]:null}const iS=({filters:t,onClearAll:a,handleCreateAlert:r,className:n=""})=>t.length===0?null:e.jsxs("div",{className:`flex flex-wrap gap-2 ${n}`,children:[t.map(s=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[s.label&&e.jsxs("span",{className:"font-medium mr-1",children:[s.label,":"]}),e.jsx("span",{children:s.value}),e.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:s.onRemove,"aria-label":`Remove ${s.label||s.key} filter`,children:e.jsx(xa,{size:14})})]},`${s.key}-${s.value}`)),e.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:a,children:"Clear All"}),e.jsx("button",{onClick:r,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),EA=({viewMode:t,onToggle:a,className:r=""})=>e.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${r}`,children:[e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":t==="grid",children:[e.jsx(ia,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":t==="list",children:[e.jsx(Dc,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),FA=({value:t,onChange:a,options:r=[5,10,20,50],className:n=""})=>e.jsxs("div",{className:`flex items-center ${n}`,children:[e.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),e.jsx("select",{id:"items-per-page",value:t,onChange:s=>a(Number(s.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:r.map(s=>e.jsx("option",{value:s,children:s},s))})]}),oS=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," articles"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),dE=({title:t,description:a,ctaText:r,ctaLink:n,bgColor:s="bg-yellow-50",textColor:i="text-yellow-800"})=>e.jsx("div",{className:`promo-card ${s} p-4 rounded-lg shadow-sm hidden md:block`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:`font-bold text-lg ${i}`,children:t}),e.jsx("p",{className:`text-sm mt-1 ${i} opacity-90`,children:a})]}),e.jsx("a",{href:n,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:r})]})}),hE=({items:t,cardType:a,viewMode:r,savedJobs:n,onSaveJob:s,onViewJob:i,onApplyJob:c,firstItemRef:l=null,userAccess:d})=>{const[h,u]=M.useState([]),[p,y]=M.useState(null);M.useEffect(()=>{try{if(!Array.isArray(t)){console.error("❌ Items is not an array:",t),y("Invalid data format received"),u([]);return}const x=[...t];t.length>5&&x.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),u(x),y(null)}catch(x){console.error("Error processing items:",x),y(`Error processing items: ${x instanceof Error?x.message:String(x)}`),u([])}},[t]);const m=(x,f)=>{const k=f===0&&!x.isPromo?{ref:l}:{};try{if(x.isPromo)return e.jsx("div",{className:"col-span-full my-4",children:e.jsx(dE,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${f}`);if(!x||typeof x!="object")return console.error("❌ Invalid item detected:",x),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const w=x.id?`${x._id}-${f}`:x.slug?`${x.slug}-${f}`:`item-${f}`;switch(a){case"job":return e.jsx("div",{...k,children:e.jsx(TA,{job:x,positionInList:f,onSaveJob:b=>s(b,f),onViewJob:(b,S,C)=>i(b,f,C),onApplyJob:c?(b,S,C)=>c(b,f,C):void 0,isSaved:n.includes(x.id||x.slug||x.link),userAccess:d})},w);default:return console.warn(`⚠️ Unknown cardType: ${a}`),e.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[e.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),e.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(w){return console.error("Error rendering card:",w),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),e.jsx("p",{className:"text-red-600 text-sm",children:w instanceof Error?w.message:String(w)})]})}};return p?e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),e.jsx("p",{children:p})]}):h.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No items found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:r==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":r,children:h.map((x,f)=>m(x,f))})},B9=({currentPage:t,totalPages:a,onPageChange:r})=>{if(a<=1)return null;const n=5,s=Math.max(1,t-Math.floor(n/2)),i=Math.min(a,s+n-1),c=[];for(let l=s;l<=i;l++)c.push(l);return e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsxs("nav",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>r(Math.max(1,t-1)),disabled:t===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Ea,{})}),c.map(l=>e.jsx("button",{onClick:()=>r(l),className:`px-3 py-2 text-sm font-medium rounded-md ${t===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),e.jsx("button",{onClick:()=>r(Math.min(a,t+1)),disabled:t===a,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Fa,{})})]})})},uE=({jobs:t,onViewJob:a})=>!t||t.length===0?null:e.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:t.map((r,n)=>e.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>a(r,n,"same_tab","last_visited"),children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("img",{src:r.logo||"/placeholder.svg?height=30&width=30",alt:`${r.company} logo`,className:"w-6 h-6 mr-2"}),e.jsx("h3",{className:"font-medium text-sm truncate",children:r.title})]}),e.jsx("p",{className:"text-xs text-gray-600 truncate",children:r.company}),e.jsx("p",{className:"text-xs text-gray-500 truncate",children:r.location})]},r._id||r.slug||r.link))})]}),pE=(t,a,r="date")=>{if(a==="all")return t;const n=new Date,s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return t.filter(i=>{const c=i[r]||i.created_at||i.published_at||i.scraped_at;if(!c)return!1;const l=new Date(c);switch(a){case"today":return l>=s;case"this_week":{const d=new Date(n);return d.setDate(n.getDate()-n.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(n.getFullYear(),n.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(n);return d.setDate(n.getDate()-30),l>=d}case"last_90_days":{const d=new Date(n);return d.setDate(n.getDate()-90),l>=d}default:return!0}})},yE=(t,a)=>t.filter(r=>{var n,s,i,c,l;if(a.jobTypes.length>0){const d=((n=r.department)==null?void 0:n.toLowerCase())||"";if(!a.jobTypes.some(h=>d.includes(h)))return!1}if(a.experienceLevels.length>0){const d=((s=r.title)==null?void 0:s.toLowerCase())||"";if(!a.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(a.country&&!(((i=r.location)==null?void 0:i.toLowerCase())||((c=r.city)==null?void 0:c.toLowerCase())||"").includes(a.country.toLowerCase())||a.city&&!(((l=r.company_type)==null?void 0:l.toLowerCase())||"").includes(a.city.toLowerCase()))}),Yc=(t,a)=>{const r={};for(const n of t)for(const s of a){r[s]||(r[s]=new Set);const i=n[s];Array.isArray(i)?i.forEach(c=>{typeof c=="string"&&c.trim()&&r[s].add(c.trim())}):typeof i=="string"&&i.trim()&&r[s].add(i.trim())}return Object.fromEntries(Object.entries(r).map(([n,s])=>[n,Array.from(s)]))},OA=t=>{const a=new URLSearchParams(window.location.search);t==="all"?a.delete("date_filter"):a.set("date_filter",t);const r=`${window.location.pathname}?${a.toString()}`;window.history.replaceState({},"",r)},no=(t,a,r,n,s="date")=>{let i=t.filter(c=>Object.entries(a).every(([l,d])=>{const h=c[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(u=>typeof u=="string"&&u.toLowerCase()===d.toLowerCase()):!1}));return r.length>0&&(i=i.filter(c=>r.every(l=>{var d,h;return((d=c.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=c.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),i=pE(i,n,s),i},vl=(t,a,r=[],n="date")=>{const s=d=>{const h=d[n]||d.created_at||d.published_at||d.scraped_at;return h?new Date(h).getTime():0},i=d=>{var u;const h=d.views??d.viewCount??((u=d.metrics)==null?void 0:u.views)??0;return typeof h=="number"?h:0},c=d=>{if(r.length===0)return 0;const h=(d.title??"").toLowerCase(),u=(d.overview??"").toLowerCase();return r.reduce((p,y)=>{const m=y.toLowerCase();let x=p;return h.includes(m)&&(x+=3),u.includes(m)&&(x+=1),x},0)},l=[...t];return l.sort((d,h)=>{switch(a){case"date_asc":return s(d)-s(h);case"views_desc":return i(h)-i(d);case"views_asc":return i(d)-i(h);case"relevance":{const u=c(h)-c(d);return u!==0?u:s(h)-s(d)}case"title_asc":{const u=(d.title??"").localeCompare(h.title??"",void 0,{sensitivity:"base"});return u!==0?u:s(h)-s(d)}case"date_desc":default:return s(h)-s(d)}}),l},HA=({dateFieldLabel:t,activeDateFilter:a,onDateFilterChange:r,filterKeys:n,searchableFilters:s,filtersData:i,activeFilters:c,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:u})=>e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:t}),e.jsx(DA,{activeDateFilter:a,onDateFilterChange:r,dateFieldLabel:""})]}),n.map(p=>{var y;return e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:p.replace(/_/g," ").replace(/^\w/,m=>m.toUpperCase())}),s.includes(p)?e.jsx(H9,{options:i[p]||[],value:c[p]||"",onChange:m=>l(p,m),placeholder:`Select ${p.replace(/_/g," ")}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:c[p]||"",onChange:m=>l(p,m.target.value),children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(y=i[p])==null?void 0:y.map(m=>e.jsx("option",{value:m,children:m},m))]})]},p)}),e.jsx("div",{className:"mt-6",children:e.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[e.jsx(Va,{size:16,className:"mr-2"}),e.jsxs("span",{children:["Saved Jobs (",u.length,")"]})]})})]})});function Kc(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function xL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function mE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=xL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():xL(t[s],null)}}}}function $9(...t){return g.useCallback(mE(...t),t)}function fE(t,a){const r=g.createContext(a),n=i=>{const{children:c,...l}=i,d=g.useMemo(()=>l,Object.values(l));return e.jsx(r.Provider,{value:d,children:c})};n.displayName=t+"Provider";function s(i){const c=g.useContext(r);if(c)return c;if(a!==void 0)return a;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,s]}function xE(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,gE(s,...a)]}function gE(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var j9=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},kE=g[" useId ".trim().toString()]||(()=>{}),vE=0;function jj(t){const[a,r]=g.useState(kE());return j9(()=>{t||r(n=>n??String(vE++))},[t]),t||(a?`radix-${a}`:"")}var wE=g[" useInsertionEffect ".trim().toString()]||j9;function bE({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=ME({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=jE(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function ME({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return wE(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function jE(t){return typeof t=="function"}function Cj(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var CE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],VA=CE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function SE(t,a){t&&q9.flushSync(()=>t.dispatchEvent(a))}function gL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=gL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():gL(t[s],null)}}}}function BA(...t){return g.useCallback(LE(...t),t)}function $A(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function NE(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function IE(t,a=globalThis==null?void 0:globalThis.document){const r=NE(t);g.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",n,{capture:!0}),()=>a.removeEventListener("keydown",n,{capture:!0})},[r,a])}var AE="DismissableLayer",hC="dismissableLayer.update",PE="dismissableLayer.pointerDownOutside",_E="dismissableLayer.focusOutside",kL,UA=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U9=g.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:c,onDismiss:l,...d}=t,h=g.useContext(UA),[u,p]=g.useState(null),y=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),x=BA(a,L=>p(L)),f=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(v),w=u?f.indexOf(u):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,S=w>=k,C=qE(L=>{const j=L.target,N=[...h.branches].some(q=>q.contains(j));!S||N||(s==null||s(L),c==null||c(L),L.defaultPrevented||l==null||l())},y),A=DE(L=>{const j=L.target;[...h.branches].some(q=>q.contains(j))||(i==null||i(L),c==null||c(L),L.defaultPrevented||l==null||l())},y);return IE(L=>{w===h.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},y),g.useEffect(()=>{if(u)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(kL=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(u)),h.layers.add(u),vL(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=kL)}},[u,y,r,h]),g.useEffect(()=>()=>{u&&(h.layers.delete(u),h.layersWithOutsidePointerEventsDisabled.delete(u),vL())},[u,h]),g.useEffect(()=>{const L=()=>m({});return document.addEventListener(hC,L),()=>document.removeEventListener(hC,L)},[]),e.jsx(VA.div,{...d,ref:x,style:{pointerEvents:b?S?"auto":"none":void 0,...t.style},onFocusCapture:Cj(t.onFocusCapture,A.onFocusCapture),onBlurCapture:Cj(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Cj(t.onPointerDownCapture,C.onPointerDownCapture)})});U9.displayName=AE;var RE="DismissableLayerBranch",TE=g.forwardRef((t,a)=>{const r=g.useContext(UA),n=g.useRef(null),s=BA(a,n);return g.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),e.jsx(VA.div,{...t,ref:s})});TE.displayName=RE;function qE(t,a=globalThis==null?void 0:globalThis.document){const r=$A(t),n=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let d=function(){GA(PE,r,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=d,a.addEventListener("click",s.current,{once:!0})):d()}else a.removeEventListener("click",s.current);n.current=!1},c=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),a.removeEventListener("pointerdown",i),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>n.current=!0}}function DE(t,a=globalThis==null?void 0:globalThis.document){const r=$A(t),n=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!n.current&&GA(_E,r,{originalEvent:i},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function vL(){const t=new CustomEvent(hC);document.dispatchEvent(t)}function GA(t,a,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(t,a,{once:!0}),n?SE(s,i):s.dispatchEvent(i)}function wL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function zE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=wL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():wL(t[s],null)}}}}function EE(...t){return g.useCallback(zE(...t),t)}var FE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],OE=FE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function bL(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var Sj="focusScope.autoFocusOnMount",Lj="focusScope.autoFocusOnUnmount",ML={bubbles:!1,cancelable:!0},HE="FocusScope",G9=g.forwardRef((t,a)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...c}=t,[l,d]=g.useState(null),h=bL(s),u=bL(i),p=g.useRef(null),y=EE(a,f=>d(f)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let f=function(b){if(m.paused||!l)return;const S=b.target;l.contains(S)?p.current=S:nr(p.current,{select:!0})},v=function(b){if(m.paused||!l)return;const S=b.relatedTarget;S!==null&&(l.contains(S)||nr(p.current,{select:!0}))},k=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&nr(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(k);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[n,l,m.paused]),g.useEffect(()=>{if(l){CL.add(m);const f=document.activeElement;if(!l.contains(f)){const k=new CustomEvent(Sj,ML);l.addEventListener(Sj,h),l.dispatchEvent(k),k.defaultPrevented||(VE(WE(WA(l)),{select:!0}),document.activeElement===f&&nr(l))}return()=>{l.removeEventListener(Sj,h),setTimeout(()=>{const k=new CustomEvent(Lj,ML);l.addEventListener(Lj,u),l.dispatchEvent(k),k.defaultPrevented||nr(f??document.body,{select:!0}),l.removeEventListener(Lj,u),CL.remove(m)},0)}}},[l,h,u,m]);const x=g.useCallback(f=>{if(!r&&!n||m.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,k=document.activeElement;if(v&&k){const w=f.currentTarget,[b,S]=BE(w);b&&S?!f.shiftKey&&k===S?(f.preventDefault(),r&&nr(b,{select:!0})):f.shiftKey&&k===b&&(f.preventDefault(),r&&nr(S,{select:!0})):k===w&&f.preventDefault()}},[r,n,m.paused]);return e.jsx(OE.div,{tabIndex:-1,...c,ref:y,onKeyDown:x})});G9.displayName=HE;function VE(t,{select:a=!1}={}){const r=document.activeElement;for(const n of t)if(nr(n,{select:a}),document.activeElement!==r)return}function BE(t){const a=WA(t),r=jL(a,t),n=jL(a.reverse(),t);return[r,n]}function WA(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function jL(t,a){for(const r of t)if(!$E(r,{upTo:a}))return r}function $E(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function UE(t){return t instanceof HTMLInputElement&&"select"in t}function nr(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UE(t)&&a&&t.select()}}var CL=GE();function GE(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=SL(t,a),t.unshift(a)},remove(a){var r;t=SL(t,a),(r=t[0])==null||r.resume()}}}function SL(t,a){const r=[...t],n=r.indexOf(a);return n!==-1&&r.splice(n,1),r}function WE(t){return t.filter(a=>a.tagName!=="A")}var ZE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],JE=ZE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),XE=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YE="Portal",W9=g.forwardRef((t,a)=>{var l;const{container:r,...n}=t,[s,i]=g.useState(!1);XE(()=>i(!0),[]);const c=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?LC.createPortal(e.jsx(JE.div,{...n,ref:a}),c):null});W9.displayName=YE;function KE(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var Z9=t=>{const{present:a,children:r}=t,n=QE(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=$9(n.ref,eF(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};Z9.displayName="Presence";function QE(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=KE(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=wl(n.current);i.current=l==="mounted"?h:"none"},[l]),j9(()=>{const h=n.current,u=s.current;if(u!==t){const y=i.current,m=wl(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),j9(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=wl(n.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=wl(n.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function wl(t){return(t==null?void 0:t.animationName)||"none"}function eF(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var tF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ul=tF.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Nj=0;function cS(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??LL()),document.body.insertAdjacentElement("beforeend",t[1]??LL()),Nj++,()=>{Nj===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Nj--}},[])}function LL(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var va=function(){return va=Object.assign||function(a){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])}return a},va.apply(this,arguments)};function ZA(t,a){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&a.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)a.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function aF(t,a,r){if(r||arguments.length===2)for(var n=0,s=a.length,i;n<s;n++)(i||!(n in a))&&(i||(i=Array.prototype.slice.call(a,0,n)),i[n]=a[n]);return t.concat(i||Array.prototype.slice.call(a))}var d9="right-scroll-bar-position",h9="width-before-scroll-bar",rF="with-scroll-bars-hidden",nF="--removed-body-scroll-bar-size";function Ij(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function sF(t,a){var r=M.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=a,r.facade}var iF=typeof window<"u"?g.useLayoutEffect:g.useEffect,NL=new WeakMap;function oF(t,a){var r=sF(null,function(n){return t.forEach(function(s){return Ij(s,n)})});return iF(function(){var n=NL.get(r);if(n){var s=new Set(n),i=new Set(t),c=r.current;s.forEach(function(l){i.has(l)||Ij(l,null)}),i.forEach(function(l){s.has(l)||Ij(l,c)})}NL.set(r,t)},[t]),r}function cF(t){return t}function lF(t,a){a===void 0&&(a=cF);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var c=a(i,n);return r.push(c),function(){r=r.filter(function(l){return l!==c})}},assignSyncMedium:function(i){for(n=!0;r.length;){var c=r;r=[],c.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var c=[];if(r.length){var l=r;r=[],l.forEach(i),c=r}var d=function(){var u=c;c=[],u.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(u){c.push(u),h()},filter:function(u){return c=c.filter(u),r}}}};return s}function dF(t){t===void 0&&(t={});var a=lF(null);return a.options=va({async:!0,ssr:!1},t),a}var JA=function(t){var a=t.sideCar,r=ZA(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=a.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,va({},r))};JA.isSideCarExport=!0;function hF(t,a){return t.useMedium(a),JA}var XA=dF(),Aj=function(){},J9=g.forwardRef(function(t,a){var r=g.useRef(null),n=g.useState({onScrollCapture:Aj,onWheelCapture:Aj,onTouchMoveCapture:Aj}),s=n[0],i=n[1],c=t.forwardProps,l=t.children,d=t.className,h=t.removeScrollBar,u=t.enabled,p=t.shards,y=t.sideCar,m=t.noRelative,x=t.noIsolation,f=t.inert,v=t.allowPinchZoom,k=t.as,w=k===void 0?"div":k,b=t.gapMode,S=ZA(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=y,A=oF([r,a]),L=va(va({},S),s);return g.createElement(g.Fragment,null,u&&g.createElement(C,{sideCar:XA,removeScrollBar:h,shards:p,noRelative:m,noIsolation:x,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:b}),c?g.cloneElement(g.Children.only(l),va(va({},L),{ref:A})):g.createElement(w,va({},L,{className:d,ref:A}),l))});J9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};J9.classNames={fullWidth:h9,zeroRight:d9};var uF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pF(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=uF();return a&&t.setAttribute("nonce",a),t}function yF(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function mF(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var fF=function(){var t=0,a=null;return{add:function(r){t==0&&(a=pF())&&(yF(a,r),mF(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},xF=function(){var t=fF();return function(a,r){g.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},YA=function(){var t=xF(),a=function(r){var n=r.styles,s=r.dynamic;return t(n,s),null};return a},gF={left:0,top:0,right:0,gap:0},Pj=function(t){return parseInt(t||"",10)||0},kF=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],n=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[Pj(r),Pj(n),Pj(s)]},vF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return gF;var a=kF(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,n-r+a[2]-a[0])}},wF=YA(),Qo="data-scroll-locked",bF=function(t,a,r,n){var s=t.left,i=t.top,c=t.right,l=t.gap;return r===void 0&&(r="margin"),`
|
|
7756
|
+
transition-colors text-sm font-medium text-center`,onClick:d,children:"Apply Now"})]}),!f&&e.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Create an account to save this item."})]})},eE=({jobs:t,onSaveJob:a,onViewJob:r,isJobSaved:n,userAccess:s})=>t.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No jobs found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:"jobs-grid",children:t.map(i=>e.jsx(TA,{job:i,onSaveJob:a,onViewJob:r,isSaved:n(i),userAccess:s},i.link))}),tE=({currentPage:t,totalPages:a,setCurrentPage:r})=>{if(a<=1)return null;const n=[];if(a<=5)for(let i=1;i<=a;i++)n.push(i);else if(t<=3)for(let i=1;i<=5;i++)n.push(i);else if(t>=a-2)for(let i=a-4;i<=a;i++)n.push(i);else for(let i=t-2;i<=t+2;i++)n.push(i);return e.jsxs("div",{className:"pagination",children:[e.jsx("button",{className:"pagination-button prev-button",disabled:t===1,onClick:()=>r(t-1),children:e.jsx(Ea,{})}),n.map(i=>e.jsx("button",{className:`pagination-button ${t===i?"active":""}`,onClick:()=>r(i),children:i},i)),e.jsx("button",{className:"pagination-button next-button",disabled:t===a,onClick:()=>r(t+1),children:e.jsx(Fa,{})})]})},aE=({isOpen:t,onClose:a,filterKeys:r,filtersData:n,activeFilters:s,handleFilterChange:i,handleSearchChange:c,searchTerm:l,clearAllFilters:d,searchFilters:h,removeSearchFilter:u})=>e.jsx("div",{className:`fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full transition-opacity ${t?"opacity-100":"opacity-0 pointer-events-none"}`,children:e.jsx("div",{className:`fixed right-0 top-0 w-4/5 max-w-sm bg-white h-full shadow-xl transition-transform duration-300 ease-in-out ${t?"transform translate-x-0":"transform translate-x-full"}`,children:e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Filters"}),e.jsx("button",{onClick:a,className:"text-gray-500 hover:text-gray-700",children:e.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"mb-4",children:e.jsx("input",{type:"text",className:"w-full p-2 border border-gray-300 rounded-md",placeholder:"Search jobs...",value:l,onChange:p=>c(p.target.value)})}),r.map(p=>{var m;return e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:`mobile-${p}`,className:"block text-sm font-medium text-gray-700 mb-1",children:p.replace(/_/g," ")}),e.jsxs("select",{id:`mobile-${p}`,className:"w-full p-2 border border-gray-300 rounded-md",onChange:y=>i(p,y.target.value),value:s[p]||"",children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(m=n[p])==null?void 0:m.map(y=>e.jsx("option",{value:y,children:y},y))]})]},p)}),Object.keys(s).length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("h3",{className:"text-sm font-semibold mb-2",children:"Active Filters:"}),Object.entries(s).map(([p,m])=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-yellow-800 rounded-full px-3 py-1 text-sm mr-2 mb-2",children:[e.jsxs("span",{children:[p.replace(/_/g," "),": ",m]}),e.jsx("button",{className:"ml-2 text-yellow-600 hover:text-yellow-800",onClick:()=>i(p,""),children:"×"})]},p)),e.jsx("button",{className:"mt-2 w-full bg-red-100 text-red-800 rounded-md px-3 py-2 text-sm font-medium",onClick:d,children:"Clear All Filters"})]})]})})}),rE=({apiUrl:t,itemsPerPage:a,filterKeys:r,enableSearch:n,enablePagination:s,enableMobileFilter:i,banners:c,userAccess:l})=>{const[d,h]=M.useState([]),[u,p]=M.useState(1),[m,y]=M.useState({}),[x,f]=M.useState([]),[v,k]=M.useState({}),[w,b]=M.useState(""),[S,C]=M.useState([]),[A,L]=M.useState(!1),j=V9(l);M.useEffect(()=>{fetch(`${t}/items`).then(de=>de.json()).then(de=>{h(de)}).catch(de=>console.error("Error fetching items:",de))},[t]);const N=de=>{const K={};de.forEach(je=>{r.forEach(Z=>{K[Z]||(K[Z]=new Set);const Y=je[Z];Y!=null&&K[Z].add(String(Y))})});const me={};return Object.keys(K).forEach(je=>{me[je]=Array.from(K[je])}),me};function q(de,K,me){let je=de.filter(Z=>Object.entries(K).every(([Y,ke])=>{const fe=Z[Y];return typeof fe=="string"&&fe.toLowerCase()===ke.toLowerCase()}));return me.length>0&&(je=je.filter(Z=>me.every(Y=>Z.title.toLowerCase().includes(Y.toLowerCase())))),je}const P=M.useMemo(()=>q(d,m,x),[m,d,x]),T=(de,K)=>{y(me=>{const je=K?{...me,[de]:K}:{...me};return K||delete je[de],je})},R=de=>{if(b(de),de){const K=d.map(me=>me.title).filter((me,je,Z)=>me&&me.toLowerCase().includes(de.toLowerCase())&&Z.indexOf(me)===je).slice(0,5);C(K)}else C([])},E=de=>{if(de.key==="Enter"&&w.trim()){de.preventDefault();const K=[...x,w.trim()];f(K),b("")}},$=de=>{const K=x.filter(me=>me!==de);f(K)},B=()=>{y({}),f([]),p(1)};M.useEffect(()=>{k(N(P))},[r,P]),M.useEffect(()=>{p(1)},[m,x]);const U=()=>{L(!A)},O=(de,K)=>{},ae=de=>{},ce=de=>!1,pe=Math.ceil(P.length/a),ne=P.slice((u-1)*a,u*a);return e.jsxs("div",{className:"flex flex-col min-h-screen",children:[e.jsx("div",{className:"flex-grow",children:e.jsxs("div",{className:"job-listings-container",children:[e.jsx("div",{className:"header-container",children:e.jsxs("div",{className:"header-content",children:[e.jsx("h1",{className:"main-title",children:"Job Listings"}),e.jsxs("p",{className:"items-count",children:["Total: ",e.jsx("span",{className:"count-value",children:P.length})]})]})}),e.jsx("button",{className:"md:hidden w-full mb-4 px-4 py-2 bg-yellow-600 text-white rounded-md",onClick:U,children:A?"Close Filters":"Open Filters"}),e.jsxs("div",{className:"hidden md:block filters-container",children:[e.jsx(Kz,{searchTerm:w,handleSearchChange:R,handleSearchKeyDown:E,suggestions:S}),e.jsx(Yz,{filterKeys:r,filtersData:v,activeFilters:m,handleFilterChange:T,searchFilters:x,removeSearchFilter:$,clearAllFilters:B,searchableFilters:["company"]})]}),e.jsx(aE,{isOpen:A,onClose:U,filterKeys:r,filtersData:v,activeFilters:m,handleFilterChange:T,handleSearchChange:R,searchTerm:w,clearAllFilters:B,handleSearchKeyDown:E,searchFilters:x,removeSearchFilter:$}),e.jsxs("div",{className:"flex flex-col md:flex-row",children:[e.jsxs("div",{className:"w-full md:w-3/4 md:pr-4",children:[e.jsx("h2",{className:"section-title",children:"Open Positions"}),e.jsx(eE,{jobs:ne,onSaveJob:O,onViewJob:ae,isJobSaved:ce,userAccess:j}),e.jsx(tE,{currentPage:u,totalPages:pe,setCurrentPage:p})]}),e.jsx("div",{className:"w-full md:w-1/4 mt-4 md:mt-0",children:e.jsx("div",{className:"sticky top-4",children:c.sidebar.enabled&&c.sidebar.url&&e.jsx(ol,{position:"sidebar",url:c.sidebar.url,link:c.sidebar.link,alt:c.sidebar.alt})})})]})]})}),c.bottom.enabled&&c.bottom.url&&e.jsx(ol,{position:"top",url:c.bottom.url,link:c.bottom.link,alt:c.bottom.alt})]})},nE=({title:t="Subscribe to our newsletter",description:a="The latest job opportunities and career tips, weekly in your inbox.",links:r=[]})=>{const[n,s]=M.useState(!1),[i,c]=M.useState(null);M.useEffect(()=>{try{const d=localStorage.getItem("email");d&&(s(!0),c(d))}catch{}},[]);const l=d=>{d.preventDefault()};return e.jsx("footer",{className:"bg-gray-800 text-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8",children:[e.jsxs("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[e.jsx("div",{className:"grid grid-cols-2 gap-8 xl:col-span-2",children:e.jsx("div",{className:"md:grid md:grid-cols-2 md:gap-8",children:Array.isArray(r)&&r.map((d,h)=>{var u;return Array.isArray(d)&&d.length>0?e.jsxs("div",{className:"mt-12 md:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:((u=d[0])==null?void 0:u.text)||"Section"}),e.jsx("ul",{className:"mt-4 space-y-4",children:d.map((p,m)=>e.jsx("li",{children:e.jsx("a",{href:p.url,className:"hover:text-gray-300",children:p.text})},m))})]},h):null})})}),e.jsxs("div",{className:"mt-8 xl:mt-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-gray-400 tracking-wider uppercase",children:t}),e.jsx("p",{className:"mt-4 text-base text-gray-300",children:a}),n?e.jsxs("p",{className:"mt-4 text-green-400 font-medium",children:["✅ You’re subscribed",i?` as ${i}`:"","!"]}):e.jsxs("form",{className:"mt-4 sm:flex sm:max-w-md",onSubmit:l,children:[e.jsx("label",{htmlFor:"email-address",className:"sr-only",children:"Email address"}),e.jsx("input",{type:"email",name:"email-address",id:"email-address",autoComplete:"email",required:!0,className:"appearance-none min-w-0 w-full bg-white border border-transparent rounded-md py-2 px-4 text-base text-gray-900 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white focus:placeholder-gray-400",placeholder:"Enter your email"}),e.jsx("div",{className:"mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0",children:e.jsx("button",{type:"submit",className:"w-full bg-yellow-600 border border-transparent rounded-md py-2 px-4 flex items-center justify-center text-base font-medium text-white hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500",children:"Subscribe"})})]})]})]}),e.jsx("div",{className:"mt-8 border-t border-gray-700 pt-8",children:e.jsxs("p",{className:"text-base text-gray-400 xl:text-center",children:["© ",new Date().getFullYear()," JobBoard, Inc. All rights reserved."]})})]})})},sE=({logo:t="",links:a=[],buttonText:r="Post a Job",buttonUrl:n="/post-job"})=>e.jsx("nav",{className:"bg-white shadow-md",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex justify-between h-16",children:[e.jsxs("div",{className:"flex",children:[e.jsx("div",{className:"flex-shrink-0 flex items-center",children:e.jsx("a",{href:"/",className:"text-xl font-bold text-yellow-600",children:t?e.jsx("img",{src:t,alt:"Logo",className:"h-6 w-6"}):e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"mercado-match h-6 w-6",focusable:"false",children:e.jsx("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})})}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:space-x-8",children:a.map((s,i)=>e.jsx("a",{href:s.url,className:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium",children:s.text},i))})]}),e.jsx("div",{className:"hidden sm:ml-6 sm:flex sm:items-center",children:e.jsx("a",{href:n,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-yellow-600 hover:bg-yellow-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:r})})]})})}),qA=({savedJobsCount:t})=>{const[a,r]=M.useState("");M.useEffect(()=>{typeof window<"u"&&r(window.location.pathname)},[]);const n=s=>a===s;return e.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 md:hidden z-50",children:e.jsxs("div",{className:"grid grid-cols-5 h-16",children:[e.jsxs("a",{href:"/","aria-label":"Home",className:`flex flex-col items-center justify-center ${n("/")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(za,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Home"})]}),e.jsxs("a",{href:"/jobs","aria-label":"Jobs",className:`flex flex-col items-center justify-center ${n("/jobs")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(at,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Jobs"})]}),e.jsxs("a",{href:"/saved","aria-label":"Saved Jobs",className:`flex flex-col items-center justify-center relative ${n("/saved")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Do,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Saved"}),t>0&&e.jsx("span",{className:"absolute -top-1 -right-1 bg-primary-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs",children:t})]}),e.jsxs("a",{href:"/courses","aria-label":"Courses",className:`flex flex-col items-center justify-center ${n("/courses")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Kt,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"Courses"})]}),e.jsxs("a",{href:"/news","aria-label":"News",className:`flex flex-col items-center justify-center ${n("/news")?"text-gray-900 font-semibold dark:text-white":"text-gray-500 dark:text-gray-500"} hover:text-primary-500`,children:[e.jsx(Ma,{className:"w-6 h-6"}),e.jsx("span",{className:"text-xs mt-1",children:"News"})]})]})})},iE=t=>{const a=["Acme Inc","TechCorp","Global Solutions","Innovate Labs","Future Tech"],r=["Engineering","Marketing","Sales","Design","Product","HR"],n=["New York, NY","San Francisco, CA","Austin, TX","Seattle, WA","Remote"],s=["New York","San Francisco","Austin","Seattle","Chicago"],i=["USA","Canada","UK","Germany","Australia"],c=["Startup","Enterprise","Agency","Nonprofit","Government"],l=d=>{const h=new Date;return h.setDate(h.getDate()-Math.floor(Math.random()*d)),h.toISOString()};return Array.from({length:t},(d,h)=>{const u=l(120);return{id:`job-${h}`,title:`${r[h%r.length]} ${h%3===0?"Senior":h%3===1?"Mid-level":"Junior"} Position`,company:a[h%a.length],department:r[h%r.length],location:n[h%n.length],city:s[h%s.length],country:i[h%i.length],company_type:c[h%c.length],link:"#job-link",logo:`/placeholder.svg?height=50&width=50&text=${a[h%a.length].charAt(0)}`,overview:"This is a mock job description for preview purposes. The actual job details would appear here with information about responsibilities, requirements, and company culture.",slug:`job-${h}`,scraped_at:new Date().toISOString(),published_at:u,created_at:u,views:Math.floor(Math.random()*2e3),sponsored:h%7===0}})},DA=({activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:r="Published",options:n=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsxs("div",{className:"date-filter",children:[r&&e.jsxs("label",{htmlFor:"date-filter",className:"text-sm font-medium text-gray-700 mr-2",children:[r,":"]}),e.jsx("select",{id:"date-filter",value:t,onChange:s=>a(s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",children:n.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]}),zA=({activeDateFilter:t,handleDateFilterChange:a,filterKeys:r,searchableFilters:n,dateFieldLabel:s,activeFilters:i,handleFilterChange:c,toggleSavedJobsFilter:l,filtersData:d,savedJobs:h=[],showOnlySaved:u=!1,isMobileFilterOpen:p,toggleMobileFilter:m,dateOptions:y=[{value:"all",label:"All Time"},{value:"today",label:"Today"},{value:"this_week",label:"This Week"},{value:"this_month",label:"This Month"},{value:"last_30_days",label:"Last 30 Days"},{value:"last_90_days",label:"Last 90 Days"}]})=>e.jsx("div",{children:e.jsxs("div",{className:p?"block":"hidden",children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:()=>m(!p)}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),e.jsx("button",{onClick:()=>m(!p),className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900",children:s}),e.jsx(DA,{activeDateFilter:t,onDateFilterChange:a,dateFieldLabel:"",options:y})]}),r.map(x=>{var v;const f=x.replace(/_/g," ");return e.jsxs("div",{className:"grid grid-cols-[120px_1fr] items-center gap-1 mb-4",children:[e.jsx("span",{className:"text-sm font-medium text-gray-900 capitalize whitespace-nowrap",children:f}),n.includes(x)?e.jsx(H9,{options:d[x]||[],value:i[x]||"",onChange:k=>c(x,k),placeholder:`Select ${f}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow-500 focus:border-yellow-500 bg-white",value:i[x]||"",onChange:k=>c(x,k.target.value),children:[e.jsxs("option",{value:"",children:["Select ",f]}),(v=d[x])==null?void 0:v.map(k=>e.jsx("option",{value:k,children:k},k))]})]},x)}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.jsx("button",{onClick:()=>m(!p),className:"w-full py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Apply Filters"})})]})]})]})}),aS=({totalColumns:t=2})=>e.jsx("div",{className:"flex-grow p-8 animate-fade-in",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),e.jsx("div",{className:`grid grid-cols-1 md:grid-cols-${t} gap-6`,children:[...Array(4)].map((a,r)=>e.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[e.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-4"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-2"}),e.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/3 mb-4"}),e.jsx("div",{className:"h-20 bg-gray-200 rounded mb-4"}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-full"})]},r))})]})})}),rS=({data:t,onSelect:a,placeholder:r="Search...",debounceMs:n=250,onTyping:s,className:i="",showSubmitButton:c=!1})=>{const[l,d]=M.useState(""),[h,u]=M.useState([]),[p,m]=M.useState(!1),y=M.useRef(null),x=k=>{d(k),m(!0),s&&s(k)},f=()=>{d(""),u([]),m(!1),s==null||s("")},v=k=>{a(k),d(""),u([]),m(!1)};return M.useEffect(()=>{y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{if(!l){u([]);return}const k=t.filter(w=>w.toLowerCase().includes(l.toLowerCase())).filter((w,b,S)=>S.indexOf(w)===b).slice(0,5);u(k)},n)},[l,t]),e.jsxs("div",{className:`relative w-full ${i}`,children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-4 w-4 text-gray-400"})}),e.jsx("input",{type:"text",className:"w-full py-2 pl-9 pr-12 flex w-full rounded-md border border-input bg-background px-3 py-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm pl-10 h-12 text-lg",placeholder:r,value:l,onChange:k=>x(k.target.value),onFocus:()=>m(h.length>0),onBlur:()=>setTimeout(()=>m(!1),200),onKeyDown:k=>{k.key==="Enter"&&l.trim()&&(k.preventDefault(),v(l.trim()))}}),l&&!c&&e.jsx("button",{onClick:f,className:"absolute inset-y-0 right-2 flex items-center",children:e.jsx(wt,{className:"h-4 w-4 text-gray-400 hover:text-gray-600"})}),c&&e.jsx("button",{onClick:()=>l.trim()&&v(l.trim()),className:"absolute right-2 top-1/2 -translate-y-1/2 bg-yellow-500 text-white py-1.5 px-2 rounded-md hover:bg-yellow-600",children:e.jsx(Ot,{className:"h-4 w-4"})})]}),p&&h.length>0&&e.jsx("ul",{className:"absolute z-10 mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-md",children:h.map((k,w)=>e.jsx("li",{children:e.jsx("button",{className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100",onClick:()=>v(k),children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ot,{className:"h-4 w-4 mr-2 text-gray-400"}),k]})})},w))})]})},nS=({onSearchChange:t,title:a="Gaming News",description:r="Latest news and insights from the gaming industry",searchPlaceholder:n="Search news...",popularTags:s=["AI Gaming","Esports","VR/AR","Mobile Gaming","Regulation","Market Analysis"],generateHref:i=u=>`?q=${encodeURIComponent(u)}`,onTagClick:c,onTagRemove:l,popularTagColor:d="#CA8A04",allowTagRemoval:h=!1})=>{M.useState("");const[u,p]=M.useState(()=>new Set),m=s.filter(x=>!u.has(x)),y=x=>{p(f=>{const v=new Set(f);return v.add(x),v}),l==null||l(x)};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:a}),e.jsx("p",{className:"hidden lg:block text-gray-600",children:r})]})})})}),e.jsx("div",{className:"bg-white border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"overflow-x-auto",children:m.length>0&&e.jsxs("div",{className:"flex items-center space-x-6 py-2 text-sm",children:[e.jsx("span",{className:"text-gray-600 font-medium flex-shrink-0",children:"Popular:"}),m.map(x=>e.jsx(AC,{name:`#${x}`,color:d,size:"sm",href:c?void 0:i(x),onClick:c?()=>c(x):void 0,removable:h,onRemove:h?()=>y(x):void 0},x))]})})})})]})},oE=t=>t.toLowerCase().replace(/anti[-\s]?money[-\s]?laundering/g,"aml").replace(/counter[-\s]?terrorist[-\s]?financing/g,"cft").replace(/personal management licence/g,"pml").replace(/general data protection regulation/g,"gdpr");function sS(t){const a=oE(t),r={gambling:["igaming","casino","slot","slots","bingo","poker","blackjack","roulette","lottery","rgs","rng","rmg","betting","sportsbook","land based"],compliance:["aml","money laundering","gdpr","compliance","licence","mlro","data protection","responsible gaming","player protection","key function","pml","mga","cft"],business:["crm","vip","affiliate","payments","analytics","marketing","governance","leadership","strategy"],format:["course","tutorial","guide","webinar","workshop","lecture","series","academy","masterclass"],misc:["ai","blockchain","gamification","diversity","inclusion","metaverse","remote","advanced"]},n=[...r.gambling,...r.compliance,...r.business,...r.format,...r.misc];for(const s of n)if(new RegExp(`\\b${s.replace(/\s+/g,"\\s+")}\\b`,"i").test(a))return s;return null}function cE(t){const a=sS(t);return a||lE(t)}function lE(t){const a=new Set(["the","of","and","to","a","in","for","with","on","at","by","is","from","as","it","that","this","how","new","you","your"]),r=t.toLowerCase().split(/\W+/).filter(i=>i.length>2&&!a.has(i)),n={};for(const i of r)n[i]=(n[i]||0)+1;const s=Object.entries(n).sort((i,c)=>c[1]-i[1]);return s.length>0?s[0][0]:null}const iS=({filters:t,onClearAll:a,handleCreateAlert:r,className:n=""})=>t.length===0?null:e.jsxs("div",{className:`flex flex-wrap gap-2 ${n}`,children:[t.map(s=>e.jsxs("div",{className:"inline-flex items-center bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm",children:[s.label&&e.jsxs("span",{className:"font-medium mr-1",children:[s.label,":"]}),e.jsx("span",{children:s.value}),e.jsx("button",{className:"ml-2 text-indigo-600 hover:text-indigo-800",onClick:s.onRemove,"aria-label":`Remove ${s.label||s.key} filter`,children:e.jsx(xa,{size:14})})]},`${s.key}-${s.value}`)),e.jsx("button",{className:"inline-flex items-center bg-gray-100 text-gray-800 hover:bg-gray-200 rounded-full px-3 py-1 text-sm",onClick:a,children:"Clear All"}),e.jsx("button",{onClick:r,className:"inline-flex items-center bg-indigo-100 text-indigo-800 hover:bg-indigo-200 rounded-full px-3 py-1 text-sm font-medium",children:"🔔 Create Alert"})]}),EA=({viewMode:t,onToggle:a,className:r=""})=>e.jsxs("div",{className:`view-mode-toggle flex bg-gray-100 p-1 rounded-lg ${r}`,children:[e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="grid"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"Grid view","aria-pressed":t==="grid",children:[e.jsx(ia,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"Grid"})]}),e.jsxs("button",{onClick:a,className:`px-3 py-1.5 rounded-md flex items-center justify-center transition-colors ${t==="list"?"bg-yellow-600 text-white shadow-sm":"text-gray-700 hover:bg-gray-200"}`,"aria-label":"List view","aria-pressed":t==="list",children:[e.jsx(Dc,{size:16,className:"mr-1.5"}),e.jsx("span",{className:"text-sm font-medium",children:"List"})]})]}),FA=({value:t,onChange:a,options:r=[5,10,20,50],className:n=""})=>e.jsxs("div",{className:`flex items-center ${n}`,children:[e.jsx("label",{htmlFor:"items-per-page",className:"mr-2 text-sm font-medium text-gray-700",children:"Show:"}),e.jsx("select",{id:"items-per-page",value:t,onChange:s=>a(Number(s.target.value)),className:"px-2 py-1.5 border border-gray-300 rounded-md text-sm bg-white",children:r.map(s=>e.jsx("option",{value:s,children:s},s))})]}),oS=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," articles"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),dE=({title:t,description:a,ctaText:r,ctaLink:n,bgColor:s="bg-yellow-50",textColor:i="text-yellow-800"})=>e.jsx("div",{className:`promo-card ${s} p-4 rounded-lg shadow-sm hidden md:block`,children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:`font-bold text-lg ${i}`,children:t}),e.jsx("p",{className:`text-sm mt-1 ${i} opacity-90`,children:a})]}),e.jsx("a",{href:n,className:"bg-white text-yellow-600 hover:bg-yellow-50 px-4 py-2 rounded-md text-sm font-medium shadow-sm transition-colors",children:r})]})}),hE=({items:t,cardType:a,viewMode:r,savedJobs:n,onSaveJob:s,onViewJob:i,onApplyJob:c,firstItemRef:l=null,userAccess:d})=>{const[h,u]=M.useState([]),[p,m]=M.useState(null);M.useEffect(()=>{try{if(!Array.isArray(t)){console.error("❌ Items is not an array:",t),m("Invalid data format received"),u([]);return}const x=[...t];t.length>5&&x.splice(5,0,{id:"promo-1",title:"Promo",isPromo:!0}),u(x),m(null)}catch(x){console.error("Error processing items:",x),m(`Error processing items: ${x instanceof Error?x.message:String(x)}`),u([])}},[t]);const y=(x,f)=>{const k=f===0&&!x.isPromo?{ref:l}:{};try{if(x.isPromo)return e.jsx("div",{className:"col-span-full my-4",children:e.jsx(dE,{title:"Upgrade Your Job Search",description:"Get personalized job recommendations and stand out to employers.",ctaText:"Learn More",ctaLink:"#premium-features",bgColor:"bg-yellow-50",textColor:"text-yellow-800"})},`promo-${f}`);if(!x||typeof x!="object")return console.error("❌ Invalid item detected:",x),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),e.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]});const w=x.id?`${x._id}-${f}`:x.slug?`${x.slug}-${f}`:`item-${f}`;switch(a){case"job":return e.jsx("div",{...k,children:e.jsx(TA,{job:x,positionInList:f,onSaveJob:b=>s(b,f),onViewJob:(b,S,C)=>i(b,f,C),onApplyJob:c?(b,S,C)=>c(b,f,C):void 0,isSaved:n.includes(x.id||x.slug||x.link),userAccess:d})},w);default:return console.warn(`⚠️ Unknown cardType: ${a}`),e.jsxs("div",{className:"error-card bg-yellow-50 p-4 rounded-md border border-yellow-200",children:[e.jsx("p",{className:"text-yellow-800 font-medium",children:"Unknown Card Type"}),e.jsx("p",{className:"text-yellow-700 text-sm",children:"The specified card type is not supported."})]})}}catch(w){return console.error("Error rendering card:",w),e.jsxs("div",{className:"error-card bg-red-50 p-4 rounded-md border border-red-200",children:[e.jsx("p",{className:"text-red-800 font-medium",children:"Error Rendering Card"}),e.jsx("p",{className:"text-red-600 text-sm",children:w instanceof Error?w.message:String(w)})]})}};return p?e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h3",{className:"font-semibold mb-2",children:"Error Loading Items"}),e.jsx("p",{children:p})]}):h.length===0?e.jsxs("div",{className:"no-results",children:[e.jsx("h3",{children:"No items found matching your criteria"}),e.jsx("p",{children:"Try adjusting your filters or search term"})]}):e.jsx("div",{className:r==="grid"?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4":"flex flex-col gap-4","data-view-mode":r,children:h.map((x,f)=>y(x,f))})},B9=({currentPage:t,totalPages:a,onPageChange:r})=>{if(a<=1)return null;const n=5,s=Math.max(1,t-Math.floor(n/2)),i=Math.min(a,s+n-1),c=[];for(let l=s;l<=i;l++)c.push(l);return e.jsx("div",{className:"mt-6 flex justify-center",children:e.jsxs("nav",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>r(Math.max(1,t-1)),disabled:t===1,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Ea,{})}),c.map(l=>e.jsx("button",{onClick:()=>r(l),className:`px-3 py-2 text-sm font-medium rounded-md ${t===l?"bg-yellow-600 text-white":"text-gray-700 bg-white border border-gray-300 hover:bg-gray-50"}`,children:l},l)),e.jsx("button",{onClick:()=>r(Math.min(a,t+1)),disabled:t===a,className:"px-3 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",children:e.jsx(Fa,{})})]})})},uE=({jobs:t,onViewJob:a})=>!t||t.length===0?null:e.jsxs("div",{className:"last-visited-jobs mt-8 bg-white rounded-lg shadow p-4",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Recently Viewed Jobs"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:t.map((r,n)=>e.jsxs("div",{className:"p-3 border rounded-md hover:shadow-md transition-shadow cursor-pointer",onClick:()=>a(r,n,"same_tab","last_visited"),children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("img",{src:r.logo||"/placeholder.svg?height=30&width=30",alt:`${r.company} logo`,className:"w-6 h-6 mr-2"}),e.jsx("h3",{className:"font-medium text-sm truncate",children:r.title})]}),e.jsx("p",{className:"text-xs text-gray-600 truncate",children:r.company}),e.jsx("p",{className:"text-xs text-gray-500 truncate",children:r.location})]},r._id||r.slug||r.link))})]}),pE=(t,a,r="date")=>{if(a==="all")return t;const n=new Date,s=new Date(n.getFullYear(),n.getMonth(),n.getDate());return t.filter(i=>{const c=i[r]||i.created_at||i.published_at||i.scraped_at;if(!c)return!1;const l=new Date(c);switch(a){case"today":return l>=s;case"this_week":{const d=new Date(n);return d.setDate(n.getDate()-n.getDay()),d.setHours(0,0,0,0),l>=d}case"this_month":{const d=new Date(n.getFullYear(),n.getMonth(),1);return l>=d}case"last_30_days":{const d=new Date(n);return d.setDate(n.getDate()-30),l>=d}case"last_90_days":{const d=new Date(n);return d.setDate(n.getDate()-90),l>=d}default:return!0}})},yE=(t,a)=>t.filter(r=>{var n,s,i,c,l;if(a.jobTypes.length>0){const d=((n=r.department)==null?void 0:n.toLowerCase())||"";if(!a.jobTypes.some(h=>d.includes(h)))return!1}if(a.experienceLevels.length>0){const d=((s=r.title)==null?void 0:s.toLowerCase())||"";if(!a.experienceLevels.some(h=>!!(h==="senior"&&d.includes("senior")||h==="mid"&&(d.includes("mid")||d.includes("mid-level"))||h==="entry"&&(d.includes("junior")||d.includes("entry")))))return!1}return!(a.country&&!(((i=r.location)==null?void 0:i.toLowerCase())||((c=r.city)==null?void 0:c.toLowerCase())||"").includes(a.country.toLowerCase())||a.city&&!(((l=r.company_type)==null?void 0:l.toLowerCase())||"").includes(a.city.toLowerCase()))}),Yc=(t,a)=>{const r={};for(const n of t)for(const s of a){r[s]||(r[s]=new Set);const i=n[s];Array.isArray(i)?i.forEach(c=>{typeof c=="string"&&c.trim()&&r[s].add(c.trim())}):typeof i=="string"&&i.trim()&&r[s].add(i.trim())}return Object.fromEntries(Object.entries(r).map(([n,s])=>[n,Array.from(s)]))},OA=t=>{const a=new URLSearchParams(window.location.search);t==="all"?a.delete("date_filter"):a.set("date_filter",t);const r=`${window.location.pathname}?${a.toString()}`;window.history.replaceState({},"",r)},no=(t,a,r,n,s="date")=>{let i=t.filter(c=>Object.entries(a).every(([l,d])=>{const h=c[l];return typeof h=="string"?h.toLowerCase()===d.toLowerCase():Array.isArray(h)?h.some(u=>typeof u=="string"&&u.toLowerCase()===d.toLowerCase()):!1}));return r.length>0&&(i=i.filter(c=>r.every(l=>{var d,h;return((d=c.title)==null?void 0:d.toLowerCase().includes(l.toLowerCase()))||((h=c.overview)==null?void 0:h.toLowerCase().includes(l.toLowerCase()))}))),i=pE(i,n,s),i},vl=(t,a,r=[],n="date")=>{const s=d=>{const h=d[n]||d.created_at||d.published_at||d.scraped_at;return h?new Date(h).getTime():0},i=d=>{var u;const h=d.views??d.viewCount??((u=d.metrics)==null?void 0:u.views)??0;return typeof h=="number"?h:0},c=d=>{if(r.length===0)return 0;const h=(d.title??"").toLowerCase(),u=(d.overview??"").toLowerCase();return r.reduce((p,m)=>{const y=m.toLowerCase();let x=p;return h.includes(y)&&(x+=3),u.includes(y)&&(x+=1),x},0)},l=[...t];return l.sort((d,h)=>{switch(a){case"date_asc":return s(d)-s(h);case"views_desc":return i(h)-i(d);case"views_asc":return i(d)-i(h);case"relevance":{const u=c(h)-c(d);return u!==0?u:s(h)-s(d)}case"title_asc":{const u=(d.title??"").localeCompare(h.title??"",void 0,{sensitivity:"base"});return u!==0?u:s(h)-s(d)}case"date_desc":default:return s(h)-s(d)}}),l},HA=({dateFieldLabel:t,activeDateFilter:a,onDateFilterChange:r,filterKeys:n,searchableFilters:s,filtersData:i,activeFilters:c,handleFilterChange:l,toggleSavedJobsFilter:d,showOnlySaved:h,savedJobs:u})=>e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Filters"}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:t}),e.jsx(DA,{activeDateFilter:a,onDateFilterChange:r,dateFieldLabel:""})]}),n.map(p=>{var m;return e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-2",children:p.replace(/_/g," ").replace(/^\w/,y=>y.toUpperCase())}),s.includes(p)?e.jsx(H9,{options:i[p]||[],value:c[p]||"",onChange:y=>l(p,y),placeholder:`Select ${p.replace(/_/g," ")}`,className:"w-full"}):e.jsxs("select",{className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500 bg-white",value:c[p]||"",onChange:y=>l(p,y.target.value),children:[e.jsxs("option",{value:"",children:["Select ",p.replace(/_/g," ")]}),(m=i[p])==null?void 0:m.map(y=>e.jsx("option",{value:y,children:y},y))]})]},p)}),e.jsx("div",{className:"mt-6",children:e.jsxs("button",{onClick:d,className:`w-full px-4 py-2 rounded-lg flex items-center justify-center ${h?"bg-yellow-100 text-indigo-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:[e.jsx(Va,{size:16,className:"mr-2"}),e.jsxs("span",{children:["Saved Jobs (",u.length,")"]})]})})]})});function Kc(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function xL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function mE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=xL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():xL(t[s],null)}}}}function $9(...t){return g.useCallback(mE(...t),t)}function fE(t,a){const r=g.createContext(a),n=i=>{const{children:c,...l}=i,d=g.useMemo(()=>l,Object.values(l));return e.jsx(r.Provider,{value:d,children:c})};n.displayName=t+"Provider";function s(i){const c=g.useContext(r);if(c)return c;if(a!==void 0)return a;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,s]}function xE(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,gE(s,...a)]}function gE(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var j9=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},kE=g[" useId ".trim().toString()]||(()=>{}),vE=0;function jj(t){const[a,r]=g.useState(kE());return j9(()=>{t||r(n=>n??String(vE++))},[t]),t||(a?`radix-${a}`:"")}var wE=g[" useInsertionEffect ".trim().toString()]||j9;function bE({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=ME({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=jE(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function ME({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return wE(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function jE(t){return typeof t=="function"}function Cj(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var CE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],VA=CE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function SE(t,a){t&&q9.flushSync(()=>t.dispatchEvent(a))}function gL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=gL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():gL(t[s],null)}}}}function BA(...t){return g.useCallback(LE(...t),t)}function $A(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function NE(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}function IE(t,a=globalThis==null?void 0:globalThis.document){const r=NE(t);g.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",n,{capture:!0}),()=>a.removeEventListener("keydown",n,{capture:!0})},[r,a])}var AE="DismissableLayer",hC="dismissableLayer.update",PE="dismissableLayer.pointerDownOutside",_E="dismissableLayer.focusOutside",kL,UA=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U9=g.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:c,onDismiss:l,...d}=t,h=g.useContext(UA),[u,p]=g.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),x=BA(a,L=>p(L)),f=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=f.indexOf(v),w=u?f.indexOf(u):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,S=w>=k,C=qE(L=>{const j=L.target,N=[...h.branches].some(q=>q.contains(j));!S||N||(s==null||s(L),c==null||c(L),L.defaultPrevented||l==null||l())},m),A=DE(L=>{const j=L.target;[...h.branches].some(q=>q.contains(j))||(i==null||i(L),c==null||c(L),L.defaultPrevented||l==null||l())},m);return IE(L=>{w===h.layers.size-1&&(n==null||n(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},m),g.useEffect(()=>{if(u)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(kL=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(u)),h.layers.add(u),vL(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=kL)}},[u,m,r,h]),g.useEffect(()=>()=>{u&&(h.layers.delete(u),h.layersWithOutsidePointerEventsDisabled.delete(u),vL())},[u,h]),g.useEffect(()=>{const L=()=>y({});return document.addEventListener(hC,L),()=>document.removeEventListener(hC,L)},[]),e.jsx(VA.div,{...d,ref:x,style:{pointerEvents:b?S?"auto":"none":void 0,...t.style},onFocusCapture:Cj(t.onFocusCapture,A.onFocusCapture),onBlurCapture:Cj(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Cj(t.onPointerDownCapture,C.onPointerDownCapture)})});U9.displayName=AE;var RE="DismissableLayerBranch",TE=g.forwardRef((t,a)=>{const r=g.useContext(UA),n=g.useRef(null),s=BA(a,n);return g.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),e.jsx(VA.div,{...t,ref:s})});TE.displayName=RE;function qE(t,a=globalThis==null?void 0:globalThis.document){const r=$A(t),n=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let d=function(){GA(PE,r,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=d,a.addEventListener("click",s.current,{once:!0})):d()}else a.removeEventListener("click",s.current);n.current=!1},c=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),a.removeEventListener("pointerdown",i),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>n.current=!0}}function DE(t,a=globalThis==null?void 0:globalThis.document){const r=$A(t),n=g.useRef(!1);return g.useEffect(()=>{const s=i=>{i.target&&!n.current&&GA(_E,r,{originalEvent:i},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function vL(){const t=new CustomEvent(hC);document.dispatchEvent(t)}function GA(t,a,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(t,a,{once:!0}),n?SE(s,i):s.dispatchEvent(i)}function wL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function zE(...t){return a=>{let r=!1;const n=t.map(s=>{const i=wL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():wL(t[s],null)}}}}function EE(...t){return g.useCallback(zE(...t),t)}var FE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],OE=FE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function bL(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var Sj="focusScope.autoFocusOnMount",Lj="focusScope.autoFocusOnUnmount",ML={bubbles:!1,cancelable:!0},HE="FocusScope",G9=g.forwardRef((t,a)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...c}=t,[l,d]=g.useState(null),h=bL(s),u=bL(i),p=g.useRef(null),m=EE(a,f=>d(f)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let f=function(b){if(y.paused||!l)return;const S=b.target;l.contains(S)?p.current=S:nr(p.current,{select:!0})},v=function(b){if(y.paused||!l)return;const S=b.relatedTarget;S!==null&&(l.contains(S)||nr(p.current,{select:!0}))},k=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&nr(l)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const w=new MutationObserver(k);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),w.disconnect()}}},[n,l,y.paused]),g.useEffect(()=>{if(l){CL.add(y);const f=document.activeElement;if(!l.contains(f)){const k=new CustomEvent(Sj,ML);l.addEventListener(Sj,h),l.dispatchEvent(k),k.defaultPrevented||(VE(WE(WA(l)),{select:!0}),document.activeElement===f&&nr(l))}return()=>{l.removeEventListener(Sj,h),setTimeout(()=>{const k=new CustomEvent(Lj,ML);l.addEventListener(Lj,u),l.dispatchEvent(k),k.defaultPrevented||nr(f??document.body,{select:!0}),l.removeEventListener(Lj,u),CL.remove(y)},0)}}},[l,h,u,y]);const x=g.useCallback(f=>{if(!r&&!n||y.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,k=document.activeElement;if(v&&k){const w=f.currentTarget,[b,S]=BE(w);b&&S?!f.shiftKey&&k===S?(f.preventDefault(),r&&nr(b,{select:!0})):f.shiftKey&&k===b&&(f.preventDefault(),r&&nr(S,{select:!0})):k===w&&f.preventDefault()}},[r,n,y.paused]);return e.jsx(OE.div,{tabIndex:-1,...c,ref:m,onKeyDown:x})});G9.displayName=HE;function VE(t,{select:a=!1}={}){const r=document.activeElement;for(const n of t)if(nr(n,{select:a}),document.activeElement!==r)return}function BE(t){const a=WA(t),r=jL(a,t),n=jL(a.reverse(),t);return[r,n]}function WA(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function jL(t,a){for(const r of t)if(!$E(r,{upTo:a}))return r}function $E(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function UE(t){return t instanceof HTMLInputElement&&"select"in t}function nr(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UE(t)&&a&&t.select()}}var CL=GE();function GE(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=SL(t,a),t.unshift(a)},remove(a){var r;t=SL(t,a),(r=t[0])==null||r.resume()}}}function SL(t,a){const r=[...t],n=r.indexOf(a);return n!==-1&&r.splice(n,1),r}function WE(t){return t.filter(a=>a.tagName!=="A")}var ZE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],JE=ZE.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),XE=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},YE="Portal",W9=g.forwardRef((t,a)=>{var l;const{container:r,...n}=t,[s,i]=g.useState(!1);XE(()=>i(!0),[]);const c=r||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?LC.createPortal(e.jsx(JE.div,{...n,ref:a}),c):null});W9.displayName=YE;function KE(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var Z9=t=>{const{present:a,children:r}=t,n=QE(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=$9(n.ref,eF(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};Z9.displayName="Presence";function QE(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=KE(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=wl(n.current);i.current=l==="mounted"?h:"none"},[l]),j9(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=wl(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),j9(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=wl(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=wl(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function wl(t){return(t==null?void 0:t.animationName)||"none"}function eF(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var tF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ul=tF.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Nj=0;function cS(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??LL()),document.body.insertAdjacentElement("beforeend",t[1]??LL()),Nj++,()=>{Nj===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Nj--}},[])}function LL(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var va=function(){return va=Object.assign||function(a){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])}return a},va.apply(this,arguments)};function ZA(t,a){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&a.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)a.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function aF(t,a,r){if(r||arguments.length===2)for(var n=0,s=a.length,i;n<s;n++)(i||!(n in a))&&(i||(i=Array.prototype.slice.call(a,0,n)),i[n]=a[n]);return t.concat(i||Array.prototype.slice.call(a))}var d9="right-scroll-bar-position",h9="width-before-scroll-bar",rF="with-scroll-bars-hidden",nF="--removed-body-scroll-bar-size";function Ij(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function sF(t,a){var r=M.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=a,r.facade}var iF=typeof window<"u"?g.useLayoutEffect:g.useEffect,NL=new WeakMap;function oF(t,a){var r=sF(null,function(n){return t.forEach(function(s){return Ij(s,n)})});return iF(function(){var n=NL.get(r);if(n){var s=new Set(n),i=new Set(t),c=r.current;s.forEach(function(l){i.has(l)||Ij(l,null)}),i.forEach(function(l){s.has(l)||Ij(l,c)})}NL.set(r,t)},[t]),r}function cF(t){return t}function lF(t,a){a===void 0&&(a=cF);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var c=a(i,n);return r.push(c),function(){r=r.filter(function(l){return l!==c})}},assignSyncMedium:function(i){for(n=!0;r.length;){var c=r;r=[],c.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var c=[];if(r.length){var l=r;r=[],l.forEach(i),c=r}var d=function(){var u=c;c=[],u.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(u){c.push(u),h()},filter:function(u){return c=c.filter(u),r}}}};return s}function dF(t){t===void 0&&(t={});var a=lF(null);return a.options=va({async:!0,ssr:!1},t),a}var JA=function(t){var a=t.sideCar,r=ZA(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=a.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,va({},r))};JA.isSideCarExport=!0;function hF(t,a){return t.useMedium(a),JA}var XA=dF(),Aj=function(){},J9=g.forwardRef(function(t,a){var r=g.useRef(null),n=g.useState({onScrollCapture:Aj,onWheelCapture:Aj,onTouchMoveCapture:Aj}),s=n[0],i=n[1],c=t.forwardProps,l=t.children,d=t.className,h=t.removeScrollBar,u=t.enabled,p=t.shards,m=t.sideCar,y=t.noRelative,x=t.noIsolation,f=t.inert,v=t.allowPinchZoom,k=t.as,w=k===void 0?"div":k,b=t.gapMode,S=ZA(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,A=oF([r,a]),L=va(va({},S),s);return g.createElement(g.Fragment,null,u&&g.createElement(C,{sideCar:XA,removeScrollBar:h,shards:p,noRelative:y,noIsolation:x,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:r,gapMode:b}),c?g.cloneElement(g.Children.only(l),va(va({},L),{ref:A})):g.createElement(w,va({},L,{className:d,ref:A}),l))});J9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};J9.classNames={fullWidth:h9,zeroRight:d9};var uF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pF(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=uF();return a&&t.setAttribute("nonce",a),t}function yF(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function mF(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var fF=function(){var t=0,a=null;return{add:function(r){t==0&&(a=pF())&&(yF(a,r),mF(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},xF=function(){var t=fF();return function(a,r){g.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},YA=function(){var t=xF(),a=function(r){var n=r.styles,s=r.dynamic;return t(n,s),null};return a},gF={left:0,top:0,right:0,gap:0},Pj=function(t){return parseInt(t||"",10)||0},kF=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],n=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[Pj(r),Pj(n),Pj(s)]},vF=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return gF;var a=kF(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,n-r+a[2]-a[0])}},wF=YA(),Qo="data-scroll-locked",bF=function(t,a,r,n){var s=t.left,i=t.top,c=t.right,l=t.gap;return r===void 0&&(r="margin"),`
|
|
7757
7757
|
.`.concat(rF,` {
|
|
7758
7758
|
overflow: hidden `).concat(n,`;
|
|
7759
7759
|
padding-right: `).concat(l,"px ").concat(n,`;
|
|
@@ -7790,23 +7790,23 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7790
7790
|
body[`).concat(Qo,`] {
|
|
7791
7791
|
`).concat(nF,": ").concat(l,`px;
|
|
7792
7792
|
}
|
|
7793
|
-
`)},IL=function(){var t=parseInt(document.body.getAttribute(Qo)||"0",10);return isFinite(t)?t:0},MF=function(){g.useEffect(function(){return document.body.setAttribute(Qo,(IL()+1).toString()),function(){var t=IL()-1;t<=0?document.body.removeAttribute(Qo):document.body.setAttribute(Qo,t.toString())}},[])},jF=function(t){var a=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;MF();var i=g.useMemo(function(){return vF(s)},[s]);return g.createElement(wF,{styles:bF(i,!a,s,r?"":"!important")})},uC=!1;if(typeof window<"u")try{var bl=Object.defineProperty({},"passive",{get:function(){return uC=!0,!0}});window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{uC=!1}var Io=uC?{passive:!1}:!1,CF=function(t){return t.tagName==="TEXTAREA"},KA=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!CF(t)&&r[a]==="visible")},SF=function(t){return KA(t,"overflowY")},LF=function(t){return KA(t,"overflowX")},AL=function(t,a){var r=a.ownerDocument,n=a;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=QA(t,n);if(s){var i=eP(t,n),c=i[1],l=i[2];if(c>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NF=function(t){var a=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[a,r,n]},IF=function(t){var a=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[a,r,n]},QA=function(t,a){return t==="v"?SF(a):LF(a)},eP=function(t,a){return t==="v"?NF(a):IF(a)},AF=function(t,a){return t==="h"&&a==="rtl"?-1:1},PF=function(t,a,r,n,s){var i=AF(t,window.getComputedStyle(a).direction),c=i*n,l=r.target,d=a.contains(l),h=!1,u=c>0,p=0,
|
|
7793
|
+
`)},IL=function(){var t=parseInt(document.body.getAttribute(Qo)||"0",10);return isFinite(t)?t:0},MF=function(){g.useEffect(function(){return document.body.setAttribute(Qo,(IL()+1).toString()),function(){var t=IL()-1;t<=0?document.body.removeAttribute(Qo):document.body.setAttribute(Qo,t.toString())}},[])},jF=function(t){var a=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;MF();var i=g.useMemo(function(){return vF(s)},[s]);return g.createElement(wF,{styles:bF(i,!a,s,r?"":"!important")})},uC=!1;if(typeof window<"u")try{var bl=Object.defineProperty({},"passive",{get:function(){return uC=!0,!0}});window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{uC=!1}var Io=uC?{passive:!1}:!1,CF=function(t){return t.tagName==="TEXTAREA"},KA=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!CF(t)&&r[a]==="visible")},SF=function(t){return KA(t,"overflowY")},LF=function(t){return KA(t,"overflowX")},AL=function(t,a){var r=a.ownerDocument,n=a;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=QA(t,n);if(s){var i=eP(t,n),c=i[1],l=i[2];if(c>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},NF=function(t){var a=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[a,r,n]},IF=function(t){var a=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[a,r,n]},QA=function(t,a){return t==="v"?SF(a):LF(a)},eP=function(t,a){return t==="v"?NF(a):IF(a)},AF=function(t,a){return t==="h"&&a==="rtl"?-1:1},PF=function(t,a,r,n,s){var i=AF(t,window.getComputedStyle(a).direction),c=i*n,l=r.target,d=a.contains(l),h=!1,u=c>0,p=0,m=0;do{if(!l)break;var y=eP(t,l),x=y[0],f=y[1],v=y[2],k=f-v-i*x;(x||k)&&QA(t,l)&&(p+=k,m+=x);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!d&&l!==document.body||d&&(a.contains(l)||a===l));return(u&&(Math.abs(p)<1||!s)||!u&&(Math.abs(m)<1||!s))&&(h=!0),h},Ml=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},PL=function(t){return[t.deltaX,t.deltaY]},_L=function(t){return t&&"current"in t?t.current:t},_F=function(t,a){return t[0]===a[0]&&t[1]===a[1]},RF=function(t){return`
|
|
7794
7794
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
7795
7795
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
7796
|
-
`)},TF=0,Ao=[];function qF(t){var a=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),s=g.useState(TF++)[0],i=g.useState(YA)[0],c=g.useRef(t);g.useEffect(function(){c.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var f=aF([t.lockRef.current],(t.shards||[]).map(_L),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=g.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var k=Ml(f),w=r.current,b="deltaX"in f?f.deltaX:w[0]-k[0],S="deltaY"in f?f.deltaY:w[1]-k[1],C,A=f.target,L=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in f&&L==="h"&&A.type==="range")return!1;var j=AL(L,A);if(!j)return!0;if(j?C=L:(C=L==="v"?"h":"v",j=AL(L,A)),!j)return!1;if(!n.current&&"changedTouches"in f&&(b||S)&&(n.current=C),!C)return!0;var N=n.current||C;return PF(N,v,f,N==="h"?b:S,!0)},[]),d=g.useCallback(function(f){var v=f;if(!(!Ao.length||Ao[Ao.length-1]!==i)){var k="deltaY"in v?PL(v):Ml(v),w=a.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&_F(C.delta,k)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var b=(c.current.shards||[]).map(_L).filter(Boolean).filter(function(C){return C.contains(v.target)}),S=b.length>0?l(v,b[0]):!c.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),h=g.useCallback(function(f,v,k,w){var b={name:f,delta:v,target:k,should:w,shadowParent:DF(k)};a.current.push(b),setTimeout(function(){a.current=a.current.filter(function(S){return S!==b})},1)},[]),u=g.useCallback(function(f){r.current=Ml(f),n.current=void 0},[]),p=g.useCallback(function(f){h(f.type,PL(f),f.target,l(f,t.lockRef.current))},[]),
|
|
7796
|
+
`)},TF=0,Ao=[];function qF(t){var a=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),s=g.useState(TF++)[0],i=g.useState(YA)[0],c=g.useRef(t);g.useEffect(function(){c.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var f=aF([t.lockRef.current],(t.shards||[]).map(_L),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=g.useCallback(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var k=Ml(f),w=r.current,b="deltaX"in f?f.deltaX:w[0]-k[0],S="deltaY"in f?f.deltaY:w[1]-k[1],C,A=f.target,L=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in f&&L==="h"&&A.type==="range")return!1;var j=AL(L,A);if(!j)return!0;if(j?C=L:(C=L==="v"?"h":"v",j=AL(L,A)),!j)return!1;if(!n.current&&"changedTouches"in f&&(b||S)&&(n.current=C),!C)return!0;var N=n.current||C;return PF(N,v,f,N==="h"?b:S,!0)},[]),d=g.useCallback(function(f){var v=f;if(!(!Ao.length||Ao[Ao.length-1]!==i)){var k="deltaY"in v?PL(v):Ml(v),w=a.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&_F(C.delta,k)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var b=(c.current.shards||[]).map(_L).filter(Boolean).filter(function(C){return C.contains(v.target)}),S=b.length>0?l(v,b[0]):!c.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),h=g.useCallback(function(f,v,k,w){var b={name:f,delta:v,target:k,should:w,shadowParent:DF(k)};a.current.push(b),setTimeout(function(){a.current=a.current.filter(function(S){return S!==b})},1)},[]),u=g.useCallback(function(f){r.current=Ml(f),n.current=void 0},[]),p=g.useCallback(function(f){h(f.type,PL(f),f.target,l(f,t.lockRef.current))},[]),m=g.useCallback(function(f){h(f.type,Ml(f),f.target,l(f,t.lockRef.current))},[]);g.useEffect(function(){return Ao.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Io),document.addEventListener("touchmove",d,Io),document.addEventListener("touchstart",u,Io),function(){Ao=Ao.filter(function(f){return f!==i}),document.removeEventListener("wheel",d,Io),document.removeEventListener("touchmove",d,Io),document.removeEventListener("touchstart",u,Io)}},[]);var y=t.removeScrollBar,x=t.inert;return g.createElement(g.Fragment,null,x?g.createElement(i,{styles:RF(s)}):null,y?g.createElement(jF,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function DF(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const zF=hF(XA,qF);var X9=g.forwardRef(function(t,a){return g.createElement(J9,va({},t,{ref:a,sideCar:zF}))});X9.classNames=J9.classNames;var EF=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},Po=new WeakMap,jl=new WeakMap,Cl={},_j=0,tP=function(t){return t&&(t.host||tP(t.parentNode))},FF=function(t,a){return a.map(function(r){if(t.contains(r))return r;var n=tP(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},OF=function(t,a,r,n){var s=FF(a,Array.isArray(t)?t:[t]);Cl[r]||(Cl[r]=new WeakMap);var i=Cl[r],c=[],l=new Set,d=new Set(s),h=function(p){!p||l.has(p)||(l.add(p),h(p.parentNode))};s.forEach(h);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(m){if(l.has(m))u(m);else try{var y=m.getAttribute(n),x=y!==null&&y!=="false",f=(Po.get(m)||0)+1,v=(i.get(m)||0)+1;Po.set(m,f),i.set(m,v),c.push(m),f===1&&x&&jl.set(m,!0),v===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(k){console.error("aria-hidden: cannot operate on ",m,k)}})};return u(a),l.clear(),_j++,function(){c.forEach(function(p){var m=Po.get(p)-1,y=i.get(p)-1;Po.set(p,m),i.set(p,y),m||(jl.has(p)||p.removeAttribute(n),jl.delete(p)),y||p.removeAttribute(r)}),_j--,_j||(Po=new WeakMap,Po=new WeakMap,jl=new WeakMap,Cl={})}},lS=function(t,a,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=EF(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),OF(n,s,r,"aria-hidden")):function(){return null}},Y9="Dialog",[aP,rP]=xE(Y9),[HF,ya]=aP(Y9),nP=t=>{const{__scopeDialog:a,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:c=!0}=t,l=g.useRef(null),d=g.useRef(null),[h,u]=bE({prop:n,defaultProp:s??!1,onChange:i,caller:Y9});return e.jsx(HF,{scope:a,triggerRef:l,contentRef:d,contentId:jj(),titleId:jj(),descriptionId:jj(),open:h,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(p=>!p),[u]),modal:c,children:r})};nP.displayName=Y9;var sP="DialogTrigger",iP=g.forwardRef((t,a)=>{const{__scopeDialog:r,...n}=t,s=ya(sP,r),i=$9(a,s.triggerRef);return e.jsx(ul.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":uS(s.open),...n,ref:i,onClick:Kc(t.onClick,s.onOpenToggle)})});iP.displayName=sP;var dS="DialogPortal",[VF,oP]=aP(dS,{forceMount:void 0}),cP=t=>{const{__scopeDialog:a,forceMount:r,children:n,container:s}=t,i=ya(dS,a);return e.jsx(VF,{scope:a,forceMount:r,children:g.Children.map(n,c=>e.jsx(Z9,{present:r||i.open,children:e.jsx(W9,{asChild:!0,container:s,children:c})}))})};cP.displayName=dS;var C9="DialogOverlay",lP=g.forwardRef((t,a)=>{const r=oP(C9,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=ya(C9,t.__scopeDialog);return i.modal?e.jsx(Z9,{present:n||i.open,children:e.jsx($F,{...s,ref:a})}):null});lP.displayName=C9;var BF=et("DialogOverlay.RemoveScroll"),$F=g.forwardRef((t,a)=>{const{__scopeDialog:r,...n}=t,s=ya(C9,r);return e.jsx(X9,{as:BF,allowPinchZoom:!0,shards:[s.contentRef],children:e.jsx(ul.div,{"data-state":uS(s.open),...n,ref:a,style:{pointerEvents:"auto",...n.style}})})}),vo="DialogContent",dP=g.forwardRef((t,a)=>{const r=oP(vo,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=ya(vo,t.__scopeDialog);return e.jsx(Z9,{present:n||i.open,children:i.modal?e.jsx(UF,{...s,ref:a}):e.jsx(GF,{...s,ref:a})})});dP.displayName=vo;var UF=g.forwardRef((t,a)=>{const r=ya(vo,t.__scopeDialog),n=g.useRef(null),s=$9(a,r.contentRef,n);return g.useEffect(()=>{const i=n.current;if(i)return lS(i)},[]),e.jsx(hP,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Kc(t.onCloseAutoFocus,i=>{var c;i.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Kc(t.onPointerDownOutside,i=>{const c=i.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&i.preventDefault()}),onFocusOutside:Kc(t.onFocusOutside,i=>i.preventDefault())})}),GF=g.forwardRef((t,a)=>{const r=ya(vo,t.__scopeDialog),n=g.useRef(!1),s=g.useRef(!1);return e.jsx(hP,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c,l;(c=t.onCloseAutoFocus)==null||c.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var d,h;(d=t.onInteractOutside)==null||d.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((h=r.triggerRef.current)==null?void 0:h.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),hP=g.forwardRef((t,a)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...c}=t,l=ya(vo,r),d=g.useRef(null),h=$9(a,d);return cS(),e.jsxs(e.Fragment,{children:[e.jsx(G9,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:e.jsx(U9,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":uS(l.open),...c,ref:h,onDismiss:()=>l.onOpenChange(!1)})}),e.jsxs(e.Fragment,{children:[e.jsx(ZF,{titleId:l.titleId}),e.jsx(XF,{contentRef:d,descriptionId:l.descriptionId})]})]})}),hS="DialogTitle",uP=g.forwardRef((t,a)=>{const{__scopeDialog:r,...n}=t,s=ya(hS,r);return e.jsx(ul.h2,{id:s.titleId,...n,ref:a})});uP.displayName=hS;var pP="DialogDescription",yP=g.forwardRef((t,a)=>{const{__scopeDialog:r,...n}=t,s=ya(pP,r);return e.jsx(ul.p,{id:s.descriptionId,...n,ref:a})});yP.displayName=pP;var mP="DialogClose",fP=g.forwardRef((t,a)=>{const{__scopeDialog:r,...n}=t,s=ya(mP,r);return e.jsx(ul.button,{type:"button",...n,ref:a,onClick:Kc(t.onClick,()=>s.onOpenChange(!1))})});fP.displayName=mP;function uS(t){return t?"open":"closed"}var xP="DialogTitleWarning",[WF,gP]=fE(xP,{contentName:vo,titleName:hS,docsSlug:"dialog"}),ZF=({titleId:t})=>{const a=gP(xP),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
7797
7797
|
|
|
7798
7798
|
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
7799
7799
|
|
|
7800
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},JF="DialogDescriptionWarning",XF=({contentRef:t,descriptionId:a})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gP(JF).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(n))},[n,t,a]),null},kP=nP,vP=iP,wP=cP,pS=lP,yS=dP,mS=uP,fS=yP,xS=fP;function K9(t,a){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(a.indexOf(s)>=0)&&(r[s]=t[s]);return r}var YF=["color"],KF=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,YF);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),QF=["color"],bP=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,QF);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),eO=["color"],tO=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,eO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),aO=["color"],rO=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,aO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const Ja=kP,nO=vP,sO=wP,MP=g.forwardRef(({className:t,...a},r)=>e.jsx(pS,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));MP.displayName=pS.displayName;const Aa=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(sO,{children:[e.jsx(MP,{}),e.jsxs(yS,{ref:n,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[a,e.jsxs(xS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(rO,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Aa.displayName=yS.displayName;const ha=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});ha.displayName="DialogHeader";const ta=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});ta.displayName="DialogFooter";const aa=g.forwardRef(({className:t,...a},r)=>e.jsx(mS,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",t),...a}));aa.displayName=mS.displayName;const fo=g.forwardRef(({className:t,...a},r)=>e.jsx(fS,{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));fo.displayName=fS.displayName;var iO="Label",jP=g.forwardRef((t,a)=>e.jsx(So.label,{...t,ref:a,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));jP.displayName=iO;var CP=jP;const oO=D9("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Q=g.forwardRef(({className:t,...a},r)=>e.jsx(CP,{ref:r,className:ue(oO(),t),...a}));Q.displayName=CP.displayName;const cO=1,lO=1e6;let Rj=0;function dO(){return Rj=(Rj+1)%Number.MAX_SAFE_INTEGER,Rj.toString()}const Tj=new Map,RL=t=>{if(Tj.has(t))return;const a=setTimeout(()=>{Tj.delete(t),u9({type:"REMOVE_TOAST",toastId:t})},lO);Tj.set(t,a)},hO=(t,a)=>{switch(a.type){case"ADD_TOAST":return{...t,toasts:[a.toast,...t.toasts].slice(0,cO)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===a.toast.id?{...r,...a.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=a;return r?RL(r):t.toasts.forEach(n=>{RL(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return a.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==a.toastId)}}},uO=[];let qj={toasts:[]};function u9(t){qj=hO(qj,t),uO.forEach(a=>{a(qj)})}function TL({...t}){const a=dO(),r=s=>u9({type:"UPDATE_TOAST",toast:{...s,id:a}}),n=()=>u9({type:"DISMISS_TOAST",toastId:a});return u9({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:s=>{s||n()}}}),{id:a,dismiss:n,update:r}}const pO=new Set([200,201,202,204]);function yO(t){return t===400?"BAD_REQUEST":t===401?"UNAUTHORIZED":t===403?"FORBIDDEN":t===404?"NOT_FOUND":t===409?"CONFLICT":t===429?"RATE_LIMITED":t>=500?"SERVER":"UNKNOWN"}function mO(t){if(t.friendly)return t.friendly;switch(t.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function fO(t,a){const{timeoutMs:r=12e3,...n}=a??{},s=new AbortController,i=setTimeout(()=>s.abort(),r);try{const c=await fetch(t,{...n,signal:s.signal});if(pO.has(c.status)){if(c.status===204)return{ok:!0,data:void 0};const u=await c.text();return{ok:!0,data:u?JSON.parse(u):void 0}}let l=null;try{l=await c.json()}catch{}return{ok:!1,error:{code:yO(c.status),status:c.status,message:(l==null?void 0:l.message)||`${c.status} ${c.statusText}`,details:l}}}catch(c){const l=(c==null?void 0:c.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(c==null?void 0:c.message)||"Network error"}}}finally{clearTimeout(i)}}function xO({open:t,onOpenChange:a,onSubscriptionSuccess:r,searchQuery:n,filters:s,apiUrl:i="http://localhost:5147"}){const[c,l]=M.useState(""),[d,h]=M.useState(!1),[u,p]=M.useState(null),y=async m=>{if(m.preventDefault(),p(null),!c||!c.includes("@")){p("Please enter a valid email address.");return}h(!0);try{const x=await fO(`${i}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!x.ok){p(mO(x.error)),TL({title:"Subscription failed",description:x.error.message});return}localStorage.setItem("leadId",x.data.id),localStorage.setItem("email",c),TL({title:"You're subscribed",description:`We'll notify you at ${c} when new jobs match your criteria.`}),r==null||r(),l("")}finally{h(!1)}};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{className:"sm:max-w-md",children:[e.jsxs(ha,{children:[e.jsxs(aa,{className:"flex items-center gap-2",children:[e.jsx(qo,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),e.jsx(fo,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"email",type:"email",placeholder:"Enter your email address",value:c,onChange:m=>l(m.target.value),className:"pl-10",required:!0,"aria-invalid":!!u,"aria-describedby":u?"email-error":void 0})]}),u&&e.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:u})]}),n&&e.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[e.jsx("p",{className:"font-medium",children:"Alert criteria:"}),e.jsxs("p",{className:"text-muted-foreground",children:['"',n,'"']})]}),e.jsxs(ta,{className:"gap-2 sm:gap-0",children:[e.jsx(D,{type:"button",variant:"outline",onClick:()=>a(!1),disabled:d,children:"Cancel"}),e.jsx(D,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function SP(){const t="savedJobs",[a,r]=M.useState([]);return M.useEffect(()=>{try{const i=localStorage.getItem(t);i&&r(JSON.parse(i))}catch(i){console.error("Failed to load saved jobs:",i)}},[]),{savedJobs:a,toggleJob:i=>{r(c=>{const d=c.includes(i)?c.filter(h=>h!==i):[...c,i];try{localStorage.setItem(t,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:i=>i?a.includes(i):!1}}const gO=({value:t,options:a,onChange:r})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Order by"}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{"aria-label":"Order results",value:t,onChange:n=>r(n.target.value),className:"block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 pr-9 text-sm text-gray-700 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-100",children:a.map(n=>e.jsx("option",{value:n.value,children:n.label},n.value))}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400",children:"▼"})]})]}),kO=6,Dj={jobTypes:[],experienceLevels:[],country:"",city:"",location:"",minSalary:"",maxSalary:"",industry:""},vO=({apiUrl:t,itemsPerPage:a=12,filterKeys:r,banner:n,enableMobileFilter:s=!0,cardType:i,dateField:c="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147",userAccess:u,onEmitEvent:p,eventContext:y,onPopularTagClick:m,onPopularTagRemove:x,allowPopularTagRemoval:f=!1})=>{var V;const[v,k]=M.useState([]),[w,b]=M.useState([]),[S,C]=M.useState([]),[A,L]=M.useState(1),[j,N]=M.useState({}),[q,P]=M.useState([]),[R,T]=M.useState({}),[F,U]=M.useState(""),[$,W]=M.useState([]),[O,ae]=M.useState(!1),[ce,pe]=M.useState(a),[ne,de]=M.useState("grid"),[K,me]=M.useState(!1),[je,Z]=M.useState([]),[Y,ke]=M.useState(!0),[fe,ve]=M.useState(null),[le,_e]=M.useState("all"),[Re,z]=M.useState(!1),[se,Ne]=M.useState(!1),[Xe,Ye]=M.useState({...Dj}),[Te,rt]=M.useState({open:!1,type:"info",message:""}),[nt,Ya]=M.useState("date_desc"),{savedJobs:At,toggleJob:bt}=SP(),_a=V9(u),H=M.useMemo(()=>({component:"Listing",...y??{}}),[y]),B=M.useMemo(()=>[{value:"relevance",label:"Best match (relevance)"},{value:"date_desc",label:`${l} (newest)`},{value:"date_asc",label:`${l} (oldest)`},{value:"views_desc",label:"Most viewed"},{value:"views_asc",label:"Least viewed"},{value:"title_asc",label:"Title A → Z"}],[l]),X=M.useCallback((_,E)=>{p&&p({domain:"jobs",name:_,payload:E,timestamp:new Date().toISOString(),context:H})},[H,p]),Ie=M.useCallback(()=>({filters:{...j},advancedFilters:Xe,dateFilter:le}),[j,le,Xe]),Oe=M.useCallback(()=>({page:A,pageSize:ce,totalResults:w.length,viewMode:ne,showOnlySaved:K}),[A,w.length,ce,K,ne]),tt=M.useRef(!1),Be=(_,E)=>{rt({open:!0,type:_,message:E})};M.useEffect(()=>{try{const _=localStorage.getItem("lastVisitedJobs");_&&Z(JSON.parse(_));try{localStorage.getItem("email")&&Ne(!0)}catch(E){console.error("Error checking subscription state:",E)}}catch(_){console.error("Error loading data from localStorage:",_)}},[]),M.useEffect(()=>{const E=new URLSearchParams(window.location.search).get("date_filter");E&&E!=="all"&&_e(E)},[]),M.useEffect(()=>{if(!t){ve("❌ Missing API URL for Listing component!"),ke(!1);return}ke(!0),ve(null),(async()=>{try{const E=await fetch(t);if(!E.ok)throw new Error(`API responded with status: ${E.status}`);const J=await E.json();if(!Array.isArray(J))throw new Error("Expected an array but received: "+typeof J);const te=J.map((Me,Ae)=>({...Me,sponsored:Ae%7===0,topTag:sS(Me.title||"")})),ie=Array.from(new Set(te.map(Me=>Me.topTag).filter(Me=>typeof Me=="string"))).slice(0,10);C(ie);const he=vl(te,nt,q,c);k(te),b(he);const ze=Yc(te,r);T(ze)}catch(E){console.error("Error fetching data:",E),ve(`Failed to load data: ${E instanceof Error?E.message:String(E)}`);const J=iE(20),te=vl(J,nt,q,c);k(J),b(te);const ie=Yc(J,r);T(ie)}finally{ke(!1)}})()},[t,c,q,nt]),M.useEffect(()=>{const _=new URLSearchParams(window.location.search),E={};r.forEach(ie=>{const he=_.get(ie);he&&(E[ie]=he)}),N(E);const J=_.get("q")||_.get("searchTerm")||"";J&&U(J);const te={};r.forEach(ie=>{const he=_.get(ie);he&&(te[ie]=he)}),N(te)},[]),M.useEffect(()=>{if(K){const _=v.filter(J=>At.includes(J.id||J.slug||J.link)),E=vl(_,nt,q,c);b(E),L(1)}else Gt()},[]),M.useEffect(()=>{tt.current||Y||!w.length&&!v.length||(X("jobs_listing_viewed",{...Ie(),...Oe()}),tt.current=!0)},[v.length,X,w.length,Ie,Oe,Y]);const Ut=M.useCallback(_=>{const E=Yc(_,r);T(E)},[r]),Gt=M.useCallback(_=>{const E=(_==null?void 0:_.baseItems)??v,J=(_==null?void 0:_.filters)??j,te=(_==null?void 0:_.search)??q,ie=(_==null?void 0:_.dateFilter)??le,he=(_==null?void 0:_.advanced)??Xe;let ze=no(E,J,te,ie,c);ze=yE(ze,he);const Me=vl(ze,nt,te,c);return b(Me),((_==null?void 0:_.resetPage)??!0)&&L(1),((_==null?void 0:_.refreshFiltersData)??!0)&&Ut(Me),Me},[le,j,Xe,v,c,q,nt,Ut]);M.useEffect(()=>{Gt({resetPage:!1,refreshFiltersData:!1})},[nt,Gt]);const Tr=(_,E)=>{const J={...j};E?J[_]=E:delete J[_],K&&me(!1),N(J),Gt({filters:J});const te={...Ie(),filters:J};E?X("jobs_filter_selected",{key:_,value:E,...te}):X("jobs_filter_cleared",{key:_,...te})},pc=()=>{Ne(!0),qe().then(()=>z(!1))},qr=M.useRef(null),Ka=_=>{L(_),X("jobs_listing_page_changed",{page:_,pageSize:ce,totalResults:w.length}),setTimeout(()=>{var E;(E=qr.current)==null||E.scrollIntoView({behavior:"smooth",block:"start"})},100)},Qa=_=>{K&&me(!1),_e(_),Gt({dateFilter:_}),OA(_),X("jobs_date_filter_changed",{dateFilter:_})},sa=_=>{if(U(_),_){const E=v.map(J=>J.title).filter((J,te,ie)=>J&&J.toLowerCase().includes(_.toLowerCase())&&ie.indexOf(J)===te).slice(0,5);W(E)}else W([])},Ra=_=>{if(!_.trim())return;K&&me(!1);const E=[...q,_.trim()];P(E),Gt({search:E}),U(""),X("jobs_search_submitted",{searchKeywords:E,query:_.trim(),...Ie()})},Dr=_=>{const E=q.filter(J=>J!==_);P(E),Gt({search:E}),X("jobs_search_filter_removed",{removedKeyword:_,remainingKeywords:E})},G=()=>{N({}),P([]),me(!1),_e("all"),Ye({...Dj}),Gt({filters:{},search:[],dateFilter:"all",advanced:Dj}),X("jobs_filters_cleared_all",{})},ee=_=>{const E=new Set,J=[];for(const te of _){const ie=`${te.key??""}|${te.value.toLowerCase()}`;E.has(ie)||(E.add(ie),J.push(te))}return J},be=_=>_.replace(/\/+$/,""),qe=async()=>{if(X("jobs_alert_cta_clicked",{searchKeywords:q,query:F.trim()||void 0,...Ie()}),!se)z(!0),X("jobs_subscription_modal_opened",{});else{const _=localStorage.getItem("email"),E=localStorage.getItem("leadId");if(!_||!E){Be("info","Please subscribe first to create alerts.");return}const J="keyword",te=(Ee,lt)=>lt&<.trim()?{key:Ee.toLowerCase(),value:lt.trim()}:null,ie=Object.entries(j).map(([Ee,lt])=>te(Ee,lt)).filter(Ee=>Ee!==null),he=q.map(Ee=>te(J,Ee)).filter(Ee=>Ee!==null),ze=te(J,F),Me=ze?[ze]:[],Ae=ee([...ie,...he,...Me]);if(Ae.length===0){Be("info","No filters/keywords to save.");return}try{const Ee=be(h??"http://localhost:5147"),lt=await fetch(`${Ee}/api/leads/${E}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ae)});if(!lt.ok){let Wt="";try{Wt=await lt.text()}catch{}throw new Error(`${lt.status} ${lt.statusText} ${Wt}`.trim())}Be("success","Alert saved. We’ll notify you about new matching jobs."),U(""),X("jobs_alert_created",{preferences:Ae.filter(Wt=>Wt!==null)})}catch(Ee){console.error("Create alert failed:",Ee),Be("error","Failed to save alert.")}}},We=()=>{ae(!O)},Ta=w.length===0?0:(A-1)*ce+1,ct=Math.min(A*ce,w.length),ft=_=>{pe(_),L(1),X("jobs_listing_items_per_page_changed",{pageSize:_})},er=()=>{de(_=>{const E=_==="grid"?"list":"grid";return X("jobs_listing_viewmode_changed",{viewMode:E}),E})},Ze=(_,E,J="same_tab",te="listing")=>{const ie=_.id||_.slug||_.link;ie&&(Z(he=>{const ze=he.filter(Ae=>(Ae.id||Ae.slug||Ae.link)!==ie),Me=[_,...ze].slice(0,kO);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(Me))}catch(Ae){console.error("Error saving to localStorage:",Ae)}return Me}),X("job_opened",{jobId:ie,slug:_.slug,positionInList:E,openedFrom:te,openedIn:J}))},xt=(_,E)=>{const J=_.id||_.slug||_.link;if(!J)return;const te=At.includes(J);bt(J),X(te?"job_unsaved":"job_saved",{jobId:J,slug:_.slug,positionInList:E})},yc=(_,E,J="external")=>{const te=_.id||_.slug||_.link;te&&X("job_apply_clicked",{jobId:te,slug:_.slug,positionInList:E,applyType:J})},xl=()=>{me(!K)},hj=Math.ceil(w.length/ce),I=w.slice((A-1)*ce,A*ce);return fe&&!v.length?e.jsx("div",{className:"flex-grow p-8",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),e.jsx("p",{className:"mb-4",children:fe}),e.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(nS,{onSearchChange:sa,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:S,generateHref:_=>`/jobs?q=${_.toLowerCase().replace(/\s+/g,"+")}`,onTagClick:m,onTagRemove:x,allowTagRemoval:f}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:v.map(_=>_.title).filter(Boolean),onSelect:_=>{Ra(_)},onTyping:_=>{U(_),sa(_)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:We,children:e.jsx(kr,{size:16,className:"mr-1.5"})})]}),e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(iS,{filters:[...le!=="all"?[{key:"date",label:l,value:le.replace(/_/g," "),onRemove:()=>Qa("all")}]:[],...q.map(_=>({key:"search",label:"",value:_,onRemove:()=>Dr(_)})),...Object.entries(j).map(([_,E])=>({key:_,label:_.replace(/_/g," "),value:E,onRemove:()=>Tr(_,"")}))],onClearAll:G,handleCreateAlert:qe})})]}),s&&e.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:We,"aria-expanded":O,children:[e.jsx(kr,{className:"w-4 h-4 mr-2"}),O?"Close Filters":"Filters"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(HA,{dateFieldLabel:"Date",activeDateFilter:le,onDateFilterChange:Qa,filterKeys:r,searchableFilters:d,filtersData:R,activeFilters:j,handleFilterChange:Tr,toggleSavedJobsFilter:xl,showOnlySaved:K,savedJobs:At}),Y?e.jsx(aS,{}):e.jsxs("div",{className:"lg:gap-6 w-fit",children:[e.jsx(oS,{viewMode:ne,onToggleViewMode:er,selectedItemsPerPage:ce,onItemsPerPageChange:ft,totalCount:w.length,startIndex:Ta,endIndex:ct,title:"Latest Jobs"}),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[K?"Saved Jobs":"Open Positions",le!=="all"&&!K&&e.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",le.replace(/_/g," "),")"]})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("span",{className:"font-semibold text-gray-900",children:w.length})," found"]})]}),e.jsx(gO,{value:nt,options:B,onChange:Ya})]})}),e.jsx(hE,{items:I,cardType:i,viewMode:ne,savedJobs:At,onSaveJob:xt,onViewJob:Ze,onApplyJob:yc,firstItemRef:qr,userAccess:_a}),w.length>0&&e.jsx("div",{className:"mt-6",children:e.jsx(B9,{currentPage:A,totalPages:hj,onPageChange:Ka})})]}),je.length>0&&e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:e.jsx(uE,{jobs:je,onViewJob:Ze})})]}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((V=n==null?void 0:n.sidebar)==null?void 0:V.enabled)&&e.jsxs("div",{className:"sticky top-4",children:[e.jsx(ol,{position:"sidebar",url:n.sidebar.url,link:n.sidebar.link,alt:n.sidebar.alt}),e.jsx(eS,{api_url:h}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((_,E)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+E)}`,alt:`Featured employer ${E+1}`,className:"w-10 h-10 object-contain"})},E))})]})]})})]})]})]}),e.jsx(zA,{activeDateFilter:le,handleDateFilterChange:Qa,filterKeys:r,searchableFilters:d,dateFieldLabel:l,activeFilters:j,handleFilterChange:Tr,toggleSavedJobsFilter:xl,filtersData:R,savedJobs:At,showOnlySaved:K,isMobileFilterOpen:O,toggleMobileFilter:We}),e.jsx(qA,{savedJobsCount:At.length}),e.jsx(RA,{open:Te.open,type:Te.type,message:Te.message,onClose:()=>rt(_=>({..._,open:!1}))}),e.jsx(xO,{open:Re,onOpenChange:z,onSubscriptionSuccess:pc,apiUrl:h})]})};function qL(t=window.location.pathname){const a=t.replace(/^\/+|\/+$/g,"").split("/"),r=a.findIndex(s=>s.toLowerCase()==="jobs");if(r===-1)return null;const n=a[r+1];return n?decodeURIComponent(n):null}function wO(){const[t,a]=M.useState(()=>qL());return M.useEffect(()=>{const r=()=>a(qL());return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),t}function DL(t){window.location.assign(t)}function zL(t){window.history.length>1?window.history.back():window.location.assign(t)}function bO(t){const a=LP,r=t??{};return{id:r.id??a.id,title:r.title??a.title,company:r.company??a.company,companyLogo:r.companyLogo??a.companyLogo,location:r.location??a.location,salary:r.salary??void 0,jobType:r.jobType??a.jobType,experienceLevel:r.experienceLevel??a.experienceLevel,department:r.department??a.department,postedDate:r.postedDate??a.postedDate,applicationDeadline:r.applicationDeadline??void 0,description:r.description??a.description,requirements:Array.isArray(r.requirements)?r.requirements:[],responsibilities:Array.isArray(r.responsibilities)?r.responsibilities:[],benefits:Array.isArray(r.benefits)?r.benefits:[],skills:Array.isArray(r.skills)?r.skills:[],companyDescription:r.companyDescription??"",companySize:r.companySize??void 0,companyWebsite:r.companyWebsite??void 0,contactEmail:r.contactEmail??void 0,contactPhone:r.contactPhone??void 0,isRemote:r.isRemote??!1,isUrgent:r.isUrgent??!1,isFeatured:r.isFeatured??!1,applicationUrl:r.applicationUrl??void 0,viewCount:r.viewCount??void 0,applicantCount:r.applicantCount??void 0}}function MO(t){return!Array.isArray(t)||t.length===0?NP:t.map(a=>({id:a.id??"unknown",title:a.title??"Untitled",company:a.company??"",location:a.location??"",salary:a.salary??void 0,postedDate:a.postedDate??new Date().toISOString().slice(0,10)}))}const LP={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},NP=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],jO=({job:t=LP,similarJobs:a=NP,onSkillClick:r})=>{var L;const n=wO(),[s,i]=M.useState(()=>MO(a)),[c,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(!1),[y,m]=M.useState(!1),{savedJobs:x,toggleJob:f,isSaved:v}=SP(),k=bO(t);M.useEffect(()=>{(async()=>{l(!0);try{if(await new Promise(q=>setTimeout(q,300)),!n)throw new Error("Missing slug in URL.");i(s);const N=JSON.parse(localStorage.getItem("appliedJobs")||"[]");m(N.includes(n))}catch(N){h((N==null?void 0:N.message)||"Failed to load job details")}finally{l(!1)}})()},[n]);const w=()=>{n&&f(n)},b=()=>{if(!n)return;k!=null&&k.applicationUrl?window.open(k.applicationUrl,"_blank","noopener,noreferrer"):p(!0);const j=JSON.parse(localStorage.getItem("appliedJobs")||"[]");j.includes(n)||(j.push(n),localStorage.setItem("appliedJobs",JSON.stringify(j)),m(!0))},S=async()=>{if(navigator.share)try{await navigator.share({title:k==null?void 0:k.title,text:`Check out this job opportunity: ${k==null?void 0:k.title} at ${k==null?void 0:k.company}`,url:window.location.href})}catch(j){console.log("Error sharing:",j)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},C=j=>new Date(j).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),A=j=>{const N=new Date(j),P=Math.abs(new Date().getTime()-N.getTime());return Math.ceil(P/(1e3*60*60*24))};return c?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),e.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):d||!k?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Tt,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:d||"The job you are looking for does not exist."}),e.jsx("button",{onClick:()=>zL("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx("div",{className:"bg-white border-b border-gray-200",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[e.jsxs("button",{onClick:()=>zL("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(Ha,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-start space-x-4",children:[k.companyLogo&&e.jsx("img",{src:k.companyLogo,alt:`${k.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[k.isUrgent&&e.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),k.isFeatured&&e.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),e.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:k.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(pt,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"font-medium",children:k.company})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.location}),k.isRemote&&e.jsx("span",{className:"ml-1",children:"(Remote)"})]}),k.salary&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Lc,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.salary})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"h-4 w-4 mr-1"}),e.jsxs("span",{children:[A(k.postedDate)," days ago"]})]})]})]})]})}),e.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[e.jsxs("button",{onClick:w,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Vo,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save Job"]}),e.jsxs("button",{onClick:S,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[e.jsx(ho,{className:"h-4 w-4 mr-2"}),"Share"]}),e.jsx("button",{onClick:b,disabled:y,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(qt,{className:"h-4 w-4 mr-2"}),"Applied"]}):e.jsxs(e.Fragment,{children:[e.jsx(co,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(at,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),e.jsx("p",{className:"font-medium",children:k.jobType})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(mr,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),e.jsx("p",{className:"font-medium",children:k.experienceLevel})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(jt,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),e.jsx("p",{className:"font-medium",children:k.department})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(oo,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),e.jsx("p",{className:"font-medium text-sm",children:k.applicationDeadline?C(k.applicationDeadline):"Open"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[e.jsxs("span",{children:[k.viewCount," views"]}),e.jsxs("span",{children:[k.applicantCount," applicants"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(vt,{className:"h-4 w-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),e.jsx("div",{className:"prose prose-gray max-w-none",children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:k.description})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),e.jsx("ul",{className:"space-y-3",children:(L=k.responsibilities)==null?void 0:L.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),Array.isArray(k.requirements)?e.jsx("ul",{className:"space-y-3",children:k.requirements.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.requirements})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),Array.isArray(k.skills)?e.jsx("div",{className:"flex flex-wrap gap-2",children:k.skills.map((j,N)=>e.jsx(AC,{name:j,color:"#2563EB",size:"sm",onClick:r?()=>r(j):void 0},`${j}-${N}`))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.skills})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),Array.isArray(k.benefits)?e.jsx("ul",{className:"space-y-3",children:k.benefits.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.benefits})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",k.company]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:k.companyDescription}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.companySize&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("span",{className:"text-gray-600",children:k.companySize})]}),k.companyWebsite&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:k.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),e.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.contactEmail&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(ea,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`mailto:${k.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:k.contactEmail})]}),k.contactPhone&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(xr,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`tel:${k.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:k.contactPhone})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),e.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",k.company," and take your career to the next level in the exciting world of iGaming."]}),e.jsx("button",{onClick:b,disabled:y,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${y?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:y?e.jsxs(e.Fragment,{children:[e.jsx(qt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):e.jsxs(e.Fragment,{children:[e.jsx(co,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!y&&e.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[e.jsxs("button",{onClick:w,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Va,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save"]}),e.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:e.jsx(Ac,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),e.jsx("div",{className:"space-y-4",children:s.map(j=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>DL(`/jobs/${j.id}`),children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:j.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:j.company}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"h-3 w-3 mr-1"}),e.jsx("span",{children:j.location})]}),e.jsxs("span",{children:[A(j.postedDate),"d ago"]})]}),j.salary&&e.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:j.salary})]},j.id))}),e.jsx("button",{onClick:()=>DL("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),u&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),e.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:e.jsx("p",{className:"font-medium",children:k.contactEmail})}),e.jsxs("div",{className:"flex space-x-3",children:[e.jsx("button",{onClick:()=>p(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),e.jsx("button",{onClick:()=>{window.location.href=`mailto:${k.contactEmail}?subject=Application for ${k.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${k.title} position at ${k.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,p(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},CO=()=>e.jsx("div",{children:e.jsx("h2",{children:"Welcome to the Header!"})}),SO=({article:t,isBookmarked:a,onToggleBookmark:r,onShare:n,onOpenArticle:s,layout:i="card",userAccess:c,positionInList:l})=>{const[d,h]=M.useState(!1),u=f=>{const v=new Date(f),w=Math.floor((new Date().getTime()-v.getTime())/(1e3*60*60));return w<1?"Just now":w<24?`${w}h ago`:w<48?"Yesterday":v.toLocaleDateString("en-US",{month:"short",day:"numeric"})},p=f=>f>=1e3?`${(f/1e3).toFixed(1)}k`:f.toString(),y=f=>f.length>1?f[1]:f[0],m=(f,v)=>f.length<=v?f:f.substring(0,v).trim()+"...",x=i==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return e.jsxs("article",{className:`
|
|
7800
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return g.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},JF="DialogDescriptionWarning",XF=({contentRef:t,descriptionId:a})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gP(JF).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(n))},[n,t,a]),null},kP=nP,vP=iP,wP=cP,pS=lP,yS=dP,mS=uP,fS=yP,xS=fP;function K9(t,a){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(a.indexOf(s)>=0)&&(r[s]=t[s]);return r}var YF=["color"],KF=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,YF);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),QF=["color"],bP=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,QF);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),eO=["color"],tO=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,eO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),aO=["color"],rO=M.forwardRef(function(t,a){var r=t.color,n=r===void 0?"currentColor":r,s=K9(t,aO);return M.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:a}),M.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const Ja=kP,nO=vP,sO=wP,MP=g.forwardRef(({className:t,...a},r)=>e.jsx(pS,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));MP.displayName=pS.displayName;const Aa=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(sO,{children:[e.jsx(MP,{}),e.jsxs(yS,{ref:n,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[a,e.jsxs(xS,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(rO,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Aa.displayName=yS.displayName;const ha=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});ha.displayName="DialogHeader";const ta=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});ta.displayName="DialogFooter";const aa=g.forwardRef(({className:t,...a},r)=>e.jsx(mS,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",t),...a}));aa.displayName=mS.displayName;const fo=g.forwardRef(({className:t,...a},r)=>e.jsx(fS,{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));fo.displayName=fS.displayName;var iO="Label",jP=g.forwardRef((t,a)=>e.jsx(So.label,{...t,ref:a,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));jP.displayName=iO;var CP=jP;const oO=D9("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Q=g.forwardRef(({className:t,...a},r)=>e.jsx(CP,{ref:r,className:ue(oO(),t),...a}));Q.displayName=CP.displayName;const cO=1,lO=1e6;let Rj=0;function dO(){return Rj=(Rj+1)%Number.MAX_SAFE_INTEGER,Rj.toString()}const Tj=new Map,RL=t=>{if(Tj.has(t))return;const a=setTimeout(()=>{Tj.delete(t),u9({type:"REMOVE_TOAST",toastId:t})},lO);Tj.set(t,a)},hO=(t,a)=>{switch(a.type){case"ADD_TOAST":return{...t,toasts:[a.toast,...t.toasts].slice(0,cO)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===a.toast.id?{...r,...a.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=a;return r?RL(r):t.toasts.forEach(n=>{RL(n.id)}),{...t,toasts:t.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return a.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==a.toastId)}}},uO=[];let qj={toasts:[]};function u9(t){qj=hO(qj,t),uO.forEach(a=>{a(qj)})}function TL({...t}){const a=dO(),r=s=>u9({type:"UPDATE_TOAST",toast:{...s,id:a}}),n=()=>u9({type:"DISMISS_TOAST",toastId:a});return u9({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:s=>{s||n()}}}),{id:a,dismiss:n,update:r}}const pO=new Set([200,201,202,204]);function yO(t){return t===400?"BAD_REQUEST":t===401?"UNAUTHORIZED":t===403?"FORBIDDEN":t===404?"NOT_FOUND":t===409?"CONFLICT":t===429?"RATE_LIMITED":t>=500?"SERVER":"UNKNOWN"}function mO(t){if(t.friendly)return t.friendly;switch(t.code){case"TIMEOUT":return"The request took too long. Please try again.";case"NETWORK":return"You appear to be offline or the server can’t be reached.";case"RATE_LIMITED":return"Too many requests. Please wait a moment and try again.";case"SERVER":return"The server had an issue. Please try again shortly.";case"CONFLICT":return"This email may already be subscribed.";case"BAD_REQUEST":return"Please check your input and try again.";case"UNAUTHORIZED":return"Please sign in to continue.";default:return"Something went wrong. Please try again."}}async function fO(t,a){const{timeoutMs:r=12e3,...n}=a??{},s=new AbortController,i=setTimeout(()=>s.abort(),r);try{const c=await fetch(t,{...n,signal:s.signal});if(pO.has(c.status)){if(c.status===204)return{ok:!0,data:void 0};const u=await c.text();return{ok:!0,data:u?JSON.parse(u):void 0}}let l=null;try{l=await c.json()}catch{}return{ok:!1,error:{code:yO(c.status),status:c.status,message:(l==null?void 0:l.message)||`${c.status} ${c.statusText}`,details:l}}}catch(c){const l=(c==null?void 0:c.name)==="AbortError";return{ok:!1,error:{code:l?"TIMEOUT":"NETWORK",message:l?"Request aborted by timeout":(c==null?void 0:c.message)||"Network error"}}}finally{clearTimeout(i)}}function xO({open:t,onOpenChange:a,onSubscriptionSuccess:r,searchQuery:n,filters:s,apiUrl:i="http://localhost:5147"}){const[c,l]=M.useState(""),[d,h]=M.useState(!1),[u,p]=M.useState(null),m=async y=>{if(y.preventDefault(),p(null),!c||!c.includes("@")){p("Please enter a valid email address.");return}h(!0);try{const x=await fO(`${i}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"filters_modal",utmCampaign:"jobs_filters",utmMedium:"ui",utmSource:"subscription_modal"}),timeoutMs:1e4});if(!x.ok){p(mO(x.error)),TL({title:"Subscription failed",description:x.error.message});return}localStorage.setItem("leadId",x.data.id),localStorage.setItem("email",c),TL({title:"You're subscribed",description:`We'll notify you at ${c} when new jobs match your criteria.`}),r==null||r(),l("")}finally{h(!1)}};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{className:"sm:max-w-md",children:[e.jsxs(ha,{children:[e.jsxs(aa,{className:"flex items-center gap-2",children:[e.jsx(qo,{className:"h-5 w-5 text-orange-500"}),"Create Job Alert"]}),e.jsx(fo,{children:"Subscribe to get notified when new jobs matching your search criteria are posted."})]}),e.jsxs("form",{onSubmit:m,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"email",type:"email",placeholder:"Enter your email address",value:c,onChange:y=>l(y.target.value),className:"pl-10",required:!0,"aria-invalid":!!u,"aria-describedby":u?"email-error":void 0})]}),u&&e.jsx("p",{id:"email-error",role:"alert",className:"text-sm text-red-600",children:u})]}),n&&e.jsxs("div",{className:"rounded-lg bg-muted p-3 text-sm",children:[e.jsx("p",{className:"font-medium",children:"Alert criteria:"}),e.jsxs("p",{className:"text-muted-foreground",children:['"',n,'"']})]}),e.jsxs(ta,{className:"gap-2 sm:gap-0",children:[e.jsx(D,{type:"button",variant:"outline",onClick:()=>a(!1),disabled:d,children:"Cancel"}),e.jsx(D,{type:"submit",disabled:d,children:d?"Creating Alert...":"Create Alert"})]})]})]})})}function SP(){const t="savedJobs",[a,r]=M.useState([]);return M.useEffect(()=>{try{const i=localStorage.getItem(t);i&&r(JSON.parse(i))}catch(i){console.error("Failed to load saved jobs:",i)}},[]),{savedJobs:a,toggleJob:i=>{r(c=>{const d=c.includes(i)?c.filter(h=>h!==i):[...c,i];try{localStorage.setItem(t,JSON.stringify(d))}catch(h){console.error("Failed to persist saved jobs:",h)}return d})},isSaved:i=>i?a.includes(i):!1}}const gO=({value:t,options:a,onChange:r})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Order by"}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{"aria-label":"Order results",value:t,onChange:n=>r(n.target.value),className:"block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 pr-9 text-sm text-gray-700 shadow-sm focus:border-primary-500 focus:outline-none focus:ring-2 focus:ring-primary-100",children:a.map(n=>e.jsx("option",{value:n.value,children:n.label},n.value))}),e.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-gray-400",children:"▼"})]})]}),kO=6,Dj={jobTypes:[],experienceLevels:[],country:"",city:"",location:"",minSalary:"",maxSalary:"",industry:""},vO=({apiUrl:t,itemsPerPage:a=12,filterKeys:r,banner:n,enableMobileFilter:s=!0,cardType:i,dateField:c="created_at",dateFieldLabel:l="Published",searchableFilters:d=["companies"],notification_url:h="http://localhost:5147",userAccess:u,onEmitEvent:p,eventContext:m,onPopularTagClick:y,onPopularTagRemove:x,allowPopularTagRemoval:f=!1})=>{var V;const[v,k]=M.useState([]),[w,b]=M.useState([]),[S,C]=M.useState([]),[A,L]=M.useState(1),[j,N]=M.useState({}),[q,P]=M.useState([]),[T,R]=M.useState({}),[E,$]=M.useState(""),[B,U]=M.useState([]),[O,ae]=M.useState(!1),[ce,pe]=M.useState(a),[ne,de]=M.useState("grid"),[K,me]=M.useState(!1),[je,Z]=M.useState([]),[Y,ke]=M.useState(!0),[fe,ve]=M.useState(null),[le,_e]=M.useState("all"),[Re,z]=M.useState(!1),[se,Ne]=M.useState(!1),[Xe,Ye]=M.useState({...Dj}),[Te,rt]=M.useState({open:!1,type:"info",message:""}),[nt,Ya]=M.useState("date_desc"),{savedJobs:At,toggleJob:bt}=SP(),_a=V9(u),H=M.useMemo(()=>({component:"Listing",...m??{}}),[m]),G=M.useMemo(()=>[{value:"relevance",label:"Best match (relevance)"},{value:"date_desc",label:`${l} (newest)`},{value:"date_asc",label:`${l} (oldest)`},{value:"views_desc",label:"Most viewed"},{value:"views_asc",label:"Least viewed"},{value:"title_asc",label:"Title A → Z"}],[l]),X=M.useCallback((_,F)=>{p&&p({domain:"jobs",name:_,payload:F,timestamp:new Date().toISOString(),context:H})},[H,p]),Ie=M.useCallback(()=>({filters:{...j},advancedFilters:Xe,dateFilter:le}),[j,le,Xe]),Oe=M.useCallback(()=>({page:A,pageSize:ce,totalResults:w.length,viewMode:ne,showOnlySaved:K}),[A,w.length,ce,K,ne]),tt=M.useRef(!1),Be=(_,F)=>{rt({open:!0,type:_,message:F})};M.useEffect(()=>{try{const _=localStorage.getItem("lastVisitedJobs");_&&Z(JSON.parse(_));try{localStorage.getItem("email")&&Ne(!0)}catch(F){console.error("Error checking subscription state:",F)}}catch(_){console.error("Error loading data from localStorage:",_)}},[]),M.useEffect(()=>{const F=new URLSearchParams(window.location.search).get("date_filter");F&&F!=="all"&&_e(F)},[]),M.useEffect(()=>{if(!t){ve("❌ Missing API URL for Listing component!"),ke(!1);return}ke(!0),ve(null),(async()=>{try{const F=await fetch(t);if(!F.ok)throw new Error(`API responded with status: ${F.status}`);const J=await F.json();if(!Array.isArray(J))throw new Error("Expected an array but received: "+typeof J);const te=J.map((Me,Ae)=>({...Me,sponsored:Ae%7===0,topTag:sS(Me.title||"")})),ie=Array.from(new Set(te.map(Me=>Me.topTag).filter(Me=>typeof Me=="string"))).slice(0,10);C(ie);const he=vl(te,nt,q,c);k(te),b(he);const ze=Yc(te,r);R(ze)}catch(F){console.error("Error fetching data:",F),ve(`Failed to load data: ${F instanceof Error?F.message:String(F)}`);const J=iE(20),te=vl(J,nt,q,c);k(J),b(te);const ie=Yc(J,r);R(ie)}finally{ke(!1)}})()},[t,c,q,nt]),M.useEffect(()=>{const _=new URLSearchParams(window.location.search),F={};r.forEach(ie=>{const he=_.get(ie);he&&(F[ie]=he)}),N(F);const J=_.get("q")||_.get("searchTerm")||"";J&&$(J);const te={};r.forEach(ie=>{const he=_.get(ie);he&&(te[ie]=he)}),N(te)},[]),M.useEffect(()=>{if(K){const _=v.filter(J=>At.includes(J.id||J.slug||J.link)),F=vl(_,nt,q,c);b(F),L(1)}else Gt()},[]),M.useEffect(()=>{tt.current||Y||!w.length&&!v.length||(X("jobs_listing_viewed",{...Ie(),...Oe()}),tt.current=!0)},[v.length,X,w.length,Ie,Oe,Y]);const Ut=M.useCallback(_=>{const F=Yc(_,r);R(F)},[r]),Gt=M.useCallback(_=>{const F=(_==null?void 0:_.baseItems)??v,J=(_==null?void 0:_.filters)??j,te=(_==null?void 0:_.search)??q,ie=(_==null?void 0:_.dateFilter)??le,he=(_==null?void 0:_.advanced)??Xe;let ze=no(F,J,te,ie,c);ze=yE(ze,he);const Me=vl(ze,nt,te,c);return b(Me),((_==null?void 0:_.resetPage)??!0)&&L(1),((_==null?void 0:_.refreshFiltersData)??!0)&&Ut(Me),Me},[le,j,Xe,v,c,q,nt,Ut]);M.useEffect(()=>{Gt({resetPage:!1,refreshFiltersData:!1})},[nt,Gt]);const Tr=(_,F)=>{const J={...j};F?J[_]=F:delete J[_],K&&me(!1),N(J),Gt({filters:J});const te={...Ie(),filters:J};F?X("jobs_filter_selected",{key:_,value:F,...te}):X("jobs_filter_cleared",{key:_,...te})},pc=()=>{Ne(!0),qe().then(()=>z(!1))},qr=M.useRef(null),Ka=_=>{L(_),X("jobs_listing_page_changed",{page:_,pageSize:ce,totalResults:w.length}),setTimeout(()=>{var F;(F=qr.current)==null||F.scrollIntoView({behavior:"smooth",block:"start"})},100)},Qa=_=>{K&&me(!1),_e(_),Gt({dateFilter:_}),OA(_),X("jobs_date_filter_changed",{dateFilter:_})},sa=_=>{if($(_),_){const F=v.map(J=>J.title).filter((J,te,ie)=>J&&J.toLowerCase().includes(_.toLowerCase())&&ie.indexOf(J)===te).slice(0,5);U(F)}else U([])},Ra=_=>{if(!_.trim())return;K&&me(!1);const F=[...q,_.trim()];P(F),Gt({search:F}),$(""),X("jobs_search_submitted",{searchKeywords:F,query:_.trim(),...Ie()})},Dr=_=>{const F=q.filter(J=>J!==_);P(F),Gt({search:F}),X("jobs_search_filter_removed",{removedKeyword:_,remainingKeywords:F})},W=()=>{N({}),P([]),me(!1),_e("all"),Ye({...Dj}),Gt({filters:{},search:[],dateFilter:"all",advanced:Dj}),X("jobs_filters_cleared_all",{})},ee=_=>{const F=new Set,J=[];for(const te of _){const ie=`${te.key??""}|${te.value.toLowerCase()}`;F.has(ie)||(F.add(ie),J.push(te))}return J},be=_=>_.replace(/\/+$/,""),qe=async()=>{if(X("jobs_alert_cta_clicked",{searchKeywords:q,query:E.trim()||void 0,...Ie()}),!se)z(!0),X("jobs_subscription_modal_opened",{});else{const _=localStorage.getItem("email"),F=localStorage.getItem("leadId");if(!_||!F){Be("info","Please subscribe first to create alerts.");return}const J="keyword",te=(Ee,lt)=>lt&<.trim()?{key:Ee.toLowerCase(),value:lt.trim()}:null,ie=Object.entries(j).map(([Ee,lt])=>te(Ee,lt)).filter(Ee=>Ee!==null),he=q.map(Ee=>te(J,Ee)).filter(Ee=>Ee!==null),ze=te(J,E),Me=ze?[ze]:[],Ae=ee([...ie,...he,...Me]);if(Ae.length===0){Be("info","No filters/keywords to save.");return}try{const Ee=be(h??"http://localhost:5147"),lt=await fetch(`${Ee}/api/leads/${F}/preferences/bulk`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ae)});if(!lt.ok){let Wt="";try{Wt=await lt.text()}catch{}throw new Error(`${lt.status} ${lt.statusText} ${Wt}`.trim())}Be("success","Alert saved. We’ll notify you about new matching jobs."),$(""),X("jobs_alert_created",{preferences:Ae.filter(Wt=>Wt!==null)})}catch(Ee){console.error("Create alert failed:",Ee),Be("error","Failed to save alert.")}}},We=()=>{ae(!O)},Ta=w.length===0?0:(A-1)*ce+1,ct=Math.min(A*ce,w.length),ft=_=>{pe(_),L(1),X("jobs_listing_items_per_page_changed",{pageSize:_})},er=()=>{de(_=>{const F=_==="grid"?"list":"grid";return X("jobs_listing_viewmode_changed",{viewMode:F}),F})},Ze=(_,F,J="same_tab",te="listing")=>{const ie=_.id||_.slug||_.link;ie&&(Z(he=>{const ze=he.filter(Ae=>(Ae.id||Ae.slug||Ae.link)!==ie),Me=[_,...ze].slice(0,kO);try{localStorage.setItem("lastVisitedJobs",JSON.stringify(Me))}catch(Ae){console.error("Error saving to localStorage:",Ae)}return Me}),X("job_opened",{jobId:ie,slug:_.slug,positionInList:F,openedFrom:te,openedIn:J}))},xt=(_,F)=>{const J=_.id||_.slug||_.link;if(!J)return;const te=At.includes(J);bt(J),X(te?"job_unsaved":"job_saved",{jobId:J,slug:_.slug,positionInList:F})},yc=(_,F,J="external")=>{const te=_.id||_.slug||_.link;te&&X("job_apply_clicked",{jobId:te,slug:_.slug,positionInList:F,applyType:J})},xl=()=>{me(!K)},hj=Math.ceil(w.length/ce),I=w.slice((A-1)*ce,A*ce);return fe&&!v.length?e.jsx("div",{className:"flex-grow p-8",children:e.jsx("div",{className:"max-w-7xl mx-auto",children:e.jsxs("div",{className:"bg-red-50 border border-red-200 text-red-800 rounded-lg p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Error Loading Jobs"}),e.jsx("p",{className:"mb-4",children:fe}),e.jsx("button",{onClick:()=>window.location.reload(),className:"bg-red-100 hover:bg-red-200 text-red-800 font-medium py-2 px-4 rounded",children:"Retry"})]})})}):e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(nS,{onSearchChange:sa,searchPlaceholder:"Search jobs, companies, or keywords...",title:"Job Listings",description:"",popularTags:S,generateHref:_=>`/jobs?q=${_.toLowerCase().replace(/\s+/g,"+")}`,onTagClick:y,onTagRemove:x,allowTagRemoval:f}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:v.map(_=>_.title).filter(Boolean),onSelect:_=>{Ra(_)},onTyping:_=>{$(_),sa(_)},placeholder:"Search for jobs, companies, or keywords...",className:"w-full",showSubmitButton:!0}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:We,children:e.jsx(kr,{size:16,className:"mr-1.5"})})]}),e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(iS,{filters:[...le!=="all"?[{key:"date",label:l,value:le.replace(/_/g," "),onRemove:()=>Qa("all")}]:[],...q.map(_=>({key:"search",label:"",value:_,onRemove:()=>Dr(_)})),...Object.entries(j).map(([_,F])=>({key:_,label:_.replace(/_/g," "),value:F,onRemove:()=>Tr(_,"")}))],onClearAll:W,handleCreateAlert:qe})})]}),s&&e.jsxs("button",{className:"md:hidden w-full mb-6 px-4 py-3 bg-yellow-600 text-white rounded-lg flex items-center justify-center",onClick:We,"aria-expanded":O,children:[e.jsx(kr,{className:"w-4 h-4 mr-2"}),O?"Close Filters":"Filters"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(HA,{dateFieldLabel:"Date",activeDateFilter:le,onDateFilterChange:Qa,filterKeys:r,searchableFilters:d,filtersData:T,activeFilters:j,handleFilterChange:Tr,toggleSavedJobsFilter:xl,showOnlySaved:K,savedJobs:At}),Y?e.jsx(aS,{}):e.jsxs("div",{className:"lg:gap-6 w-fit",children:[e.jsx(oS,{viewMode:ne,onToggleViewMode:er,selectedItemsPerPage:ce,onItemsPerPageChange:ft,totalCount:w.length,startIndex:Ta,endIndex:ct,title:"Latest Jobs"}),e.jsxs("div",{className:"",children:[e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[K?"Saved Jobs":"Open Positions",le!=="all"&&!K&&e.jsxs("span",{className:"text-sm font-normal text-gray-500 ml-2",children:["(",le.replace(/_/g," "),")"]})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:[e.jsx("span",{className:"font-semibold text-gray-900",children:w.length})," found"]})]}),e.jsx(gO,{value:nt,options:G,onChange:Ya})]})}),e.jsx(hE,{items:I,cardType:i,viewMode:ne,savedJobs:At,onSaveJob:xt,onViewJob:Ze,onApplyJob:yc,firstItemRef:qr,userAccess:_a}),w.length>0&&e.jsx("div",{className:"mt-6",children:e.jsx(B9,{currentPage:A,totalPages:hj,onPageChange:Ka})})]}),je.length>0&&e.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:e.jsx(uE,{jobs:je,onViewJob:Ze})})]}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:((V=n==null?void 0:n.sidebar)==null?void 0:V.enabled)&&e.jsxs("div",{className:"sticky top-4",children:[e.jsx(ol,{position:"sidebar",url:n.sidebar.url,link:n.sidebar.link,alt:n.sidebar.alt}),e.jsx(eS,{api_url:h}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((_,F)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+F)}`,alt:`Featured employer ${F+1}`,className:"w-10 h-10 object-contain"})},F))})]})]})})]})]})]}),e.jsx(zA,{activeDateFilter:le,handleDateFilterChange:Qa,filterKeys:r,searchableFilters:d,dateFieldLabel:l,activeFilters:j,handleFilterChange:Tr,toggleSavedJobsFilter:xl,filtersData:T,savedJobs:At,showOnlySaved:K,isMobileFilterOpen:O,toggleMobileFilter:We}),e.jsx(qA,{savedJobsCount:At.length}),e.jsx(RA,{open:Te.open,type:Te.type,message:Te.message,onClose:()=>rt(_=>({..._,open:!1}))}),e.jsx(xO,{open:Re,onOpenChange:z,onSubscriptionSuccess:pc,apiUrl:h})]})};function qL(t=window.location.pathname){const a=t.replace(/^\/+|\/+$/g,"").split("/"),r=a.findIndex(s=>s.toLowerCase()==="jobs");if(r===-1)return null;const n=a[r+1];return n?decodeURIComponent(n):null}function wO(){const[t,a]=M.useState(()=>qL());return M.useEffect(()=>{const r=()=>a(qL());return window.addEventListener("popstate",r),()=>window.removeEventListener("popstate",r)},[]),t}function DL(t){window.location.assign(t)}function zL(t){window.history.length>1?window.history.back():window.location.assign(t)}function bO(t){const a=LP,r=t??{};return{id:r.id??a.id,title:r.title??a.title,company:r.company??a.company,companyLogo:r.companyLogo??a.companyLogo,location:r.location??a.location,salary:r.salary??void 0,jobType:r.jobType??a.jobType,experienceLevel:r.experienceLevel??a.experienceLevel,department:r.department??a.department,postedDate:r.postedDate??a.postedDate,applicationDeadline:r.applicationDeadline??void 0,description:r.description??a.description,requirements:Array.isArray(r.requirements)?r.requirements:[],responsibilities:Array.isArray(r.responsibilities)?r.responsibilities:[],benefits:Array.isArray(r.benefits)?r.benefits:[],skills:Array.isArray(r.skills)?r.skills:[],companyDescription:r.companyDescription??"",companySize:r.companySize??void 0,companyWebsite:r.companyWebsite??void 0,contactEmail:r.contactEmail??void 0,contactPhone:r.contactPhone??void 0,isRemote:r.isRemote??!1,isUrgent:r.isUrgent??!1,isFeatured:r.isFeatured??!1,applicationUrl:r.applicationUrl??void 0,viewCount:r.viewCount??void 0,applicantCount:r.applicantCount??void 0}}function MO(t){return!Array.isArray(t)||t.length===0?NP:t.map(a=>({id:a.id??"unknown",title:a.title??"Untitled",company:a.company??"",location:a.location??"",salary:a.salary??void 0,postedDate:a.postedDate??new Date().toISOString().slice(0,10)}))}const LP={id:"1",title:"Senior Game Developer",company:"Wazdan",companyLogo:"https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=100",location:"Malta",salary:"€80,000 - €120,000",jobType:"Full-time",experienceLevel:"Senior Level",department:"Engineering",postedDate:"2025-01-15",applicationDeadline:"2025-02-15",description:"We are seeking a talented Senior Game Developer to join our innovative team at Wazdan...",requirements:["5+ years of experience in game development","Strong proficiency in C# and Unity","Experience with HTML5 and JavaScript","Knowledge of casino game mechanics","Understanding of RNG and game mathematics","Experience with version control systems (Git)","Strong problem-solving skills","Excellent communication skills in English"],responsibilities:["Design and develop high-quality casino games","Implement game features and mechanics","Optimize game performance across multiple platforms","Collaborate with artists and designers on game assets","Write clean, maintainable, and well-documented code","Participate in code reviews and technical discussions","Debug and resolve technical issues","Stay updated with industry trends and technologies"],benefits:["Competitive salary and performance bonuses","Health insurance coverage","Flexible working hours","Remote work options","Professional development opportunities","25 days paid vacation","Modern office in Malta","Team building events and activities"],skills:["Unity","C#","JavaScript","HTML5","CSS3","Git","Agile","Game Design"],companyDescription:"Wazdan is a leading provider of innovative casino games...",companySize:"100-200 employees",companyWebsite:"https://wazdan.com",contactEmail:"careers@wazdan.com",contactPhone:"+356 2123 4567",isRemote:!1,isUrgent:!0,isFeatured:!0,applicationUrl:"https://wazdan.com/careers/apply",viewCount:1247,applicantCount:23},NP=[{id:"2",title:"Frontend Game Developer",company:"Pragmatic Play",location:"Malta",salary:"€60,000 - €80,000",postedDate:"2025-01-10"},{id:"3",title:"Unity Developer",company:"Evolution Gaming",location:"Remote",salary:"€70,000 - €90,000",postedDate:"2025-01-12"},{id:"4",title:"Game Developer",company:"NetEnt",location:"Stockholm",salary:"€65,000 - €85,000",postedDate:"2025-01-08"}],jO=({job:t=LP,similarJobs:a=NP,onSkillClick:r})=>{var L;const n=wO(),[s,i]=M.useState(()=>MO(a)),[c,l]=M.useState(!1),[d,h]=M.useState(null),[u,p]=M.useState(!1),[m,y]=M.useState(!1),{savedJobs:x,toggleJob:f,isSaved:v}=SP(),k=bO(t);M.useEffect(()=>{(async()=>{l(!0);try{if(await new Promise(q=>setTimeout(q,300)),!n)throw new Error("Missing slug in URL.");i(s);const N=JSON.parse(localStorage.getItem("appliedJobs")||"[]");y(N.includes(n))}catch(N){h((N==null?void 0:N.message)||"Failed to load job details")}finally{l(!1)}})()},[n]);const w=()=>{n&&f(n)},b=()=>{if(!n)return;k!=null&&k.applicationUrl?window.open(k.applicationUrl,"_blank","noopener,noreferrer"):p(!0);const j=JSON.parse(localStorage.getItem("appliedJobs")||"[]");j.includes(n)||(j.push(n),localStorage.setItem("appliedJobs",JSON.stringify(j)),y(!0))},S=async()=>{if(navigator.share)try{await navigator.share({title:k==null?void 0:k.title,text:`Check out this job opportunity: ${k==null?void 0:k.title} at ${k==null?void 0:k.company}`,url:window.location.href})}catch(j){console.log("Error sharing:",j)}else navigator.clipboard.writeText(window.location.href),alert("Job URL copied to clipboard!")},C=j=>new Date(j).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),A=j=>{const N=new Date(j),P=Math.abs(new Date().getTime()-N.getTime());return Math.ceil(P/(1e3*60*60*24))};return c?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),e.jsx("p",{className:"mt-4 text-gray-600",children:"Loading job details..."})]})}):d||!k?e.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Tt,{className:"h-12 w-12 text-red-500 mx-auto mb-4"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Job Not Found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:d||"The job you are looking for does not exist."}),e.jsx("button",{onClick:()=>zL("/jobs"),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Back to Jobs"})]})}):e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx("div",{className:"bg-white border-b border-gray-200",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:[e.jsxs("button",{onClick:()=>zL("/jobs"),className:"flex items-center text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(Ha,{className:"h-4 w-4 mr-2"}),"Back to Jobs"]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-start lg:justify-between",children:[e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"flex items-start space-x-4",children:[k.companyLogo&&e.jsx("img",{src:k.companyLogo,alt:`${k.company} logo`,className:"w-16 h-16 rounded-lg object-cover border border-gray-200"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[k.isUrgent&&e.jsx("span",{className:"bg-red-100 text-red-800 text-xs font-medium px-2 py-1 rounded-full",children:"Urgent"}),k.isFeatured&&e.jsx("span",{className:"bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded-full",children:"Featured"})]}),e.jsx("h1",{className:"text-2xl lg:text-3xl font-bold text-gray-900 mb-2",children:k.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-gray-600",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(pt,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"font-medium",children:k.company})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.location}),k.isRemote&&e.jsx("span",{className:"ml-1",children:"(Remote)"})]}),k.salary&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Lc,{className:"h-4 w-4 mr-1"}),e.jsx("span",{children:k.salary})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"h-4 w-4 mr-1"}),e.jsxs("span",{children:[A(k.postedDate)," days ago"]})]})]})]})]})}),e.jsxs("div",{className:"flex items-center space-x-3 mt-4 lg:mt-0",children:[e.jsxs("button",{onClick:w,className:`flex items-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Vo,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save Job"]}),e.jsxs("button",{onClick:S,className:"flex items-center px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:[e.jsx(ho,{className:"h-4 w-4 mr-2"}),"Share"]}),e.jsx("button",{onClick:b,disabled:m,className:`flex items-center px-6 py-2 rounded-lg font-medium transition-colors ${m?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:m?e.jsxs(e.Fragment,{children:[e.jsx(qt,{className:"h-4 w-4 mr-2"}),"Applied"]}):e.jsxs(e.Fragment,{children:[e.jsx(co,{className:"h-4 w-4 mr-2"}),"Apply Now"]})})]})]})]})}),e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(at,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Job Type"}),e.jsx("p",{className:"font-medium",children:k.jobType})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(mr,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Experience"}),e.jsx("p",{className:"font-medium",children:k.experienceLevel})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(jt,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Department"}),e.jsx("p",{className:"font-medium",children:k.department})]}),e.jsxs("div",{className:"text-center p-4 bg-gray-50 rounded-lg",children:[e.jsx(oo,{className:"h-6 w-6 text-blue-600 mx-auto mb-2"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Deadline"}),e.jsx("p",{className:"font-medium text-sm",children:k.applicationDeadline?C(k.applicationDeadline):"Open"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-200",children:[e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-gray-600",children:[e.jsxs("span",{children:[k.viewCount," views"]}),e.jsxs("span",{children:[k.applicantCount," applicants"]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(vt,{className:"h-4 w-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"text-sm text-gray-600",children:"4.8 company rating"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Job Description"}),e.jsx("div",{className:"prose prose-gray max-w-none",children:e.jsx("p",{className:"text-gray-700 leading-relaxed whitespace-pre-line",children:k.description})})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Key Responsibilities"}),e.jsx("ul",{className:"space-y-3",children:(L=k.responsibilities)==null?void 0:L.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Requirements"}),Array.isArray(k.requirements)?e.jsx("ul",{className:"space-y-3",children:k.requirements.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.requirements})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Required Skills"}),Array.isArray(k.skills)?e.jsx("div",{className:"flex flex-wrap gap-2",children:k.skills.map((j,N)=>e.jsx(AC,{name:j,color:"#2563EB",size:"sm",onClick:r?()=>r(j):void 0},`${j}-${N}`))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.skills})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Benefits & Perks"}),Array.isArray(k.benefits)?e.jsx("ul",{className:"space-y-3",children:k.benefits.map((j,N)=>e.jsxs("li",{className:"flex items-start",children:[e.jsx(qt,{className:"h-5 w-5 text-green-500 mr-3 mt-0.5 flex-shrink-0"}),e.jsx("span",{className:"text-gray-700",children:j})]},N))}):e.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:k.benefits})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:["About ",k.company]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:k.companyDescription}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.companySize&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("span",{className:"text-gray-600",children:k.companySize})]}),k.companyWebsite&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(Qt,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:k.companyWebsite,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800",children:"Visit Website"})]})]}),e.jsxs("div",{className:"pt-4 border-t border-gray-200",children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Contact Information"}),e.jsxs("div",{className:"space-y-2 text-sm",children:[k.contactEmail&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(ea,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`mailto:${k.contactEmail}`,className:"text-blue-600 hover:text-blue-800",children:k.contactEmail})]}),k.contactPhone&&e.jsxs("div",{className:"flex items-center",children:[e.jsx(xr,{className:"h-4 w-4 text-gray-400 mr-2"}),e.jsx("a",{href:`tel:${k.contactPhone}`,className:"text-blue-600 hover:text-blue-800",children:k.contactPhone})]})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Ready to Apply?"}),e.jsxs("p",{className:"text-gray-600 text-sm mb-4",children:["Join ",k.company," and take your career to the next level in the exciting world of iGaming."]}),e.jsx("button",{onClick:b,disabled:m,className:`w-full flex items-center justify-center px-6 py-3 rounded-lg font-medium transition-colors ${m?"bg-green-100 text-green-800 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:m?e.jsxs(e.Fragment,{children:[e.jsx(qt,{className:"h-5 w-5 mr-2"}),"Application Submitted"]}):e.jsxs(e.Fragment,{children:[e.jsx(co,{className:"h-5 w-5 mr-2"}),"Apply for this Position"]})}),!m&&e.jsxs("div",{className:"mt-4 flex items-center space-x-2",children:[e.jsxs("button",{onClick:w,className:`flex-1 flex items-center justify-center px-4 py-2 rounded-lg border transition-colors ${v(k.id)?"bg-blue-50 border-blue-200 text-blue-700":"bg-white border-gray-300 text-gray-700 hover:bg-gray-50"}`,children:[e.jsx(Va,{className:`h-4 w-4 mr-2 ${v(k.id)?"fill-current":""}`}),v(k.id)?"Saved":"Save"]}),e.jsx("button",{className:"flex items-center justify-center p-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:e.jsx(Ac,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Similar Jobs"}),e.jsx("div",{className:"space-y-4",children:s.map(j=>e.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 hover:bg-gray-50 cursor-pointer transition-colors",onClick:()=>DL(`/jobs/${j.id}`),children:[e.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:j.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:j.company}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(it,{className:"h-3 w-3 mr-1"}),e.jsx("span",{children:j.location})]}),e.jsxs("span",{children:[A(j.postedDate),"d ago"]})]}),j.salary&&e.jsx("p",{className:"text-sm font-medium text-blue-600 mt-2",children:j.salary})]},j.id))}),e.jsx("button",{onClick:()=>DL("/jobs"),className:"w-full mt-4 text-center text-blue-600 hover:text-blue-800 text-sm font-medium",children:"View All Jobs"})]})]})]})}),u&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:e.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Apply for this Position"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"To apply for this position, please send your CV and cover letter to:"}),e.jsx("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:e.jsx("p",{className:"font-medium",children:k.contactEmail})}),e.jsxs("div",{className:"flex space-x-3",children:[e.jsx("button",{onClick:()=>p(!1),className:"flex-1 px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",children:"Close"}),e.jsx("button",{onClick:()=>{window.location.href=`mailto:${k.contactEmail}?subject=Application for ${k.title}&body=Dear Hiring Manager,%0D%0A%0D%0AI am interested in applying for the ${k.title} position at ${k.company}.%0D%0A%0D%0APlease find my CV attached.%0D%0A%0D%0ABest regards`,p(!1)},className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Send Email"})]})]})})]})},CO=()=>e.jsx("div",{children:e.jsx("h2",{children:"Welcome to the Header!"})}),SO=({article:t,isBookmarked:a,onToggleBookmark:r,onShare:n,onOpenArticle:s,layout:i="card",userAccess:c,positionInList:l})=>{const[d,h]=M.useState(!1),u=f=>{const v=new Date(f),w=Math.floor((new Date().getTime()-v.getTime())/(1e3*60*60));return w<1?"Just now":w<24?`${w}h ago`:w<48?"Yesterday":v.toLocaleDateString("en-US",{month:"short",day:"numeric"})},p=f=>f>=1e3?`${(f/1e3).toFixed(1)}k`:f.toString(),m=f=>f.length>1?f[1]:f[0],y=(f,v)=>f.length<=v?f:f.substring(0,v).trim()+"...",x=i==="grid"?"flex flex-col":"flex flex-col md:flex-row md:items-center";return e.jsxs("article",{className:`
|
|
7801
7801
|
news-grid bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden
|
|
7802
7802
|
hover:shadow-md transition-shadow duration-300 ${x}
|
|
7803
|
-
`,children:[e.jsxs("div",{className:`relative ${i==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[e.jsx("img",{src:t.image||"/placeholder.svg?height=200&width=400&text=News",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${d?"opacity-100":"opacity-0"} ${i==="list"?"md:h-32":""}`,onLoad:()=>h(!0)}),!d&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBreaking&&e.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),t.isTrending&&e.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[e.jsx(ja,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),e.jsx("button",{onClick:()=>r(t._id,l),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${c.allowSaving?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove bookmark":"Add bookmark",disabled:!c.allowSaving,title:c.allowSaving?void 0:"Sign in to save articles",children:e.jsx(Va,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:`p-4 ${i==="list"?"md:w-2/3":""}`,children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:t.categories.slice(0,2).map((f,v)=>e.jsx("a",{href:`?category=${f}`,children:e.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:f},v)}))}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:c.maskExternalLinks?e.jsx("button",{className:"text-left w-full text-gray-700 cursor-not-allowed","aria-label":"Sign in to view article",title:"Sign in to view external article",children:t.title}):e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:t.title})}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:m(t.content,i==="list"?150:200)}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxs("span",{children:["By ",y(t.author)]}),e.jsx("span",{children:t.company})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"w-4 h-4 mr-1"}),e.jsxs("span",{children:[t.readTime,"m read"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Oo,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:p(t.viewCount||0)})]})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.tags.slice(0,3).map((f,v)=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",f]},v))}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-500",children:u(t.date)}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:tS[c.status]}),c.note&&e.jsx("span",{className:"text-xs text-gray-500",children:c.note})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>n(t,l),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:e.jsx(ho,{className:"w-4 h-4"})}),c.maskExternalLinks?e.jsx("button",{className:"flex items-center px-3 py-1.5 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to read",children:"Sign in to read"}):e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:["Read More",e.jsx(co,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},LO=({apiUrl:t="http://localhost:5000/api/news",filterKeys:a=["categories","author","company"],searchableFilters:r=["company","author","categories"],defaultFilters:n={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:s="latest",bookmarkStorageKey:i="news-bookmarks",itemsPerPage:c=12,dateFieldLabel:l="Published",userAccess:d,onEmitEvent:h,eventContext:u})=>{const[p,y]=M.useState([]),[m,x]=M.useState([]),[f,v]=M.useState([]),[k,w]=M.useState({}),[b,S]=M.useState(""),[C,A]=M.useState({}),[L,j]=M.useState(!1),[N,q]=M.useState(c),[P,R]=M.useState(new Set),[T,F]=M.useState(s),[U,$]=M.useState("grid"),[W,O]=M.useState(1),[ae,ce]=M.useState([]),[pe,ne]=M.useState(!1),[de,K]=M.useState([]),[me,je]=M.useState([]),[Z,Y]=M.useState(!0),[ke,fe]=M.useState("all"),[ve,le]=M.useState(""),_e=G=>G.trim().toLowerCase().replace(/\s+/g,"-"),[Re,z]=M.useState(n),[se,Ne]=M.useState(null),Xe=V9(d),Ye=M.useMemo(()=>({component:"NewsPage",...u??{}}),[u]),Te=M.useCallback((G,ee)=>{h&&h({domain:"news",name:G,payload:ee,timestamp:new Date().toISOString(),context:Ye})},[Ye,h]),rt=M.useCallback(()=>({filters:{...C},categories:Re.categories.length?Re.categories:C.categories?[C.categories]:[],tags:Re.tags,authors:Re.authors.length?Re.authors:C.author?[C.author]:[],companies:Re.companies.length?Re.companies:C.company?[C.company]:[],dateFilter:ke,readTimeRange:Re.readTime}),[ke,C,Re]),nt=M.useCallback(()=>({page:W,pageSize:N,totalResults:m.length,sortBy:T,viewMode:U}),[W,m.length,N,T,U]),Ya=M.useRef(!1);M.useEffect(()=>{const G=localStorage.getItem(i);G&&R(new Set(JSON.parse(G)))},[i]),M.useEffect(()=>{const G=new URLSearchParams(window.location.search),ee={};a.forEach(ct=>{const ft=G.get(ct);ft&&(ee[ct]=ft)}),A(ee);const be=G.get("q"),qe=G.get("categories");let We=[...p];if(be&&(We=We.filter(ct=>ct.title.toLowerCase().includes(be.toLowerCase())),S(be),At(be)),qe){const ct=qe.trim().toLowerCase().replace(/\s+/g,"-");z(ft=>({...ft,categories:[ct]})),We=We.filter(ft=>ft.categories.some(er=>_e(er)===ct))}v(We);const Ta={};a.forEach(ct=>{const ft=G.get(ct);ft&&(Ta[ct]=ft)}),A(Ta)},[p]),M.useEffect(()=>{const ee=new URLSearchParams(window.location.search).get("date_filter");if(ee&&ee!=="all"){fe(ee);const be=no(p,C,de,ee);x(be),O(1),bt(be)}},[p]);const At=G=>{if(!G.trim())return;const ee=[...de,G.trim()];K(ee);const be=no(p,C,ee,ke);x(be),O(1),bt(be),S(""),Te("news_search_submitted",{query:G,searchFilters:ee,...rt()})},bt=G=>{const ee=Yc(G,a);w(ee)},_a=G=>{fe(G),H(G),OA(G)},H=G=>{const ee=no(p,C,de,G);x(ee),O(1),bt(ee)};M.useEffect(()=>{localStorage.setItem(i,JSON.stringify(Array.from(P)))},[P,i]),M.useEffect(()=>{Y(!0),Ne(null),(async()=>{try{const ee=await fetch(t);if(!ee.ok)throw new Error(`API responded with status: ${ee.status}`);const be=await ee.json();if(!Array.isArray(be))throw new Error("Expected an array but received: "+typeof be);const qe=be.map(Ze=>({...Ze,categories:Array.isArray(Ze.categories)?Ze.categories:[],topTag:cE(Ze.title||"")})),We={};for(const Ze of qe){const xt=Ze.topTag;xt&&(We[xt]=(We[xt]||0)+1)}const Ta=Object.entries(We).sort((Ze,xt)=>xt[1]-Ze[1]).slice(0,10).map(([Ze])=>Ze);je(Ta);const ct=new Set;qe.forEach(Ze=>{Ze.categories.forEach(xt=>{ct.add(_e(xt))})});const ft=Array.from(ct).map(Ze=>({id:Ze,name:Ze.replace(/-/g," ").replace(/\b\w/g,xt=>xt.toUpperCase()),icon:"📰",count:qe.filter(xt=>xt.categories.some(yc=>_e(yc)===Ze)).length,color:"bg-gray-100 text-gray-800"}));y(qe),x(qe),v(qe),ce(ft);const er=Yc(qe,a);w(er)}catch(ee){console.error("Failed to fetch articles",ee)}finally{Y(!1)}})()},[t]);const B=()=>{$(G=>{const ee=G==="grid"?"list":"grid";return Te("news_listing_viewmode_changed",{viewMode:ee}),ee})};M.useMemo(()=>p.filter(G=>G.isTrending).slice(0,6),[p]),M.useMemo(()=>p.filter(G=>G.isBreaking),[p]);const X=Math.ceil(m.length/N),Ie=m.slice((W-1)*N,W*N),Oe=(G,ee)=>{Xe.allowSaving&&R(be=>{const qe=new Set(be),We=qe.has(G);return We?qe.delete(G):qe.add(G),Te(We?"news_article_unbookmarked":"news_article_bookmarked",{articleId:G,positionInList:ee}),qe})},tt=(G,ee)=>{navigator.share?navigator.share({title:G.title,text:G.title,url:G.link}):(navigator.clipboard.writeText(G.link),alert("Article link copied to clipboard!")),Te("news_article_shared",{articleId:G._id,channel:"copy_link"})},Be=(G,ee,be="new_tab",qe="listing")=>{Te("news_article_opened",{articleId:G._id,slug:G.slug,positionInList:ee,openedFrom:qe,openedIn:be})},Ut=()=>{ne(!pe)},Gt=m.length===0?0:(W-1)*N+1,Tr=Math.min(W*N,m.length),pc=()=>{z({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),O(1);const G=no(p,C,de,ke);x(G),O(1),bt(G)},qr=()=>{A({}),K([]),fe("all"),pc(),x(p),O(1),bt(p),Te("news_filters_cleared_all",{})},Ka=M.useRef(null),Qa=G=>{O(G),Te("news_listing_page_changed",{page:G,pageSize:N,totalResults:m.length}),setTimeout(()=>{var ee;(ee=Ka.current)==null||ee.scrollIntoView({behavior:"smooth",block:"start"})},100)},sa=G=>{q(G),O(1),Te("news_listing_items_per_page_changed",{pageSize:G})},Ra=(G,ee)=>{const be={...C};ee?be[G]=ee:delete be[G];const qe=no(p,be,de,ke);A(be),x(qe),O(1),bt(qe);const We=rt();ee?Te("news_filter_selected",{key:G,value:ee,...We}):Te("news_filter_cleared",{key:G,...We})},Dr=G=>{const ee=de.filter(qe=>qe!==G);K(ee);const be=no(p,C,ee,ke);x(be),O(1),bt(be),Te("news_search_filter_removed",{removedKeyword:G,remainingKeywords:ee})};return M.useEffect(()=>{Ya.current||Z||!m.length&&!p.length||(Te("news_listing_viewed",{...rt(),...nt()}),Ya.current=!0)},[p.length,Te,m.length,rt,nt,Z]),e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(nS,{onSearchChange:G=>{const ee=p.filter(be=>be.title.toLowerCase().includes(G.toLowerCase()));v(ee),S(G)},title:"Latest News",popularTags:me,generateHref:G=>`/news?q=${G.replace(/\s+/g,"+")}`}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:p.map(G=>G.title),onSelect:G=>{At(G)},onTyping:G=>{j(!!G),G||(v(p),S(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Ut,children:e.jsx(kr,{size:16,className:"mr-1.5"})}),b&&e.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[e.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[b,e.jsx("button",{onClick:()=>{v(p),S("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),e.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{v(p),S("")},children:"Clear Search"})]})]}),e.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:e.jsx("div",{className:"block w-full",children:e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(iS,{filters:[...ve?[{key:"categories",label:"Categories",value:ve.replace(/-/g," "),onRemove:()=>le("")}]:[],...de.map(G=>({key:"search",label:"",value:G,onRemove:()=>Dr(G)})),...Object.entries(C).map(([G,ee])=>({key:G,label:G.replace(/_/g," "),value:ee,onRemove:()=>Ra(G,"")}))],onClearAll:qr})})})})]}),e.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(HA,{dateFieldLabel:"Date",activeDateFilter:ke,onDateFilterChange:_a,filterKeys:a,searchableFilters:r,filtersData:k,activeFilters:C,handleFilterChange:Ra,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),Z?e.jsx(aS,{}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"lg:w-2/4",children:[e.jsx(oS,{viewMode:U,onToggleViewMode:B,selectedItemsPerPage:N,onItemsPerPageChange:sa,totalCount:m.length,startIndex:Gt,endIndex:Tr,title:"Latest News"}),m.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:U==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:Ie.map((G,ee)=>e.jsx("div",{ref:ee===0?Ka:null,children:e.jsx(SO,{article:G,isBookmarked:P.has(G._id),positionInList:ee,onToggleBookmark:be=>Oe(be,ee),onShare:be=>tt(be),onOpenArticle:Be,layout:U,userAccess:Xe})},G._id))}),X>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(B9,{currentPage:W,totalPages:X,onPageChange:Qa})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Ma,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),e.jsx("button",{onClick:qr,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"sticky top-4",children:[e.jsx(ol,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),e.jsx(eS,{api_url:""}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((G,ee)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+ee)}`,alt:`Featured employer ${ee+1}`,className:"w-10 h-10 object-contain"})},ee))})]})]})})]})})]})]}),e.jsx(zA,{activeDateFilter:ke,handleDateFilterChange:_a,filterKeys:a,searchableFilters:r,dateFieldLabel:l,activeFilters:C,handleFilterChange:Ra,filtersData:k,isMobileFilterOpen:pe,toggleMobileFilter:Ut})]})},Sl=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"fundamentals",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"introduction-to-igaming-iga",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course, featuring real-world case studies from leading operators.",instructor:"Igaming Academy",price:200,originalPrice:250,currency:"EUR",duration:"3 hours",level:"Intermediate",category:"fundamentals",subcategory:"intro-igaming",rating:4.7,reviewCount:0,enrollmentCount:0,thumbnail:"https://igacademy.com/app/uploads/2019/02/Introduction-to-iGaming-800x628.png",link:"https://igacademy.com/courses/introduction-to-igaming/",tags:["iGaming Academy","eLearning"],features:["Certificate","Next date: Online Access Anytime"],lastUpdated:"2025-06-03",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"compliance-roadmap-2025",title:"Global Compliance Roadmap 2025",description:"Stay ahead of emerging regulatory requirements across Europe, North America, and Asia with a practical roadmap for compliance teams and product managers.",instructor:"Priya Natarajan",price:540,originalPrice:620,currency:"EUR",duration:"7 hours",level:"Advanced",category:"fundamentals",subcategory:"regulations",rating:4.9,reviewCount:312,enrollmentCount:1840,thumbnail:"/placeholder.svg?height=200&width=300&text=Compliance+2025",link:"https://example.com/courses/compliance-roadmap-2025",tags:["Compliance","AML","Licensing","Legal"],features:["Certificate","Downloadable checklists","Quarterly updates"],lastUpdated:"2025-05-20",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"data-driven-retention-lab",title:"Data-Driven Retention Lab",description:"Hands-on laboratory course where teams design, launch, and measure retention campaigns using cohort analysis and real-time segmentation tools.",instructor:"Dr. Kevin Müller",price:380,currency:"EUR",duration:"5.5 hours",level:"Intermediate",category:"marketing",subcategory:"retention-strategies",rating:4.6,reviewCount:154,enrollmentCount:920,thumbnail:"/placeholder.svg?height=200&width=300&text=Retention+Lab",link:"https://example.com/courses/data-driven-retention",tags:["Retention","Analytics","Lifecycle","CRM"],features:["Certificate","Workbook","Live coaching"],lastUpdated:"2025-04-28",language:"English",certificate:!0,accessType:"Limited",isFeatured:!1,isNew:!0,isBestseller:!0}],NO=({courses:t,onSearchResults:a,onTyping:r,placeholder:n="Search courses, instructors, or topics..."})=>{const[s,i]=M.useState(""),[c,l]=M.useState([]),[d,h]=M.useState(!1);M.useEffect(()=>{if(s.length>0){const m=t.filter(k=>{var b,S,C,A,L;const w=s.toLowerCase();return k.title.toLowerCase().includes(w)||((b=k.description)==null?void 0:b.toLowerCase().includes(w))||((S=k.instructor)==null?void 0:S.toLowerCase().includes(w))||((C=k.tags)==null?void 0:C.some(j=>j.toLowerCase().includes(w)))||((A=k.category)==null?void 0:A.toLowerCase().includes(w))||((L=k.subcategory)==null?void 0:L.toLowerCase().includes(w))});a(m);const x=t.filter(k=>k.title.toLowerCase().includes(s.toLowerCase())).map(k=>k.title).slice(0,3),f=t.flatMap(k=>k.tags??[]).filter(k=>k.toLowerCase().includes(s.toLowerCase())).filter((k,w,b)=>b.indexOf(k)===w).slice(0,3),v=t.filter(k=>k.instructor?k.instructor.toLowerCase().includes(s.toLowerCase()):!1).map(k=>k.instructor).filter((k,w,b)=>b.indexOf(k)===w).slice(0,2);l([...x,...f,...v]),h(!0)}else a(t),l([]),h(!1)},[s,t,a]);const u=m=>{i(m),r==null||r(m.length>0,m)},p=m=>{i(m),h(!1)},y=()=>{i(""),h(!1),r==null||r(!1,"")};return e.jsxs("div",{className:"course-search relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-5 w-5 text-gray-400"})}),e.jsx("input",{type:"text",value:s,onChange:m=>u(m.target.value),onFocus:()=>h(c.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:n}),s&&e.jsx("button",{onClick:y,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(wt,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&c.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:e.jsx("ul",{className:"py-1",children:c.map((m,x)=>e.jsx("li",{children:e.jsx("button",{onClick:()=>p(m),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ot,{className:"h-4 w-4 text-gray-400 mr-2"}),m]})})},x))})}),s&&e.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',s,'"']})]})},IO=({title:t,subtitle:a,placeholder:r,courses:n=[],onSearchResults:s})=>e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[t||"Master the ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),e.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:a||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),e.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:n&&s&&e.jsx(NO,{courses:n,onSearchResults:s,placeholder:r||"Search IGaming courses, instructors, or topics..."})})]})}),AO=({categories:t,selectedCategory:a,selectedSubcategory:r,onCategorySelect:n,onSubcategorySelect:s})=>{const[i,c]=M.useState(new Set),l=h=>{const u=new Set(i);u.has(h)?u.delete(h):u.add(h),c(u)},d=h=>{l(h),n(h)};return e.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),e.jsx("div",{className:"space-y-2",children:t.map(h=>{const u=i.has(h.id),p=a===h.id;return e.jsxs("div",{className:"category-group",children:[e.jsxs("button",{onClick:()=>d(h.id),className:`
|
|
7803
|
+
`,children:[e.jsxs("div",{className:`relative ${i==="list"?"md:w-1/3 md:flex-shrink-0":""}`,children:[e.jsx("img",{src:t.image||"/placeholder.svg?height=200&width=400&text=News",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${d?"opacity-100":"opacity-0"} ${i==="list"?"md:h-32":""}`,onLoad:()=>h(!0)}),!d&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 text-gray-400",children:"📰"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBreaking&&e.jsx("span",{className:"px-2 py-1 bg-red-500 text-white text-xs font-semibold rounded animate-pulse",children:"BREAKING"}),t.isTrending&&e.jsxs("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded flex items-center",children:[e.jsx(ja,{className:"w-3 h-3 mr-1"}),"TRENDING"]})]}),e.jsx("button",{onClick:()=>r(t._id,l),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-yellow-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${c.allowSaving?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove bookmark":"Add bookmark",disabled:!c.allowSaving,title:c.allowSaving?void 0:"Sign in to save articles",children:e.jsx(Va,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:`p-4 ${i==="list"?"md:w-2/3":""}`,children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:t.categories.slice(0,2).map((f,v)=>e.jsx("a",{href:`?category=${f}`,children:e.jsx("span",{className:"px-2 py-1 bg-yellow-100 text-yellow-800 text-xs font-medium rounded-full",children:f},v)}))}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2 hover:text-yellow-600 transition-colors",children:c.maskExternalLinks?e.jsx("button",{className:"text-left w-full text-gray-700 cursor-not-allowed","aria-label":"Sign in to view article",title:"Sign in to view external article",children:t.title}):e.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:t.title})}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-3",children:y(t.content,i==="list"?150:200)}),e.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500 mb-3",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsxs("span",{children:["By ",m(t.author)]}),e.jsx("span",{children:t.company})]}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"w-4 h-4 mr-1"}),e.jsxs("span",{children:[t.readTime,"m read"]})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(Oo,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:p(t.viewCount||0)})]})]})]}),e.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.tags.slice(0,3).map((f,v)=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 text-gray-600 text-xs rounded",children:["#",f]},v))}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-500",children:u(t.date)}),e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:tS[c.status]}),c.note&&e.jsx("span",{className:"text-xs text-gray-500",children:c.note})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("button",{onClick:()=>n(t,l),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-full transition-colors","aria-label":"Share article",children:e.jsx(ho,{className:"w-4 h-4"})}),c.maskExternalLinks?e.jsx("button",{className:"flex items-center px-3 py-1.5 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to read",children:"Sign in to read"}):e.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center px-3 py-1.5 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",onClick:()=>s==null?void 0:s(t,l,"new_tab",t.isTrending?"trending":t.isBreaking?"breaking":"listing"),children:["Read More",e.jsx(co,{className:"w-3 h-3 ml-1"})]})]})]})]})]})},LO=({apiUrl:t="http://localhost:5000/api/news",filterKeys:a=["categories","author","company"],searchableFilters:r=["company","author","categories"],defaultFilters:n={categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]},defaultSort:s="latest",bookmarkStorageKey:i="news-bookmarks",itemsPerPage:c=12,dateFieldLabel:l="Published",userAccess:d,onEmitEvent:h,eventContext:u})=>{const[p,m]=M.useState([]),[y,x]=M.useState([]),[f,v]=M.useState([]),[k,w]=M.useState({}),[b,S]=M.useState(""),[C,A]=M.useState({}),[L,j]=M.useState(!1),[N,q]=M.useState(c),[P,T]=M.useState(new Set),[R,E]=M.useState(s),[$,B]=M.useState("grid"),[U,O]=M.useState(1),[ae,ce]=M.useState([]),[pe,ne]=M.useState(!1),[de,K]=M.useState([]),[me,je]=M.useState([]),[Z,Y]=M.useState(!0),[ke,fe]=M.useState("all"),[ve,le]=M.useState(""),_e=W=>W.trim().toLowerCase().replace(/\s+/g,"-"),[Re,z]=M.useState(n),[se,Ne]=M.useState(null),Xe=V9(d),Ye=M.useMemo(()=>({component:"NewsPage",...u??{}}),[u]),Te=M.useCallback((W,ee)=>{h&&h({domain:"news",name:W,payload:ee,timestamp:new Date().toISOString(),context:Ye})},[Ye,h]),rt=M.useCallback(()=>({filters:{...C},categories:Re.categories.length?Re.categories:C.categories?[C.categories]:[],tags:Re.tags,authors:Re.authors.length?Re.authors:C.author?[C.author]:[],companies:Re.companies.length?Re.companies:C.company?[C.company]:[],dateFilter:ke,readTimeRange:Re.readTime}),[ke,C,Re]),nt=M.useCallback(()=>({page:U,pageSize:N,totalResults:y.length,sortBy:R,viewMode:$}),[U,y.length,N,R,$]),Ya=M.useRef(!1);M.useEffect(()=>{const W=localStorage.getItem(i);W&&T(new Set(JSON.parse(W)))},[i]),M.useEffect(()=>{const W=new URLSearchParams(window.location.search),ee={};a.forEach(ct=>{const ft=W.get(ct);ft&&(ee[ct]=ft)}),A(ee);const be=W.get("q"),qe=W.get("categories");let We=[...p];if(be&&(We=We.filter(ct=>ct.title.toLowerCase().includes(be.toLowerCase())),S(be),At(be)),qe){const ct=qe.trim().toLowerCase().replace(/\s+/g,"-");z(ft=>({...ft,categories:[ct]})),We=We.filter(ft=>ft.categories.some(er=>_e(er)===ct))}v(We);const Ta={};a.forEach(ct=>{const ft=W.get(ct);ft&&(Ta[ct]=ft)}),A(Ta)},[p]),M.useEffect(()=>{const ee=new URLSearchParams(window.location.search).get("date_filter");if(ee&&ee!=="all"){fe(ee);const be=no(p,C,de,ee);x(be),O(1),bt(be)}},[p]);const At=W=>{if(!W.trim())return;const ee=[...de,W.trim()];K(ee);const be=no(p,C,ee,ke);x(be),O(1),bt(be),S(""),Te("news_search_submitted",{query:W,searchFilters:ee,...rt()})},bt=W=>{const ee=Yc(W,a);w(ee)},_a=W=>{fe(W),H(W),OA(W)},H=W=>{const ee=no(p,C,de,W);x(ee),O(1),bt(ee)};M.useEffect(()=>{localStorage.setItem(i,JSON.stringify(Array.from(P)))},[P,i]),M.useEffect(()=>{Y(!0),Ne(null),(async()=>{try{const ee=await fetch(t);if(!ee.ok)throw new Error(`API responded with status: ${ee.status}`);const be=await ee.json();if(!Array.isArray(be))throw new Error("Expected an array but received: "+typeof be);const qe=be.map(Ze=>({...Ze,categories:Array.isArray(Ze.categories)?Ze.categories:[],topTag:cE(Ze.title||"")})),We={};for(const Ze of qe){const xt=Ze.topTag;xt&&(We[xt]=(We[xt]||0)+1)}const Ta=Object.entries(We).sort((Ze,xt)=>xt[1]-Ze[1]).slice(0,10).map(([Ze])=>Ze);je(Ta);const ct=new Set;qe.forEach(Ze=>{Ze.categories.forEach(xt=>{ct.add(_e(xt))})});const ft=Array.from(ct).map(Ze=>({id:Ze,name:Ze.replace(/-/g," ").replace(/\b\w/g,xt=>xt.toUpperCase()),icon:"📰",count:qe.filter(xt=>xt.categories.some(yc=>_e(yc)===Ze)).length,color:"bg-gray-100 text-gray-800"}));m(qe),x(qe),v(qe),ce(ft);const er=Yc(qe,a);w(er)}catch(ee){console.error("Failed to fetch articles",ee)}finally{Y(!1)}})()},[t]);const G=()=>{B(W=>{const ee=W==="grid"?"list":"grid";return Te("news_listing_viewmode_changed",{viewMode:ee}),ee})};M.useMemo(()=>p.filter(W=>W.isTrending).slice(0,6),[p]),M.useMemo(()=>p.filter(W=>W.isBreaking),[p]);const X=Math.ceil(y.length/N),Ie=y.slice((U-1)*N,U*N),Oe=(W,ee)=>{Xe.allowSaving&&T(be=>{const qe=new Set(be),We=qe.has(W);return We?qe.delete(W):qe.add(W),Te(We?"news_article_unbookmarked":"news_article_bookmarked",{articleId:W,positionInList:ee}),qe})},tt=(W,ee)=>{navigator.share?navigator.share({title:W.title,text:W.title,url:W.link}):(navigator.clipboard.writeText(W.link),alert("Article link copied to clipboard!")),Te("news_article_shared",{articleId:W._id,channel:"copy_link"})},Be=(W,ee,be="new_tab",qe="listing")=>{Te("news_article_opened",{articleId:W._id,slug:W.slug,positionInList:ee,openedFrom:qe,openedIn:be})},Ut=()=>{ne(!pe)},Gt=y.length===0?0:(U-1)*N+1,Tr=Math.min(U*N,y.length),pc=()=>{z({categories:[],tags:[],authors:[],companies:[],dateRange:["",""],readTime:[0,999]}),O(1);const W=no(p,C,de,ke);x(W),O(1),bt(W)},qr=()=>{A({}),K([]),fe("all"),pc(),x(p),O(1),bt(p),Te("news_filters_cleared_all",{})},Ka=M.useRef(null),Qa=W=>{O(W),Te("news_listing_page_changed",{page:W,pageSize:N,totalResults:y.length}),setTimeout(()=>{var ee;(ee=Ka.current)==null||ee.scrollIntoView({behavior:"smooth",block:"start"})},100)},sa=W=>{q(W),O(1),Te("news_listing_items_per_page_changed",{pageSize:W})},Ra=(W,ee)=>{const be={...C};ee?be[W]=ee:delete be[W];const qe=no(p,be,de,ke);A(be),x(qe),O(1),bt(qe);const We=rt();ee?Te("news_filter_selected",{key:W,value:ee,...We}):Te("news_filter_cleared",{key:W,...We})},Dr=W=>{const ee=de.filter(qe=>qe!==W);K(ee);const be=no(p,C,ee,ke);x(be),O(1),bt(be),Te("news_search_filter_removed",{removedKeyword:W,remainingKeywords:ee})};return M.useEffect(()=>{Ya.current||Z||!y.length&&!p.length||(Te("news_listing_viewed",{...rt(),...nt()}),Ya.current=!0)},[p.length,Te,y.length,rt,nt,Z]),e.jsxs("div",{className:"flex flex-col min-h-screen pb-16 md:pb-0",children:[e.jsxs("div",{className:"flex-grow",children:[e.jsx(nS,{onSearchChange:W=>{const ee=p.filter(be=>be.title.toLowerCase().includes(W.toLowerCase()));v(ee),S(W)},title:"Latest News",popularTags:me,generateHref:W=>`/news?q=${W.replace(/\s+/g,"+")}`}),e.jsxs("div",{className:"container mx-auto py-8 pb-20 md:pb-8",children:[e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:p.map(W=>W.title),onSelect:W=>{At(W)},onTyping:W=>{j(!!W),W||(v(p),S(""))},placeholder:"Search news, topics, or authors...",showSubmitButton:!0,className:"w-full"}),e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:Ut,children:e.jsx(kr,{size:16,className:"mr-1.5"})}),b&&e.jsxs("div",{className:"flex gap-2 mt-3 px-4 sm:px-6 lg:px-8",children:[e.jsxs("span",{className:"bg-yellow-100 text-indigo-800 rounded-full px-3 py-1 text-sm flex items-center",children:[b,e.jsx("button",{onClick:()=>{v(p),S("")},className:"ml-2 text-indigo-600 hover:text-indigo-800",children:"×"})]}),e.jsx("button",{className:"text-sm text-gray-600 hover:underline",onClick:()=>{v(p),S("")},children:"Clear Search"})]})]}),e.jsx("div",{className:"max-w-7xl mx-auto md:pb-8",children:e.jsx("div",{className:"block w-full",children:e.jsx("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:e.jsx(iS,{filters:[...ve?[{key:"categories",label:"Categories",value:ve.replace(/-/g," "),onRemove:()=>le("")}]:[],...de.map(W=>({key:"search",label:"",value:W,onRemove:()=>Dr(W)})),...Object.entries(C).map(([W,ee])=>({key:W,label:W.replace(/_/g," "),value:ee,onRemove:()=>Ra(W,"")}))],onClearAll:qr})})})})]}),e.jsx("main",{className:"max-w-7xl mx-auto px-4 pb-8 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:gap-6",children:[e.jsx(HA,{dateFieldLabel:"Date",activeDateFilter:ke,onDateFilterChange:_a,filterKeys:a,searchableFilters:r,filtersData:k,activeFilters:C,handleFilterChange:Ra,toggleSavedJobsFilter:()=>console.log("toggle saved jobs filter"),showOnlySaved:!1,savedJobs:[]}),Z?e.jsx(aS,{}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"lg:w-2/4",children:[e.jsx(oS,{viewMode:$,onToggleViewMode:G,selectedItemsPerPage:N,onItemsPerPageChange:sa,totalCount:y.length,startIndex:Gt,endIndex:Tr,title:"Latest News"}),y.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:$==="grid"?"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-2 gap-6":"space-y-6",children:Ie.map((W,ee)=>e.jsx("div",{ref:ee===0?Ka:null,children:e.jsx(SO,{article:W,isBookmarked:P.has(W._id),positionInList:ee,onToggleBookmark:be=>Oe(be,ee),onShare:be=>tt(be),onOpenArticle:Be,layout:$,userAccess:Xe})},W._id))}),X>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(B9,{currentPage:U,totalPages:X,onPageChange:Qa})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Ma,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No articles found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more articles."}),e.jsx("button",{onClick:qr,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4 space-y-6",children:e.jsxs("div",{className:"sticky top-4",children:[e.jsx(ol,{position:"sidebar",url:"https://video-previews.elements.envatousercontent.com/h264-video-previews/e08912ad-6856-4e36-89b5-cf1465cc79cb/32651312.mp4",link:"",alt:""}),e.jsx(eS,{api_url:""}),e.jsxs("div",{className:"mt-6 bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[e.jsx("h3",{className:"font-semibold text-lg mb-3",children:"Featured Employers"}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:[...Array(6)].map((W,ee)=>e.jsx("div",{className:"flex items-center justify-center p-2 bg-gray-50 rounded-md",children:e.jsx("img",{src:`/placeholder.svg?height=40&width=40&text=${String.fromCharCode(65+ee)}`,alt:`Featured employer ${ee+1}`,className:"w-10 h-10 object-contain"})},ee))})]})]})})]})})]})]}),e.jsx(zA,{activeDateFilter:ke,handleDateFilterChange:_a,filterKeys:a,searchableFilters:r,dateFieldLabel:l,activeFilters:C,handleFilterChange:Ra,filtersData:k,isMobileFilterOpen:pe,toggleMobileFilter:Ut})]})},Sl=[{id:"1",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course. Perfect for beginners looking to understand the fundamentals.",instructor:"Sarah Johnson",price:299,originalPrice:399,currency:"EUR",duration:"8 hours",level:"Beginner",category:"fundamentals",subcategory:"intro-igaming",rating:4.8,reviewCount:1247,enrollmentCount:5420,thumbnail:"/placeholder.svg?height=200&width=300&text=iGaming+Intro",tags:["iGaming","Fundamentals","Industry Overview"],features:["Lifetime Access","Certificate","Mobile Access"],lastUpdated:"2024-01-15",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"2",title:"Payments & Banking in Gaming Masterclass",description:"Master the complex world of payment processing, banking regulations, and financial compliance in the iGaming industry.",instructor:"Michael Chen",price:699,currency:"EUR",duration:"12 hours",level:"Advanced",category:"fundamentals",subcategory:"payments-banking",rating:4.9,reviewCount:892,enrollmentCount:2156,thumbnail:"/placeholder.svg?height=200&width=300&text=Payments+Banking",tags:["Payments","Banking","Compliance","FinTech"],features:["Lifetime Access","Certificate","Expert Support"],lastUpdated:"2024-02-20",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"3",title:"The Psychology of Gambling Addiction",description:"Gain insight into the psychological reasons behind gambling, the nature of addiction, and the scientific aspects of the challenges players encounter.",instructor:"Dr. Emma Rodriguez",price:449,currency:"EUR",duration:"6 hours",level:"Intermediate",category:"responsible-gaming",subcategory:"addiction-psychology",rating:4.7,reviewCount:634,enrollmentCount:1890,thumbnail:"/placeholder.svg?height=200&width=300&text=Psychology+Addiction",tags:["Psychology","Addiction","Player Behavior","Mental Health"],features:["Lifetime Access","Certificate","Case Studies"],lastUpdated:"2024-01-30",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"4",title:"AI in Gaming & Betting",description:"Explore the cutting-edge applications of artificial intelligence in gaming platforms, player analytics, and betting algorithms.",instructor:"Alex Thompson",price:599,currency:"EUR",duration:"10 hours",level:"Advanced",category:"technology",subcategory:"game-development",rating:4.6,reviewCount:445,enrollmentCount:1234,thumbnail:"/placeholder.svg?height=200&width=300&text=AI+Gaming",tags:["AI","Machine Learning","Analytics","Technology"],features:["Lifetime Access","Certificate","Code Examples"],lastUpdated:"2024-03-01",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"5",title:"Slot Academy LIVE!",description:"Interactive live sessions covering slot game mechanics, RTP calculations, and game design principles with industry experts.",instructor:"Gaming Academy Team",price:1500,currency:"EUR",duration:"20 hours",level:"Advanced",category:"specialized",subcategory:"slot-mechanics",rating:4.9,reviewCount:156,enrollmentCount:423,thumbnail:"/placeholder.svg?height=200&width=300&text=Slot+Academy",tags:["Slots","Game Mechanics","Live Training","RTP"],features:["Live Sessions","Certificate","Expert Mentoring"],lastUpdated:"2024-02-15",language:"English",certificate:!0,accessType:"Limited",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"6",title:"English Language for IGaming & Betting",description:"Specialized English language course designed for non-native speakers working in the iGaming and betting industry.",instructor:"Linda Parker",price:300,currency:"EUR",duration:"15 hours",level:"Beginner",category:"specialized",subcategory:"industry-overview",rating:4.5,reviewCount:789,enrollmentCount:2890,thumbnail:"/placeholder.svg?height=200&width=300&text=English+iGaming",tags:["English","Language","Communication","Industry Terms"],features:["Lifetime Access","Certificate","Audio Lessons"],lastUpdated:"2024-01-10",language:"Multiple",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"7",title:"VIP and Premium Service Masterclass",description:"Learn how to deliver exceptional VIP experiences and premium customer service in the competitive iGaming landscape.",instructor:"Robert Williams",price:499,currency:"EUR",duration:"8 hours",level:"Intermediate",category:"business",subcategory:"vip-management",rating:4.8,reviewCount:567,enrollmentCount:1456,thumbnail:"/placeholder.svg?height=200&width=300&text=VIP+Service",tags:["VIP","Customer Service","Premium","Hospitality"],features:["Lifetime Access","Certificate","Templates"],lastUpdated:"2024-02-05",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!0,isNew:!1,isBestseller:!1},{id:"8",title:"Fundamentals of CRM for Online Gaming",description:"Master customer relationship management strategies specifically tailored for online gaming and betting platforms.",instructor:"Maria Garcia",price:425,currency:"EUR",duration:"9 hours",level:"Intermediate",category:"business",subcategory:"crm-customer-service",rating:4.7,reviewCount:423,enrollmentCount:1123,thumbnail:"/placeholder.svg?height=200&width=300&text=CRM+Gaming",tags:["CRM","Customer Management","Gaming","Analytics"],features:["Lifetime Access","Certificate","CRM Tools"],lastUpdated:"2024-01-25",language:"English",certificate:!0,accessType:"Lifetime",isFeatured:!1,isNew:!1,isBestseller:!0},{id:"introduction-to-igaming-iga",title:"Introduction to iGaming",description:"Gain a comprehensive and practical overview of the iGaming industry with this all-encompassing course, featuring real-world case studies from leading operators.",instructor:"Igaming Academy",price:200,originalPrice:250,currency:"EUR",duration:"3 hours",level:"Intermediate",category:"fundamentals",subcategory:"intro-igaming",rating:4.7,reviewCount:0,enrollmentCount:0,thumbnail:"https://igacademy.com/app/uploads/2019/02/Introduction-to-iGaming-800x628.png",link:"https://igacademy.com/courses/introduction-to-igaming/",tags:["iGaming Academy","eLearning"],features:["Certificate","Next date: Online Access Anytime"],lastUpdated:"2025-06-03",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!1,isBestseller:!0},{id:"compliance-roadmap-2025",title:"Global Compliance Roadmap 2025",description:"Stay ahead of emerging regulatory requirements across Europe, North America, and Asia with a practical roadmap for compliance teams and product managers.",instructor:"Priya Natarajan",price:540,originalPrice:620,currency:"EUR",duration:"7 hours",level:"Advanced",category:"fundamentals",subcategory:"regulations",rating:4.9,reviewCount:312,enrollmentCount:1840,thumbnail:"/placeholder.svg?height=200&width=300&text=Compliance+2025",link:"https://example.com/courses/compliance-roadmap-2025",tags:["Compliance","AML","Licensing","Legal"],features:["Certificate","Downloadable checklists","Quarterly updates"],lastUpdated:"2025-05-20",language:"English",certificate:!0,accessType:"Subscription",isFeatured:!0,isNew:!0,isBestseller:!1},{id:"data-driven-retention-lab",title:"Data-Driven Retention Lab",description:"Hands-on laboratory course where teams design, launch, and measure retention campaigns using cohort analysis and real-time segmentation tools.",instructor:"Dr. Kevin Müller",price:380,currency:"EUR",duration:"5.5 hours",level:"Intermediate",category:"marketing",subcategory:"retention-strategies",rating:4.6,reviewCount:154,enrollmentCount:920,thumbnail:"/placeholder.svg?height=200&width=300&text=Retention+Lab",link:"https://example.com/courses/data-driven-retention",tags:["Retention","Analytics","Lifecycle","CRM"],features:["Certificate","Workbook","Live coaching"],lastUpdated:"2025-04-28",language:"English",certificate:!0,accessType:"Limited",isFeatured:!1,isNew:!0,isBestseller:!0}],NO=({courses:t,onSearchResults:a,onTyping:r,placeholder:n="Search courses, instructors, or topics..."})=>{const[s,i]=M.useState(""),[c,l]=M.useState([]),[d,h]=M.useState(!1);M.useEffect(()=>{if(s.length>0){const y=t.filter(k=>{var b,S,C,A,L;const w=s.toLowerCase();return k.title.toLowerCase().includes(w)||((b=k.description)==null?void 0:b.toLowerCase().includes(w))||((S=k.instructor)==null?void 0:S.toLowerCase().includes(w))||((C=k.tags)==null?void 0:C.some(j=>j.toLowerCase().includes(w)))||((A=k.category)==null?void 0:A.toLowerCase().includes(w))||((L=k.subcategory)==null?void 0:L.toLowerCase().includes(w))});a(y);const x=t.filter(k=>k.title.toLowerCase().includes(s.toLowerCase())).map(k=>k.title).slice(0,3),f=t.flatMap(k=>k.tags??[]).filter(k=>k.toLowerCase().includes(s.toLowerCase())).filter((k,w,b)=>b.indexOf(k)===w).slice(0,3),v=t.filter(k=>k.instructor?k.instructor.toLowerCase().includes(s.toLowerCase()):!1).map(k=>k.instructor).filter((k,w,b)=>b.indexOf(k)===w).slice(0,2);l([...x,...f,...v]),h(!0)}else a(t),l([]),h(!1)},[s,t,a]);const u=y=>{i(y),r==null||r(y.length>0,y)},p=y=>{i(y),h(!1)},m=()=>{i(""),h(!1),r==null||r(!1,"")};return e.jsxs("div",{className:"course-search relative",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e.jsx(Ot,{className:"h-5 w-5 text-gray-400"})}),e.jsx("input",{type:"text",value:s,onChange:y=>u(y.target.value),onFocus:()=>h(c.length>0),onBlur:()=>setTimeout(()=>h(!1),200),className:"block w-full pl-10 pr-10 py-3 border border-gray-300 rounded-lg bg-white shadow-sm focus:outline-none focus:ring-2 focus:ring-yellow--500 focus:border-yellow--500 text-gray-900 placeholder-gray-500",placeholder:n}),s&&e.jsx("button",{onClick:m,className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:e.jsx(wt,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})})]}),d&&c.length>0&&e.jsx("div",{className:"absolute z-10 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg",children:e.jsx("ul",{className:"py-1",children:c.map((y,x)=>e.jsx("li",{children:e.jsx("button",{onClick:()=>p(y),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none",children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Ot,{className:"h-4 w-4 text-gray-400 mr-2"}),y]})})},x))})}),s&&e.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:['Search results for "',s,'"']})]})},IO=({title:t,subtitle:a,placeholder:r,courses:n=[],onSearchResults:s})=>e.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236] text-white relative overflow-hidden",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("h2",{className:"text-4xl font-bold text-white mb-4",children:[t||"Master the ",e.jsx("span",{className:"bg-gradient-accent bg-clip-text text-transparent",children:"IGaming Industry"})]}),e.jsx("p",{className:"text-xl text-indigo-100 max-w-2xl mx-auto",children:a||"Learn from industry experts and advance your career with our comprehensive course catalog"})]}),e.jsx("div",{className:"hidden lg:block max-w-2xl mx-auto",children:n&&s&&e.jsx(NO,{courses:n,onSearchResults:s,placeholder:r||"Search IGaming courses, instructors, or topics..."})})]})}),AO=({categories:t,selectedCategory:a,selectedSubcategory:r,onCategorySelect:n,onSubcategorySelect:s})=>{const[i,c]=M.useState(new Set),l=h=>{const u=new Set(i);u.has(h)?u.delete(h):u.add(h),c(u)},d=h=>{l(h),n(h)};return e.jsxs("nav",{className:"course-navigation bg-white rounded-lg shadow-sm border border-gray-200 p-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Course Categories"}),e.jsx("div",{className:"space-y-2",children:t.map(h=>{const u=i.has(h.id),p=a===h.id;return e.jsxs("div",{className:"category-group",children:[e.jsxs("button",{onClick:()=>d(h.id),className:`
|
|
7804
7804
|
w-full flex items-center justify-between p-3 rounded-lg text-left transition-colors
|
|
7805
7805
|
${p?"bg-yellow-50 text-indigo-700 border border-yellow--200":"hover:bg-gray-50 text-gray-700"}
|
|
7806
|
-
`,children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"text-lg mr-3",children:h.icon}),e.jsx("span",{className:"font-medium",children:h.name})]}),u?e.jsx(hr,{className:"w-4 h-4"}):e.jsx(pr,{className:"w-4 h-4"})]}),u&&e.jsx("div",{className:"mt-2 ml-6 space-y-1",children:h.subcategories.map(
|
|
7806
|
+
`,children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"text-lg mr-3",children:h.icon}),e.jsx("span",{className:"font-medium",children:h.name})]}),u?e.jsx(hr,{className:"w-4 h-4"}):e.jsx(pr,{className:"w-4 h-4"})]}),u&&e.jsx("div",{className:"mt-2 ml-6 space-y-1",children:h.subcategories.map(m=>{const y=r===m.id;return e.jsxs("button",{onClick:()=>s(m.id),className:`
|
|
7807
7807
|
w-full flex items-center justify-between p-2 rounded-md text-left text-sm transition-colors
|
|
7808
|
-
${
|
|
7809
|
-
`,children:[e.jsx("span",{children:y.name}),e.jsx("span",{className:"text-xs text-gray-500",children:y.courseCount})]},y.id)})})]},h.id)})})]})},EL=({filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y})=>{const[m,x]=M.useState(!1),f=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],v=["English","Spanish","French","German","Multiple"],k=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=C=>{const A=t.languages.includes(C)?t.languages.filter(L=>L!==C):[...t.languages,C];r({...t,languages:A})},b=C=>{const A=t.features.includes(C)?t.features.filter(L=>L!==C):[...t.features,C];r({...t,features:A})},S=t.levels.length>0||t.languages.length>0||t.features.length>0||t.rating>0||t.priceRange[0]>0||t.priceRange[1]<2e3;return e.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[e.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(yr,{className:"w-5 h-5 text-gray-600 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),S&&e.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[S&&e.jsx("button",{onClick:s,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),e.jsx("button",{onClick:()=>x(!m),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:e.jsx(hr,{className:`w-4 h-4 transition-transform ${m?"rotate-180":""}`})})]})]}),e.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",c," of ",i," courses"]})]}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),e.jsx("select",{id:"sort-select",value:a,onChange:C=>n(C.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:f.map(C=>e.jsx("option",{value:C.value,children:C.label},C.value))})]}),e.jsxs("div",{className:"block",children:[e.jsx(AO,{categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:y}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),e.jsx("div",{className:"space-y-2",children:v.map(C=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.languages.includes(C),onChange:()=>w(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),e.jsx("div",{className:"space-y-2",children:k.map(C=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.features.includes(C),onChange:()=>b(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]})]})]})},PO=({isOpen:t,onClose:a,title:r="Filters",children:n})=>t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:a}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:r}),e.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"p-4",children:n})]})]}):null,FL=({filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p,isMobileFilterOpen:y,toggleMobileFilter:m,enableMobileFilter:x,showFilterName:f=!0,isMobile:v=!1})=>e.jsxs("aside",{className:v?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[x&&e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:m,"aria-expanded":y,children:e.jsx(kr,{className:"w-4 h-4 flex justify-center items-center"})}),e.jsx("div",{className:"hidden md:block",children:e.jsx(EL,{filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})}),e.jsx(PO,{isOpen:y,onClose:m,title:"Filters",children:e.jsx(EL,{filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,showFilterName:f,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})})]}),_O=({course:t,isFavorite:a,onToggleFavorite:r,onEnroll:n,userAccess:s})=>{const[i,c]=M.useState(!1),l=(p,y)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:y}).format(p),d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=s.allowSaving,u=s.maskExternalLinks;return e.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t.thumbnail||"/placeholder.svg",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onLoad:()=>c(!0)}),!i&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx(Kt,{className:"w-12 h-12 text-gray-400"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBestseller&&e.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),t.isNew&&e.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),t.isFeatured&&e.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),e.jsx("button",{onClick:()=>r(t.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${h?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove from favorites":"Add to favorites",disabled:!h,title:h?void 0:"Sign in to save courses",children:e.jsx(Vo,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:t.title}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:tS[s.status]}),s.note&&e.jsx("span",{className:"text-xs text-gray-500",children:s.note})]}),e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",t.instructor]}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:t.description}),e.jsxs("div",{className:"flex items-center mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(vt,{className:"w-4 h-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:t.rating})]}),typeof t.reviewCount=="number"&&e.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",t.reviewCount.toLocaleString()," reviews)"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:t.duration})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"w-4 h-4 mr-1"}),typeof t.enrollmentCount=="number"&&e.jsxs("span",{children:[d(t.enrollmentCount)," students"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${t.level==="Beginner"?"bg-green-100 text-green-800":t.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:t.level}),t.certificate&&e.jsxs("div",{className:"flex items-center text-indigo-600",children:[e.jsx(Jt,{className:"w-4 h-4 mr-1"}),e.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[typeof t.price=="number"&&t.currency&&e.jsx("span",{className:"text-xl font-bold text-gray-900",children:l(t.price,t.currency)}),typeof t.originalPrice=="number"&&!isNaN(t.originalPrice)&&e.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:l(t.originalPrice,t.currency)})]}),u?e.jsx("button",{className:"px-4 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to enroll",children:"Sign in to enroll"}):e.jsx("button",{onClick:()=>n(t.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},RO=({processedCourses:t,favorites:a,handleToggleFavorite:r,handleEnroll:n,itemsPerPage:s=9,handleClearFilters:i,currentPage:c=1,setCurrentPage:l=()=>{},viewMode:d="grid",userAccess:h})=>{const u=Math.ceil(t.length/s),p=t.slice((c-1)*s,c*s),y=M.useRef(null),m=x=>{l(x),setTimeout(()=>{var f;(f=y.current)==null||f.scrollIntoView({behavior:"smooth",block:"start"})},100)};return t.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:p.map((x,f)=>e.jsx("div",{ref:f===0?y:null,children:e.jsx(_O,{course:x,isFavorite:a.has(x.id),onToggleFavorite:r,onEnroll:n,userAccess:h},`${x.id}-${x.title}`)},x.id))}),u>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(B9,{currentPage:c,totalPages:u,onPageChange:m})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Kt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),e.jsx("button",{onClick:i,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},TO=({apiUrl:t,enableMobileFilter:a=!0,itemsPerPage:r=9,userAccess:n,onEmitEvent:s,eventContext:i})=>{const[c,l]=M.useState([]),[d,h]=M.useState([]),[u,p]=M.useState(new Set),[y,m]=M.useState(""),[x,f]=M.useState(""),[v,k]=M.useState("relevance"),[w,b]=M.useState(!1),[S,C]=M.useState(1),[A,L]=M.useState(!1),[j,N]=M.useState(!1),[q,P]=M.useState(!0),[R,T]=M.useState(""),[F,U]=M.useState([]),[$,W]=M.useState([]),[O,ae]=M.useState("grid"),[ce,pe]=M.useState(r),[ne,de]=M.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),K=V9(n),me=M.useMemo(()=>({component:"IGamingCoursePage",...i??{}}),[i]),je=M.useRef(!1),Z=M.useMemo(()=>{let H=[...d];switch(y&&(H=H.filter(B=>le(B.category)===y)),x&&(H=H.filter(B=>le(B.subcategory)===x)),ne.levels.length>0&&(H=H.filter(B=>ne.levels.includes(B.level))),ne.languages.length>0&&(H=H.filter(B=>ne.languages.includes(B.language))),ne.features.length>0&&(H=H.filter(B=>ne.features.some(X=>B.features.includes(X)))),ne.rating>0&&(H=H.filter(B=>B.rating>=ne.rating)),w&&(H=H.filter(B=>u.has(B.id))),v){case"price-low-high":H.sort((B,X)=>B.price-X.price);break;case"price-high-low":H.sort((B,X)=>X.price-B.price);break;case"rating":H.sort((B,X)=>X.rating-B.rating);break;case"newest":H.sort((B,X)=>new Date(X.lastUpdated).getTime()-new Date(B.lastUpdated).getTime());break;case"most-enrolled":H.sort((B,X)=>X.enrollmentCount-B.enrollmentCount);break;default:H.sort((B,X)=>B.isFeatured&&!X.isFeatured?-1:!B.isFeatured&&X.isFeatured?1:B.isBestseller&&!X.isBestseller?-1:!B.isBestseller&&X.isBestseller?1:X.rating-B.rating)}return H},[d,y,x,ne,u,w,v]),Y=M.useCallback((H,B)=>{s&&s({domain:"courses",name:H,payload:B,timestamp:new Date().toISOString(),context:me})},[me,s]),ke=M.useCallback(()=>({category:y||void 0,subcategory:x||void 0,levels:ne.levels,languages:ne.languages,features:ne.features,rating:ne.rating,priceRange:ne.priceRange,favoritesOnly:w}),[ne.features,ne.languages,ne.levels,ne.priceRange,ne.rating,y,x,w]),fe=M.useCallback(()=>({page:S,pageSize:ce,totalResults:Z.length,sortBy:v,viewMode:O}),[S,Z.length,ce,v,O]),ve=()=>{ae(H=>{const B=H==="grid"?"list":"grid";return Y("courses_listing_viewmode_changed",{viewMode:B}),B})},le=H=>(H??"").trim().toLowerCase().replace(/\s+/g,"-"),_e=M.useMemo(()=>{const H=new Map;return c.forEach(B=>{const X=B.category,Ie=B.subcategory,Oe=le(X),tt=le(Ie);if(!Oe)return;H.has(Oe)||H.set(Oe,new Map);const Be=H.get(Oe);tt&&Be.set(tt,(Be.get(tt)??0)+1)}),Array.from(H.entries()).map(([B,X])=>({id:B,name:B.replace(/-/g," ").replace(/\b\w/g,Ie=>Ie.toUpperCase()),icon:"🎯",subcategories:Array.from(X.entries()).map(([Ie,Oe])=>({id:Ie,name:Ie.replace(/-/g," ").replace(/\b\w/g,tt=>tt.toUpperCase()),courseCount:Oe}))}))},[c]),Re=H=>{pe(H),C(1),Y("courses_listing_items_per_page_changed",{pageSize:H})},z=H=>{const B=X=>X.slice().sort().join("|");return B(H.categories)!==B(ne.categories)?"category":B(H.subcategories)!==B(ne.subcategories)?"subcategory":B(H.levels)!==B(ne.levels)?"levels":B(H.languages)!==B(ne.languages)?"languages":B(H.features)!==B(ne.features)?"features":H.rating!==ne.rating?"rating":H.priceRange[0]!==ne.priceRange[0]||H.priceRange[1]!==ne.priceRange[1]?"priceRange":"features"},se=H=>{de(H);const B={category:y||void 0,subcategory:x||void 0,levels:H.levels,languages:H.languages,features:H.features,rating:H.rating,priceRange:H.priceRange,favoritesOnly:w};Y("courses_filter_changed",{changedKey:z(H),...B})};M.useEffect(()=>{(async()=>{try{if(!t){l(Sl),h(Sl),P(!1);return}P(!0);const B=await fetch(t);if(!B.ok)throw new Error(`Failed to fetch courses from ${t}`);const X=await B.json();l(X),h(X);const Oe=X.map(Be=>sS(Be.title||"")).filter(Be=>!!Be).reduce((Be,Ut)=>(Be[Ut]=(Be[Ut]||0)+1,Be),{}),tt=Object.entries(Oe).sort((Be,Ut)=>Ut[1]-Be[1]).slice(0,10).map(([Be])=>Be);U(tt)}catch(B){console.error("[Courses] Error loading data:",B),l(Sl),h(Sl)}finally{P(!1)}})()},[t]),M.useEffect(()=>{var X;const B=(X=new URLSearchParams(window.location.search).get("q"))==null?void 0:X.trim();if(B){T(B);const Ie=c.filter(Oe=>{var tt;return Oe.title.toLowerCase().includes(B.toLowerCase())||((tt=Oe.description)==null?void 0:tt.toLowerCase().includes(B.toLowerCase()))});h(Ie)}},[c]),M.useEffect(()=>{const H=localStorage.getItem("course-favorites");H&&p(new Set(JSON.parse(H)))},[]),M.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(u)))},[u]);const Ne=H=>{K.allowSaving&&p(B=>{const X=new Set(B),Ie=X.has(H);return Ie?X.delete(H):X.add(H),Y(Ie?"course_unfavorited":"course_favorited",{courseId:H}),X})},Xe=H=>{if(K.maskExternalLinks)return;const B=c.find(X=>X.id===H);B!=null&&B.link&&(Y("course_enroll_clicked",{courseId:H}),Y("course_opened",{courseId:H,openedFrom:"listing",openedIn:"new_tab"}),window.open(B.link,"_blank","noopener,noreferrer"))};M.useEffect(()=>{je.current||q||!Z.length&&!c.length||(Y("courses_listing_viewed",{...ke(),...fe()}),je.current=!0)},[c.length,Y,Z.length,ke,fe,q]);const Ye=H=>{const B=le(H);m(B===y?"":B),f(""),Y("courses_category_selected",{category:B===y?null:B}),Y("courses_filter_changed",{changedKey:"category",...ke()})},Te=H=>{const B=le(H);f(B===x?"":B),Y("courses_subcategory_selected",{subcategory:B===x?null:B}),Y("courses_filter_changed",{changedKey:"subcategory",...ke()})},rt=()=>{de({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),m(""),f(""),b(!1),T(""),h(c),Y("courses_filters_cleared_all",{})},nt=()=>{L(!A)},Ya=H=>{C(H),Y("courses_listing_page_changed",{page:H,pageSize:ce,totalResults:Z.length})},At=Z.length===0?0:(S-1)*ce+1,bt=Math.min(S*ce,Z.length),_a=H=>{if(T(H),!H){h(c),W([]);return}const B=c.filter(Ie=>{var Oe;return Ie.title.toLowerCase().includes(H.toLowerCase())||((Oe=Ie.description)==null?void 0:Oe.toLowerCase().includes(H.toLowerCase()))});h(B);const X=B.map(Ie=>Ie.title).filter((Ie,Oe,tt)=>Ie&&Ie.toLowerCase().includes(H.toLowerCase())&&tt.indexOf(Ie)===Oe).slice(0,5);W(X),H.trim()&&Y("courses_search_submitted",{query:H,...ke()})};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(nS,{onSearchChange:_a,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:F,generateHref:H=>`/courses?q=${H.toLowerCase().replace(/\s+/g,"+")}`}),e.jsx(IO,{courses:c,onSearchResults:h}),e.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[e.jsx(iS,{filters:[...y?[{key:"category",label:"Category",value:y.replace(/-/g," "),onRemove:()=>m("")}]:[],...x?[{key:"subcategory",label:"Subcategory",value:x.replace(/-/g," "),onRemove:()=>f("")}]:[],...ne.levels.map(H=>({key:"level",label:"",value:H,onRemove:()=>de(B=>({...B,levels:B.levels.filter(X=>X!==H)}))})),...R?[{key:"search",label:"Search",value:R,onRemove:()=>{T(""),h(c)}}]:[]],onClearAll:rt}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[e.jsx("div",{className:"block lg:hidden w-full",children:e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:c.map(H=>H.title),onSelect:H=>{const B=c.filter(X=>X.title.toLowerCase().includes(H.toLowerCase()));h(B),T(H)},onTyping:H=>{N(!!H),H||(h(c),T(""))}}),e.jsx(FL,{sortBy:v,onFiltersChange:se,onSortChange:k,onClearFilters:rt,totalCourses:c.length,filteredCourses:Z.length,categories:_e,selectedCategory:y,selectedSubcategory:x,filters:ne,onCategorySelect:Ye,onSubcategorySelect:Te,isMobileFilterOpen:A,toggleMobileFilter:nt,enableMobileFilter:a,showFilterName:!j,isMobile:!0})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4",children:e.jsx(FL,{filters:ne,sortBy:v,onFiltersChange:se,onSortChange:k,onClearFilters:rt,totalCourses:c.length,filteredCourses:Z.length,categories:_e,selectedCategory:y,selectedSubcategory:x,onCategorySelect:Ye,onSubcategorySelect:Te,isMobileFilterOpen:A,toggleMobileFilter:nt,enableMobileFilter:a,showFilterName:!0})}),e.jsxs("div",{className:"lg:w-3/4",children:[e.jsx(oS,{viewMode:O,onToggleViewMode:ve,selectedItemsPerPage:ce,onItemsPerPageChange:Re,totalCount:Z.length,startIndex:At,endIndex:bt,title:"All Courses"}),q?e.jsx(aS,{totalColumns:3}):e.jsx(RO,{processedCourses:Z,favorites:u,handleToggleFavorite:Ne,handleClearFilters:rt,itemsPerPage:ce,handleEnroll:Xe,currentPage:S,setCurrentPage:Ya,viewMode:O,userAccess:K})]})]})]})]})};function qO(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,DO(s,...a)]}function DO(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function zO(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var pC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},EO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gS=EO.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),yC={exports:{}},zj={};/**
|
|
7808
|
+
${y?"bg-yellow-100 text-indigo-800":"hover:bg-gray-100 text-gray-600"}
|
|
7809
|
+
`,children:[e.jsx("span",{children:m.name}),e.jsx("span",{className:"text-xs text-gray-500",children:m.courseCount})]},m.id)})})]},h.id)})})]})},EL=({filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,showFilterName:l=!0,categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:m})=>{const[y,x]=M.useState(!1),f=[{value:"relevance",label:"Most Relevant"},{value:"price-low-high",label:"Price: Low to High"},{value:"price-high-low",label:"Price: High to Low"},{value:"rating",label:"Highest Rated"},{value:"newest",label:"Newest"},{value:"most-enrolled",label:"Most Enrolled"}],v=["English","Spanish","French","German","Multiple"],k=["Lifetime Access","Certificate","Mobile Access","Expert Support"],w=C=>{const A=t.languages.includes(C)?t.languages.filter(L=>L!==C):[...t.languages,C];r({...t,languages:A})},b=C=>{const A=t.features.includes(C)?t.features.filter(L=>L!==C):[...t.features,C];r({...t,features:A})},S=t.levels.length>0||t.languages.length>0||t.features.length>0||t.rating>0||t.priceRange[0]>0||t.priceRange[1]<2e3;return e.jsxs("div",{className:"course-filters bg-white rounded-lg shadow-sm border border-gray-200",children:[e.jsxs("div",{className:"hidden lg:block p-4 border-b border-gray-200",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(yr,{className:"w-5 h-5 text-gray-600 mr-2"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Filters"}),S&&e.jsx("span",{className:"ml-2 px-2 py-1 bg-yellow-100 text-indigo-800 text-xs rounded-full",children:"Active"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[S&&e.jsx("button",{onClick:s,className:"text-sm text-indigo-600 hover:text-indigo-800",children:"Clear All"}),e.jsx("button",{onClick:()=>x(!y),className:"lg:hidden p-1 rounded-md hover:bg-gray-100",children:e.jsx(hr,{className:`w-4 h-4 transition-transform ${y?"rotate-180":""}`})})]})]}),e.jsxs("p",{className:"text-sm text-gray-600 mt-2",children:["Showing ",c," of ",i," courses"]})]}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("label",{htmlFor:"sort-select",className:"block text-sm font-medium text-gray-700 mb-2",children:"Sort by"}),e.jsx("select",{id:"sort-select",value:a,onChange:C=>n(C.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",children:f.map(C=>e.jsx("option",{value:C.value,children:C.label},C.value))})]}),e.jsxs("div",{className:"block",children:[e.jsx(AO,{categories:d,selectedCategory:h,selectedSubcategory:u,onCategorySelect:p,onSubcategorySelect:m}),e.jsxs("div",{className:"p-4 border-b border-gray-200",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Language"}),e.jsx("div",{className:"space-y-2",children:v.map(C=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.languages.includes(C),onChange:()=>w(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h4",{className:"text-sm font-medium text-gray-900 mb-3",children:"Features"}),e.jsx("div",{className:"space-y-2",children:k.map(C=>e.jsxs("label",{className:"flex items-center",children:[e.jsx("input",{type:"checkbox",checked:t.features.includes(C),onChange:()=>b(C),className:"mr-2 text-indigo-600 focus:ring-yellow--500 rounded"}),e.jsx("span",{className:"text-sm text-gray-700",children:C})]},C))})]})]})]})},PO=({isOpen:t,onClose:a,title:r="Filters",children:n})=>t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-75 z-40",onClick:a}),e.jsxs("div",{className:"fixed inset-y-0 right-0 max-w-xs w-full bg-white shadow-xl z-50 overflow-y-auto",children:[e.jsxs("div",{className:"px-4 py-2 border-b border-gray-200 flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:r}),e.jsx("button",{onClick:a,className:"p-2 rounded-full hover:bg-gray-100","aria-label":"Close filters",children:e.jsx("svg",{className:"h-6 w-6 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),e.jsx("div",{className:"p-4",children:n})]})]}):null,FL=({filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p,isMobileFilterOpen:m,toggleMobileFilter:y,enableMobileFilter:x,showFilterName:f=!0,isMobile:v=!1})=>e.jsxs("aside",{className:v?"lg:w-1/4 space-y-6":"w-full space-y-6",children:[x&&e.jsx("button",{className:"block md:hidden flex items-center justify-center p-3 bg-white border-2 border-gray-200 text-gray-700 rounded-xl hover:border-gray-300 hover:bg-gray-50 transition-all duration-200 focus:ring-4 focus:ring-gray-200 focus:outline-none hover:scale-105",onClick:y,"aria-expanded":m,children:e.jsx(kr,{className:"w-4 h-4 flex justify-center items-center"})}),e.jsx("div",{className:"hidden md:block",children:e.jsx(EL,{filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})}),e.jsx(PO,{isOpen:m,onClose:y,title:"Filters",children:e.jsx(EL,{filters:t,sortBy:a,onFiltersChange:r,onSortChange:n,onClearFilters:s,totalCourses:i,filteredCourses:c,showFilterName:f,categories:l,selectedCategory:d,selectedSubcategory:h,onCategorySelect:u,onSubcategorySelect:p})})]}),_O=({course:t,isFavorite:a,onToggleFavorite:r,onEnroll:n,userAccess:s})=>{const[i,c]=M.useState(!1),l=(p,m)=>new Intl.NumberFormat("en-EU",{style:"currency",currency:m}).format(p),d=p=>p>=1e3?`${(p/1e3).toFixed(1)}k`:p.toString(),h=s.allowSaving,u=s.maskExternalLinks;return e.jsxs("div",{className:"course-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-lg transition-shadow duration-300",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t.thumbnail||"/placeholder.svg",alt:t.title,className:`w-full h-48 object-cover transition-opacity duration-300 ${i?"opacity-100":"opacity-0"}`,onLoad:()=>c(!0)}),!i&&e.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse flex items-center justify-center",children:e.jsx(Kt,{className:"w-12 h-12 text-gray-400"})}),e.jsxs("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[t.isBestseller&&e.jsx("span",{className:"px-2 py-1 bg-orange-500 text-white text-xs font-semibold rounded",children:"Bestseller"}),t.isNew&&e.jsx("span",{className:"px-2 py-1 bg-green-500 text-white text-xs font-semibold rounded",children:"New"}),t.isFeatured&&e.jsx("span",{className:"px-2 py-1 bg-yellow-500 text-white text-xs font-semibold rounded",children:"Featured"})]}),e.jsx("button",{onClick:()=>r(t.id),className:`absolute top-3 right-3 p-2 rounded-full transition-colors ${a?"bg-red-500 text-white":"bg-white text-gray-600 hover:bg-gray-100"} ${h?"":"opacity-60 cursor-not-allowed"}`,"aria-label":a?"Remove from favorites":"Add to favorites",disabled:!h,title:h?void 0:"Sign in to save courses",children:e.jsx(Vo,{className:`w-4 h-4 ${a?"fill-current":""}`})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2 line-clamp-2",children:t.title}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-700",children:tS[s.status]}),s.note&&e.jsx("span",{className:"text-xs text-gray-500",children:s.note})]}),e.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:["By ",t.instructor]}),e.jsx("p",{className:"text-sm text-gray-700 mb-3 line-clamp-2",children:t.description}),e.jsxs("div",{className:"flex items-center mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(vt,{className:"w-4 h-4 text-yellow-400 fill-current"}),e.jsx("span",{className:"ml-1 text-sm font-medium text-gray-900",children:t.rating})]}),typeof t.reviewCount=="number"&&e.jsxs("span",{className:"ml-2 text-sm text-gray-500",children:["(",t.reviewCount.toLocaleString()," reviews)"]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-600 mb-3",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(da,{className:"w-4 h-4 mr-1"}),e.jsx("span",{children:t.duration})]}),e.jsxs("div",{className:"flex items-center",children:[e.jsx(jt,{className:"w-4 h-4 mr-1"}),typeof t.enrollmentCount=="number"&&e.jsxs("span",{children:[d(t.enrollmentCount)," students"]})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-sm mb-4",children:[e.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium ${t.level==="Beginner"?"bg-green-100 text-green-800":t.level==="Intermediate"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:t.level}),t.certificate&&e.jsxs("div",{className:"flex items-center text-indigo-600",children:[e.jsx(Jt,{className:"w-4 h-4 mr-1"}),e.jsx("span",{className:"text-xs",children:"Certificate"})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center",children:[typeof t.price=="number"&&t.currency&&e.jsx("span",{className:"text-xl font-bold text-gray-900",children:l(t.price,t.currency)}),typeof t.originalPrice=="number"&&!isNaN(t.originalPrice)&&e.jsx("span",{className:"ml-2 text-sm text-gray-500 line-through",children:l(t.originalPrice,t.currency)})]}),u?e.jsx("button",{className:"px-4 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-lg cursor-not-allowed","aria-label":"Sign in to enroll",children:"Sign in to enroll"}):e.jsx("button",{onClick:()=>n(t.id),className:"px-4 py-2 bg-yellow-600 text-white text-sm font-medium rounded-lg hover:bg-yellow-700 transition-colors",children:"Enroll Now"})]})]})]})},RO=({processedCourses:t,favorites:a,handleToggleFavorite:r,handleEnroll:n,itemsPerPage:s=9,handleClearFilters:i,currentPage:c=1,setCurrentPage:l=()=>{},viewMode:d="grid",userAccess:h})=>{const u=Math.ceil(t.length/s),p=t.slice((c-1)*s,c*s),m=M.useRef(null),y=x=>{l(x),setTimeout(()=>{var f;(f=m.current)==null||f.scrollIntoView({behavior:"smooth",block:"start"})},100)};return t.length>0?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:d==="grid"?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6":"space-y-6",children:p.map((x,f)=>e.jsx("div",{ref:f===0?m:null,children:e.jsx(_O,{course:x,isFavorite:a.has(x.id),onToggleFavorite:r,onEnroll:n,userAccess:h},`${x.id}-${x.title}`)},x.id))}),u>1&&e.jsx("div",{className:"mt-8 flex justify-center",children:e.jsx(B9,{currentPage:c,totalPages:u,onPageChange:y})})]}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx(Kt,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No courses found"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Try adjusting your search criteria or filters to find more courses."}),e.jsx("button",{onClick:i,className:"px-4 py-2 bg-yellow-600 text-white rounded-lg hover:bg-yellow-700 transition-colors",children:"Clear All Filters"})]})},TO=({apiUrl:t,enableMobileFilter:a=!0,itemsPerPage:r=9,userAccess:n,onEmitEvent:s,eventContext:i})=>{const[c,l]=M.useState([]),[d,h]=M.useState([]),[u,p]=M.useState(new Set),[m,y]=M.useState(""),[x,f]=M.useState(""),[v,k]=M.useState("relevance"),[w,b]=M.useState(!1),[S,C]=M.useState(1),[A,L]=M.useState(!1),[j,N]=M.useState(!1),[q,P]=M.useState(!0),[T,R]=M.useState(""),[E,$]=M.useState([]),[B,U]=M.useState([]),[O,ae]=M.useState("grid"),[ce,pe]=M.useState(r),[ne,de]=M.useState({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),K=V9(n),me=M.useMemo(()=>({component:"IGamingCoursePage",...i??{}}),[i]),je=M.useRef(!1),Z=M.useMemo(()=>{let H=[...d];switch(m&&(H=H.filter(G=>le(G.category)===m)),x&&(H=H.filter(G=>le(G.subcategory)===x)),ne.levels.length>0&&(H=H.filter(G=>ne.levels.includes(G.level))),ne.languages.length>0&&(H=H.filter(G=>ne.languages.includes(G.language))),ne.features.length>0&&(H=H.filter(G=>ne.features.some(X=>G.features.includes(X)))),ne.rating>0&&(H=H.filter(G=>G.rating>=ne.rating)),w&&(H=H.filter(G=>u.has(G.id))),v){case"price-low-high":H.sort((G,X)=>G.price-X.price);break;case"price-high-low":H.sort((G,X)=>X.price-G.price);break;case"rating":H.sort((G,X)=>X.rating-G.rating);break;case"newest":H.sort((G,X)=>new Date(X.lastUpdated).getTime()-new Date(G.lastUpdated).getTime());break;case"most-enrolled":H.sort((G,X)=>X.enrollmentCount-G.enrollmentCount);break;default:H.sort((G,X)=>G.isFeatured&&!X.isFeatured?-1:!G.isFeatured&&X.isFeatured?1:G.isBestseller&&!X.isBestseller?-1:!G.isBestseller&&X.isBestseller?1:X.rating-G.rating)}return H},[d,m,x,ne,u,w,v]),Y=M.useCallback((H,G)=>{s&&s({domain:"courses",name:H,payload:G,timestamp:new Date().toISOString(),context:me})},[me,s]),ke=M.useCallback(()=>({category:m||void 0,subcategory:x||void 0,levels:ne.levels,languages:ne.languages,features:ne.features,rating:ne.rating,priceRange:ne.priceRange,favoritesOnly:w}),[ne.features,ne.languages,ne.levels,ne.priceRange,ne.rating,m,x,w]),fe=M.useCallback(()=>({page:S,pageSize:ce,totalResults:Z.length,sortBy:v,viewMode:O}),[S,Z.length,ce,v,O]),ve=()=>{ae(H=>{const G=H==="grid"?"list":"grid";return Y("courses_listing_viewmode_changed",{viewMode:G}),G})},le=H=>(H??"").trim().toLowerCase().replace(/\s+/g,"-"),_e=M.useMemo(()=>{const H=new Map;return c.forEach(G=>{const X=G.category,Ie=G.subcategory,Oe=le(X),tt=le(Ie);if(!Oe)return;H.has(Oe)||H.set(Oe,new Map);const Be=H.get(Oe);tt&&Be.set(tt,(Be.get(tt)??0)+1)}),Array.from(H.entries()).map(([G,X])=>({id:G,name:G.replace(/-/g," ").replace(/\b\w/g,Ie=>Ie.toUpperCase()),icon:"🎯",subcategories:Array.from(X.entries()).map(([Ie,Oe])=>({id:Ie,name:Ie.replace(/-/g," ").replace(/\b\w/g,tt=>tt.toUpperCase()),courseCount:Oe}))}))},[c]),Re=H=>{pe(H),C(1),Y("courses_listing_items_per_page_changed",{pageSize:H})},z=H=>{const G=X=>X.slice().sort().join("|");return G(H.categories)!==G(ne.categories)?"category":G(H.subcategories)!==G(ne.subcategories)?"subcategory":G(H.levels)!==G(ne.levels)?"levels":G(H.languages)!==G(ne.languages)?"languages":G(H.features)!==G(ne.features)?"features":H.rating!==ne.rating?"rating":H.priceRange[0]!==ne.priceRange[0]||H.priceRange[1]!==ne.priceRange[1]?"priceRange":"features"},se=H=>{de(H);const G={category:m||void 0,subcategory:x||void 0,levels:H.levels,languages:H.languages,features:H.features,rating:H.rating,priceRange:H.priceRange,favoritesOnly:w};Y("courses_filter_changed",{changedKey:z(H),...G})};M.useEffect(()=>{(async()=>{try{if(!t){l(Sl),h(Sl),P(!1);return}P(!0);const G=await fetch(t);if(!G.ok)throw new Error(`Failed to fetch courses from ${t}`);const X=await G.json();l(X),h(X);const Oe=X.map(Be=>sS(Be.title||"")).filter(Be=>!!Be).reduce((Be,Ut)=>(Be[Ut]=(Be[Ut]||0)+1,Be),{}),tt=Object.entries(Oe).sort((Be,Ut)=>Ut[1]-Be[1]).slice(0,10).map(([Be])=>Be);$(tt)}catch(G){console.error("[Courses] Error loading data:",G),l(Sl),h(Sl)}finally{P(!1)}})()},[t]),M.useEffect(()=>{var X;const G=(X=new URLSearchParams(window.location.search).get("q"))==null?void 0:X.trim();if(G){R(G);const Ie=c.filter(Oe=>{var tt;return Oe.title.toLowerCase().includes(G.toLowerCase())||((tt=Oe.description)==null?void 0:tt.toLowerCase().includes(G.toLowerCase()))});h(Ie)}},[c]),M.useEffect(()=>{const H=localStorage.getItem("course-favorites");H&&p(new Set(JSON.parse(H)))},[]),M.useEffect(()=>{localStorage.setItem("course-favorites",JSON.stringify(Array.from(u)))},[u]);const Ne=H=>{K.allowSaving&&p(G=>{const X=new Set(G),Ie=X.has(H);return Ie?X.delete(H):X.add(H),Y(Ie?"course_unfavorited":"course_favorited",{courseId:H}),X})},Xe=H=>{if(K.maskExternalLinks)return;const G=c.find(X=>X.id===H);G!=null&&G.link&&(Y("course_enroll_clicked",{courseId:H}),Y("course_opened",{courseId:H,openedFrom:"listing",openedIn:"new_tab"}),window.open(G.link,"_blank","noopener,noreferrer"))};M.useEffect(()=>{je.current||q||!Z.length&&!c.length||(Y("courses_listing_viewed",{...ke(),...fe()}),je.current=!0)},[c.length,Y,Z.length,ke,fe,q]);const Ye=H=>{const G=le(H);y(G===m?"":G),f(""),Y("courses_category_selected",{category:G===m?null:G}),Y("courses_filter_changed",{changedKey:"category",...ke()})},Te=H=>{const G=le(H);f(G===x?"":G),Y("courses_subcategory_selected",{subcategory:G===x?null:G}),Y("courses_filter_changed",{changedKey:"subcategory",...ke()})},rt=()=>{de({categories:[],subcategories:[],priceRange:[0,2e3],levels:[],languages:[],features:[],rating:0}),y(""),f(""),b(!1),R(""),h(c),Y("courses_filters_cleared_all",{})},nt=()=>{L(!A)},Ya=H=>{C(H),Y("courses_listing_page_changed",{page:H,pageSize:ce,totalResults:Z.length})},At=Z.length===0?0:(S-1)*ce+1,bt=Math.min(S*ce,Z.length),_a=H=>{if(R(H),!H){h(c),U([]);return}const G=c.filter(Ie=>{var Oe;return Ie.title.toLowerCase().includes(H.toLowerCase())||((Oe=Ie.description)==null?void 0:Oe.toLowerCase().includes(H.toLowerCase()))});h(G);const X=G.map(Ie=>Ie.title).filter((Ie,Oe,tt)=>Ie&&Ie.toLowerCase().includes(H.toLowerCase())&&tt.indexOf(Ie)===Oe).slice(0,5);U(X),H.trim()&&Y("courses_search_submitted",{query:H,...ke()})};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(nS,{onSearchChange:_a,title:"Courses",description:"Browse and enroll in industry-relevant gaming courses",searchPlaceholder:"Search courses",popularTags:E,generateHref:H=>`/courses?q=${H.toLowerCase().replace(/\s+/g,"+")}`}),e.jsx(IO,{courses:c,onSearchResults:h}),e.jsxs("main",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 py-8",children:[e.jsx(iS,{filters:[...m?[{key:"category",label:"Category",value:m.replace(/-/g," "),onRemove:()=>y("")}]:[],...x?[{key:"subcategory",label:"Subcategory",value:x.replace(/-/g," "),onRemove:()=>f("")}]:[],...ne.levels.map(H=>({key:"level",label:"",value:H,onRemove:()=>de(G=>({...G,levels:G.levels.filter(X=>X!==H)}))})),...T?[{key:"search",label:"Search",value:T,onRemove:()=>{R(""),h(c)}}]:[]],onClearAll:rt}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[e.jsx("div",{className:"block lg:hidden w-full",children:e.jsxs("div",{className:"relative flex items-center gap-2 sm:my-6 my-2",children:[e.jsx(rS,{data:c.map(H=>H.title),onSelect:H=>{const G=c.filter(X=>X.title.toLowerCase().includes(H.toLowerCase()));h(G),R(H)},onTyping:H=>{N(!!H),H||(h(c),R(""))}}),e.jsx(FL,{sortBy:v,onFiltersChange:se,onSortChange:k,onClearFilters:rt,totalCourses:c.length,filteredCourses:Z.length,categories:_e,selectedCategory:m,selectedSubcategory:x,filters:ne,onCategorySelect:Ye,onSubcategorySelect:Te,isMobileFilterOpen:A,toggleMobileFilter:nt,enableMobileFilter:a,showFilterName:!j,isMobile:!0})]})}),e.jsx("div",{className:"hidden lg:block lg:w-1/4",children:e.jsx(FL,{filters:ne,sortBy:v,onFiltersChange:se,onSortChange:k,onClearFilters:rt,totalCourses:c.length,filteredCourses:Z.length,categories:_e,selectedCategory:m,selectedSubcategory:x,onCategorySelect:Ye,onSubcategorySelect:Te,isMobileFilterOpen:A,toggleMobileFilter:nt,enableMobileFilter:a,showFilterName:!0})}),e.jsxs("div",{className:"lg:w-3/4",children:[e.jsx(oS,{viewMode:O,onToggleViewMode:ve,selectedItemsPerPage:ce,onItemsPerPageChange:Re,totalCount:Z.length,startIndex:At,endIndex:bt,title:"All Courses"}),q?e.jsx(aS,{totalColumns:3}):e.jsx(RO,{processedCourses:Z,favorites:u,handleToggleFavorite:Ne,handleClearFilters:rt,itemsPerPage:ce,handleEnroll:Xe,currentPage:S,setCurrentPage:Ya,viewMode:O,userAccess:K})]})]})]})]})};function qO(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,DO(s,...a)]}function DO(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function zO(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var pC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},EO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gS=EO.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),yC={exports:{}},zj={};/**
|
|
7810
7810
|
* @license React
|
|
7811
7811
|
* use-sync-external-store-shim.production.js
|
|
7812
7812
|
*
|
|
@@ -7814,7 +7814,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
|
|
|
7814
7814
|
*
|
|
7815
7815
|
* This source code is licensed under the MIT license found in the
|
|
7816
7816
|
* LICENSE file in the root directory of this source tree.
|
|
7817
|
-
*/var OL;function FO(){if(OL)return zj;OL=1;var t=M;function a(p,
|
|
7817
|
+
*/var OL;function FO(){if(OL)return zj;OL=1;var t=M;function a(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var r=typeof Object.is=="function"?Object.is:a,n=t.useState,s=t.useEffect,i=t.useLayoutEffect,c=t.useDebugValue;function l(p,m){var y=m(),x=n({inst:{value:y,getSnapshot:m}}),f=x[0].inst,v=x[1];return i(function(){f.value=y,f.getSnapshot=m,d(f)&&v({inst:f})},[p,y,m]),s(function(){return d(f)&&v({inst:f}),p(function(){d(f)&&v({inst:f})})},[p]),c(y),y}function d(p){var m=p.getSnapshot;p=p.value;try{var y=m();return!r(p,y)}catch{return!0}}function h(p,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:l;return zj.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,zj}var Ej={};/**
|
|
7818
7818
|
* @license React
|
|
7819
7819
|
* use-sync-external-store-shim.development.js
|
|
7820
7820
|
*
|
|
@@ -7822,21 +7822,21 @@ For more information, see https://radix-ui.com/primitives/docs/components/${a.do
|
|
|
7822
7822
|
*
|
|
7823
7823
|
* This source code is licensed under the MIT license found in the
|
|
7824
7824
|
* LICENSE file in the root directory of this source tree.
|
|
7825
|
-
*/var HL;function OO(){return HL||(HL=1,process.env.NODE_ENV!=="production"&&function(){function t(m,x){return m===x&&(m!==0||1/m===1/x)||m!==m&&x!==x}function a(m,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=c({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,r(k)&&w({inst:k})},[m,f,x]),l(function(){return r(k)&&w({inst:k}),m(function(){r(k)&&w({inst:k})})},[m]),h(f),f}function r(m){var x=m.getSnapshot;m=m.value;try{var f=x();return!i(m,f)}catch{return!0}}function n(m,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,c=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:a;Ej.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ej}process.env.NODE_ENV==="production"?yC.exports=FO():yC.exports=OO();var HO=yC.exports;function VO(){return HO.useSyncExternalStore(BO,()=>!0,()=>!1)}function BO(){return()=>{}}var kS="Avatar",[$O,GG]=qO(kS),[UO,IP]=$O(kS),AP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,...n}=t,[s,i]=g.useState("idle");return e.jsx(UO,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(gS.span,{...n,ref:a})})});AP.displayName=kS;var PP="AvatarImage",_P=g.forwardRef((t,a)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=t,c=IP(PP,r),l=GO(n,i),d=zO(h=>{s(h),c.onImageLoadingStatusChange(h)});return pC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(gS.img,{...i,ref:a,src:n}):null});_P.displayName=PP;var RP="AvatarFallback",TP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,delayMs:n,...s}=t,i=IP(RP,r),[c,l]=g.useState(n===void 0);return g.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(d)}},[n]),c&&i.imageLoadingStatus!=="loaded"?e.jsx(gS.span,{...s,ref:a}):null});TP.displayName=RP;function VL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function GO(t,{referrerPolicy:a,crossOrigin:r}){const n=VO(),s=g.useRef(null),i=n?(s.current||(s.current=new window.Image),s.current):null,[c,l]=g.useState(()=>VL(i,t));return pC(()=>{l(VL(i,t))},[i,t]),pC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,r,a]),c}var qP=AP,DP=_P,zP=TP;const EP=g.forwardRef(({className:t,...a},r)=>e.jsx(qP,{ref:r,className:ue("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));EP.displayName=qP.displayName;const FP=g.forwardRef(({className:t,...a},r)=>e.jsx(DP,{ref:r,className:ue("aspect-square h-full w-full",t),...a}));FP.displayName=DP.displayName;const OP=g.forwardRef(({className:t,...a},r)=>e.jsx(zP,{ref:r,className:ue("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));OP.displayName=zP.displayName;const WO=D9("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xe({className:t,variant:a,...r}){return e.jsx("div",{className:ue(WO({variant:a}),t),...r})}function BL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ZO(...t){return a=>{let r=!1;const n=t.map(s=>{const i=BL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():BL(t[s],null)}}}}var JO=Symbol.for("react.lazy"),S9=g[" use ".trim().toString()];function XO(t){return typeof t=="object"&&t!==null&&"then"in t}function HP(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===JO&&"_payload"in t&&XO(t._payload)}function YO(t){const a=KO(t),r=g.forwardRef((n,s)=>{let{children:i,...c}=n;HP(i)&&typeof S9=="function"&&(i=S9(i._payload));const l=g.Children.toArray(i),d=l.find(eH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}function KO(t){const a=g.forwardRef((r,n)=>{let{children:s,...i}=r;if(HP(s)&&typeof S9=="function"&&(s=S9(s._payload)),g.isValidElement(s)){const c=aH(s),l=tH(i,s.props);return s.type!==g.Fragment&&(l.ref=n?ZO(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var QO=Symbol("radix.slottable");function eH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===QO}function tH(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function aH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var rH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nH=rH.reduce((t,a)=>{const r=YO(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),sH="Separator",$L="horizontal",iH=["horizontal","vertical"],VP=g.forwardRef((t,a)=>{const{decorative:r,orientation:n=$L,...s}=t,i=oH(n)?n:$L,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(nH.div,{"data-orientation":i,...l,...s,ref:a})});VP.displayName=sH;function oH(t){return iH.includes(t)}var BP=VP;const p9=g.forwardRef(({className:t,orientation:a="horizontal",decorative:r=!0,...n},s)=>e.jsx(BP,{ref:s,decorative:r,orientation:a,className:ue("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));p9.displayName=BP.displayName;const cH=({candidateData:t})=>{var l;const[a,r]=M.useState(!1),{profileData:n,first_name:s,last_name:i}=t,c=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(ur,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>r(!a),children:[e.jsx(Va,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(D,{variant:"outline",size:"sm",children:[e.jsx(ho,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(D,{variant:"accent",size:"sm",children:[e.jsx(fr,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(re,{className:"overflow-visible",children:e.jsx(oe,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(EP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(FP,{src:""}),e.jsx(OP,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:c})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:n.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(it,{className:"w-4 h-4 text-accent"}),n.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Qt,{className:"w-4 h-4 text-accent"}),n.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(oe,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.personalDetails.summary})})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(at,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(oe,{className:"space-y-6",children:n.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(pt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(oo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(it,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<n.workExperience.length-1&&e.jsx(p9,{className:"mt-6"})]},d.id))})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(mr,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(oe,{className:"space-y-6",children:n.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(mr,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(xe,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<n.education.length-1&&e.jsx(p9,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(re,{className:"sticky top-20",children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-lg",children:"Contact Information"})}),e.jsxs(oe,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ea,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:n.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(xr,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(it,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.location})]})]}),e.jsx(p9,{}),e.jsxs(D,{variant:"accent",className:"w-full",children:[e.jsx(fr,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=n.resume)==null?void 0:l.url)&&e.jsxs(D,{variant:"outline",className:"w-full",children:[e.jsx(Nc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(Jt,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(d=>e.jsx(xe,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(_c,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(oe,{className:"space-y-3",children:n.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(xe,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function UL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function lH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=UL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():UL(t[s],null)}}}}function vS(...t){return g.useCallback(lH(...t),t)}function dH(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,hH(s,...a)]}function hH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function GL(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var mC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},uH=g[" useInsertionEffect ".trim().toString()]||mC;function pH({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=yH({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=mH(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function yH({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return uH(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function mH(t){return typeof t=="function"}function wS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var fH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function bS(t){const[a,r]=g.useState(void 0);return fH(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let c,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=t.offsetWidth,l=t.offsetHeight;r({width:c,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),a}function xH(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $P=t=>{const{present:a,children:r}=t,n=gH(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=vS(n.ref,kH(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$P.displayName="Presence";function gH(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=xH(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Ll(n.current);i.current=l==="mounted"?h:"none"},[l]),mC(()=>{const h=n.current,u=s.current;if(u!==t){const y=i.current,m=Ll(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),mC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Ll(n.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Ll(n.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Ll(t){return(t==null?void 0:t.animationName)||"none"}function kH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var vH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MS=vH.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Q9="Checkbox",[wH,WG]=dH(Q9),[bH,jS]=wH(Q9);function MH(t){const{__scopeCheckbox:a,checked:r,children:n,defaultChecked:s,disabled:i,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[y,m]=pH({prop:r,defaultProp:s??!1,onChange:d,caller:Q9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),b=x?!!c||!!x.closest("form"):!0,S={checked:y,disabled:i,setChecked:m,control:x,setControl:f,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:br(s)?!1:s,isFormControl:b,bubbleInput:v,setBubbleInput:k};return e.jsx(bH,{scope:a,...S,children:jH(p)?p(S):n})}var UP="CheckboxTrigger",GP=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:r,...n},s)=>{const{control:i,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:y,isFormControl:m,bubbleInput:x}=jS(UP,t),f=vS(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(MS.button,{type:"button",role:"checkbox","aria-checked":br(d)?"mixed":d,"aria-required":h,"data-state":YP(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:f,onKeyDown:GL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:GL(r,k=>{p(w=>br(w)?!0:!w),x&&m&&(y.current=k.isPropagationStopped(),y.current||k.stopPropagation())})})});GP.displayName=UP;var CS=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(MH,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:y})=>e.jsxs(e.Fragment,{children:[e.jsx(GP,{...p,ref:a,__scopeCheckbox:r}),y&&e.jsx(XP,{__scopeCheckbox:r})]})})});CS.displayName=Q9;var WP="CheckboxIndicator",ZP=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=jS(WP,r);return e.jsx($P,{present:n||br(i.checked)||i.checked===!0,children:e.jsx(MS.span,{"data-state":YP(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});ZP.displayName=WP;var JP="CheckboxBubbleInput",XP=g.forwardRef(({__scopeCheckbox:t,...a},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:y,setBubbleInput:m}=jS(JP,t),x=vS(r,m),f=wS(i),v=bS(n);g.useEffect(()=>{const w=y;if(!w)return;const b=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(b,"checked").set,A=!s.current;if(f!==i&&C){const L=new Event("click",{bubbles:A});w.indeterminate=br(i),C.call(w,br(i)?!1:i),w.dispatchEvent(L)}},[y,f,i,s]);const k=g.useRef(br(i)?!1:i);return e.jsx(MS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XP.displayName=JP;function jH(t){return typeof t=="function"}function br(t){return t==="indeterminate"}function YP(t){return br(t)?"indeterminate":t?"checked":"unchecked"}const _t=g.forwardRef(({className:t,...a},r)=>e.jsx(CS,{ref:r,className:ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(ZP,{className:ue("flex items-center justify-center text-current"),children:e.jsx(Eo,{className:"h-4 w-4"})})}));_t.displayName=CS.displayName;const CH=({company:t,displayName:a,openRolesCount:r,groupMembersCount:n,isGroup:s=!1,viewMode:i="list",compareId:c,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h})=>{var S,C,A,L,j;const u=i==="grid",p=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,y=((S=t.group)==null?void 0:S.intelligenceProfile)??t.signalsAndInsights,m=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,x=r??m,f=x>0,v=((C=t.group)==null?void 0:C.name)??t.groupName??t.group_name,k=((A=t.group)==null?void 0:A.slug)??t.groupSlug??t.group_slug??((L=t.group)==null?void 0:L.id)??t.groupId??t.group_id,w=N=>{switch(N){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},b=N=>{var q,P,R;if(typeof N=="string")return N;if(typeof N=="object"&&N!==null){const T=N;return T.title??((q=T.tag)==null?void 0:q.title)??((P=T.tag)==null?void 0:P.name)??((R=T.tag)==null?void 0:R.slug)??null}return null};return e.jsx(re,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${u?"h-full":""}`,children:e.jsx(oe,{className:`p-5 ${u?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${u?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(pt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${u?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(ht,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"w-3.5 h-3.5"}),t.overview.headquarters.city,", ",t.overview.headquarters.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${u?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_t,{id:`compare-${c??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(c??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${c??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsx(D,{variant:"outline",size:"sm",className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:"Follow"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(xe,{className:`${w(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(xe,{variant:"outline",className:"text-xs",children:["Group (",n??1,")"]}),v&&!s&&e.jsx("a",{href:k?`/groups/${k}`:"/groups",children:e.jsxs(xe,{variant:"outline",className:"text-xs",children:["Part of ",v]})}),t.classification.verticals.slice(0,2).map(N=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:N},N)),f&&e.jsxs(xe,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(at,{className:"w-3 h-3 mr-1"}),"Hiring (",x,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(j=t.classification.tags)==null?void 0:j.map(b).filter(N=>!!N).slice(0,4).map(N=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",N]},N))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[p>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(gr,{className:"w-3.5 h-3.5 text-gaming-success"}),p," trust signals"]}),y.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vt,{className:"w-3.5 h-3.5 text-gaming-gold"}),y.followsCount.toLocaleString()," followers"]}),y.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ja,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(D,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function WL(t,[a,r]){return Math.min(r,Math.max(a,t))}function dt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function KP(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,SH(s,...a)]}function SH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function ZL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=ZL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():ZL(t[s],null)}}}}function na(...t){return g.useCallback(LH(...t),t)}function NH(t){const a=t+"CollectionProvider",[r,n]=KP(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:v,children:k}=f,w=M.useRef(null),b=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:b,collectionRef:w,children:k})};c.displayName=a;const l=t+"CollectionSlot",d=et(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,b=i(l,k),S=na(v,b.collectionRef);return e.jsx(d,{ref:S,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",y=et(u),m=M.forwardRef((f,v)=>{const{scope:k,children:w,...b}=f,S=M.useRef(null),C=na(v,S),A=i(u,k);return M.useEffect(()=>(A.itemMap.set(S,{ref:S,...b}),()=>void A.itemMap.delete(S))),e.jsx(y,{[p]:"",ref:C,children:w})});m.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,L)=>b.indexOf(A.ref.current)-b.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:h,ItemSlot:m},x,n]}var IH=g.createContext(void 0);function AH(t){const a=g.useContext(IH);return t||a||"ltr"}var Na=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},PH=g[" useId ".trim().toString()]||(()=>{}),_H=0;function SS(t){const[a,r]=g.useState(PH());return Na(()=>{r(n=>n??String(_H++))},[t]),a?`radix-${a}`:""}const RH=["top","right","bottom","left"],Cr=Math.min,Dt=Math.max,L9=Math.round,Nl=Math.floor,Sa=t=>({x:t,y:t}),TH={left:"right",right:"left",bottom:"top",top:"bottom"},qH={start:"end",end:"start"};function fC(t,a,r){return Dt(t,Cr(a,r))}function Ga(t,a){return typeof t=="function"?t(a):t}function Wa(t){return t.split("-")[0]}function dc(t){return t.split("-")[1]}function LS(t){return t==="x"?"y":"x"}function NS(t){return t==="y"?"height":"width"}const DH=new Set(["top","bottom"]);function ba(t){return DH.has(Wa(t))?"y":"x"}function IS(t){return LS(ba(t))}function zH(t,a,r){r===void 0&&(r=!1);const n=dc(t),s=IS(t),i=NS(s);let c=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(c=N9(c)),[c,N9(c)]}function EH(t){const a=N9(t);return[xC(t),a,xC(a)]}function xC(t){return t.replace(/start|end/g,a=>qH[a])}const JL=["left","right"],XL=["right","left"],FH=["top","bottom"],OH=["bottom","top"];function HH(t,a,r){switch(t){case"top":case"bottom":return r?a?XL:JL:a?JL:XL;case"left":case"right":return a?FH:OH;default:return[]}}function VH(t,a,r,n){const s=dc(t);let i=HH(Wa(t),r==="start",n);return s&&(i=i.map(c=>c+"-"+s),a&&(i=i.concat(i.map(xC)))),i}function N9(t){return t.replace(/left|right|bottom|top/g,a=>TH[a])}function BH(t){return{top:0,right:0,bottom:0,left:0,...t}}function QP(t){return typeof t!="number"?BH(t):{top:t,right:t,bottom:t,left:t}}function I9(t){const{x:a,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:a,right:a+n,bottom:r+s,x:a,y:r}}function YL(t,a,r){let{reference:n,floating:s}=t;const i=ba(a),c=IS(a),l=NS(c),d=Wa(a),h=i==="y",u=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2,y=n[l]/2-s[l]/2;let m;switch(d){case"top":m={x:u,y:n.y-s.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-s.width,y:p};break;default:m={x:n.x,y:n.y}}switch(dc(a)){case"start":m[c]-=y*(r&&h?-1:1);break;case"end":m[c]+=y*(r&&h?-1:1);break}return m}const $H=async(t,a,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:c}=r,l=i.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(a));let h=await c.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=YL(h,n,d),y=n,m={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:b,data:S,reset:C}=await k({x:u,y:p,initialPlacement:n,placement:y,strategy:s,middlewareData:m,rects:h,platform:c,elements:{reference:t,floating:a}});u=w??u,p=b??p,m={...m,[v]:{...m[v],...S}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(h=C.rects===!0?await c.getElementRects({reference:t,floating:a,strategy:s}):C.rects),{x:u,y:p}=YL(h,y,d)),f=-1)}return{x:u,y:p,placement:y,strategy:s,middlewareData:m}};async function cl(t,a){var r;a===void 0&&(a={});const{x:n,y:s,platform:i,rects:c,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=Ga(a,t),x=QP(m),v=l[y?p==="floating"?"reference":"floating":p],k=I9(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:n,y:s,width:c.floating.width,height:c.floating.height}:c.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=I9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:d}):w);return{top:(k.top-C.top+x.top)/S.y,bottom:(C.bottom-k.bottom+x.bottom)/S.y,left:(k.left-C.left+x.left)/S.x,right:(C.right-k.right+x.right)/S.x}}const UH=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:n,placement:s,rects:i,platform:c,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Ga(t,a)||{};if(h==null)return{};const p=QP(u),y={x:r,y:n},m=IS(s),x=NS(m),f=await c.getDimensions(h),v=m==="y",k=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[m]-y[m]-i.floating[x],C=y[m]-i.reference[m],A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=A?A[b]:0;(!L||!await(c.isElement==null?void 0:c.isElement(A)))&&(L=l.floating[b]||i.floating[x]);const j=S/2-C/2,N=L/2-f[x]/2-1,q=Cr(p[k],N),P=Cr(p[w],N),R=q,T=L-f[x]-P,F=L/2-f[x]/2+j,U=fC(R,F,T),$=!d.arrow&&dc(s)!=null&&F!==U&&i.reference[x]/2-(F<R?q:P)-f[x]/2<0,W=$?F<R?F-R:F-T:0;return{[m]:y[m]+W,data:{[m]:U,centerOffset:F-U-W,...$&&{alignmentOffset:W}},reset:$}}}),GH=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,n;const{placement:s,middlewareData:i,rects:c,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Ga(t,a);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const k=Wa(s),w=ba(l),b=Wa(l)===l,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=y||(b||!f?[N9(l)]:EH(l)),A=x!=="none";!y&&A&&C.push(...VH(l,f,x,S));const L=[l,...C],j=await cl(a,v),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(j[k]),p){const F=zH(s,c,S);N.push(j[F[0]],j[F[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every(F=>F<=0)){var P,R;const F=(((P=i.flip)==null?void 0:P.index)||0)+1,U=L[F];if(U&&(!(p==="alignment"?w!==ba(U):!1)||q.every(O=>ba(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:F,overflows:q},reset:{placement:U}};let $=(R=q.filter(W=>W.overflows[0]<=0).sort((W,O)=>W.overflows[1]-O.overflows[1])[0])==null?void 0:R.placement;if(!$)switch(m){case"bestFit":{var T;const W=(T=q.filter(O=>{if(A){const ae=ba(O.placement);return ae===w||ae==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(ae=>ae>0).reduce((ae,ce)=>ae+ce,0)]).sort((O,ae)=>O[1]-ae[1])[0])==null?void 0:T[0];W&&($=W);break}case"initialPlacement":$=l;break}if(s!==$)return{reset:{placement:$}}}return{}}}};function KL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function QL(t){return RH.some(a=>t[a]>=0)}const WH=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r}=a,{strategy:n="referenceHidden",...s}=Ga(t,a);switch(n){case"referenceHidden":{const i=await cl(a,{...s,elementContext:"reference"}),c=KL(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:QL(c)}}}case"escaped":{const i=await cl(a,{...s,altBoundary:!0}),c=KL(i,r.floating);return{data:{escapedOffsets:c,escaped:QL(c)}}}default:return{}}}}},e_=new Set(["left","top"]);async function ZH(t,a){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),c=Wa(r),l=dc(r),d=ba(r)==="y",h=e_.has(c)?-1:1,u=i&&d?-1:1,p=Ga(a,t);let{mainAxis:y,crossAxis:m,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),d?{x:m*u,y:y*h}:{x:y*h,y:m*u}}const JH=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,n;const{x:s,y:i,placement:c,middlewareData:l}=a,d=await ZH(a,t);return c===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:c}}}}},XH=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:n,placement:s}=a,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Ga(t,a),h={x:r,y:n},u=await cl(a,d),p=ba(Wa(s)),y=LS(p);let m=h[y],x=h[p];if(i){const v=y==="y"?"top":"left",k=y==="y"?"bottom":"right",w=m+u[v],b=m-u[k];m=fC(w,m,b)}if(c){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],b=x-u[k];x=fC(w,x,b)}const f=l.fn({...a,[y]:m,[p]:x});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[y]:i,[p]:c}}}}}},YH=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:n,placement:s,rects:i,middlewareData:c}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Ga(t,a),u={x:r,y:n},p=ba(s),y=LS(p);let m=u[y],x=u[p];const f=Ga(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=y==="y"?"height":"width",S=i.reference[y]-i.floating[b]+v.mainAxis,C=i.reference[y]+i.reference[b]-v.mainAxis;m<S?m=S:m>C&&(m=C)}if(h){var k,w;const b=y==="y"?"width":"height",S=e_.has(Wa(s)),C=i.reference[p]-i.floating[b]+(S&&((k=c.offset)==null?void 0:k[p])||0)+(S?0:v.crossAxis),A=i.reference[p]+i.reference[b]+(S?0:((w=c.offset)==null?void 0:w[p])||0)-(S?v.crossAxis:0);x<C?x=C:x>A&&(x=A)}return{[y]:m,[p]:x}}}},KH=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,n;const{placement:s,rects:i,platform:c,elements:l}=a,{apply:d=()=>{},...h}=Ga(t,a),u=await cl(a,h),p=Wa(s),y=dc(s),m=ba(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=y===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=y==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=x-u.left-u.right,S=Cr(f-u[v],w),C=Cr(x-u[k],b),A=!a.middlewareData.shift;let L=S,j=C;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(j=b),(n=a.middlewareData.shift)!=null&&n.enabled.y&&(L=w),A&&!y){const q=Dt(u.left,0),P=Dt(u.right,0),R=Dt(u.top,0),T=Dt(u.bottom,0);m?j=x-2*(q!==0||P!==0?q+P:Dt(u.left,u.right)):L=f-2*(R!==0||T!==0?R+T:Dt(u.top,u.bottom))}await d({...a,availableWidth:j,availableHeight:L});const N=await c.getDimensions(l.floating);return x!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ej(){return typeof window<"u"}function hc(t){return t_(t)?(t.nodeName||"").toLowerCase():"#document"}function Vt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Pa(t){var a;return(a=(t_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function t_(t){return ej()?t instanceof Node||t instanceof Vt(t).Node:!1}function ua(t){return ej()?t instanceof Element||t instanceof Vt(t).Element:!1}function Ia(t){return ej()?t instanceof HTMLElement||t instanceof Vt(t).HTMLElement:!1}function eN(t){return!ej()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Vt(t).ShadowRoot}const QH=new Set(["inline","contents"]);function pl(t){const{overflow:a,overflowX:r,overflowY:n,display:s}=pa(t);return/auto|scroll|overlay|hidden|clip/.test(a+n+r)&&!QH.has(s)}const eV=new Set(["table","td","th"]);function tV(t){return eV.has(hc(t))}const aV=[":popover-open",":modal"];function tj(t){return aV.some(a=>{try{return t.matches(a)}catch{return!1}})}const rV=["transform","translate","scale","rotate","perspective"],nV=["transform","translate","scale","rotate","perspective","filter"],sV=["paint","layout","strict","content"];function AS(t){const a=PS(),r=ua(t)?pa(t):t;return rV.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||nV.some(n=>(r.willChange||"").includes(n))||sV.some(n=>(r.contain||"").includes(n))}function iV(t){let a=Sr(t);for(;Ia(a)&&!oc(a);){if(AS(a))return a;if(tj(a))return null;a=Sr(a)}return null}function PS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oV=new Set(["html","body","#document"]);function oc(t){return oV.has(hc(t))}function pa(t){return Vt(t).getComputedStyle(t)}function aj(t){return ua(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Sr(t){if(hc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||eN(t)&&t.host||Pa(t);return eN(a)?a.host:a}function a_(t){const a=Sr(t);return oc(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(a)&&pl(a)?a:a_(a)}function ll(t,a,r){var n;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=a_(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),c=Vt(s);if(i){const l=gC(c);return a.concat(c,c.visualViewport||[],pl(s)?s:[],l&&r?ll(l):[])}return a.concat(s,ll(s,[],r))}function gC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function r_(t){const a=pa(t);let r=parseFloat(a.width)||0,n=parseFloat(a.height)||0;const s=Ia(t),i=s?t.offsetWidth:r,c=s?t.offsetHeight:n,l=L9(r)!==i||L9(n)!==c;return l&&(r=i,n=c),{width:r,height:n,$:l}}function _S(t){return ua(t)?t:t.contextElement}function ec(t){const a=_S(t);if(!Ia(a))return Sa(1);const r=a.getBoundingClientRect(),{width:n,height:s,$:i}=r_(a);let c=(i?L9(r.width):r.width)/n,l=(i?L9(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const cV=Sa(0);function n_(t){const a=Vt(t);return!PS()||!a.visualViewport?cV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function lV(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==Vt(t)?!1:a}function wo(t,a,r,n){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_S(t);let c=Sa(1);a&&(n?ua(n)&&(c=ec(n)):c=ec(t));const l=lV(i,r,n)?n_(i):Sa(0);let d=(s.left+l.x)/c.x,h=(s.top+l.y)/c.y,u=s.width/c.x,p=s.height/c.y;if(i){const y=Vt(i),m=n&&ua(n)?Vt(n):n;let x=y,f=gC(x);for(;f&&n&&m!==x;){const v=ec(f),k=f.getBoundingClientRect(),w=pa(f),b=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,S=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=b,h+=S,x=Vt(f),f=gC(x)}}return I9({width:u,height:p,x:d,y:h})}function rj(t,a){const r=aj(t).scrollLeft;return a?a.left+r:wo(Pa(t)).left+r}function s_(t,a){const r=t.getBoundingClientRect(),n=r.left+a.scrollLeft-rj(t,r),s=r.top+a.scrollTop;return{x:n,y:s}}function dV(t){let{elements:a,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",c=Pa(n),l=a?tj(a.floating):!1;if(n===c||l&&i)return r;let d={scrollLeft:0,scrollTop:0},h=Sa(1);const u=Sa(0),p=Ia(n);if((p||!p&&!i)&&((hc(n)!=="body"||pl(c))&&(d=aj(n)),Ia(n))){const m=wo(n);h=ec(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const y=c&&!p&&!i?s_(c,d):Sa(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+u.x+y.x,y:r.y*h.y-d.scrollTop*h.y+u.y+y.y}}function hV(t){return Array.from(t.getClientRects())}function uV(t){const a=Pa(t),r=aj(t),n=t.ownerDocument.body,s=Dt(a.scrollWidth,a.clientWidth,n.scrollWidth,n.clientWidth),i=Dt(a.scrollHeight,a.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+rj(t);const l=-r.scrollTop;return pa(n).direction==="rtl"&&(c+=Dt(a.clientWidth,n.clientWidth)-s),{width:s,height:i,x:c,y:l}}const tN=25;function pV(t,a){const r=Vt(t),n=Pa(t),s=r.visualViewport;let i=n.clientWidth,c=n.clientHeight,l=0,d=0;if(s){i=s.width,c=s.height;const u=PS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=rj(n);if(h<=0){const u=n.ownerDocument,p=u.body,y=getComputedStyle(p),m=u.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-m);x<=tN&&(i-=x)}else h<=tN&&(i+=h);return{width:i,height:c,x:l,y:d}}const yV=new Set(["absolute","fixed"]);function mV(t,a){const r=wo(t,!0,a==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=Ia(t)?ec(t):Sa(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=n*i.y;return{width:c,height:l,x:d,y:h}}function aN(t,a,r){let n;if(a==="viewport")n=pV(t,r);else if(a==="document")n=uV(Pa(t));else if(ua(a))n=mV(a,r);else{const s=n_(t);n={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return I9(n)}function i_(t,a){const r=Sr(t);return r===a||!ua(r)||oc(r)?!1:pa(r).position==="fixed"||i_(r,a)}function fV(t,a){const r=a.get(t);if(r)return r;let n=ll(t,[],!1).filter(l=>ua(l)&&hc(l)!=="body"),s=null;const i=pa(t).position==="fixed";let c=i?Sr(t):t;for(;ua(c)&&!oc(c);){const l=pa(c),d=AS(c);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&yV.has(s.position)||pl(c)&&!d&&i_(t,c))?n=n.filter(u=>u!==c):s=l,c=Sr(c)}return a.set(t,n),n}function xV(t){let{element:a,boundary:r,rootBoundary:n,strategy:s}=t;const c=[...r==="clippingAncestors"?tj(a)?[]:fV(a,this._c):[].concat(r),n],l=c[0],d=c.reduce((h,u)=>{const p=aN(a,u,s);return h.top=Dt(p.top,h.top),h.right=Cr(p.right,h.right),h.bottom=Cr(p.bottom,h.bottom),h.left=Dt(p.left,h.left),h},aN(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function gV(t){const{width:a,height:r}=r_(t);return{width:a,height:r}}function kV(t,a,r){const n=Ia(a),s=Pa(a),i=r==="fixed",c=wo(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=Sa(0);function h(){d.x=rj(s)}if(n||!n&&!i)if((hc(a)!=="body"||pl(s))&&(l=aj(a)),n){const m=wo(a,!0,i,a);d.x=m.x+a.clientLeft,d.y=m.y+a.clientTop}else s&&h();i&&!n&&s&&h();const u=s&&!n&&!i?s_(s,l):Sa(0),p=c.left+l.scrollLeft-d.x-u.x,y=c.top+l.scrollTop-d.y-u.y;return{x:p,y,width:c.width,height:c.height}}function Fj(t){return pa(t).position==="static"}function rN(t,a){if(!Ia(t)||pa(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Pa(t)===r&&(r=r.ownerDocument.body),r}function o_(t,a){const r=Vt(t);if(tj(t))return r;if(!Ia(t)){let s=Sr(t);for(;s&&!oc(s);){if(ua(s)&&!Fj(s))return s;s=Sr(s)}return r}let n=rN(t,a);for(;n&&tV(n)&&Fj(n);)n=rN(n,a);return n&&oc(n)&&Fj(n)&&!AS(n)?r:n||iV(t)||r}const vV=async function(t){const a=this.getOffsetParent||o_,r=this.getDimensions,n=await r(t.floating);return{reference:kV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function wV(t){return pa(t).direction==="rtl"}const bV={convertOffsetParentRelativeRectToViewportRelativeRect:dV,getDocumentElement:Pa,getClippingRect:xV,getOffsetParent:o_,getElementRects:vV,getClientRects:hV,getDimensions:gV,getScale:ec,isElement:ua,isRTL:wV};function c_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function MV(t,a){let r=null,n;const s=Pa(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function c(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:y,height:m}=h;if(l||a(),!y||!m)return;const x=Nl(p),f=Nl(s.clientWidth-(u+y)),v=Nl(s.clientHeight-(p+m)),k=Nl(u),b={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Dt(0,Cr(1,d))||1};let S=!0;function C(A){const L=A[0].intersectionRatio;if(L!==d){if(!S)return c();L?c(!1,L):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!c_(h,t.getBoundingClientRect())&&c(),S=!1}try{r=new IntersectionObserver(C,{...b,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,b)}r.observe(t)}return c(!0),i}function jV(t,a,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=_S(t),u=s||i?[...h?ll(h):[],...ll(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),i&&k.addEventListener("resize",r)});const p=h&&l?MV(h,r):null;let y=-1,m=null;c&&(m=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&m&&(m.unobserve(a),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(a)})),r()}),h&&!d&&m.observe(h),m.observe(a));let x,f=d?wo(t):null;d&&v();function v(){const k=wo(t);f&&!c_(f,k)&&r(),f=k,x=requestAnimationFrame(v)}return r(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),p==null||p(),(k=m)==null||k.disconnect(),m=null,d&&cancelAnimationFrame(x)}}const CV=JH,SV=XH,LV=GH,NV=KH,IV=WH,nN=UH,AV=YH,PV=(t,a,r)=>{const n=new Map,s={platform:bV,...r},i={...s.platform,_c:n};return $H(t,a,{...s,platform:i})};var _V=typeof document<"u",RV=function(){},y9=_V?M.useLayoutEffect:RV;function A9(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,n,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(n=r;n--!==0;)if(!A9(t[n],a[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(a).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(a,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!A9(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function l_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function sN(t,a){const r=l_(t);return Math.round(a*r)/r}function Oj(t){const a=g.useRef(t);return y9(()=>{a.current=t}),a}function TV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[y,m]=g.useState(n);A9(y,n)||m(n);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(O=>{O!==A.current&&(A.current=O,f(O))},[]),b=g.useCallback(O=>{O!==L.current&&(L.current=O,k(O))},[]),S=i||x,C=c||v,A=g.useRef(null),L=g.useRef(null),j=g.useRef(u),N=d!=null,q=Oj(d),P=Oj(s),R=Oj(h),T=g.useCallback(()=>{if(!A.current||!L.current)return;const O={placement:a,strategy:r,middleware:y};P.current&&(O.platform=P.current),PV(A.current,L.current,O).then(ae=>{const ce={...ae,isPositioned:R.current!==!1};F.current&&!A9(j.current,ce)&&(j.current=ce,q9.flushSync(()=>{p(ce)}))})},[y,a,r,P,R]);y9(()=>{h===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[h]);const F=g.useRef(!1);y9(()=>(F.current=!0,()=>{F.current=!1}),[]),y9(()=>{if(S&&(A.current=S),C&&(L.current=C),S&&C){if(q.current)return q.current(S,C,T);T()}},[S,C,T,q,N]);const U=g.useMemo(()=>({reference:A,floating:L,setReference:w,setFloating:b}),[w,b]),$=g.useMemo(()=>({reference:S,floating:C}),[S,C]),W=g.useMemo(()=>{const O={position:r,left:0,top:0};if(!$.floating)return O;const ae=sN($.floating,u.x),ce=sN($.floating,u.y);return l?{...O,transform:"translate("+ae+"px, "+ce+"px)",...l_($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:ce}},[r,l,$.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:T,refs:U,elements:$,floatingStyles:W}),[u,T,U,$,W])}const qV=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&a(n)?n.current!=null?nN({element:n.current,padding:s}).fn(r):{}:n?nN({element:n,padding:s}).fn(r):{}}}},DV=(t,a)=>({...CV(t),options:[t,a]}),zV=(t,a)=>({...SV(t),options:[t,a]}),EV=(t,a)=>({...AV(t),options:[t,a]}),FV=(t,a)=>({...LV(t),options:[t,a]}),OV=(t,a)=>({...NV(t),options:[t,a]}),HV=(t,a)=>({...IV(t),options:[t,a]}),VV=(t,a)=>({...qV(t),options:[t,a]});var BV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$V=BV.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),UV="Arrow",d_=g.forwardRef((t,a)=>{const{children:r,width:n=10,height:s=5,...i}=t;return e.jsx($V.svg,{...i,ref:a,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});d_.displayName=UV;var GV=d_;function iN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function WV(...t){return a=>{let r=!1;const n=t.map(s=>{const i=iN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():iN(t[s],null)}}}}function h_(...t){return g.useCallback(WV(...t),t)}function ZV(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,JV(s,...a)]}function JV(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var XV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],u_=XV.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function YV(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oN=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},RS="Popper",[p_,nj]=ZV(RS),[KV,y_]=p_(RS),m_=t=>{const{__scopePopper:a,children:r}=t,[n,s]=g.useState(null);return e.jsx(KV,{scope:a,anchor:n,onAnchorChange:s,children:r})};m_.displayName=RS;var f_="PopperAnchor",x_=g.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=y_(f_,r),c=g.useRef(null),l=h_(a,c),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(n==null?void 0:n.current)||c.current,h!==d.current&&i.onAnchorChange(d.current)}),n?null:e.jsx(u_.div,{...s,ref:l})});x_.displayName=f_;var TS="PopperContent",[QV,eB]=p_(TS),g_=g.forwardRef((t,a)=>{var Z,Y,ke,fe,ve,le;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:m="optimized",onPlaced:x,...f}=t,v=y_(TS,r),[k,w]=g.useState(null),b=h_(a,_e=>w(_e)),[S,C]=g.useState(null),A=bS(S),L=(A==null?void 0:A.width)??0,j=(A==null?void 0:A.height)??0,N=n+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(h)?h:[h],R=P.length>0,T={padding:q,boundary:P.filter(aB),altBoundary:R},{refs:F,floatingStyles:U,placement:$,isPositioned:W,middlewareData:O}=TV({strategy:"fixed",placement:N,whileElementsMounted:(..._e)=>jV(..._e,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[DV({mainAxis:s+j,alignmentAxis:c}),d&&zV({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?EV():void 0,...T}),d&&FV({...T}),OV({...T,apply:({elements:_e,rects:Re,availableWidth:z,availableHeight:se})=>{const{width:Ne,height:Xe}=Re.reference,Ye=_e.floating.style;Ye.setProperty("--radix-popper-available-width",`${z}px`),Ye.setProperty("--radix-popper-available-height",`${se}px`),Ye.setProperty("--radix-popper-anchor-width",`${Ne}px`),Ye.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),S&&VV({element:S,padding:l}),rB({arrowWidth:L,arrowHeight:j}),y&&HV({strategy:"referenceHidden",...T})]}),[ae,ce]=w_($),pe=YV(x);oN(()=>{W&&(pe==null||pe())},[W,pe]);const ne=(Z=O.arrow)==null?void 0:Z.x,de=(Y=O.arrow)==null?void 0:Y.y,K=((ke=O.arrow)==null?void 0:ke.centerOffset)!==0,[me,je]=g.useState();return oN(()=>{k&&je(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:W?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(fe=O.transformOrigin)==null?void 0:fe.x,(ve=O.transformOrigin)==null?void 0:ve.y].join(" "),...((le=O.hide)==null?void 0:le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(QV,{scope:r,placedSide:ae,onArrowChange:C,arrowX:ne,arrowY:de,shouldHideArrow:K,children:e.jsx(u_.div,{"data-side":ae,"data-align":ce,...f,ref:b,style:{...f.style,animation:W?void 0:"none"}})})})});g_.displayName=TS;var k_="PopperArrow",tB={top:"bottom",right:"left",bottom:"top",left:"right"},v_=g.forwardRef(function(a,r){const{__scopePopper:n,...s}=a,i=eB(k_,n),c=tB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(GV,{...s,ref:r,style:{...s.style,display:"block"}})})});v_.displayName=k_;function aB(t){return t!==null}var rB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:r,rects:n,middlewareData:s}=a,c=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[h,u]=w_(r),p={start:"0%",center:"50%",end:"100%"}[u],y=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,m=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=c?p:`${y}px`,f=`${-d}px`):h==="top"?(x=c?p:`${y}px`,f=`${n.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=c?p:`${m}px`):h==="left"&&(x=`${n.floating.width+d}px`,f=c?p:`${m}px`),{data:{x,y:f}}}});function w_(t){const[a,r="center"]=t.split("-");return[a,r]}var b_=m_,qS=x_,M_=g_,j_=v_,nB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=nB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function sB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var iB=g[" useInsertionEffect ".trim().toString()]||Na;function cN({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=oB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=cB(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function oB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return iB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function cB(t){return typeof t=="function"}var lB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dB=lB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),C_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hB="VisuallyHidden",uB=g.forwardRef((t,a)=>e.jsx(dB.span,{...t,ref:a,style:{...C_,...t.style}}));uB.displayName=hB;var pB=[" ","Enter","ArrowUp","ArrowDown"],yB=[" ","Enter"],bo="Select",[sj,ij,mB]=NH(bo),[uc,ZG]=KP(bo,[mB,nj]),oj=nj(),[fB,Pr]=uc(bo),[xB,gB]=uc(bo),S_=t=>{const{__scopeSelect:a,children:r,open:n,defaultOpen:s,onOpenChange:i,value:c,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:y,required:m,form:x}=t,f=oj(a),[v,k]=g.useState(null),[w,b]=g.useState(null),[S,C]=g.useState(!1),A=AH(h),[L,j]=cN({prop:n,defaultProp:s??!1,onChange:i,caller:bo}),[N,q]=cN({prop:c,defaultProp:l,onChange:d,caller:bo}),P=g.useRef(null),R=v?x||!!v.closest("form"):!0,[T,F]=g.useState(new Set),U=Array.from(T).map($=>$.props.value).join(";");return e.jsx(b_,{...f,children:e.jsxs(fB,{required:m,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:SS(),value:N,onValueChange:q,open:L,onOpenChange:j,dir:A,triggerPointerDownPosRef:P,disabled:y,children:[e.jsx(sj.Provider,{scope:a,children:e.jsx(xB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback($=>{F(W=>new Set(W).add($))},[]),onNativeOptionRemove:g.useCallback($=>{F(W=>{const O=new Set(W);return O.delete($),O})},[]),children:r})}),R?e.jsxs(X_,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:p,value:N,onChange:$=>q($.target.value),disabled:y,form:x,children:[N===void 0?e.jsx("option",{value:""}):null,Array.from(T)]},U):null]})})};S_.displayName=bo;var L_="SelectTrigger",N_=g.forwardRef((t,a)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=oj(r),c=Pr(L_,r),l=c.disabled||n,d=na(a,c.onTriggerChange),h=ij(r),u=g.useRef("touch"),[p,y,m]=K_(f=>{const v=h().filter(b=>!b.disabled),k=v.find(b=>b.value===c.value),w=Q_(v,f,k);w!==void 0&&c.onValueChange(w.value)}),x=f=>{l||(c.onOpenChange(!0),m()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(qS,{asChild:!0,...i,children:e.jsx($t.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Y_(c.value)?"":void 0,...s,ref:d,onClick:dt(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:dt(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:dt(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&y(f.key),!(v&&f.key===" ")&&pB.includes(f.key)&&(x(),f.preventDefault())})})})});N_.displayName=L_;var I_="SelectValue",A_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:c="",...l}=t,d=Pr(I_,r),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=na(a,d.onValueNodeChange);return Na(()=>{h(u)},[h,u]),e.jsx($t.span,{...l,ref:p,style:{pointerEvents:"none"},children:Y_(d.value)?e.jsx(e.Fragment,{children:c}):i})});A_.displayName=I_;var kB="SelectIcon",P_=g.forwardRef((t,a)=>{const{__scopeSelect:r,children:n,...s}=t;return e.jsx($t.span,{"aria-hidden":!0,...s,ref:a,children:n||"▼"})});P_.displayName=kB;var vB="SelectPortal",__=t=>e.jsx(W9,{asChild:!0,...t});__.displayName=vB;var Mo="SelectContent",R_=g.forwardRef((t,a)=>{const r=Pr(Mo,t.__scopeSelect),[n,s]=g.useState();if(Na(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?q9.createPortal(e.jsx(T_,{scope:t.__scopeSelect,children:e.jsx(sj.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(q_,{...t,ref:a})});R_.displayName=Mo;var oa=10,[T_,_r]=uc(Mo),wB="SelectContentImpl",bB=et("SelectContent.RemoveScroll"),q_=g.forwardRef((t,a)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Pr(Mo,r),[b,S]=g.useState(null),[C,A]=g.useState(null),L=na(a,Z=>S(Z)),[j,N]=g.useState(null),[q,P]=g.useState(null),R=ij(r),[T,F]=g.useState(!1),U=g.useRef(!1);g.useEffect(()=>{if(b)return lS(b)},[b]),cS();const $=g.useCallback(Z=>{const[Y,...ke]=R().map(le=>le.ref.current),[fe]=ke.slice(-1),ve=document.activeElement;for(const le of Z)if(le===ve||(le==null||le.scrollIntoView({block:"nearest"}),le===Y&&C&&(C.scrollTop=0),le===fe&&C&&(C.scrollTop=C.scrollHeight),le==null||le.focus(),document.activeElement!==ve))return},[R,C]),W=g.useCallback(()=>$([j,b]),[$,j,b]);g.useEffect(()=>{T&&W()},[T,W]);const{onOpenChange:O,triggerPointerDownPosRef:ae}=w;g.useEffect(()=>{if(b){let Z={x:0,y:0};const Y=fe=>{var ve,le;Z={x:Math.abs(Math.round(fe.pageX)-(((ve=ae.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((le=ae.current)==null?void 0:le.y)??0))}},ke=fe=>{Z.x<=10&&Z.y<=10?fe.preventDefault():b.contains(fe.target)||O(!1),document.removeEventListener("pointermove",Y),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",ke,{capture:!0})}}},[b,O,ae]),g.useEffect(()=>{const Z=()=>O(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[O]);const[ce,pe]=K_(Z=>{const Y=R().filter(ve=>!ve.disabled),ke=Y.find(ve=>ve.ref.current===document.activeElement),fe=Q_(Y,Z,ke);fe&&setTimeout(()=>fe.ref.current.focus())}),ne=g.useCallback((Z,Y,ke)=>{const fe=!U.current&&!ke;(w.value!==void 0&&w.value===Y||fe)&&(N(Z),fe&&(U.current=!0))},[w.value]),de=g.useCallback(()=>b==null?void 0:b.focus(),[b]),K=g.useCallback((Z,Y,ke)=>{const fe=!U.current&&!ke;(w.value!==void 0&&w.value===Y||fe)&&P(Z)},[w.value]),me=n==="popper"?kC:D_,je=me===kC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:y,collisionPadding:m,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(T_,{scope:r,content:b,viewport:C,onViewportChange:A,itemRefCallback:ne,selectedItem:j,onItemLeave:de,itemTextRefCallback:K,focusSelectedItem:W,selectedItemText:q,position:n,isPositioned:T,searchRef:ce,children:e.jsx(X9,{as:bB,allowPinchZoom:!0,children:e.jsx(G9,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:dt(s,Z=>{var Y;(Y=w.trigger)==null||Y.focus({preventScroll:!0}),Z.preventDefault()}),children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(me,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...k,...je,onPlaced:()=>F(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:dt(k.onKeyDown,Z=>{const Y=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!Y&&Z.key.length===1&&pe(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let fe=R().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const ve=Z.target,le=fe.indexOf(ve);fe=fe.slice(le+1)}setTimeout(()=>$(fe)),Z.preventDefault()}})})})})})})});q_.displayName=wB;var MB="SelectItemAlignedPosition",D_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Pr(Mo,r),c=_r(Mo,r),[l,d]=g.useState(null),[h,u]=g.useState(null),p=na(a,L=>u(L)),y=ij(r),m=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=c,b=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const L=i.trigger.getBoundingClientRect(),j=h.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const ve=q.left-j.left,le=N.left-ve,_e=L.left-le,Re=L.width+_e,z=Math.max(Re,j.width),se=window.innerWidth-oa,Ne=WL(le,[oa,Math.max(oa,se-z)]);l.style.minWidth=Re+"px",l.style.left=Ne+"px"}else{const ve=j.right-q.right,le=window.innerWidth-N.right-ve,_e=window.innerWidth-L.right-le,Re=L.width+_e,z=Math.max(Re,j.width),se=window.innerWidth-oa,Ne=WL(le,[oa,Math.max(oa,se-z)]);l.style.minWidth=Re+"px",l.style.right=Ne+"px"}const P=y(),R=window.innerHeight-oa*2,T=f.scrollHeight,F=window.getComputedStyle(h),U=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),W=parseInt(F.borderBottomWidth,10),O=parseInt(F.paddingBottom,10),ae=U+$+T+O+W,ce=Math.min(v.offsetHeight*5,ae),pe=window.getComputedStyle(f),ne=parseInt(pe.paddingTop,10),de=parseInt(pe.paddingBottom,10),K=L.top+L.height/2-oa,me=R-K,je=v.offsetHeight/2,Z=v.offsetTop+je,Y=U+$+Z,ke=ae-Y;if(Y<=K){const ve=P.length>0&&v===P[P.length-1].ref.current;l.style.bottom="0px";const le=h.clientHeight-f.offsetTop-f.offsetHeight,_e=Math.max(me,je+(ve?de:0)+le+W),Re=Y+_e;l.style.height=Re+"px"}else{const ve=P.length>0&&v===P[0].ref.current;l.style.top="0px";const _e=Math.max(K,U+f.offsetTop+(ve?ne:0)+je)+ke;l.style.height=_e+"px",f.scrollTop=Y-K+f.offsetTop}l.style.margin=`${oa}px 0`,l.style.minHeight=ce+"px",l.style.maxHeight=R+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[y,i.trigger,i.valueNode,l,h,f,v,k,i.dir,n]);Na(()=>b(),[b]);const[S,C]=g.useState();Na(()=>{h&&C(window.getComputedStyle(h).zIndex)},[h]);const A=g.useCallback(L=>{L&&x.current===!0&&(b(),w==null||w(),x.current=!1)},[b,w]);return e.jsx(CB,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:A,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:e.jsx($t.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});D_.displayName=MB;var jB="SelectPopperPosition",kC=g.forwardRef((t,a)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=oa,...i}=t,c=oj(r);return e.jsx(M_,{...c,...i,ref:a,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});kC.displayName=jB;var[CB,DS]=uc(Mo,{}),vC="SelectViewport",z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=_r(vC,r),c=DS(vC,r),l=na(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),e.jsx(sj.Slot,{scope:r,children:e.jsx($t.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:dt(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=c;if(y!=null&&y.current&&p){const m=Math.abs(d.current-u.scrollTop);if(m>0){const x=window.innerHeight-oa*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+m,b=Math.min(x,w),S=w-b;p.style.height=b+"px",p.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});z_.displayName=vC;var E_="SelectGroup",[SB,LB]=uc(E_),NB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=SS();return e.jsx(SB,{scope:r,id:s,children:e.jsx($t.div,{role:"group","aria-labelledby":s,...n,ref:a})})});NB.displayName=E_;var F_="SelectLabel",O_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=LB(F_,r);return e.jsx($t.div,{id:s.id,...n,ref:a})});O_.displayName=F_;var P9="SelectItem",[IB,H_]=uc(P9),V_=g.forwardRef((t,a)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...c}=t,l=Pr(P9,r),d=_r(P9,r),h=l.value===n,[u,p]=g.useState(i??""),[y,m]=g.useState(!1),x=na(a,w=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,w,n,s)}),f=SS(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(IB,{scope:r,value:n,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(b=>b||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(sj.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:e.jsx($t.div,{role:"option","aria-labelledby":f,"data-highlighted":y?"":void 0,"aria-selected":h&&y,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:x,onFocus:dt(c.onFocus,()=>m(!0)),onBlur:dt(c.onBlur,()=>m(!1)),onClick:dt(c.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:dt(c.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:dt(c.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:dt(c.onPointerMove,w=>{var b;v.current=w.pointerType,s?(b=d.onItemLeave)==null||b.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:dt(c.onPointerLeave,w=>{var b;w.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:dt(c.onKeyDown,w=>{var S;((S=d.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(yB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});V_.displayName=P9;var bc="SelectItemText",B_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,c=Pr(bc,r),l=_r(bc,r),d=H_(bc,r),h=gB(bc,r),[u,p]=g.useState(null),y=na(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),m=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return Na(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx($t.span,{id:d.textId,...i,ref:y}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?q9.createPortal(i.children,c.valueNode):null]})});B_.displayName=bc;var $_="SelectItemIndicator",U_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return H_($_,r).isSelected?e.jsx($t.span,{"aria-hidden":!0,...n,ref:a}):null});U_.displayName=$_;var wC="SelectScrollUpButton",G_=g.forwardRef((t,a)=>{const r=_r(wC,t.__scopeSelect),n=DS(wC,t.__scopeSelect),[s,i]=g.useState(!1),c=na(a,n.onScrollButtonChange);return Na(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});G_.displayName=wC;var bC="SelectScrollDownButton",W_=g.forwardRef((t,a)=>{const r=_r(bC,t.__scopeSelect),n=DS(bC,t.__scopeSelect),[s,i]=g.useState(!1),c=na(a,n.onScrollButtonChange);return Na(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});W_.displayName=bC;var Z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=_r("SelectScrollButton",r),c=g.useRef(null),l=ij(r),d=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),Na(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx($t.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:dt(s.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(n,50))}),onPointerMove:dt(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),c.current===null&&(c.current=window.setInterval(n,50))}),onPointerLeave:dt(s.onPointerLeave,()=>{d()})})}),AB="SelectSeparator",J_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return e.jsx($t.div,{"aria-hidden":!0,...n,ref:a})});J_.displayName=AB;var MC="SelectArrow",PB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=oj(r),i=Pr(MC,r),c=_r(MC,r);return i.open&&c.position==="popper"?e.jsx(j_,{...s,...n,ref:a}):null});PB.displayName=MC;var _B="SelectBubbleInput",X_=g.forwardRef(({__scopeSelect:t,value:a,...r},n)=>{const s=g.useRef(null),i=na(n,s),c=wS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[c,a]),e.jsx($t.select,{...r,style:{...C_,...r.style},ref:i,defaultValue:a})});X_.displayName=_B;function Y_(t){return t===""||t===void 0}function K_(t){const a=sB(t),r=g.useRef(""),n=g.useRef(0),s=g.useCallback(c=>{const l=r.current+c;a(l),function d(h){r.current=h,window.clearTimeout(n.current),h!==""&&(n.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function Q_(t,a,r){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=r?t.indexOf(r):-1;let c=RB(t,Math.max(i,0));s.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function RB(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var TB=S_,eR=N_,qB=A_,DB=P_,zB=__,tR=R_,EB=z_,aR=O_,rR=V_,FB=B_,OB=U_,nR=G_,sR=W_,zS=J_;const jo=TB,Co=qB,Lr=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(eR,{ref:n,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[a,e.jsx(DB,{asChild:!0,children:e.jsx(bP,{className:"h-4 w-4 opacity-50"})})]}));Lr.displayName=eR.displayName;const iR=g.forwardRef(({className:t,...a},r)=>e.jsx(nR,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(tO,{className:"h-4 w-4"})}));iR.displayName=nR.displayName;const oR=g.forwardRef(({className:t,...a},r)=>e.jsx(sR,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(bP,{className:"h-4 w-4"})}));oR.displayName=sR.displayName;const Nr=g.forwardRef(({className:t,children:a,position:r="popper",...n},s)=>e.jsx(zB,{children:e.jsxs(tR,{ref:s,className:ue("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(iR,{}),e.jsx(EB,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(oR,{})]})}));Nr.displayName=tR.displayName;const HB=g.forwardRef(({className:t,...a},r)=>e.jsx(aR,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",t),...a}));HB.displayName=aR.displayName;const Et=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(rR,{ref:n,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(OB,{children:e.jsx(KF,{className:"h-4 w-4"})})}),e.jsx(FB,{children:a})]}));Et.displayName=rR.displayName;const VB=g.forwardRef(({className:t,...a},r)=>e.jsx(zS,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",t),...a}));VB.displayName=zS.displayName;function BB(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function $B(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,UB(s,...a)]}function UB(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var dl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},GB=g[" useInsertionEffect ".trim().toString()]||dl;function WB({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=ZB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=JB(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function ZB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return GB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function JB(t){return typeof t=="function"}function lN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function XB(...t){return a=>{let r=!1;const n=t.map(s=>{const i=lN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():lN(t[s],null)}}}}function cR(...t){return g.useCallback(XB(...t),t)}var YB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ES=YB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function KB(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var lR=t=>{const{present:a,children:r}=t,n=QB(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=cR(n.ref,e$(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};lR.displayName="Presence";function QB(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=KB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Il(n.current);i.current=l==="mounted"?h:"none"},[l]),dl(()=>{const h=n.current,u=s.current;if(u!==t){const y=i.current,m=Il(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),dl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=Il(n.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=Il(n.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Il(t){return(t==null?void 0:t.animationName)||"none"}function e$(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var t$=g[" useId ".trim().toString()]||(()=>{}),a$=0;function r$(t){const[a,r]=g.useState(t$());return dl(()=>{t||r(n=>n??String(a$++))},[t]),t||(a?`radix-${a}`:"")}var cj="Collapsible",[n$,JG]=$B(cj),[s$,FS]=n$(cj),dR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:c,...l}=t,[d,h]=WB({prop:n,defaultProp:s??!1,onChange:c,caller:cj});return e.jsx(s$,{scope:r,disabled:i,contentId:r$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(ES.div,{"data-state":HS(d),"data-disabled":i?"":void 0,...l,ref:a})})});dR.displayName=cj;var hR="CollapsibleTrigger",uR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,...n}=t,s=FS(hR,r);return e.jsx(ES.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":HS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:a,onClick:BB(t.onClick,s.onOpenToggle)})});uR.displayName=hR;var OS="CollapsibleContent",pR=g.forwardRef((t,a)=>{const{forceMount:r,...n}=t,s=FS(OS,t.__scopeCollapsible);return e.jsx(lR,{present:r||s.open,children:({present:i})=>e.jsx(i$,{...n,ref:a,present:i})})});pR.displayName=OS;var i$=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,c=FS(OS,r),[l,d]=g.useState(n),h=g.useRef(null),u=cR(a,h),p=g.useRef(0),y=p.current,m=g.useRef(0),x=m.current,f=c.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),dl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const b=w.getBoundingClientRect();p.current=b.height,m.current=b.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(n)}},[c.open,n]),e.jsx(ES.div,{"data-state":HS(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function HS(t){return t?"open":"closed"}var o$=dR;const c$=o$,l$=uR,d$=pR,yR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],mR=yR.flatMap(t=>t.items),fR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},h$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,r)=>a.localeCompare(r)),u$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},p$=t=>{var a,r;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const n=t;return n.title??((a=n.tag)==null?void 0:a.name)??((r=n.tag)==null?void 0:r.slug)??null}return null},y$=t=>{const a=t.productsAndServices.flatMap(r=>[r.name,r.category,r.description,...r.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(p$).filter(r=>!!r),...a].filter(Boolean)},m$=t=>{const a=y$(t).map(u$).join(" ");return mR.filter(r=>r.matchers.some(n=>a.includes(n))).map(r=>r.label)},f$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},x$=t=>h$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),g$=t=>{var n;const a=f$(t),r=((n=t.group)==null?void 0:n.intelligenceProfile)??t.signalsAndInsights;return{products:m$(t),capabilities:x$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:r.profileViews30d,followsCount:r.followsCount,hiringIntensity:r.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},dN=({filters:t,options:a,onFiltersChange:r,onClearFilters:n,resultCount:s})=>{const[i,c]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=y=>{c(m=>({...m,[y]:!m[y]}))},d=(y,m)=>{r({...t,[y]:m})},h=(y,m)=>{const x=t[y],f=x.includes(m)?x.filter(v=>v!==m):[...x,m];d(y,f)},u=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),p=({id:y,title:m,icon:x,children:f})=>e.jsxs(c$,{open:i[y],onOpenChange:()=>l(y),children:[e.jsxs(l$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:m})]}),i[y]?e.jsx(Fo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(hr,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(d$,{className:"pb-4",children:f})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Ot,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{placeholder:"Search companies, products, tags...",value:t.search,onChange:y=>d("search",y.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>d("scope","company"),children:"Companies"}),e.jsx(D,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>d("scope","group"),children:"Groups"})]})]}),u>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[u," filter",u!==1?"s":""," active"]}),e.jsxs(D,{variant:"ghost",size:"sm",onClick:n,className:"text-accent h-auto py-1",children:[e.jsx(wt,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(p,{id:"companyType",title:"Company Type",icon:pt,children:e.jsxs(jo,{value:t.companyType||"all",onValueChange:y=>d("companyType",y==="all"?"":y),children:[e.jsx(Lr,{className:"w-full",children:e.jsx(Co,{placeholder:"All company types"})}),e.jsxs(Nr,{children:[e.jsx(Et,{value:"all",children:"All company types"}),a.companyTypes.map(y=>e.jsx(Et,{value:y,children:y},y))]})]})}),e.jsx(p,{id:"verticals",title:"Verticals",icon:Pc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:a.verticals.map(y=>e.jsx(xe,{variant:t.verticals.includes(y)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>h("verticals",y),children:y},y))})}),e.jsx(p,{id:"products",title:"Products & Services",icon:Qt,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:a.productCategories.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`cat-${y}`,checked:t.productCategories.includes(y),onCheckedChange:()=>h("productCategories",y)}),e.jsx(Q,{htmlFor:`cat-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:y})]},y))})}),e.jsx(p,{id:"normalizedProducts",title:"Normalized Products",icon:ga,children:e.jsx("div",{className:"space-y-3",children:yR.map(y=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:y.category}),e.jsx("div",{className:"space-y-2",children:y.items.map(m=>m.label).filter(m=>a.products.includes(m)).map(m=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`product-${m}`,checked:t.products.includes(m),onCheckedChange:()=>h("products",m)}),e.jsx(Q,{htmlFor:`product-${m}`,className:"text-sm font-normal cursor-pointer flex-1",children:m})]},m))})]},y.category))})}),e.jsx(p,{id:"employees",title:"Company Size",icon:jt,children:e.jsx("div",{className:"space-y-2",children:a.employeeRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`emp-${y}`,checked:t.employeeRanges.includes(y),onCheckedChange:()=>h("employeeRanges",y)}),e.jsxs(Q,{htmlFor:`emp-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," employees"]})]},y))})}),e.jsx(p,{id:"hiring",title:"Hiring",icon:at,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:y=>d("hiringNow",y===!0)}),e.jsxs(Q,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(Q,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:a.openRolesRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`open-roles-${y}`,checked:t.openRolesRanges.includes(y),onCheckedChange:()=>h("openRolesRanges",y)}),e.jsxs(Q,{htmlFor:`open-roles-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," roles"]})]},y))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:y=>d("claimedOnly",y===!0)}),e.jsxs(Q,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(ht,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(p,{id:"credibility",title:"Credibility",icon:ht,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:y=>d("hasLicenses",y===!0)}),e.jsx(Q,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-awards",checked:t.hasAwards,onCheckedChange:y=>d("hasAwards",y===!0)}),e.jsx(Q,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(Q,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:a.yearsActiveRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`years-${y}`,checked:t.yearsActiveRanges.includes(y),onCheckedChange:()=>h("yearsActiveRanges",y)}),e.jsxs(Q,{htmlFor:`years-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," years"]})]},y))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(D,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},k$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,r)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},r))}),v$=t=>{const a=mR.find(r=>r.label===t);return(a==null?void 0:a.label)??t},w$=({entities:t,onClearSelection:a,maxSelections:r})=>e.jsxs(re,{className:"border-border/60",children:[e.jsxs(ye,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",r," selected profiles"]})]}),e.jsx(D,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(oe,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(n=>e.jsx("div",{className:"font-semibold text-sm",children:n.name},n.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:v$(i)},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(xe,{variant:"outline",className:"text-xs",children:i},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},n.id)})]})]})})})]}),b$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(pt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),M$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(Mc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(ga,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),Hj=4,j$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),xR=({companies:t,filterOptions:a,loading:r,page:n,pageSize:s,totalCount:i,totalPages:c,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:y,onViewModeChange:m})=>{const[x,f]=M.useState(!1),[v,k]=M.useState([]),[w,b]=M.useState(!0),{displayCompanies:S,comparisonEntities:C}=M.useMemo(()=>{const T=t.map(F=>{var W,O,ae;const U=h.scope==="group",$=((O=(W=F.group)==null?void 0:W.companies)==null?void 0:O.length)??1;return{company:F,displayName:U?((ae=F.group)==null?void 0:ae.name)??F.groupName??F.name:F.name,openRolesCount:Array.isArray(F.jobs.openRoles)?F.jobs.openRoles.length:F.jobs.openRoles,groupMembersCount:$,isGroup:U,comparisonProfile:g$(F),comparisonId:F.id}});return{displayCompanies:T,comparisonEntities:T.map(F=>({id:F.comparisonId,name:F.displayName,normalizedProfile:F.comparisonProfile}))}},[t,h.scope]),A=M.useMemo(()=>j$(h),[h]),L=M.useMemo(()=>C.filter(T=>v.includes(T.id)),[C,v]);M.useEffect(()=>{k([])},[h.scope]),M.useEffect(()=>{k(T=>T.filter(F=>C.some(U=>U.id===F)))},[C]);const j=T=>{k(F=>F.includes(T)?F.filter(U=>U!==T):F.length>=Hj?F:[...F,T])},N=()=>{k([])},q=i===0?0:(n-1)*s+1,P=Math.min(n*s,i),R=y==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(M$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(yr,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(D,{variant:"outline",onClick:()=>f(!0),className:"w-full",children:[e.jsx(yr,{className:"w-4 h-4 mr-2"}),"Filters",A>0&&e.jsx(xe,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(b$,{viewMode:y,onToggleViewMode:m,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:q,endIndex:P,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[v.length>0&&e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>b(T=>!T),children:[w?"Hide comparison":"Show comparison"," (",v.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(D,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(ja,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),L.length>0&&w&&e.jsx("div",{className:"mb-6",children:e.jsx(w$,{entities:L,onClearSelection:N,maxSelections:Hj})}),r?e.jsx(k$,{count:s}):e.jsx("div",{className:R,children:S.map(T=>e.jsx(CH,{company:T.company,displayName:T.displayName,openRolesCount:T.openRolesCount,groupMembersCount:T.groupMembersCount,isGroup:T.isGroup,viewMode:y,compareId:T.comparisonId,compareSelected:v.includes(T.comparisonId),compareDisabled:!v.includes(T.comparisonId)&&v.length>=Hj,onToggleCompare:j},T.company.id))}),!r&&c>1&&e.jsx(B9,{currentPage:n,totalPages:c,onPageChange:l}),!r&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(pt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(D,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),x&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>f(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(D,{variant:"ghost",size:"icon",onClick:()=>f(!1),children:e.jsx(wt,{className:"w-5 h-5"})})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},_9=g.forwardRef(({className:t,...a},r)=>e.jsx("textarea",{className:ue("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));_9.displayName="Textarea";const C$=({company:t,open:a,onOpenChange:r})=>{const[n,s]=M.useState(1),[i,c]=M.useState({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),l=()=>{s(3)},d=()=>{s(1),c({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),r(!1)};return e.jsx(Ja,{open:a,onOpenChange:d,children:e.jsxs(Aa,{className:"sm:max-w-[500px]",children:[n===1&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(pt,{className:"w-6 h-6 text-accent"})}),e.jsxs(aa,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(fo,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:d,children:"Cancel"}),e.jsxs(D,{variant:"accent",onClick:()=>s(2),children:["Continue",e.jsx(io,{className:"w-4 h-4 ml-2"})]})]})]}),n===2&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{children:[e.jsx(aa,{children:"Verify Your Affiliation"}),e.jsxs(fo,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Pe,{id:"fullName",placeholder:"John Smith",value:i.fullName,onChange:h=>c({...i,fullName:h.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:i.workEmail,onChange:h=>c({...i,workEmail:h.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(at,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:i.jobTitle,onChange:h=>c({...i,jobTitle:h.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(jo,{value:i.relationship,onValueChange:h=>c({...i,relationship:h}),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select your relationship"})}),e.jsxs(Nr,{children:[e.jsx(Et,{value:"employee",children:"Current Employee"}),e.jsx(Et,{value:"founder",children:"Founder / Executive"}),e.jsx(Et,{value:"hr",children:"HR / Recruiting"}),e.jsx(Et,{value:"marketing",children:"Marketing / PR"}),e.jsx(Et,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(_9,{id:"message",placeholder:"Any additional context to help verify your claim...",value:i.message,onChange:h=>c({...i,message:h.target.value}),rows:3})]})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:()=>s(1),children:"Back"}),e.jsx(D,{variant:"accent",onClick:l,disabled:!i.fullName||!i.workEmail||!i.relationship,children:"Submit Claim Request"})]})]}),n===3&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(ht,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(aa,{children:"Claim Request Submitted!"}),e.jsxs(fo,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:i.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(ta,{children:e.jsx(D,{variant:"accent",onClick:d,className:"w-full",children:"Done"})})]})]})})};function m9({job:t,view:a,isSaved:r=!1,onApply:n,onSave:s,onRemove:i,onViewApplication:c}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(zo,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(xe,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(xe,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(xe,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(da,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Apply Now"}),e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save Job"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>c==null?void 0:c(t.id),children:"View Application"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}function jC({article:t,view:a,isSaved:r=!1,onRead:n,onSave:s,onRemove:i}){var c;return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(c=t.categories)==null?void 0:c.map(l=>e.jsx(xe,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ge,{className:"text-lg",children:t.title}),e.jsxs(Ue,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(xe,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>n==null?void 0:n(t.id),children:"Read"})]})]})})]})}const S$=({company:t,jobs:a,news:r,events:n,officeLocations:s})=>{var K,me,je,Z,Y,ke,fe,ve,le,_e,Re;const[i,c]=M.useState(!1),[l,d]=M.useState(!1);if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(pt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Directory"})})]})});const h=((me=(K=t.webIntelligence)==null?void 0:K.menus.primary_nav_details)==null?void 0:me.flatMap(z=>z.key_points))??[],u=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,p=t.signalsAndInsights,y=((je=t.group)==null?void 0:je.name)??t.groupName??t.group_name??null,m=((Z=t.group)==null?void 0:Z.slug)??t.groupSlug??t.group_slug??((Y=t.group)==null?void 0:Y.id)??t.groupId??t.group_id??void 0,x=a??[],f=r??[],v=n??[],k=x.length>0?x.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,w=z=>typeof z=="string"?z:`${z.authority} (${z.jurisdiction})`,b=z=>typeof z=="string"?z:`${z.name} (${z.year})`,S=z=>"name"in z?z.name:z.eventName,C=z=>"startDate"in z?`${z.startDate}${z.endDate?` - ${z.endDate}`:""}`:z.date,A=z=>typeof z=="string"?z:`${z.title} • ${z.source}`,L=z=>typeof z=="object"&&z!==null&&"url"in z,j=z=>{if(typeof z=="string")return z;const se=z.city??z.cities??z.location,Ne=z.country;return`${se??"Remote"}, ${Ne??"Global"}`},N=s??t.overview.officeLocations??[],q=()=>t.claimedStatus==="claimed"?e.jsxs(xe,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(ht,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,P=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function R(z,se){var Te;const Ne=se.toLowerCase();return!(!z.keywords.some(rt=>Ne.includes(rt))||((Te=z.negativeKeywords)==null?void 0:Te.some(rt=>Ne.includes(rt))))}function T(z){return z!==null}const F=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}];function U(z=[]){const se=z.map(Ne=>Ne.toLowerCase());return F.flatMap(Ne=>se.find(Ye=>Ne.aliases.some(Te=>Ye.includes(Te)))?[{name:Ne.name,year:new Date().getFullYear()}]:[])}const $=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]);function W(z=[]){return Array.from(new Set(z.map(se=>se.toLowerCase()).filter(se=>$.has(se)).map(se=>se[0].toUpperCase()+se.slice(1))))}const O=(ve=(fe=(ke=t.webIntelligence)==null?void 0:ke.signals)==null?void 0:fe.evidence)==null?void 0:ve.credibility,ae=U((O==null?void 0:O.awards_mentioned)??[]),ce=W((O==null?void 0:O.countries_mentioned)??[]);function pe(z){return P.map(se=>{const Ne=z.filter(Xe=>R(se,Xe));return Ne.length===0?null:{name:se.name,category:se.category,description:se.description,keyDifferentiators:Array.from(new Set(Ne)),source:"derived",confidence:Math.min(1,Ne.length/5),priority:se.priority}}).filter(T).sort((se,Ne)=>Ne.priority-se.priority)}const ne=pe(h),de=[...t.productsAndServices??[],...ne??[]];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ha,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(pt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),q()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(xe,{variant:"secondary",children:t.companyType}),y&&e.jsx("a",{href:m?`/groups/${m}`:"/groups",children:e.jsxs(xe,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",y]})}),t.classification.verticals.map(z=>e.jsx(xe,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:z},z))]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-primary-foreground/80 text-sm mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"w-4 h-4"}),t.overview.headquarters.city,", ",t.overview.headquarters.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(oo,{className:"w-4 h-4"}),"Founded ",t.overview.foundedYear]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-4 h-4"}),t.overview.employeeRange," employees"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(D,{variant:"accent",onClick:()=>d(!l),children:[l?e.jsx(ht,{className:"w-4 h-4 mr-2"}):e.jsx(vt,{className:"w-4 h-4 mr-2"}),l?"Following":"Follow"]}),e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(Do,{className:"w-4 h-4 mr-2"}),"Save"]}),t.claimedStatus==="unclaimed"&&e.jsx(D,{variant:"ghost",className:"text-primary-foreground",onClick:()=>c(!0),children:"Claim Profile"})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:k}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(p.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:u}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(Ir,{defaultValue:"overview",className:"space-y-6",children:[e.jsxs(Za,{className:"flex-wrap h-auto gap-1 bg-secondary/50 p-1",children:[e.jsxs(Ce,{value:"overview",children:[e.jsx(Ho,{className:"w-4 h-4 mr-1.5"}),"Overview"]}),e.jsxs(Ce,{value:"products",children:[e.jsx(Fc,{className:"w-4 h-4 mr-1.5"}),"Products"]}),e.jsxs(Ce,{value:"trust",children:[e.jsx(gr,{className:"w-4 h-4 mr-1.5"}),"Trust"]}),e.jsxs(Ce,{value:"people",children:[e.jsx(Gc,{className:"w-4 h-4 mr-1.5"}),"People"]}),e.jsxs(Ce,{value:"jobs",children:[e.jsx(at,{className:"w-4 h-4 mr-1.5"}),"Jobs"]}),e.jsxs(Ce,{value:"news",children:[e.jsx(Ma,{className:"w-4 h-4 mr-1.5"}),"News"]}),e.jsxs(Ce,{value:"events",children:[e.jsx(Cc,{className:"w-4 h-4 mr-1.5"}),"Events"]}),e.jsxs(Ce,{value:"insights",children:[e.jsx(lo,{className:"w-4 h-4 mr-1.5"}),"Insights"]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(Se,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"About"})}),e.jsxs(oe,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.overview.longDescription||t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.classification.tags.map(z=>e.jsxs(xe,{variant:"secondary",children:["#",z]},z))})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Office Locations"})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:N.map((z,se)=>e.jsxs(xe,{variant:"outline",children:[e.jsx(it,{className:"w-3 h-3 mr-1"}),j(z)]},se))})})]})]}),e.jsx(Se,{value:"products",className:"space-y-4 mt-0",children:de.map((z,se)=>e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ge,{className:"text-lg",children:z.name}),e.jsx(xe,{variant:"secondary",className:"mt-1",children:z.category})]})})}),e.jsxs(oe,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:z.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:z.keyDifferentiators.map((Ne,Xe)=>e.jsxs(xe,{variant:"outline",children:[e.jsx(Wc,{className:"w-3 h-3 mr-1"}),Ne]},Xe))})]})]},se))}),e.jsxs(Se,{value:"trust",className:"space-y-4 mt-0",children:[t.trustAndCompliance.licenses.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(gr,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.licenses.map((z,se)=>e.jsx(xe,{className:"bg-gaming-success/10 text-gaming-success",children:w(z)},se))})})]}),t.trustAndCompliance.awards.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jt,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.awards.map((z,se)=>e.jsx(xe,{className:"bg-gaming-gold/10 text-gaming-gold",children:b(z)},se))})})]}),ae.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jt,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:ae.map((z,se)=>e.jsxs(xe,{variant:"outline",children:[z.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},se))})})]}),ce.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Qt,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:ce.map((z,se)=>e.jsx(xe,{variant:"secondary",children:z},se))})})]})]}),e.jsx(Se,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ge,{children:["Open Positions (",k,")"]}),e.jsx(xe,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:x.length===0?e.jsx(re,{children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):x.map(z=>e.jsx(m9,{job:z,view:"company"},z.id))})]})}),e.jsx(Se,{value:"people",className:"mt-0",children:e.jsx(re,{children:e.jsx(oe,{className:"py-6 space-y-4",children:t.people.members.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.people.members.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:z.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:z.title})]}),z.profileUrl&&e.jsx("a",{href:z.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View Profile"})})]},se))})})}),e.jsx(Se,{value:"news",className:"mt-0",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{children:["News (",f.length,")"]})}),e.jsx(oe,{className:"py-6 space-y-4",children:f.length>0?e.jsx("div",{className:"grid gap-4",children:f.map(z=>e.jsx(jC,{article:z,view:"company",onRead:()=>window.open(z.link,"_blank")},z.id))}):(_e=(le=t.newsAndMedia)==null?void 0:le.pressMentions)!=null&&_e.length?t.newsAndMedia.pressMentions.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:A(z)}),L(z)&&z.url&&e.jsx("a",{href:z.url,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"Read"})})]},se)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})}),e.jsx(Se,{value:"events",className:"space-y-4 mt-0",children:v.length>0?e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(oe,{children:e.jsx("div",{className:"grid gap-4 p-4",children:v.map(z=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[z.conference," - ",z.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",z.stand]})]}),e.jsx("a",{href:z.link,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View"})})]},z._id))})})]}):t.events.upcomingEvents.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:S(z)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[z.location," • ",C(z)]})]}),t.events.bookMeetingEnabled&&e.jsx(D,{size:"sm",variant:"accent",children:"Book Meeting"})]},se))}),e.jsx(Se,{value:"insights",className:"mt-0",children:e.jsx(re,{children:e.jsxs(oe,{className:"py-12 text-center",children:[e.jsx(lo,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(D,{variant:"accent",children:"Upgrade to Access"})]})})})]}),e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-base",children:"Contact"})}),e.jsxs(oe,{className:"space-y-3",children:[e.jsxs("a",{href:t.overview.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(Qt,{className:"w-4 h-4"}),t.overview.website.replace(/^https?:\/\//,"")]}),((Re=t.overview.socialLinks)==null?void 0:Re.linkedin)&&e.jsxs("a",{href:t.overview.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(qc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-base",children:"Similar Companies"})}),e.jsx(oe,{className:"space-y-2",children:p.similarCompanies.map((z,se)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:z},se))})]})]})]})]})})}),e.jsx(C$,{company:t,open:i,onOpenChange:c})]})},L$=({group:t})=>{var n,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(pt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,r=((n=t.companies)==null?void 0:n.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ha,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(pt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(xe,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(Qt,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:r}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Group Overview"})}),e.jsxs(oe,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(Qt,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Member Companies"})}),e.jsxs(oe,{className:"space-y-3",children:[r===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const c=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${c?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),c&&e.jsx(xe,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Group Intelligence"})}),e.jsxs(oe,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(vt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(ja,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(jt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},N$=t=>{var a,r;if(t){if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const n=JSON.parse(t.replace(/'/g,'"'));return n==null?void 0:n.url}catch{return}if(typeof t=="object")return(t==null?void 0:t.url)??((r=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:r.url)}},gR=t=>{if(t)return{profileViews30d:t.profile_views_30d??t.profileViews30d??0,followsCount:t.follows_count??t.followsCount??0,hiringIntensity:t.hiring_intensity??t.hiringIntensity??"Low",topSkillsHiring:t.top_skills_hiring??t.topSkillsHiring??[],topViewingCountries:t.top_viewing_countries??t.topViewingCountries??[],oftenComparedWith:t.often_compared_with??t.oftenComparedWith??[],similarCompanies:t.similar_companies??t.similarCompanies??[]}},I$=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},A$=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),P$=t=>{if(t)return{id:String(t.id??t.group_id??""),name:t.name??t.group_name??"",slug:t.slug,website:t.website,description:t.description,primaryCompanyId:t.primary_company_id??t.primaryCompanyId,companies:Array.isArray(t.companies)?t.companies.map(A$):void 0,intelligenceProfile:gR(t.intelligence_profile??t.intelligenceProfile)}},_$=t=>{var a,r,n,s;return{...t,logo:N$(t.logo),group:P$(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((r=t.group)==null?void 0:r.name),groupSlug:t.group_slug??t.groupSlug??((n=t.group)==null?void 0:n.slug),signalsAndInsights:gR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,intelligenceProfile:I$(t.intelligence_profile??t.intelligenceProfile),classification:{...t.classification,tags:(((s=t.classification)==null?void 0:s.tags)??[]).map(i=>typeof i=="string"?i:i.title??i.tag??"")}}},R$=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(_$):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),T$=(t,a)=>{const{buildUrl:r,initialData:n}=a,[s,i]=M.useState(n??null),[c,l]=M.useState(!n),d=M.useMemo(()=>r(t),[r,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(R$(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:c}},CC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},gt=(t,a)=>{var r;return((r=t.get(a))==null?void 0:r.split(",").filter(Boolean))??[]},hN=(t,a)=>{const r=Number(t);return Number.isFinite(r)&&r>0?r:a},q$=t=>{var r,n,s,i,c,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(r=t.filters.country)!=null&&r.length&&a.set("filters[country]",t.filters.country.join(",")),(n=t.filters.products)!=null&&n.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(c=t.filters.productCategories)!=null&&c.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},D$=(t,a=CC)=>{const r=new URLSearchParams(t),n=r.get("scope"),s=n==="group"||n==="company"?n:a.scope,i=r.get("query")??r.get("search")??a.query??"",c=r.get("pageSize")??r.get("page_size");return{...a,query:i,sort:r.get("sort")??a.sort,page:hN(r.get("page"),a.page),pageSize:hN(c,a.pageSize),scope:s,segment:r.get("segment")??a.segment,subcategory:r.get("subcategory")??a.subcategory,region:r.get("region")??a.region,filters:{companyType:r.get("filters[companyType]")??r.get("companyType")??a.filters.companyType,country:gt(r,"filters[country]").concat(gt(r,"country")),products:gt(r,"filters[products]").concat(gt(r,"products")),employees:gt(r,"filters[employees]").concat(gt(r,"employees")).concat(gt(r,"employeeRanges")),verticals:gt(r,"filters[verticals]").concat(gt(r,"verticals")),productCategories:gt(r,"filters[productCategories]").concat(gt(r,"productCategories")),openRoles:gt(r,"filters[openRoles]").concat(gt(r,"openRoles")),yearsActive:gt(r,"filters[yearsActive]").concat(gt(r,"yearsActive")),hiringNow:["true","1","yes"].includes(r.get("filters[hiringNow]")??r.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(r.get("filters[claimedOnly]")??r.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(r.get("filters[hasLicenses]")??r.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(r.get("filters[hasAwards]")??r.get("hasAwards")??"")}}},z$=t=>({...fR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),E$=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),F$=({initialData:t,initialFilterOptions:a,buildUrl:r,initialQuery:n})=>{const[s,i]=M.useState(()=>n||(typeof window>"u"?CC:D$(window.location.search,CC))),[c,l]=M.useState("list"),[d,h]=M.useState(a),{data:u,loading:p}=T$(s,{buildUrl:r,initialData:t}),y=u??t,m=M.useMemo(()=>z$(s),[s]);M.useEffect(()=>{if(typeof window>"u")return;const b=q$(s),S=b?`${window.location.pathname}?${b}`:window.location.pathname;window.history.replaceState(null,"",S)},[s]),M.useEffect(()=>{u!=null&&u.filterOptions&&h(u.filterOptions)},[u]);const x=b=>{i(S=>({...S,query:b.search,scope:b.scope,filters:E$(b),page:1}))},f=()=>{x(fR)},v=b=>{i(S=>({...S,page:b}))},k=b=>{i(S=>({...S,pageSize:b,page:1}))},w=()=>{l(b=>b==="grid"?"list":"grid")};return e.jsx(xR,{companies:y.results,loading:p,page:y.page,pageSize:y.pageSize||s.pageSize,totalCount:y.count,totalPages:y.totalPages,onPageChange:v,onPageSizeChange:k,filters:m,filterOptions:d,onFiltersChange:x,onClearFilters:f,viewMode:c,onViewModeChange:w})};var SC={exports:{}},VS={};function O$(t){return t&&t.__esModule?t:{default:t}}VS._=O$;var kR={};function vR(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,r=new WeakMap;return(vR=function(n){return n?r:a})(t)}function H$(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=vR(a);if(r&&r.has(t))return r.get(t);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var c=s?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}kR._=H$;var Vj={},uN;function V$(){return uN||(uN=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=VS._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Vj)),Vj}var Al={exports:{}},pN;function B$(){return pN||(pN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(c){return["async","defer","noModule"].includes(c)}function i(c,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||n.includes(d)||h===void 0)continue;const u=r[d]||d.toLowerCase();c.tagName==="SCRIPT"&&s(u)?c[u]=!!h:c.setAttribute(u,String(h)),(h===!1||c.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(c.setAttribute(u,""),c.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Al,Al.exports)),Al.exports}var Pl={exports:{}},yN;function $$(){return yN||(yN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function r(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}r(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let c=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-c))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Pl,Pl.exports)),Pl.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function r(C,A){for(var L in A)Object.defineProperty(C,L,{enumerable:!0,get:A[L]})}r(a,{default:function(){return S},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const n=VS,s=kR,i=e,c=n._(LC),l=s._(M),d=V$(),h=B$(),u=$$(),p=new Map,y=new Set,m=C=>{if(c.default.preinit){C.forEach(A=>{c.default.preinit(A,{as:"style"})});return}if(typeof window<"u"){let A=document.head;C.forEach(L=>{let j=document.createElement("link");j.type="text/css",j.rel="stylesheet",j.href=L,A.appendChild(j)})}},x=C=>{const{src:A,id:L,onLoad:j=()=>{},onReady:N=null,dangerouslySetInnerHTML:q,children:P="",strategy:R="afterInteractive",onError:T,stylesheets:F}=C,U=L||A;if(U&&y.has(U))return;if(p.has(A)){y.add(U),p.get(A).then(j,T);return}const $=()=>{N&&N(),y.add(U)},W=document.createElement("script"),O=new Promise((ae,ce)=>{W.addEventListener("load",function(pe){ae(),j&&j.call(this,pe),$()}),W.addEventListener("error",function(pe){ce(pe)})}).catch(function(ae){T&&T(ae)});q?(W.innerHTML=q.__html||"",$()):P?(W.textContent=typeof P=="string"?P:Array.isArray(P)?P.join(""):"",$()):A&&(W.src=A,p.set(A,O)),(0,h.setAttributesFromProps)(W,C),R==="worker"&&W.setAttribute("type","text/partytown"),W.setAttribute("data-nscript",R),F&&m(F),document.body.appendChild(W)};function f(C){const{strategy:A="afterInteractive"}=C;A==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))}):x(C)}function v(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(A=>{const L=A.id||A.getAttribute("src");y.add(L)})}function w(C){C.forEach(f),k()}function b(C){const{id:A,src:L="",onLoad:j=()=>{},onReady:N=null,strategy:q="afterInteractive",onError:P,stylesheets:R,...T}=C,{updateScripts:F,scripts:U,getIsSsr:$,appDir:W,nonce:O}=(0,l.useContext)(d.HeadManagerContext),ae=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const pe=A||L;ae.current||(N&&pe&&y.has(pe)&&N(),ae.current=!0)},[N,A,L]);const ce=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{ce.current||(q==="afterInteractive"?x(C):q==="lazyOnload"&&v(C),ce.current=!0)},[C,q]),(q==="beforeInteractive"||q==="worker")&&(F?(U[q]=(U[q]||[]).concat([{id:A,src:L,onLoad:j,onReady:N,onError:P,...T}]),F(U)):$&&$()?y.add(A||L):$&&!$()&&x(C)),W){if(R&&R.forEach(pe=>{c.default.preinit(pe,{as:"style"})}),q==="beforeInteractive")return L?(c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin}),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([L,{...T,id:A}])+")"}})):(T.dangerouslySetInnerHTML&&(T.children=T.dangerouslySetInnerHTML.__html,delete T.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...T,id:A}])+")"}}));q==="afterInteractive"&&L&&c.default.preload(L,T.integrity?{as:"script",integrity:T.integrity,nonce:O,crossOrigin:T.crossOrigin}:{as:"script",nonce:O,crossOrigin:T.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});const S=b;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(SC,SC.exports);var U$=SC.exports,G$=U$;const W$=jT(G$),Z$=`
|
|
7825
|
+
*/var HL;function OO(){return HL||(HL=1,process.env.NODE_ENV!=="production"&&function(){function t(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}function a(y,x){u||s.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=x();if(!p){var v=x();i(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=c({inst:{value:f,getSnapshot:x}});var k=v[0].inst,w=v[1];return d(function(){k.value=f,k.getSnapshot=x,r(k)&&w({inst:k})},[y,f,x]),l(function(){return r(k)&&w({inst:k}),y(function(){r(k)&&w({inst:k})})},[y]),h(f),f}function r(y){var x=y.getSnapshot;y=y.value;try{var f=x();return!i(y,f)}catch{return!0}}function n(y,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=M,i=typeof Object.is=="function"?Object.is:t,c=s.useState,l=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue,u=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:a;Ej.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ej}process.env.NODE_ENV==="production"?yC.exports=FO():yC.exports=OO();var HO=yC.exports;function VO(){return HO.useSyncExternalStore(BO,()=>!0,()=>!1)}function BO(){return()=>{}}var kS="Avatar",[$O,YG]=qO(kS),[UO,IP]=$O(kS),AP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,...n}=t,[s,i]=g.useState("idle");return e.jsx(UO,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:i,children:e.jsx(gS.span,{...n,ref:a})})});AP.displayName=kS;var PP="AvatarImage",_P=g.forwardRef((t,a)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:s=()=>{},...i}=t,c=IP(PP,r),l=GO(n,i),d=zO(h=>{s(h),c.onImageLoadingStatusChange(h)});return pC(()=>{l!=="idle"&&d(l)},[l,d]),l==="loaded"?e.jsx(gS.img,{...i,ref:a,src:n}):null});_P.displayName=PP;var RP="AvatarFallback",TP=g.forwardRef((t,a)=>{const{__scopeAvatar:r,delayMs:n,...s}=t,i=IP(RP,r),[c,l]=g.useState(n===void 0);return g.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(d)}},[n]),c&&i.imageLoadingStatus!=="loaded"?e.jsx(gS.span,{...s,ref:a}):null});TP.displayName=RP;function VL(t,a){return t?a?(t.src!==a&&(t.src=a),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function GO(t,{referrerPolicy:a,crossOrigin:r}){const n=VO(),s=g.useRef(null),i=n?(s.current||(s.current=new window.Image),s.current):null,[c,l]=g.useState(()=>VL(i,t));return pC(()=>{l(VL(i,t))},[i,t]),pC(()=>{const d=p=>()=>{l(p)};if(!i)return;const h=d("loaded"),u=d("error");return i.addEventListener("load",h),i.addEventListener("error",u),a&&(i.referrerPolicy=a),typeof r=="string"&&(i.crossOrigin=r),()=>{i.removeEventListener("load",h),i.removeEventListener("error",u)}},[i,r,a]),c}var qP=AP,DP=_P,zP=TP;const EP=g.forwardRef(({className:t,...a},r)=>e.jsx(qP,{ref:r,className:ue("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));EP.displayName=qP.displayName;const FP=g.forwardRef(({className:t,...a},r)=>e.jsx(DP,{ref:r,className:ue("aspect-square h-full w-full",t),...a}));FP.displayName=DP.displayName;const OP=g.forwardRef(({className:t,...a},r)=>e.jsx(zP,{ref:r,className:ue("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));OP.displayName=zP.displayName;const WO=D9("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-yellow-200/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xe({className:t,variant:a,...r}){return e.jsx("div",{className:ue(WO({variant:a}),t),...r})}function BL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function ZO(...t){return a=>{let r=!1;const n=t.map(s=>{const i=BL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():BL(t[s],null)}}}}var JO=Symbol.for("react.lazy"),S9=g[" use ".trim().toString()];function XO(t){return typeof t=="object"&&t!==null&&"then"in t}function HP(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===JO&&"_payload"in t&&XO(t._payload)}function YO(t){const a=KO(t),r=g.forwardRef((n,s)=>{let{children:i,...c}=n;HP(i)&&typeof S9=="function"&&(i=S9(i._payload));const l=g.Children.toArray(i),d=l.find(eH);if(d){const h=d.props.children,u=l.map(p=>p===d?g.Children.count(h)>1?g.Children.only(null):g.isValidElement(h)?h.props.children:null:p);return e.jsx(a,{...c,ref:s,children:g.isValidElement(h)?g.cloneElement(h,void 0,u):null})}return e.jsx(a,{...c,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}function KO(t){const a=g.forwardRef((r,n)=>{let{children:s,...i}=r;if(HP(s)&&typeof S9=="function"&&(s=S9(s._payload)),g.isValidElement(s)){const c=aH(s),l=tH(i,s.props);return s.type!==g.Fragment&&(l.ref=n?ZO(n,c):c),g.cloneElement(s,l)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var QO=Symbol("radix.slottable");function eH(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===QO}function tH(t,a){const r={...a};for(const n in a){const s=t[n],i=a[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...l)=>{const d=i(...l);return s(...l),d}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function aH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var rH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nH=rH.reduce((t,a)=>{const r=YO(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),sH="Separator",$L="horizontal",iH=["horizontal","vertical"],VP=g.forwardRef((t,a)=>{const{decorative:r,orientation:n=$L,...s}=t,i=oH(n)?n:$L,l=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return e.jsx(nH.div,{"data-orientation":i,...l,...s,ref:a})});VP.displayName=sH;function oH(t){return iH.includes(t)}var BP=VP;const p9=g.forwardRef(({className:t,orientation:a="horizontal",decorative:r=!0,...n},s)=>e.jsx(BP,{ref:s,decorative:r,orientation:a,className:ue("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));p9.displayName=BP.displayName;const cH=({candidateData:t})=>{var l;const[a,r]=M.useState(!1),{profileData:n,first_name:s,last_name:i}=t,c=`${s[0]}${i[0]}`;return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("header",{className:"bg-card border-b border-border sticky top-0 z-50",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("a",{href:"/jobs",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(ur,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:"Back to Search"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>r(!a),children:[e.jsx(Va,{className:`w-4 h-4 mr-2 ${a?"fill-accent text-accent":""}`}),a?"Saved":"Save"]}),e.jsxs(D,{variant:"outline",size:"sm",children:[e.jsx(ho,{className:"w-4 h-4 mr-2"}),"Share"]}),e.jsxs(D,{variant:"accent",size:"sm",children:[e.jsx(fr,{className:"w-4 h-4 mr-2"}),"Contact"]})]})]})})}),e.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/90 to-accent/80 h-32 md:h-48"}),e.jsx("div",{className:"container mx-auto px-4 -mt-16 md:-mt-20 pb-12",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsx(re,{className:"overflow-visible",children:e.jsx(oe,{className:"pt-0",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"-mt-12 md:-mt-16",children:e.jsxs(EP,{className:"w-28 h-28 md:w-36 md:h-36 border-4 border-card shadow-lg",children:[e.jsx(FP,{src:""}),e.jsx(OP,{className:"bg-gradient-to-br from-accent to-accent/80 text-white text-3xl md:text-4xl font-bold",children:c})]})}),e.jsx("div",{className:"flex-1 pt-2 md:pt-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-foreground",children:n.personalDetails.fullName}),e.jsx("p",{className:"text-lg text-muted-foreground mt-1",children:"Business / Data Analyst"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-3 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(it,{className:"w-4 h-4 text-accent"}),n.personalDetails.location]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Qt,{className:"w-4 h-4 text-accent"}),n.personalDetails.nationality]})]})]}),e.jsxs("div",{className:"flex gap-6 text-center",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"15+"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Years Exp."})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"5"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Roles"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-2xl font-bold text-accent",children:"3"}),e.jsx("div",{className:"text-xs text-muted-foreground",children:"Languages"})]})]})]})})]})})}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"w-5 h-5 text-accent"}),"About"]})}),e.jsx(oe,{children:e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n.personalDetails.summary})})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(at,{className:"w-5 h-5 text-accent"}),"Experience"]})}),e.jsx(oe,{className:"space-y-6",children:n.workExperience.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(pt,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-start md:justify-between gap-1",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.title}),e.jsx("p",{className:"text-accent font-medium",children:d.company})]}),e.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-muted-foreground whitespace-nowrap",children:[e.jsx(oo,{className:"w-4 h-4"}),d.period]})]}),d.location&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1",children:[e.jsx(it,{className:"w-3 h-3"}),d.location]}),d.summary&&e.jsx("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:d.summary}),d.tags&&d.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:d.tags.map(u=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:u},u))})]})]}),h<n.workExperience.length-1&&e.jsx(p9,{className:"mt-6"})]},d.id))})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(mr,{className:"w-5 h-5 text-accent"}),"Education"]})}),e.jsx(oe,{className:"space-y-6",children:n.education.map((d,h)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-lg bg-muted flex items-center justify-center",children:e.jsx(mr,{className:"w-6 h-6 text-accent"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:d.degree}),e.jsx("p",{className:"text-accent font-medium",children:d.institution}),e.jsx(xe,{variant:"outline",className:"mt-2 text-xs",children:d.level})]})]}),h<n.education.length-1&&e.jsx(p9,{className:"mt-6"})]},h))})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(re,{className:"sticky top-20",children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-lg",children:"Contact Information"})}),e.jsxs(oe,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(ea,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email"}),e.jsx("p",{className:"text-sm font-medium truncate",children:n.personalDetails.email})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(xr,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Phone"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.phone})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center",children:e.jsx(it,{className:"w-5 h-5 text-accent"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Location"}),e.jsx("p",{className:"text-sm font-medium",children:n.personalDetails.location})]})]}),e.jsx(p9,{}),e.jsxs(D,{variant:"accent",className:"w-full",children:[e.jsx(fr,{className:"w-4 h-4 mr-2"}),"Send Message"]}),((l=n.resume)==null?void 0:l.url)&&e.jsxs(D,{variant:"outline",className:"w-full",children:[e.jsx(Nc,{className:"w-4 h-4 mr-2"}),"Download Resume"]})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(Jt,{className:"w-5 h-5 text-accent"}),"Skills"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(d=>e.jsx(xe,{variant:"secondary",className:"px-3 py-1",children:d},d))})})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(_c,{className:"w-5 h-5 text-accent"}),"Languages"]})}),e.jsx(oe,{className:"space-y-3",children:n.languages.map(d=>e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-medium text-foreground",children:d.name}),e.jsx(xe,{variant:"outline",className:"text-xs",children:d.proficiency})]},d.name))})]})]})]})})]})};function UL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function lH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=UL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():UL(t[s],null)}}}}function vS(...t){return g.useCallback(lH(...t),t)}function dH(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,hH(s,...a)]}function hH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function GL(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var mC=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},uH=g[" useInsertionEffect ".trim().toString()]||mC;function pH({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=yH({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=mH(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function yH({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return uH(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function mH(t){return typeof t=="function"}function wS(t){const a=g.useRef({value:t,previous:t});return g.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var fH=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function bS(t){const[a,r]=g.useState(void 0);return fH(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let c,l;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,l=h.blockSize}else c=t.offsetWidth,l=t.offsetHeight;r({width:c,height:l})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),a}function xH(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $P=t=>{const{present:a,children:r}=t,n=gH(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=vS(n.ref,kH(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$P.displayName="Presence";function gH(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=xH(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Ll(n.current);i.current=l==="mounted"?h:"none"},[l]),mC(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Ll(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),mC(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Ll(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Ll(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Ll(t){return(t==null?void 0:t.animationName)||"none"}function kH(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var vH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],MS=vH.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),Q9="Checkbox",[wH,KG]=dH(Q9),[bH,jS]=wH(Q9);function MH(t){const{__scopeCheckbox:a,checked:r,children:n,defaultChecked:s,disabled:i,form:c,name:l,onCheckedChange:d,required:h,value:u="on",internal_do_not_use_render:p}=t,[m,y]=pH({prop:r,defaultProp:s??!1,onChange:d,caller:Q9}),[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useRef(!1),b=x?!!c||!!x.closest("form"):!0,S={checked:m,disabled:i,setChecked:y,control:x,setControl:f,name:l,form:c,value:u,hasConsumerStoppedPropagationRef:w,required:h,defaultChecked:br(s)?!1:s,isFormControl:b,bubbleInput:v,setBubbleInput:k};return e.jsx(bH,{scope:a,...S,children:jH(p)?p(S):n})}var UP="CheckboxTrigger",GP=g.forwardRef(({__scopeCheckbox:t,onKeyDown:a,onClick:r,...n},s)=>{const{control:i,value:c,disabled:l,checked:d,required:h,setControl:u,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:x}=jS(UP,t),f=vS(s,u),v=g.useRef(d);return g.useEffect(()=>{const k=i==null?void 0:i.form;if(k){const w=()=>p(v.current);return k.addEventListener("reset",w),()=>k.removeEventListener("reset",w)}},[i,p]),e.jsx(MS.button,{type:"button",role:"checkbox","aria-checked":br(d)?"mixed":d,"aria-required":h,"data-state":YP(d),"data-disabled":l?"":void 0,disabled:l,value:c,...n,ref:f,onKeyDown:GL(a,k=>{k.key==="Enter"&&k.preventDefault()}),onClick:GL(r,k=>{p(w=>br(w)?!0:!w),x&&y&&(m.current=k.isPropagationStopped(),m.current||k.stopPropagation())})})});GP.displayName=UP;var CS=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d,onCheckedChange:h,form:u,...p}=t;return e.jsx(MH,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:l,required:c,onCheckedChange:h,name:n,form:u,value:d,internal_do_not_use_render:({isFormControl:m})=>e.jsxs(e.Fragment,{children:[e.jsx(GP,{...p,ref:a,__scopeCheckbox:r}),m&&e.jsx(XP,{__scopeCheckbox:r})]})})});CS.displayName=Q9;var WP="CheckboxIndicator",ZP=g.forwardRef((t,a)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=jS(WP,r);return e.jsx($P,{present:n||br(i.checked)||i.checked===!0,children:e.jsx(MS.span,{"data-state":YP(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...t.style}})})});ZP.displayName=WP;var JP="CheckboxBubbleInput",XP=g.forwardRef(({__scopeCheckbox:t,...a},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:c,required:l,disabled:d,name:h,value:u,form:p,bubbleInput:m,setBubbleInput:y}=jS(JP,t),x=vS(r,y),f=wS(i),v=bS(n);g.useEffect(()=>{const w=m;if(!w)return;const b=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(b,"checked").set,A=!s.current;if(f!==i&&C){const L=new Event("click",{bubbles:A});w.indeterminate=br(i),C.call(w,br(i)?!1:i),w.dispatchEvent(L)}},[m,f,i,s]);const k=g.useRef(br(i)?!1:i);return e.jsx(MS.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??k.current,required:l,disabled:d,name:h,value:u,form:p,...a,tabIndex:-1,ref:x,style:{...a.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});XP.displayName=JP;function jH(t){return typeof t=="function"}function br(t){return t==="indeterminate"}function YP(t){return br(t)?"indeterminate":t?"checked":"unchecked"}const _t=g.forwardRef(({className:t,...a},r)=>e.jsx(CS,{ref:r,className:ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(ZP,{className:ue("flex items-center justify-center text-current"),children:e.jsx(Eo,{className:"h-4 w-4"})})}));_t.displayName=CS.displayName;const CH=({company:t,displayName:a,openRolesCount:r,groupMembersCount:n,isGroup:s=!1,viewMode:i="list",compareId:c,compareSelected:l=!1,compareDisabled:d=!1,onToggleCompare:h})=>{var A,L,j,N,q,P,T;const u=i==="grid",p=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,m=((A=t.group)==null?void 0:A.intelligenceProfile)??t.signalsAndInsights,y=Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,x=r??y,f=x>0,v=((L=t.group)==null?void 0:L.name)??t.groupName??t.group_name,k=((j=t.group)==null?void 0:j.slug)??t.groupSlug??t.group_slug??((N=t.group)==null?void 0:N.id)??t.groupId??t.group_id,w=R=>{switch(R){case"Operator":return"bg-blue-500/10 text-blue-600 border-blue-500/20";case"Game Provider":return"bg-purple-500/10 text-purple-600 border-purple-500/20";case"Platform Provider":return"bg-emerald-500/10 text-emerald-600 border-emerald-500/20";case"Affiliate":return"bg-orange-500/10 text-orange-600 border-orange-500/20";case"Payments":return"bg-cyan-500/10 text-cyan-600 border-cyan-500/20";default:return"bg-muted text-muted-foreground"}},b=R=>{var E,$,B;if(typeof R=="string")return R;if(typeof R=="object"&&R!==null){const U=R;return U.title??((E=U.tag)==null?void 0:E.title)??(($=U.tag)==null?void 0:$.name)??((B=U.tag)==null?void 0:B.slug)??null}return null},S=(q=t.overview.headquarters)==null?void 0:q.city,C=(P=t.overview.headquarters)==null?void 0:P.country;return e.jsx(re,{className:`group hover:shadow-lg transition-all duration-300 border-border/50 hover:border-accent/30 overflow-hidden ${u?"h-full":""}`,children:e.jsx(oe,{className:`p-5 ${u?"flex h-full flex-col":""}`,children:e.jsxs("div",{className:`flex gap-4 ${u?"flex-col":""}`,children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center flex-shrink-0 border border-border/50",children:e.jsx(pt,{className:"w-8 h-8 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:`mb-2 flex items-start ${u?"flex-col gap-3":"justify-between gap-2"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${t.slug}`,className:"font-semibold text-foreground hover:text-accent transition-colors text-lg",children:a??t.name}),t.claimedStatus==="claimed"&&e.jsx(ht,{className:"w-4 h-4 text-accent flex-shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mt-0.5",children:[(S||C)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"w-3.5 h-3.5"}),[S,C].filter(Boolean).join(", ")]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-3.5 h-3.5"}),t.overview.employeeRange]})]})]}),e.jsxs("div",{className:`flex flex-col gap-2 ${u?"items-start":"items-end"}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_t,{id:`compare-${c??t.id}`,checked:l,disabled:d,onCheckedChange:()=>h==null?void 0:h(c??t.id),"aria-label":`Compare ${a??t.name}`}),e.jsx("label",{htmlFor:`compare-${c??t.id}`,className:`text-xs ${d?"text-muted-foreground":"text-foreground"} cursor-pointer`,children:"Compare"})]}),e.jsx(D,{variant:"outline",size:"sm",className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:"Follow"})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-3",children:[e.jsx(xe,{className:`${w(t.companyType)} border text-xs`,children:t.companyType}),s&&e.jsxs(xe,{variant:"outline",className:"text-xs",children:["Group (",n??1,")"]}),v&&!s&&e.jsx("a",{href:k?`/groups/${k}`:"/groups",children:e.jsxs(xe,{variant:"outline",className:"text-xs",children:["Part of ",v]})}),t.classification.verticals.slice(0,2).map(R=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:R},R)),f&&e.jsxs(xe,{className:"bg-gaming-success/10 text-gaming-success border-gaming-success/20 border text-xs",children:[e.jsx(at,{className:"w-3 h-3 mr-1"}),"Hiring (",x,")"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-3",children:t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:(T=t.classification.tags)==null?void 0:T.map(b).filter(R=>!!R).slice(0,4).map(R=>e.jsxs("span",{className:"text-xs px-2 py-0.5 rounded-full bg-secondary text-secondary-foreground",children:["#",R]},R))}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[p>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(gr,{className:"w-3.5 h-3.5 text-gaming-success"}),p," trust signals"]}),m.followsCount>0&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vt,{className:"w-3.5 h-3.5 text-gaming-gold"}),m.followsCount.toLocaleString()," followers"]}),m.hiringIntensity==="High"&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(ja,{className:"w-3.5 h-3.5 text-accent"}),"High hiring"]})]}),e.jsx("a",{href:`/companies/${t.slug}`,children:e.jsx(D,{variant:"ghost",size:"sm",className:"text-accent hover:text-accent",children:"View Profile →"})})]})]})]})})})};function WL(t,[a,r]){return Math.min(r,Math.max(a,t))}function dt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function KP(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,SH(s,...a)]}function SH(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function ZL(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function LH(...t){return a=>{let r=!1;const n=t.map(s=>{const i=ZL(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():ZL(t[s],null)}}}}function na(...t){return g.useCallback(LH(...t),t)}function NH(t){const a=t+"CollectionProvider",[r,n]=KP(a),[s,i]=r(a,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:v,children:k}=f,w=M.useRef(null),b=M.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:b,collectionRef:w,children:k})};c.displayName=a;const l=t+"CollectionSlot",d=et(l),h=M.forwardRef((f,v)=>{const{scope:k,children:w}=f,b=i(l,k),S=na(v,b.collectionRef);return e.jsx(d,{ref:S,children:w})});h.displayName=l;const u=t+"CollectionItemSlot",p="data-radix-collection-item",m=et(u),y=M.forwardRef((f,v)=>{const{scope:k,children:w,...b}=f,S=M.useRef(null),C=na(v,S),A=i(u,k);return M.useEffect(()=>(A.itemMap.set(S,{ref:S,...b}),()=>void A.itemMap.delete(S))),e.jsx(m,{[p]:"",ref:C,children:w})});y.displayName=u;function x(f){const v=i(t+"CollectionConsumer",f);return M.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((A,L)=>b.indexOf(A.ref.current)-b.indexOf(L.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:h,ItemSlot:y},x,n]}var IH=g.createContext(void 0);function AH(t){const a=g.useContext(IH);return t||a||"ltr"}var Na=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},PH=g[" useId ".trim().toString()]||(()=>{}),_H=0;function SS(t){const[a,r]=g.useState(PH());return Na(()=>{r(n=>n??String(_H++))},[t]),a?`radix-${a}`:""}const RH=["top","right","bottom","left"],Cr=Math.min,Dt=Math.max,L9=Math.round,Nl=Math.floor,Sa=t=>({x:t,y:t}),TH={left:"right",right:"left",bottom:"top",top:"bottom"},qH={start:"end",end:"start"};function fC(t,a,r){return Dt(t,Cr(a,r))}function Ga(t,a){return typeof t=="function"?t(a):t}function Wa(t){return t.split("-")[0]}function dc(t){return t.split("-")[1]}function LS(t){return t==="x"?"y":"x"}function NS(t){return t==="y"?"height":"width"}const DH=new Set(["top","bottom"]);function ba(t){return DH.has(Wa(t))?"y":"x"}function IS(t){return LS(ba(t))}function zH(t,a,r){r===void 0&&(r=!1);const n=dc(t),s=IS(t),i=NS(s);let c=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return a.reference[i]>a.floating[i]&&(c=N9(c)),[c,N9(c)]}function EH(t){const a=N9(t);return[xC(t),a,xC(a)]}function xC(t){return t.replace(/start|end/g,a=>qH[a])}const JL=["left","right"],XL=["right","left"],FH=["top","bottom"],OH=["bottom","top"];function HH(t,a,r){switch(t){case"top":case"bottom":return r?a?XL:JL:a?JL:XL;case"left":case"right":return a?FH:OH;default:return[]}}function VH(t,a,r,n){const s=dc(t);let i=HH(Wa(t),r==="start",n);return s&&(i=i.map(c=>c+"-"+s),a&&(i=i.concat(i.map(xC)))),i}function N9(t){return t.replace(/left|right|bottom|top/g,a=>TH[a])}function BH(t){return{top:0,right:0,bottom:0,left:0,...t}}function QP(t){return typeof t!="number"?BH(t):{top:t,right:t,bottom:t,left:t}}function I9(t){const{x:a,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:a,right:a+n,bottom:r+s,x:a,y:r}}function YL(t,a,r){let{reference:n,floating:s}=t;const i=ba(a),c=IS(a),l=NS(c),d=Wa(a),h=i==="y",u=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2,m=n[l]/2-s[l]/2;let y;switch(d){case"top":y={x:u,y:n.y-s.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:p};break;case"left":y={x:n.x-s.width,y:p};break;default:y={x:n.x,y:n.y}}switch(dc(a)){case"start":y[c]-=m*(r&&h?-1:1);break;case"end":y[c]+=m*(r&&h?-1:1);break}return y}const $H=async(t,a,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:c}=r,l=i.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(a));let h=await c.getElementRects({reference:t,floating:a,strategy:s}),{x:u,y:p}=YL(h,n,d),m=n,y={},x=0;for(let f=0;f<l.length;f++){const{name:v,fn:k}=l[f],{x:w,y:b,data:S,reset:C}=await k({x:u,y:p,initialPlacement:n,placement:m,strategy:s,middlewareData:y,rects:h,platform:c,elements:{reference:t,floating:a}});u=w??u,p=b??p,y={...y,[v]:{...y[v],...S}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(h=C.rects===!0?await c.getElementRects({reference:t,floating:a,strategy:s}):C.rects),{x:u,y:p}=YL(h,m,d)),f=-1)}return{x:u,y:p,placement:m,strategy:s,middlewareData:y}};async function cl(t,a){var r;a===void 0&&(a={});const{x:n,y:s,platform:i,rects:c,elements:l,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:y=0}=Ga(a,t),x=QP(y),v=l[m?p==="floating"?"reference":"floating":p],k=I9(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:u,strategy:d})),w=p==="floating"?{x:n,y:s,width:c.floating.width,height:c.floating.height}:c.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=I9(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:b,strategy:d}):w);return{top:(k.top-C.top+x.top)/S.y,bottom:(C.bottom-k.bottom+x.bottom)/S.y,left:(k.left-C.left+x.left)/S.x,right:(C.right-k.right+x.right)/S.x}}const UH=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:n,placement:s,rects:i,platform:c,elements:l,middlewareData:d}=a,{element:h,padding:u=0}=Ga(t,a)||{};if(h==null)return{};const p=QP(u),m={x:r,y:n},y=IS(s),x=NS(y),f=await c.getDimensions(h),v=y==="y",k=v?"top":"left",w=v?"bottom":"right",b=v?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[y]-m[y]-i.floating[x],C=m[y]-i.reference[y],A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=A?A[b]:0;(!L||!await(c.isElement==null?void 0:c.isElement(A)))&&(L=l.floating[b]||i.floating[x]);const j=S/2-C/2,N=L/2-f[x]/2-1,q=Cr(p[k],N),P=Cr(p[w],N),T=q,R=L-f[x]-P,E=L/2-f[x]/2+j,$=fC(T,E,R),B=!d.arrow&&dc(s)!=null&&E!==$&&i.reference[x]/2-(E<T?q:P)-f[x]/2<0,U=B?E<T?E-T:E-R:0;return{[y]:m[y]+U,data:{[y]:$,centerOffset:E-$-U,...B&&{alignmentOffset:U}},reset:B}}}),GH=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,n;const{placement:s,middlewareData:i,rects:c,initialPlacement:l,platform:d,elements:h}=a,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:f=!0,...v}=Ga(t,a);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const k=Wa(s),w=ba(l),b=Wa(l)===l,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=m||(b||!f?[N9(l)]:EH(l)),A=x!=="none";!m&&A&&C.push(...VH(l,f,x,S));const L=[l,...C],j=await cl(a,v),N=[];let q=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(j[k]),p){const E=zH(s,c,S);N.push(j[E[0]],j[E[1]])}if(q=[...q,{placement:s,overflows:N}],!N.every(E=>E<=0)){var P,T;const E=(((P=i.flip)==null?void 0:P.index)||0)+1,$=L[E];if($&&(!(p==="alignment"?w!==ba($):!1)||q.every(O=>ba(O.placement)===w?O.overflows[0]>0:!0)))return{data:{index:E,overflows:q},reset:{placement:$}};let B=(T=q.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:T.placement;if(!B)switch(y){case"bestFit":{var R;const U=(R=q.filter(O=>{if(A){const ae=ba(O.placement);return ae===w||ae==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(ae=>ae>0).reduce((ae,ce)=>ae+ce,0)]).sort((O,ae)=>O[1]-ae[1])[0])==null?void 0:R[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function KL(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function QL(t){return RH.some(a=>t[a]>=0)}const WH=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r}=a,{strategy:n="referenceHidden",...s}=Ga(t,a);switch(n){case"referenceHidden":{const i=await cl(a,{...s,elementContext:"reference"}),c=KL(i,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:QL(c)}}}case"escaped":{const i=await cl(a,{...s,altBoundary:!0}),c=KL(i,r.floating);return{data:{escapedOffsets:c,escaped:QL(c)}}}default:return{}}}}},e_=new Set(["left","top"]);async function ZH(t,a){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),c=Wa(r),l=dc(r),d=ba(r)==="y",h=e_.has(c)?-1:1,u=i&&d?-1:1,p=Ga(a,t);let{mainAxis:m,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(y=l==="end"?x*-1:x),d?{x:y*u,y:m*h}:{x:m*h,y:y*u}}const JH=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,n;const{x:s,y:i,placement:c,middlewareData:l}=a,d=await ZH(a,t);return c===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:s+d.x,y:i+d.y,data:{...d,placement:c}}}}},XH=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:n,placement:s}=a,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:v=>{let{x:k,y:w}=v;return{x:k,y:w}}},...d}=Ga(t,a),h={x:r,y:n},u=await cl(a,d),p=ba(Wa(s)),m=LS(p);let y=h[m],x=h[p];if(i){const v=m==="y"?"top":"left",k=m==="y"?"bottom":"right",w=y+u[v],b=y-u[k];y=fC(w,y,b)}if(c){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",w=x+u[v],b=x-u[k];x=fC(w,x,b)}const f=l.fn({...a,[m]:y,[p]:x});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[m]:i,[p]:c}}}}}},YH=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:n,placement:s,rects:i,middlewareData:c}=a,{offset:l=0,mainAxis:d=!0,crossAxis:h=!0}=Ga(t,a),u={x:r,y:n},p=ba(s),m=LS(p);let y=u[m],x=u[p];const f=Ga(l,a),v=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(d){const b=m==="y"?"height":"width",S=i.reference[m]-i.floating[b]+v.mainAxis,C=i.reference[m]+i.reference[b]-v.mainAxis;y<S?y=S:y>C&&(y=C)}if(h){var k,w;const b=m==="y"?"width":"height",S=e_.has(Wa(s)),C=i.reference[p]-i.floating[b]+(S&&((k=c.offset)==null?void 0:k[p])||0)+(S?0:v.crossAxis),A=i.reference[p]+i.reference[b]+(S?0:((w=c.offset)==null?void 0:w[p])||0)-(S?v.crossAxis:0);x<C?x=C:x>A&&(x=A)}return{[m]:y,[p]:x}}}},KH=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,n;const{placement:s,rects:i,platform:c,elements:l}=a,{apply:d=()=>{},...h}=Ga(t,a),u=await cl(a,h),p=Wa(s),m=dc(s),y=ba(s)==="y",{width:x,height:f}=i.floating;let v,k;p==="top"||p==="bottom"?(v=p,k=m===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,v=m==="end"?"top":"bottom");const w=f-u.top-u.bottom,b=x-u.left-u.right,S=Cr(f-u[v],w),C=Cr(x-u[k],b),A=!a.middlewareData.shift;let L=S,j=C;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(j=b),(n=a.middlewareData.shift)!=null&&n.enabled.y&&(L=w),A&&!m){const q=Dt(u.left,0),P=Dt(u.right,0),T=Dt(u.top,0),R=Dt(u.bottom,0);y?j=x-2*(q!==0||P!==0?q+P:Dt(u.left,u.right)):L=f-2*(T!==0||R!==0?T+R:Dt(u.top,u.bottom))}await d({...a,availableWidth:j,availableHeight:L});const N=await c.getDimensions(l.floating);return x!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function ej(){return typeof window<"u"}function hc(t){return t_(t)?(t.nodeName||"").toLowerCase():"#document"}function Vt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Pa(t){var a;return(a=(t_(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function t_(t){return ej()?t instanceof Node||t instanceof Vt(t).Node:!1}function ua(t){return ej()?t instanceof Element||t instanceof Vt(t).Element:!1}function Ia(t){return ej()?t instanceof HTMLElement||t instanceof Vt(t).HTMLElement:!1}function eN(t){return!ej()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Vt(t).ShadowRoot}const QH=new Set(["inline","contents"]);function pl(t){const{overflow:a,overflowX:r,overflowY:n,display:s}=pa(t);return/auto|scroll|overlay|hidden|clip/.test(a+n+r)&&!QH.has(s)}const eV=new Set(["table","td","th"]);function tV(t){return eV.has(hc(t))}const aV=[":popover-open",":modal"];function tj(t){return aV.some(a=>{try{return t.matches(a)}catch{return!1}})}const rV=["transform","translate","scale","rotate","perspective"],nV=["transform","translate","scale","rotate","perspective","filter"],sV=["paint","layout","strict","content"];function AS(t){const a=PS(),r=ua(t)?pa(t):t;return rV.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||nV.some(n=>(r.willChange||"").includes(n))||sV.some(n=>(r.contain||"").includes(n))}function iV(t){let a=Sr(t);for(;Ia(a)&&!oc(a);){if(AS(a))return a;if(tj(a))return null;a=Sr(a)}return null}function PS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oV=new Set(["html","body","#document"]);function oc(t){return oV.has(hc(t))}function pa(t){return Vt(t).getComputedStyle(t)}function aj(t){return ua(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Sr(t){if(hc(t)==="html")return t;const a=t.assignedSlot||t.parentNode||eN(t)&&t.host||Pa(t);return eN(a)?a.host:a}function a_(t){const a=Sr(t);return oc(a)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(a)&&pl(a)?a:a_(a)}function ll(t,a,r){var n;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=a_(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),c=Vt(s);if(i){const l=gC(c);return a.concat(c,c.visualViewport||[],pl(s)?s:[],l&&r?ll(l):[])}return a.concat(s,ll(s,[],r))}function gC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function r_(t){const a=pa(t);let r=parseFloat(a.width)||0,n=parseFloat(a.height)||0;const s=Ia(t),i=s?t.offsetWidth:r,c=s?t.offsetHeight:n,l=L9(r)!==i||L9(n)!==c;return l&&(r=i,n=c),{width:r,height:n,$:l}}function _S(t){return ua(t)?t:t.contextElement}function ec(t){const a=_S(t);if(!Ia(a))return Sa(1);const r=a.getBoundingClientRect(),{width:n,height:s,$:i}=r_(a);let c=(i?L9(r.width):r.width)/n,l=(i?L9(r.height):r.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const cV=Sa(0);function n_(t){const a=Vt(t);return!PS()||!a.visualViewport?cV:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function lV(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==Vt(t)?!1:a}function wo(t,a,r,n){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=_S(t);let c=Sa(1);a&&(n?ua(n)&&(c=ec(n)):c=ec(t));const l=lV(i,r,n)?n_(i):Sa(0);let d=(s.left+l.x)/c.x,h=(s.top+l.y)/c.y,u=s.width/c.x,p=s.height/c.y;if(i){const m=Vt(i),y=n&&ua(n)?Vt(n):n;let x=m,f=gC(x);for(;f&&n&&y!==x;){const v=ec(f),k=f.getBoundingClientRect(),w=pa(f),b=k.left+(f.clientLeft+parseFloat(w.paddingLeft))*v.x,S=k.top+(f.clientTop+parseFloat(w.paddingTop))*v.y;d*=v.x,h*=v.y,u*=v.x,p*=v.y,d+=b,h+=S,x=Vt(f),f=gC(x)}}return I9({width:u,height:p,x:d,y:h})}function rj(t,a){const r=aj(t).scrollLeft;return a?a.left+r:wo(Pa(t)).left+r}function s_(t,a){const r=t.getBoundingClientRect(),n=r.left+a.scrollLeft-rj(t,r),s=r.top+a.scrollTop;return{x:n,y:s}}function dV(t){let{elements:a,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",c=Pa(n),l=a?tj(a.floating):!1;if(n===c||l&&i)return r;let d={scrollLeft:0,scrollTop:0},h=Sa(1);const u=Sa(0),p=Ia(n);if((p||!p&&!i)&&((hc(n)!=="body"||pl(c))&&(d=aj(n)),Ia(n))){const y=wo(n);h=ec(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}const m=c&&!p&&!i?s_(c,d):Sa(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+u.x+m.x,y:r.y*h.y-d.scrollTop*h.y+u.y+m.y}}function hV(t){return Array.from(t.getClientRects())}function uV(t){const a=Pa(t),r=aj(t),n=t.ownerDocument.body,s=Dt(a.scrollWidth,a.clientWidth,n.scrollWidth,n.clientWidth),i=Dt(a.scrollHeight,a.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+rj(t);const l=-r.scrollTop;return pa(n).direction==="rtl"&&(c+=Dt(a.clientWidth,n.clientWidth)-s),{width:s,height:i,x:c,y:l}}const tN=25;function pV(t,a){const r=Vt(t),n=Pa(t),s=r.visualViewport;let i=n.clientWidth,c=n.clientHeight,l=0,d=0;if(s){i=s.width,c=s.height;const u=PS();(!u||u&&a==="fixed")&&(l=s.offsetLeft,d=s.offsetTop)}const h=rj(n);if(h<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),y=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-y);x<=tN&&(i-=x)}else h<=tN&&(i+=h);return{width:i,height:c,x:l,y:d}}const yV=new Set(["absolute","fixed"]);function mV(t,a){const r=wo(t,!0,a==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=Ia(t)?ec(t):Sa(1),c=t.clientWidth*i.x,l=t.clientHeight*i.y,d=s*i.x,h=n*i.y;return{width:c,height:l,x:d,y:h}}function aN(t,a,r){let n;if(a==="viewport")n=pV(t,r);else if(a==="document")n=uV(Pa(t));else if(ua(a))n=mV(a,r);else{const s=n_(t);n={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return I9(n)}function i_(t,a){const r=Sr(t);return r===a||!ua(r)||oc(r)?!1:pa(r).position==="fixed"||i_(r,a)}function fV(t,a){const r=a.get(t);if(r)return r;let n=ll(t,[],!1).filter(l=>ua(l)&&hc(l)!=="body"),s=null;const i=pa(t).position==="fixed";let c=i?Sr(t):t;for(;ua(c)&&!oc(c);){const l=pa(c),d=AS(c);!d&&l.position==="fixed"&&(s=null),(i?!d&&!s:!d&&l.position==="static"&&!!s&&yV.has(s.position)||pl(c)&&!d&&i_(t,c))?n=n.filter(u=>u!==c):s=l,c=Sr(c)}return a.set(t,n),n}function xV(t){let{element:a,boundary:r,rootBoundary:n,strategy:s}=t;const c=[...r==="clippingAncestors"?tj(a)?[]:fV(a,this._c):[].concat(r),n],l=c[0],d=c.reduce((h,u)=>{const p=aN(a,u,s);return h.top=Dt(p.top,h.top),h.right=Cr(p.right,h.right),h.bottom=Cr(p.bottom,h.bottom),h.left=Dt(p.left,h.left),h},aN(a,l,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function gV(t){const{width:a,height:r}=r_(t);return{width:a,height:r}}function kV(t,a,r){const n=Ia(a),s=Pa(a),i=r==="fixed",c=wo(t,!0,i,a);let l={scrollLeft:0,scrollTop:0};const d=Sa(0);function h(){d.x=rj(s)}if(n||!n&&!i)if((hc(a)!=="body"||pl(s))&&(l=aj(a)),n){const y=wo(a,!0,i,a);d.x=y.x+a.clientLeft,d.y=y.y+a.clientTop}else s&&h();i&&!n&&s&&h();const u=s&&!n&&!i?s_(s,l):Sa(0),p=c.left+l.scrollLeft-d.x-u.x,m=c.top+l.scrollTop-d.y-u.y;return{x:p,y:m,width:c.width,height:c.height}}function Fj(t){return pa(t).position==="static"}function rN(t,a){if(!Ia(t)||pa(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Pa(t)===r&&(r=r.ownerDocument.body),r}function o_(t,a){const r=Vt(t);if(tj(t))return r;if(!Ia(t)){let s=Sr(t);for(;s&&!oc(s);){if(ua(s)&&!Fj(s))return s;s=Sr(s)}return r}let n=rN(t,a);for(;n&&tV(n)&&Fj(n);)n=rN(n,a);return n&&oc(n)&&Fj(n)&&!AS(n)?r:n||iV(t)||r}const vV=async function(t){const a=this.getOffsetParent||o_,r=this.getDimensions,n=await r(t.floating);return{reference:kV(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function wV(t){return pa(t).direction==="rtl"}const bV={convertOffsetParentRelativeRectToViewportRelativeRect:dV,getDocumentElement:Pa,getClippingRect:xV,getOffsetParent:o_,getElementRects:vV,getClientRects:hV,getDimensions:gV,getScale:ec,isElement:ua,isRTL:wV};function c_(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function MV(t,a){let r=null,n;const s=Pa(t);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function c(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),i();const h=t.getBoundingClientRect(),{left:u,top:p,width:m,height:y}=h;if(l||a(),!m||!y)return;const x=Nl(p),f=Nl(s.clientWidth-(u+m)),v=Nl(s.clientHeight-(p+y)),k=Nl(u),b={rootMargin:-x+"px "+-f+"px "+-v+"px "+-k+"px",threshold:Dt(0,Cr(1,d))||1};let S=!0;function C(A){const L=A[0].intersectionRatio;if(L!==d){if(!S)return c();L?c(!1,L):n=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!c_(h,t.getBoundingClientRect())&&c(),S=!1}try{r=new IntersectionObserver(C,{...b,root:s.ownerDocument})}catch{r=new IntersectionObserver(C,b)}r.observe(t)}return c(!0),i}function jV(t,a,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=_S(t),u=s||i?[...h?ll(h):[],...ll(a)]:[];u.forEach(k=>{s&&k.addEventListener("scroll",r,{passive:!0}),i&&k.addEventListener("resize",r)});const p=h&&l?MV(h,r):null;let m=-1,y=null;c&&(y=new ResizeObserver(k=>{let[w]=k;w&&w.target===h&&y&&(y.unobserve(a),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=y)==null||b.observe(a)})),r()}),h&&!d&&y.observe(h),y.observe(a));let x,f=d?wo(t):null;d&&v();function v(){const k=wo(t);f&&!c_(f,k)&&r(),f=k,x=requestAnimationFrame(v)}return r(),()=>{var k;u.forEach(w=>{s&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),p==null||p(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(x)}}const CV=JH,SV=XH,LV=GH,NV=KH,IV=WH,nN=UH,AV=YH,PV=(t,a,r)=>{const n=new Map,s={platform:bV,...r},i={...s.platform,_c:n};return $H(t,a,{...s,platform:i})};var _V=typeof document<"u",RV=function(){},y9=_V?M.useLayoutEffect:RV;function A9(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,n,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(n=r;n--!==0;)if(!A9(t[n],a[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(a).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(a,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!A9(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}function l_(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function sN(t,a){const r=l_(t);return Math.round(a*r)/r}function Oj(t){const a=g.useRef(t);return y9(()=>{a.current=t}),a}function TV(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:d,open:h}=t,[u,p]=g.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[m,y]=g.useState(n);A9(m,n)||y(n);const[x,f]=g.useState(null),[v,k]=g.useState(null),w=g.useCallback(O=>{O!==A.current&&(A.current=O,f(O))},[]),b=g.useCallback(O=>{O!==L.current&&(L.current=O,k(O))},[]),S=i||x,C=c||v,A=g.useRef(null),L=g.useRef(null),j=g.useRef(u),N=d!=null,q=Oj(d),P=Oj(s),T=Oj(h),R=g.useCallback(()=>{if(!A.current||!L.current)return;const O={placement:a,strategy:r,middleware:m};P.current&&(O.platform=P.current),PV(A.current,L.current,O).then(ae=>{const ce={...ae,isPositioned:T.current!==!1};E.current&&!A9(j.current,ce)&&(j.current=ce,q9.flushSync(()=>{p(ce)}))})},[m,a,r,P,T]);y9(()=>{h===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[h]);const E=g.useRef(!1);y9(()=>(E.current=!0,()=>{E.current=!1}),[]),y9(()=>{if(S&&(A.current=S),C&&(L.current=C),S&&C){if(q.current)return q.current(S,C,R);R()}},[S,C,R,q,N]);const $=g.useMemo(()=>({reference:A,floating:L,setReference:w,setFloating:b}),[w,b]),B=g.useMemo(()=>({reference:S,floating:C}),[S,C]),U=g.useMemo(()=>{const O={position:r,left:0,top:0};if(!B.floating)return O;const ae=sN(B.floating,u.x),ce=sN(B.floating,u.y);return l?{...O,transform:"translate("+ae+"px, "+ce+"px)",...l_(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:ce}},[r,l,B.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:R,refs:$,elements:B,floatingStyles:U}),[u,R,$,B,U])}const qV=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&a(n)?n.current!=null?nN({element:n.current,padding:s}).fn(r):{}:n?nN({element:n,padding:s}).fn(r):{}}}},DV=(t,a)=>({...CV(t),options:[t,a]}),zV=(t,a)=>({...SV(t),options:[t,a]}),EV=(t,a)=>({...AV(t),options:[t,a]}),FV=(t,a)=>({...LV(t),options:[t,a]}),OV=(t,a)=>({...NV(t),options:[t,a]}),HV=(t,a)=>({...IV(t),options:[t,a]}),VV=(t,a)=>({...qV(t),options:[t,a]});var BV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$V=BV.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),UV="Arrow",d_=g.forwardRef((t,a)=>{const{children:r,width:n=10,height:s=5,...i}=t;return e.jsx($V.svg,{...i,ref:a,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});d_.displayName=UV;var GV=d_;function iN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function WV(...t){return a=>{let r=!1;const n=t.map(s=>{const i=iN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():iN(t[s],null)}}}}function h_(...t){return g.useCallback(WV(...t),t)}function ZV(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,JV(s,...a)]}function JV(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var XV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],u_=XV.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function YV(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var oN=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},RS="Popper",[p_,nj]=ZV(RS),[KV,y_]=p_(RS),m_=t=>{const{__scopePopper:a,children:r}=t,[n,s]=g.useState(null);return e.jsx(KV,{scope:a,anchor:n,onAnchorChange:s,children:r})};m_.displayName=RS;var f_="PopperAnchor",x_=g.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=y_(f_,r),c=g.useRef(null),l=h_(a,c),d=g.useRef(null);return g.useEffect(()=>{const h=d.current;d.current=(n==null?void 0:n.current)||c.current,h!==d.current&&i.onAnchorChange(d.current)}),n?null:e.jsx(u_.div,{...s,ref:l})});x_.displayName=f_;var TS="PopperContent",[QV,eB]=p_(TS),g_=g.forwardRef((t,a)=>{var Z,Y,ke,fe,ve,le;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:x,...f}=t,v=y_(TS,r),[k,w]=g.useState(null),b=h_(a,_e=>w(_e)),[S,C]=g.useState(null),A=bS(S),L=(A==null?void 0:A.width)??0,j=(A==null?void 0:A.height)??0,N=n+(i!=="center"?"-"+i:""),q=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},P=Array.isArray(h)?h:[h],T=P.length>0,R={padding:q,boundary:P.filter(aB),altBoundary:T},{refs:E,floatingStyles:$,placement:B,isPositioned:U,middlewareData:O}=TV({strategy:"fixed",placement:N,whileElementsMounted:(..._e)=>jV(..._e,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[DV({mainAxis:s+j,alignmentAxis:c}),d&&zV({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?EV():void 0,...R}),d&&FV({...R}),OV({...R,apply:({elements:_e,rects:Re,availableWidth:z,availableHeight:se})=>{const{width:Ne,height:Xe}=Re.reference,Ye=_e.floating.style;Ye.setProperty("--radix-popper-available-width",`${z}px`),Ye.setProperty("--radix-popper-available-height",`${se}px`),Ye.setProperty("--radix-popper-anchor-width",`${Ne}px`),Ye.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),S&&VV({element:S,padding:l}),rB({arrowWidth:L,arrowHeight:j}),m&&HV({strategy:"referenceHidden",...R})]}),[ae,ce]=w_(B),pe=YV(x);oN(()=>{U&&(pe==null||pe())},[U,pe]);const ne=(Z=O.arrow)==null?void 0:Z.x,de=(Y=O.arrow)==null?void 0:Y.y,K=((ke=O.arrow)==null?void 0:ke.centerOffset)!==0,[me,je]=g.useState();return oN(()=>{k&&je(window.getComputedStyle(k).zIndex)},[k]),e.jsx("div",{ref:E.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:U?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(fe=O.transformOrigin)==null?void 0:fe.x,(ve=O.transformOrigin)==null?void 0:ve.y].join(" "),...((le=O.hide)==null?void 0:le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(QV,{scope:r,placedSide:ae,onArrowChange:C,arrowX:ne,arrowY:de,shouldHideArrow:K,children:e.jsx(u_.div,{"data-side":ae,"data-align":ce,...f,ref:b,style:{...f.style,animation:U?void 0:"none"}})})})});g_.displayName=TS;var k_="PopperArrow",tB={top:"bottom",right:"left",bottom:"top",left:"right"},v_=g.forwardRef(function(a,r){const{__scopePopper:n,...s}=a,i=eB(k_,n),c=tB[i.placedSide];return e.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:e.jsx(GV,{...s,ref:r,style:{...s.style,display:"block"}})})});v_.displayName=k_;function aB(t){return t!==null}var rB=t=>({name:"transformOrigin",options:t,fn(a){var v,k,w;const{placement:r,rects:n,middlewareData:s}=a,c=((v=s.arrow)==null?void 0:v.centerOffset)!==0,l=c?0:t.arrowWidth,d=c?0:t.arrowHeight,[h,u]=w_(r),p={start:"0%",center:"50%",end:"100%"}[u],m=(((k=s.arrow)==null?void 0:k.x)??0)+l/2,y=(((w=s.arrow)==null?void 0:w.y)??0)+d/2;let x="",f="";return h==="bottom"?(x=c?p:`${m}px`,f=`${-d}px`):h==="top"?(x=c?p:`${m}px`,f=`${n.floating.height+d}px`):h==="right"?(x=`${-d}px`,f=c?p:`${y}px`):h==="left"&&(x=`${n.floating.width+d}px`,f=c?p:`${y}px`),{data:{x,y:f}}}});function w_(t){const[a,r="center"]=t.split("-");return[a,r]}var b_=m_,qS=x_,M_=g_,j_=v_,nB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$t=nB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function sB(t){const a=g.useRef(t);return g.useEffect(()=>{a.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=a.current)==null?void 0:n.call(a,...r)},[])}var iB=g[" useInsertionEffect ".trim().toString()]||Na;function cN({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=oB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=cB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function oB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return iB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function cB(t){return typeof t=="function"}var lB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dB=lB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),C_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),hB="VisuallyHidden",uB=g.forwardRef((t,a)=>e.jsx(dB.span,{...t,ref:a,style:{...C_,...t.style}}));uB.displayName=hB;var pB=[" ","Enter","ArrowUp","ArrowDown"],yB=[" ","Enter"],bo="Select",[sj,ij,mB]=NH(bo),[uc,QG]=KP(bo,[mB,nj]),oj=nj(),[fB,Pr]=uc(bo),[xB,gB]=uc(bo),S_=t=>{const{__scopeSelect:a,children:r,open:n,defaultOpen:s,onOpenChange:i,value:c,defaultValue:l,onValueChange:d,dir:h,name:u,autoComplete:p,disabled:m,required:y,form:x}=t,f=oj(a),[v,k]=g.useState(null),[w,b]=g.useState(null),[S,C]=g.useState(!1),A=AH(h),[L,j]=cN({prop:n,defaultProp:s??!1,onChange:i,caller:bo}),[N,q]=cN({prop:c,defaultProp:l,onChange:d,caller:bo}),P=g.useRef(null),T=v?x||!!v.closest("form"):!0,[R,E]=g.useState(new Set),$=Array.from(R).map(B=>B.props.value).join(";");return e.jsx(b_,{...f,children:e.jsxs(fB,{required:y,scope:a,trigger:v,onTriggerChange:k,valueNode:w,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:SS(),value:N,onValueChange:q,open:L,onOpenChange:j,dir:A,triggerPointerDownPosRef:P,disabled:m,children:[e.jsx(sj.Provider,{scope:a,children:e.jsx(xB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(B=>{E(U=>new Set(U).add(B))},[]),onNativeOptionRemove:g.useCallback(B=>{E(U=>{const O=new Set(U);return O.delete(B),O})},[]),children:r})}),T?e.jsxs(X_,{"aria-hidden":!0,required:y,tabIndex:-1,name:u,autoComplete:p,value:N,onChange:B=>q(B.target.value),disabled:m,form:x,children:[N===void 0?e.jsx("option",{value:""}):null,Array.from(R)]},$):null]})})};S_.displayName=bo;var L_="SelectTrigger",N_=g.forwardRef((t,a)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=oj(r),c=Pr(L_,r),l=c.disabled||n,d=na(a,c.onTriggerChange),h=ij(r),u=g.useRef("touch"),[p,m,y]=K_(f=>{const v=h().filter(b=>!b.disabled),k=v.find(b=>b.value===c.value),w=Q_(v,f,k);w!==void 0&&c.onValueChange(w.value)}),x=f=>{l||(c.onOpenChange(!0),y()),f&&(c.triggerPointerDownPosRef.current={x:Math.round(f.pageX),y:Math.round(f.pageY)})};return e.jsx(qS,{asChild:!0,...i,children:e.jsx($t.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Y_(c.value)?"":void 0,...s,ref:d,onClick:dt(s.onClick,f=>{f.currentTarget.focus(),u.current!=="mouse"&&x(f)}),onPointerDown:dt(s.onPointerDown,f=>{u.current=f.pointerType;const v=f.target;v.hasPointerCapture(f.pointerId)&&v.releasePointerCapture(f.pointerId),f.button===0&&f.ctrlKey===!1&&f.pointerType==="mouse"&&(x(f),f.preventDefault())}),onKeyDown:dt(s.onKeyDown,f=>{const v=p.current!=="";!(f.ctrlKey||f.altKey||f.metaKey)&&f.key.length===1&&m(f.key),!(v&&f.key===" ")&&pB.includes(f.key)&&(x(),f.preventDefault())})})})});N_.displayName=L_;var I_="SelectValue",A_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:c="",...l}=t,d=Pr(I_,r),{onValueNodeHasChildrenChange:h}=d,u=i!==void 0,p=na(a,d.onValueNodeChange);return Na(()=>{h(u)},[h,u]),e.jsx($t.span,{...l,ref:p,style:{pointerEvents:"none"},children:Y_(d.value)?e.jsx(e.Fragment,{children:c}):i})});A_.displayName=I_;var kB="SelectIcon",P_=g.forwardRef((t,a)=>{const{__scopeSelect:r,children:n,...s}=t;return e.jsx($t.span,{"aria-hidden":!0,...s,ref:a,children:n||"▼"})});P_.displayName=kB;var vB="SelectPortal",__=t=>e.jsx(W9,{asChild:!0,...t});__.displayName=vB;var Mo="SelectContent",R_=g.forwardRef((t,a)=>{const r=Pr(Mo,t.__scopeSelect),[n,s]=g.useState();if(Na(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?q9.createPortal(e.jsx(T_,{scope:t.__scopeSelect,children:e.jsx(sj.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),i):null}return e.jsx(q_,{...t,ref:a})});R_.displayName=Mo;var oa=10,[T_,_r]=uc(Mo),wB="SelectContentImpl",bB=et("SelectContent.RemoveScroll"),q_=g.forwardRef((t,a)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:c,side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v,...k}=t,w=Pr(Mo,r),[b,S]=g.useState(null),[C,A]=g.useState(null),L=na(a,Z=>S(Z)),[j,N]=g.useState(null),[q,P]=g.useState(null),T=ij(r),[R,E]=g.useState(!1),$=g.useRef(!1);g.useEffect(()=>{if(b)return lS(b)},[b]),cS();const B=g.useCallback(Z=>{const[Y,...ke]=T().map(le=>le.ref.current),[fe]=ke.slice(-1),ve=document.activeElement;for(const le of Z)if(le===ve||(le==null||le.scrollIntoView({block:"nearest"}),le===Y&&C&&(C.scrollTop=0),le===fe&&C&&(C.scrollTop=C.scrollHeight),le==null||le.focus(),document.activeElement!==ve))return},[T,C]),U=g.useCallback(()=>B([j,b]),[B,j,b]);g.useEffect(()=>{R&&U()},[R,U]);const{onOpenChange:O,triggerPointerDownPosRef:ae}=w;g.useEffect(()=>{if(b){let Z={x:0,y:0};const Y=fe=>{var ve,le;Z={x:Math.abs(Math.round(fe.pageX)-(((ve=ae.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((le=ae.current)==null?void 0:le.y)??0))}},ke=fe=>{Z.x<=10&&Z.y<=10?fe.preventDefault():b.contains(fe.target)||O(!1),document.removeEventListener("pointermove",Y),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",ke,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",ke,{capture:!0})}}},[b,O,ae]),g.useEffect(()=>{const Z=()=>O(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[O]);const[ce,pe]=K_(Z=>{const Y=T().filter(ve=>!ve.disabled),ke=Y.find(ve=>ve.ref.current===document.activeElement),fe=Q_(Y,Z,ke);fe&&setTimeout(()=>fe.ref.current.focus())}),ne=g.useCallback((Z,Y,ke)=>{const fe=!$.current&&!ke;(w.value!==void 0&&w.value===Y||fe)&&(N(Z),fe&&($.current=!0))},[w.value]),de=g.useCallback(()=>b==null?void 0:b.focus(),[b]),K=g.useCallback((Z,Y,ke)=>{const fe=!$.current&&!ke;(w.value!==void 0&&w.value===Y||fe)&&P(Z)},[w.value]),me=n==="popper"?kC:D_,je=me===kC?{side:l,sideOffset:d,align:h,alignOffset:u,arrowPadding:p,collisionBoundary:m,collisionPadding:y,sticky:x,hideWhenDetached:f,avoidCollisions:v}:{};return e.jsx(T_,{scope:r,content:b,viewport:C,onViewportChange:A,itemRefCallback:ne,selectedItem:j,onItemLeave:de,itemTextRefCallback:K,focusSelectedItem:U,selectedItemText:q,position:n,isPositioned:R,searchRef:ce,children:e.jsx(X9,{as:bB,allowPinchZoom:!0,children:e.jsx(G9,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:dt(s,Z=>{var Y;(Y=w.trigger)==null||Y.focus({preventScroll:!0}),Z.preventDefault()}),children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:e.jsx(me,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...k,...je,onPlaced:()=>E(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:dt(k.onKeyDown,Z=>{const Y=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!Y&&Z.key.length===1&&pe(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let fe=T().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const ve=Z.target,le=fe.indexOf(ve);fe=fe.slice(le+1)}setTimeout(()=>B(fe)),Z.preventDefault()}})})})})})})});q_.displayName=wB;var MB="SelectItemAlignedPosition",D_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Pr(Mo,r),c=_r(Mo,r),[l,d]=g.useState(null),[h,u]=g.useState(null),p=na(a,L=>u(L)),m=ij(r),y=g.useRef(!1),x=g.useRef(!0),{viewport:f,selectedItem:v,selectedItemText:k,focusSelectedItem:w}=c,b=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&h&&f&&v&&k){const L=i.trigger.getBoundingClientRect(),j=h.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),q=k.getBoundingClientRect();if(i.dir!=="rtl"){const ve=q.left-j.left,le=N.left-ve,_e=L.left-le,Re=L.width+_e,z=Math.max(Re,j.width),se=window.innerWidth-oa,Ne=WL(le,[oa,Math.max(oa,se-z)]);l.style.minWidth=Re+"px",l.style.left=Ne+"px"}else{const ve=j.right-q.right,le=window.innerWidth-N.right-ve,_e=window.innerWidth-L.right-le,Re=L.width+_e,z=Math.max(Re,j.width),se=window.innerWidth-oa,Ne=WL(le,[oa,Math.max(oa,se-z)]);l.style.minWidth=Re+"px",l.style.right=Ne+"px"}const P=m(),T=window.innerHeight-oa*2,R=f.scrollHeight,E=window.getComputedStyle(h),$=parseInt(E.borderTopWidth,10),B=parseInt(E.paddingTop,10),U=parseInt(E.borderBottomWidth,10),O=parseInt(E.paddingBottom,10),ae=$+B+R+O+U,ce=Math.min(v.offsetHeight*5,ae),pe=window.getComputedStyle(f),ne=parseInt(pe.paddingTop,10),de=parseInt(pe.paddingBottom,10),K=L.top+L.height/2-oa,me=T-K,je=v.offsetHeight/2,Z=v.offsetTop+je,Y=$+B+Z,ke=ae-Y;if(Y<=K){const ve=P.length>0&&v===P[P.length-1].ref.current;l.style.bottom="0px";const le=h.clientHeight-f.offsetTop-f.offsetHeight,_e=Math.max(me,je+(ve?de:0)+le+U),Re=Y+_e;l.style.height=Re+"px"}else{const ve=P.length>0&&v===P[0].ref.current;l.style.top="0px";const _e=Math.max(K,$+f.offsetTop+(ve?ne:0)+je)+ke;l.style.height=_e+"px",f.scrollTop=Y-K+f.offsetTop}l.style.margin=`${oa}px 0`,l.style.minHeight=ce+"px",l.style.maxHeight=T+"px",n==null||n(),requestAnimationFrame(()=>y.current=!0)}},[m,i.trigger,i.valueNode,l,h,f,v,k,i.dir,n]);Na(()=>b(),[b]);const[S,C]=g.useState();Na(()=>{h&&C(window.getComputedStyle(h).zIndex)},[h]);const A=g.useCallback(L=>{L&&x.current===!0&&(b(),w==null||w(),x.current=!1)},[b,w]);return e.jsx(CB,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:y,onScrollButtonChange:A,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:e.jsx($t.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});D_.displayName=MB;var jB="SelectPopperPosition",kC=g.forwardRef((t,a)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=oa,...i}=t,c=oj(r);return e.jsx(M_,{...c,...i,ref:a,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});kC.displayName=jB;var[CB,DS]=uc(Mo,{}),vC="SelectViewport",z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=_r(vC,r),c=DS(vC,r),l=na(a,i.onViewportChange),d=g.useRef(0);return e.jsxs(e.Fragment,{children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),e.jsx(sj.Slot,{scope:r,children:e.jsx($t.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:dt(s.onScroll,h=>{const u=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=c;if(m!=null&&m.current&&p){const y=Math.abs(d.current-u.scrollTop);if(y>0){const x=window.innerHeight-oa*2,f=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),k=Math.max(f,v);if(k<x){const w=k+y,b=Math.min(x,w),S=w-b;p.style.height=b+"px",p.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}d.current=u.scrollTop})})})]})});z_.displayName=vC;var E_="SelectGroup",[SB,LB]=uc(E_),NB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=SS();return e.jsx(SB,{scope:r,id:s,children:e.jsx($t.div,{role:"group","aria-labelledby":s,...n,ref:a})})});NB.displayName=E_;var F_="SelectLabel",O_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=LB(F_,r);return e.jsx($t.div,{id:s.id,...n,ref:a})});O_.displayName=F_;var P9="SelectItem",[IB,H_]=uc(P9),V_=g.forwardRef((t,a)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...c}=t,l=Pr(P9,r),d=_r(P9,r),h=l.value===n,[u,p]=g.useState(i??""),[m,y]=g.useState(!1),x=na(a,w=>{var b;return(b=d.itemRefCallback)==null?void 0:b.call(d,w,n,s)}),f=SS(),v=g.useRef("touch"),k=()=>{s||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.jsx(IB,{scope:r,value:n,disabled:s,textId:f,isSelected:h,onItemTextChange:g.useCallback(w=>{p(b=>b||((w==null?void 0:w.textContent)??"").trim())},[]),children:e.jsx(sj.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:e.jsx($t.div,{role:"option","aria-labelledby":f,"data-highlighted":m?"":void 0,"aria-selected":h&&m,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:x,onFocus:dt(c.onFocus,()=>y(!0)),onBlur:dt(c.onBlur,()=>y(!1)),onClick:dt(c.onClick,()=>{v.current!=="mouse"&&k()}),onPointerUp:dt(c.onPointerUp,()=>{v.current==="mouse"&&k()}),onPointerDown:dt(c.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:dt(c.onPointerMove,w=>{var b;v.current=w.pointerType,s?(b=d.onItemLeave)==null||b.call(d):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:dt(c.onPointerLeave,w=>{var b;w.currentTarget===document.activeElement&&((b=d.onItemLeave)==null||b.call(d))}),onKeyDown:dt(c.onKeyDown,w=>{var S;((S=d.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(yB.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})})})})});V_.displayName=P9;var bc="SelectItemText",B_=g.forwardRef((t,a)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,c=Pr(bc,r),l=_r(bc,r),d=H_(bc,r),h=gB(bc,r),[u,p]=g.useState(null),m=na(a,k=>p(k),d.onItemTextChange,k=>{var w;return(w=l.itemTextRefCallback)==null?void 0:w.call(l,k,d.value,d.disabled)}),y=u==null?void 0:u.textContent,x=g.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:f,onNativeOptionRemove:v}=h;return Na(()=>(f(x),()=>v(x)),[f,v,x]),e.jsxs(e.Fragment,{children:[e.jsx($t.span,{id:d.textId,...i,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?q9.createPortal(i.children,c.valueNode):null]})});B_.displayName=bc;var $_="SelectItemIndicator",U_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return H_($_,r).isSelected?e.jsx($t.span,{"aria-hidden":!0,...n,ref:a}):null});U_.displayName=$_;var wC="SelectScrollUpButton",G_=g.forwardRef((t,a)=>{const r=_r(wC,t.__scopeSelect),n=DS(wC,t.__scopeSelect),[s,i]=g.useState(!1),c=na(a,n.onScrollButtonChange);return Na(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollTop>0;i(h)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});G_.displayName=wC;var bC="SelectScrollDownButton",W_=g.forwardRef((t,a)=>{const r=_r(bC,t.__scopeSelect),n=DS(bC,t.__scopeSelect),[s,i]=g.useState(!1),c=na(a,n.onScrollButtonChange);return Na(()=>{if(r.viewport&&r.isPositioned){let l=function(){const h=d.scrollHeight-d.clientHeight,u=Math.ceil(d.scrollTop)<h;i(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),s?e.jsx(Z_,{...t,ref:c,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});W_.displayName=bC;var Z_=g.forwardRef((t,a)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=_r("SelectScrollButton",r),c=g.useRef(null),l=ij(r),d=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>d(),[d]),Na(()=>{var u;const h=l().find(p=>p.ref.current===document.activeElement);(u=h==null?void 0:h.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),e.jsx($t.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:dt(s.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(n,50))}),onPointerMove:dt(s.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),c.current===null&&(c.current=window.setInterval(n,50))}),onPointerLeave:dt(s.onPointerLeave,()=>{d()})})}),AB="SelectSeparator",J_=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t;return e.jsx($t.div,{"aria-hidden":!0,...n,ref:a})});J_.displayName=AB;var MC="SelectArrow",PB=g.forwardRef((t,a)=>{const{__scopeSelect:r,...n}=t,s=oj(r),i=Pr(MC,r),c=_r(MC,r);return i.open&&c.position==="popper"?e.jsx(j_,{...s,...n,ref:a}):null});PB.displayName=MC;var _B="SelectBubbleInput",X_=g.forwardRef(({__scopeSelect:t,value:a,...r},n)=>{const s=g.useRef(null),i=na(n,s),c=wS(a);return g.useEffect(()=>{const l=s.current;if(!l)return;const d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==a&&u){const p=new Event("change",{bubbles:!0});u.call(l,a),l.dispatchEvent(p)}},[c,a]),e.jsx($t.select,{...r,style:{...C_,...r.style},ref:i,defaultValue:a})});X_.displayName=_B;function Y_(t){return t===""||t===void 0}function K_(t){const a=sB(t),r=g.useRef(""),n=g.useRef(0),s=g.useCallback(c=>{const l=r.current+c;a(l),function d(h){r.current=h,window.clearTimeout(n.current),h!==""&&(n.current=window.setTimeout(()=>d(""),1e3))}(l)},[a]),i=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function Q_(t,a,r){const s=a.length>1&&Array.from(a).every(h=>h===a[0])?a[0]:a,i=r?t.indexOf(r):-1;let c=RB(t,Math.max(i,0));s.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function RB(t,a){return t.map((r,n)=>t[(a+n)%t.length])}var TB=S_,eR=N_,qB=A_,DB=P_,zB=__,tR=R_,EB=z_,aR=O_,rR=V_,FB=B_,OB=U_,nR=G_,sR=W_,zS=J_;const jo=TB,Co=qB,Lr=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(eR,{ref:n,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[a,e.jsx(DB,{asChild:!0,children:e.jsx(bP,{className:"h-4 w-4 opacity-50"})})]}));Lr.displayName=eR.displayName;const iR=g.forwardRef(({className:t,...a},r)=>e.jsx(nR,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(tO,{className:"h-4 w-4"})}));iR.displayName=nR.displayName;const oR=g.forwardRef(({className:t,...a},r)=>e.jsx(sR,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(bP,{className:"h-4 w-4"})}));oR.displayName=sR.displayName;const Nr=g.forwardRef(({className:t,children:a,position:r="popper",...n},s)=>e.jsx(zB,{children:e.jsxs(tR,{ref:s,className:ue("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(iR,{}),e.jsx(EB,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(oR,{})]})}));Nr.displayName=tR.displayName;const HB=g.forwardRef(({className:t,...a},r)=>e.jsx(aR,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",t),...a}));HB.displayName=aR.displayName;const Et=g.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(rR,{ref:n,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(OB,{children:e.jsx(KF,{className:"h-4 w-4"})})}),e.jsx(FB,{children:a})]}));Et.displayName=rR.displayName;const VB=g.forwardRef(({className:t,...a},r)=>e.jsx(zS,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",t),...a}));VB.displayName=zS.displayName;function BB(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function $B(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,UB(s,...a)]}function UB(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var dl=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},GB=g[" useInsertionEffect ".trim().toString()]||dl;function WB({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=ZB({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=JB(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function ZB({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return GB(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function JB(t){return typeof t=="function"}function lN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function XB(...t){return a=>{let r=!1;const n=t.map(s=>{const i=lN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():lN(t[s],null)}}}}function cR(...t){return g.useCallback(XB(...t),t)}var YB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ES=YB.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{});function KB(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var lR=t=>{const{present:a,children:r}=t,n=QB(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=cR(n.ref,e$(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};lR.displayName="Presence";function QB(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=KB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=Il(n.current);i.current=l==="mounted"?h:"none"},[l]),dl(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=Il(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),dl(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=Il(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=Il(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function Il(t){return(t==null?void 0:t.animationName)||"none"}function e$(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var t$=g[" useId ".trim().toString()]||(()=>{}),a$=0;function r$(t){const[a,r]=g.useState(t$());return dl(()=>{t||r(n=>n??String(a$++))},[t]),t||(a?`radix-${a}`:"")}var cj="Collapsible",[n$,eW]=$B(cj),[s$,FS]=n$(cj),dR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:c,...l}=t,[d,h]=WB({prop:n,defaultProp:s??!1,onChange:c,caller:cj});return e.jsx(s$,{scope:r,disabled:i,contentId:r$(),open:d,onOpenToggle:g.useCallback(()=>h(u=>!u),[h]),children:e.jsx(ES.div,{"data-state":HS(d),"data-disabled":i?"":void 0,...l,ref:a})})});dR.displayName=cj;var hR="CollapsibleTrigger",uR=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,...n}=t,s=FS(hR,r);return e.jsx(ES.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":HS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:a,onClick:BB(t.onClick,s.onOpenToggle)})});uR.displayName=hR;var OS="CollapsibleContent",pR=g.forwardRef((t,a)=>{const{forceMount:r,...n}=t,s=FS(OS,t.__scopeCollapsible);return e.jsx(lR,{present:r||s.open,children:({present:i})=>e.jsx(i$,{...n,ref:a,present:i})})});pR.displayName=OS;var i$=g.forwardRef((t,a)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,c=FS(OS,r),[l,d]=g.useState(n),h=g.useRef(null),u=cR(a,h),p=g.useRef(0),m=p.current,y=g.useRef(0),x=y.current,f=c.open||l,v=g.useRef(f),k=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),dl(()=>{const w=h.current;if(w){k.current=k.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const b=w.getBoundingClientRect();p.current=b.height,y.current=b.width,v.current||(w.style.transitionDuration=k.current.transitionDuration,w.style.animationName=k.current.animationName),d(n)}},[c.open,n]),e.jsx(ES.div,{"data-state":HS(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...t.style},children:f&&s})});function HS(t){return t?"open":"closed"}var o$=dR;const c$=o$,l$=uR,d$=pR,yR=[{category:"Online Casino Operators",items:[{label:"Slots",matchers:["slot","slots"]},{label:"Live Casino",matchers:["live casino","live dealer","live-casino"]},{label:"Jackpots",matchers:["jackpot","jackpots"]},{label:"Sportsbook",matchers:["sportsbook"]},{label:"Crypto",matchers:["crypto","crypto casino","crypto-casino"]}]},{category:"Providers",items:[{label:"Game Provider",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Live Casino",matchers:["live-casino-studio","live-casino-provider","live-casino","live casino","live studios","live dealer","live dealers","live dealer studio","live dealer studios"]},{label:"Game Platform",matchers:["aggregation","aggregator","game-platform","games","game-api"]},{label:"Bonus Platform",matchers:["bonus","promotions","promo","loyalty"]},{label:"Backoffice",matchers:["backoffice","back office","crm","admin"]},{label:"Gamification",matchers:["gamification"]},{label:"Tech Providers",matchers:["AI","Integrations","Development"]}]},{category:"Affiliate",items:[{label:"Affiliate Agencies",matchers:["affiliate agencies","affiliate","affiliate agency","affiliate marketing"]},{label:"Affiliate Program",matchers:["affiliate program","affiliate programs"]},{label:"Tracking Tools",matchers:["tracking","attribution"]},{label:"Affiliate Tools",matchers:["affiliate tools","attribution","Marketing Platform","Marketing Automation","Marketing Automation Platform"]}]},{category:"Payments",items:[{label:"Payment Processing",matchers:["payment","psp","wallet"]}]},{category:"Compliance",items:[{label:"KYC",matchers:["kyc","know your customer"]},{label:"AML",matchers:["aml","anti-money"]},{label:"Risk & Fraud",matchers:["risk","fraud"]}]}],mR=yR.flatMap(t=>t.items),fR={search:"",companyType:"",verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[],hiringNow:!1,scope:"company",claimedOnly:!1,hasLicenses:!1,hasAwards:!1},h$=t=>Array.from(new Set(t.filter(Boolean))).sort((a,r)=>a.localeCompare(r)),u$=t=>{if(typeof t=="string")return t.toLowerCase();if(typeof t=="number")return String(t);if(typeof t=="object"&&t!==null){if("name"in t&&typeof t.name=="string")return t.name.toLowerCase();if("title"in t&&typeof t.title=="string")return t.title.toLowerCase()}return""},p$=t=>{var a,r;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null){const n=t;return n.title??((a=n.tag)==null?void 0:a.name)??((r=n.tag)==null?void 0:r.slug)??null}return null},y$=t=>{const a=t.productsAndServices.flatMap(r=>[r.name,r.category,r.description,...r.keyDifferentiators??[]]);return[t.name,t.companyType,t.classification.businessModel,...t.classification.verticals,...t.classification.productCategories,...t.classification.tags.map(p$).filter(r=>!!r),...a].filter(Boolean)},m$=t=>{const a=y$(t).map(u$).join(" ");return mR.filter(r=>r.matchers.some(n=>a.includes(n))).map(r=>r.label)},f$=t=>{if(!t.overview.foundedYear)return null;const a=new Date().getFullYear();return Math.max(0,a-t.overview.foundedYear)},x$=t=>h$([t.classification.businessModel,...t.productsAndServices.map(a=>a.integrationModel),...t.productsAndServices.flatMap(a=>a.keyDifferentiators)]),g$=t=>{var n;const a=f$(t),r=((n=t.group)==null?void 0:n.intelligenceProfile)??t.signalsAndInsights;return{products:m$(t),capabilities:x$(t),credibility:{licenses:t.trustAndCompliance.licenses.length,awards:t.trustAndCompliance.awards.length,certifications:t.trustAndCompliance.certifications.length,yearsActive:a},commercialSignals:{profileViews30d:r.profileViews30d,followsCount:r.followsCount,hiringIntensity:r.hiringIntensity,searchImpressions:t.visibilityMetrics.searchImpressions,profileClicks:t.visibilityMetrics.profileClicks,externalClicks:t.visibilityMetrics.externalClicks}}},dN=({filters:t,options:a,onFiltersChange:r,onClearFilters:n,resultCount:s})=>{const[i,c]=M.useState({companyType:!0,verticals:!0,products:!0,normalizedProducts:!0,employees:!1,hiring:!0,credibility:!0,signals:!1}),l=y=>{c(x=>({...x,[y]:!x[y]}))},d={companyTypes:a.companyTypes??[],verticals:a.verticals??[],productCategories:a.productCategories??[],employeeRanges:a.employeeRanges??[],products:a.products??[],openRolesRanges:a.openRolesRanges??[],yearsActiveRanges:a.yearsActiveRanges??[]},h=(y,x)=>{r({...t,[y]:x})},u=(y,x)=>{const f=t[y],v=f.includes(x)?f.filter(k=>k!==x):[...f,x];h(y,v)},p=(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),m=({id:y,title:x,icon:f,children:v})=>e.jsxs(c$,{open:i[y],onOpenChange:()=>l(y),children:[e.jsxs(l$,{className:"flex items-center justify-between w-full py-3 text-left group",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:x})]}),i[y]?e.jsx(Fo,{className:"w-4 h-4 text-muted-foreground"}):e.jsx(hr,{className:"w-4 h-4 text-muted-foreground"})]}),e.jsx(d$,{className:"pb-4",children:v})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(Ot,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{placeholder:"Search companies, products, tags...",value:t.search,onChange:y=>h("search",y.target.value),className:"pl-10"})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border px-3 py-2",children:[e.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"View scope"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{type:"button",size:"sm",variant:t.scope==="company"?"default":"outline",onClick:()=>h("scope","company"),children:"Companies"}),e.jsx(D,{type:"button",size:"sm",variant:t.scope==="group"?"default":"outline",onClick:()=>h("scope","group"),children:"Groups"})]})]}),p>0&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:[p," filter",p!==1?"s":""," active"]}),e.jsxs(D,{variant:"ghost",size:"sm",onClick:n,className:"text-accent h-auto py-1",children:[e.jsx(wt,{className:"w-3 h-3 mr-1"}),"Clear all"]})]}),e.jsxs("div",{className:"text-sm font-medium text-foreground py-2 px-3 bg-secondary/50 rounded-lg",children:[s," ",s===1?t.scope==="group"?"group":"company":t.scope==="group"?"groups":"companies"," found"]}),e.jsxs("div",{className:"divide-y divide-border",children:[e.jsx(m,{id:"companyType",title:"Company Type",icon:pt,children:e.jsxs(jo,{value:t.companyType||"all",onValueChange:y=>h("companyType",y==="all"?"":y),children:[e.jsx(Lr,{className:"w-full",children:e.jsx(Co,{placeholder:"All company types"})}),e.jsxs(Nr,{children:[e.jsx(Et,{value:"all",children:"All company types"}),d.companyTypes.map(y=>e.jsx(Et,{value:y,children:y},y))]})]})}),e.jsx(m,{id:"verticals",title:"Verticals",icon:Pc,children:e.jsx("div",{className:"flex flex-wrap gap-2",children:d.verticals.map(y=>e.jsx(xe,{variant:t.verticals.includes(y)?"default":"outline",className:"cursor-pointer transition-colors",onClick:()=>u("verticals",y),children:y},y))})}),e.jsx(m,{id:"products",title:"Products & Services",icon:Qt,children:e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:d.productCategories.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`cat-${y}`,checked:t.productCategories.includes(y),onCheckedChange:()=>u("productCategories",y)}),e.jsx(Q,{htmlFor:`cat-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:y})]},y))})}),e.jsx(m,{id:"normalizedProducts",title:"Normalized Products",icon:ga,children:e.jsx("div",{className:"space-y-3",children:yR.map(y=>e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:y.category}),e.jsx("div",{className:"space-y-2",children:y.items.map(x=>x.label).filter(x=>(d.products??[]).includes(x)).map(x=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`product-${x}`,checked:t.products.includes(x),onCheckedChange:()=>u("products",x)}),e.jsx(Q,{htmlFor:`product-${x}`,className:"text-sm font-normal cursor-pointer flex-1",children:x})]},x))})]},y.category))})}),e.jsx(m,{id:"employees",title:"Company Size",icon:jt,children:e.jsx("div",{className:"space-y-2",children:d.employeeRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`emp-${y}`,checked:t.employeeRanges.includes(y),onCheckedChange:()=>u("employeeRanges",y)}),e.jsxs(Q,{htmlFor:`emp-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," employees"]})]},y))})}),e.jsx(m,{id:"hiring",title:"Hiring",icon:at,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"hiring-now",checked:t.hiringNow,onCheckedChange:y=>h("hiringNow",y===!0)}),e.jsxs(Q,{htmlFor:"hiring-now",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-gaming-success"}),"Hiring now"]})]}),e.jsxs("div",{children:[e.jsx(Q,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Open roles count"}),e.jsx("div",{className:"space-y-2",children:d.openRolesRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`open-roles-${y}`,checked:t.openRolesRanges.includes(y),onCheckedChange:()=>u("openRolesRanges",y)}),e.jsxs(Q,{htmlFor:`open-roles-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," roles"]})]},y))})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"claimed-only",checked:t.claimedOnly,onCheckedChange:y=>h("claimedOnly",y===!0)}),e.jsxs(Q,{htmlFor:"claimed-only",className:"text-sm font-normal cursor-pointer flex items-center gap-2",children:[e.jsx(ht,{className:"w-3.5 h-3.5 text-accent"}),"Claimed profiles only"]})]})]})}),e.jsx(m,{id:"credibility",title:"Credibility",icon:ht,children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-licenses",checked:t.hasLicenses,onCheckedChange:y=>h("hasLicenses",y===!0)}),e.jsx(Q,{htmlFor:"has-licenses",className:"text-sm font-normal cursor-pointer",children:"Licensed operators/providers"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"has-awards",checked:t.hasAwards,onCheckedChange:y=>h("hasAwards",y===!0)}),e.jsx(Q,{htmlFor:"has-awards",className:"text-sm font-normal cursor-pointer",children:"Award winners"})]}),e.jsxs("div",{children:[e.jsx(Q,{className:"text-xs text-muted-foreground mb-2 inline-flex items-center",children:"Years active"}),e.jsx("div",{className:"space-y-2",children:d.yearsActiveRanges.map(y=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:`years-${y}`,checked:t.yearsActiveRanges.includes(y),onCheckedChange:()=>u("yearsActiveRanges",y)}),e.jsxs(Q,{htmlFor:`years-${y}`,className:"text-sm font-normal cursor-pointer flex-1",children:[y," years"]})]},y))})]})]})})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-br from-accent/10 to-gaming-gold/10 rounded-xl border border-accent/20",children:[e.jsx("h4",{className:"font-semibold text-sm mb-1",children:"Need vendor recommendations?"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Tell us what you need and we'll create a shortlist for you."}),e.jsx(D,{variant:"accent",size:"sm",className:"w-full",children:"Request Intro"})]})]})},k$=({count:t=4})=>e.jsx("div",{className:"space-y-4 animate-fade-in",children:[...Array(t)].map((a,r)=>e.jsx("div",{className:"bg-white rounded-lg shadow-sm p-5 border border-border/50 animate-pulse",children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-16 h-16 rounded-xl bg-gray-200 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-1/3"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-28"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]})]}),e.jsx("div",{className:"h-8 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"})]}),e.jsxs("div",{className:"space-y-2 mb-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-full"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx("div",{className:"h-5 bg-gray-200 rounded w-16"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-14"}),e.jsx("div",{className:"h-5 bg-gray-200 rounded w-20"})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-border/50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-3 bg-gray-200 rounded w-24"}),e.jsx("div",{className:"h-3 bg-gray-200 rounded w-20"})]}),e.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]})]})]})},r))}),v$=t=>{const a=mR.find(r=>r.label===t);return(a==null?void 0:a.label)??t},w$=({entities:t,onClearSelection:a,maxSelections:r})=>e.jsxs(re,{className:"border-border/60",children:[e.jsxs(ye,{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold",children:"Comparison"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Comparing ",t.length," of ",r," selected profiles"]})]}),e.jsx(D,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"})]}),e.jsx(oe,{children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("div",{className:"min-w-[640px] grid gap-4",children:[e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Profile"}),t.map(n=>e.jsx("div",{className:"font-semibold text-sm",children:n.name},n.id))]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Products"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.products.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No normalized products"}):s.products.map(i=>e.jsx(xe,{variant:"secondary",className:"text-xs",children:v$(i)},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Capabilities"}),t.map(n=>{const s=n.normalizedProfile;return e.jsx("div",{className:"flex flex-wrap gap-1",children:s.capabilities.length===0?e.jsx("span",{className:"text-xs text-muted-foreground",children:"No data"}):s.capabilities.map(i=>e.jsx(xe,{variant:"outline",className:"text-xs",children:i},i))},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Credibility"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Licenses: ",e.jsx("span",{className:"text-foreground",children:s.credibility.licenses})]}),e.jsxs("div",{children:["Awards: ",e.jsx("span",{className:"text-foreground",children:s.credibility.awards})]}),e.jsxs("div",{children:["Years active:"," ",e.jsx("span",{className:"text-foreground",children:s.credibility.yearsActive??"N/A"})]})]},n.id)})]}),e.jsxs("div",{className:"grid grid-cols-[180px_repeat(auto-fit,minmax(180px,1fr))] gap-4 items-start",children:[e.jsx("div",{className:"text-xs font-semibold uppercase text-muted-foreground",children:"Commercial Signals"}),t.map(n=>{const s=n.normalizedProfile;return e.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Profile views (30d):"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.profileViews30d})]}),e.jsxs("div",{children:["Followers:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.followsCount})]}),e.jsxs("div",{children:["Hiring intensity:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.hiringIntensity})]}),e.jsxs("div",{children:["Search impressions:"," ",e.jsx("span",{className:"text-foreground",children:s.commercialSignals.searchImpressions})]})]},n.id)})]})]})})})]}),b$=({viewMode:t,onToggleViewMode:a,selectedItemsPerPage:r,onItemsPerPageChange:n,totalCount:s,startIndex:i,endIndex:c,title:l,items:d})=>e.jsx("div",{className:"lg:block hidden bg-white rounded-lg shadow-sm border border-gray-200 p-4 mb-6",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(pt,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900",children:l})]}),e.jsxs("p",{className:"text-sm text-gray-600",children:["Showing ",e.jsx("span",{className:"font-semibold text-gray-900",children:i}),"–",e.jsx("span",{className:"font-semibold text-gray-900",children:c})," of"," ",e.jsx("span",{className:"font-semibold text-gray-900",children:s})," ",d]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsx(EA,{viewMode:t,onToggle:a}),e.jsx(FA,{value:r,onChange:n})]})]})}),M$=()=>e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(Mc,{className:"bg-accent/20 text-accent border-accent/30 mb-4",children:[e.jsx(ga,{className:"w-3 h-3 mr-1"}),"iGaming Intelligence"]}),e.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-3",children:"iGaming Company Directory"}),e.jsx("p",{className:"text-primary-foreground/80 text-lg",children:"Discover operators, suppliers, affiliates, and service providers. Filter by type, vertical, jurisdiction, and hiring signals."})]})})}),Hj=4,j$=t=>(t.companyType?1:0)+t.verticals.length+t.productCategories.length+t.employeeRanges.length+t.products.length+t.openRolesRanges.length+t.yearsActiveRanges.length+(t.hiringNow?1:0)+(t.claimedOnly?1:0)+(t.hasLicenses?1:0)+(t.hasAwards?1:0),xR=({companies:t,filterOptions:a,loading:r,page:n,pageSize:s,totalCount:i,totalPages:c,onPageChange:l,onPageSizeChange:d,filters:h,onFiltersChange:u,onClearFilters:p,viewMode:m,onViewModeChange:y})=>{const[x,f]=M.useState(!1),[v,k]=M.useState([]),[w,b]=M.useState(!0),{displayCompanies:S,comparisonEntities:C}=M.useMemo(()=>{const R=t.map(E=>{var U,O,ae;const $=h.scope==="group",B=((O=(U=E.group)==null?void 0:U.companies)==null?void 0:O.length)??1;return{company:E,displayName:$?((ae=E.group)==null?void 0:ae.name)??E.groupName??E.name:E.name,openRolesCount:Array.isArray(E.jobs.openRoles)?E.jobs.openRoles.length:E.jobs.openRoles,groupMembersCount:B,isGroup:$,comparisonProfile:g$(E),comparisonId:E.id}});return{displayCompanies:R,comparisonEntities:R.map(E=>({id:E.comparisonId,name:E.displayName,normalizedProfile:E.comparisonProfile}))}},[t,h.scope]),A=M.useMemo(()=>j$(h),[h]),L=M.useMemo(()=>C.filter(R=>v.includes(R.id)),[C,v]);M.useEffect(()=>{k([])},[h.scope]),M.useEffect(()=>{k(R=>R.filter(E=>C.some($=>$.id===E)))},[C]);const j=R=>{k(E=>E.includes(R)?E.filter($=>$!==R):E.length>=Hj?E:[...E,R])},N=()=>{k([])},q=i===0?0:(n-1)*s+1,P=Math.min(n*s,i),T=m==="grid"?"grid gap-6 sm:grid-cols-2 xl:grid-cols-3":"space-y-4";return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(M$,{}),e.jsx("section",{className:"py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"flex gap-8",children:[e.jsx("aside",{className:"hidden lg:block w-80 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 bg-card rounded-xl border border-border p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(yr,{className:"w-5 h-5 text-accent"}),e.jsx("h2",{className:"font-semibold",children:"Filters"})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})}),e.jsxs("main",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"lg:hidden mb-4",children:e.jsxs(D,{variant:"outline",onClick:()=>f(!0),className:"w-full",children:[e.jsx(yr,{className:"w-4 h-4 mr-2"}),"Filters",A>0&&e.jsx(xe,{variant:"secondary",className:"ml-2",children:"Active"})]})}),e.jsx(b$,{viewMode:m,onToggleViewMode:y,selectedItemsPerPage:s,onItemsPerPageChange:d,totalCount:i,startIndex:q,endIndex:P,title:"All companies",items:"companies"}),e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("div",{className:"flex items-center gap-3"}),e.jsxs("div",{className:"flex items-center gap-2",children:[v.length>0&&e.jsxs(D,{variant:"outline",size:"sm",onClick:()=>b(R=>!R),children:[w?"Hide comparison":"Show comparison"," (",v.length,")"]}),e.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:"Sort by:"}),e.jsxs(D,{variant:"ghost",size:"sm",className:"text-accent",children:[e.jsx(ja,{className:"w-4 h-4 mr-1"}),"Most Active"]})]})]}),L.length>0&&w&&e.jsx("div",{className:"mb-6",children:e.jsx(w$,{entities:L,onClearSelection:N,maxSelections:Hj})}),r?e.jsx(k$,{count:s}):e.jsx("div",{className:T,children:S.map(R=>e.jsx(CH,{company:R.company,displayName:R.displayName,openRolesCount:R.openRolesCount,groupMembersCount:R.groupMembersCount,isGroup:R.isGroup,viewMode:m,compareId:R.comparisonId,compareSelected:v.includes(R.comparisonId),compareDisabled:!v.includes(R.comparisonId)&&v.length>=Hj,onToggleCompare:j},R.company.id))}),!r&&c>1&&e.jsx(B9,{currentPage:n,totalPages:c,onPageChange:l}),!r&&i===0&&e.jsxs("div",{className:"text-center py-16",children:[e.jsx(pt,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),e.jsxs("h3",{className:"text-lg font-medium mb-2",children:["No ",h.scope==="group"?"groups":"companies"," found"]}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Try adjusting your filters"}),e.jsx(D,{variant:"outline",onClick:p,children:"Clear all filters"})]})]})]})})}),x&&e.jsxs("div",{className:"fixed inset-0 z-50 lg:hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>f(!1)}),e.jsxs("div",{className:"absolute right-0 top-0 h-full w-full max-w-sm bg-background p-6 overflow-y-auto",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"font-semibold text-lg",children:"Filters"}),e.jsx(D,{variant:"ghost",size:"icon",onClick:()=>f(!1),children:e.jsx(wt,{className:"w-5 h-5"})})]}),e.jsx(dN,{filters:h,options:a,onFiltersChange:u,onClearFilters:p,resultCount:i})]})]})]})},_9=g.forwardRef(({className:t,...a},r)=>e.jsx("textarea",{className:ue("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a}));_9.displayName="Textarea";const C$=({company:t,open:a,onOpenChange:r})=>{const[n,s]=M.useState(1),[i,c]=M.useState({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),l=()=>{s(3)},d=()=>{s(1),c({fullName:"",workEmail:"",jobTitle:"",relationship:"",message:""}),r(!1)};return e.jsx(Ja,{open:a,onOpenChange:d,children:e.jsxs(Aa,{className:"sm:max-w-[500px]",children:[n===1&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-accent/20 to-gaming-gold/20 flex items-center justify-center mb-2",children:e.jsx(pt,{className:"w-6 h-6 text-accent"})}),e.jsxs(aa,{children:["Claim ",t.name,"'s Profile"]}),e.jsx(fo,{children:"Verify your affiliation to manage this company's page, add products, respond to reviews, and access analytics."})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Update company information"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Add products, edit descriptions, and manage your profile"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Access analytics"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"See who's viewing your profile and track engagement"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Publish jobs & events"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Post open roles and announce event attendance"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx(ht,{className:"w-5 h-5 text-gaming-success mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:"Enable meeting bookings"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Let potential partners request meetings at events"})]})]})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:d,children:"Cancel"}),e.jsxs(D,{variant:"accent",onClick:()=>s(2),children:["Continue",e.jsx(io,{className:"w-4 h-4 ml-2"})]})]})]}),n===2&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{children:[e.jsx(aa,{children:"Verify Your Affiliation"}),e.jsxs(fo,{children:["We'll verify your work email domain to confirm your connection to ",t.name,"."]})]}),e.jsx("div",{className:"space-y-4 py-4",children:e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Pe,{id:"fullName",placeholder:"John Smith",value:i.fullName,onChange:h=>c({...i,fullName:h.target.value})})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"workEmail",children:"Work Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{id:"workEmail",type:"email",placeholder:`you@${t.overview.website.replace(/^https?:\/\/(www\.)?/,"").split("/")[0]}`,className:"pl-10",value:i.workEmail,onChange:h=>c({...i,workEmail:h.target.value})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send a verification link to this address"})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"jobTitle",children:"Job Title"}),e.jsxs("div",{className:"relative",children:[e.jsx(at,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(Pe,{id:"jobTitle",placeholder:"e.g., Marketing Manager",className:"pl-10",value:i.jobTitle,onChange:h=>c({...i,jobTitle:h.target.value})})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"relationship",children:"Your Role"}),e.jsxs(jo,{value:i.relationship,onValueChange:h=>c({...i,relationship:h}),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select your relationship"})}),e.jsxs(Nr,{children:[e.jsx(Et,{value:"employee",children:"Current Employee"}),e.jsx(Et,{value:"founder",children:"Founder / Executive"}),e.jsx(Et,{value:"hr",children:"HR / Recruiting"}),e.jsx(Et,{value:"marketing",children:"Marketing / PR"}),e.jsx(Et,{value:"agency",children:"Authorized Agency"})]})]})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(Q,{htmlFor:"message",children:"Additional Information (Optional)"}),e.jsx(_9,{id:"message",placeholder:"Any additional context to help verify your claim...",value:i.message,onChange:h=>c({...i,message:h.target.value}),rows:3})]})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:()=>s(1),children:"Back"}),e.jsx(D,{variant:"accent",onClick:l,disabled:!i.fullName||!i.workEmail||!i.relationship,children:"Submit Claim Request"})]})]}),n===3&&e.jsxs(e.Fragment,{children:[e.jsxs(ha,{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-full bg-gaming-success/10 flex items-center justify-center mx-auto mb-4",children:e.jsx(ht,{className:"w-8 h-8 text-gaming-success"})}),e.jsx(aa,{children:"Claim Request Submitted!"}),e.jsxs(fo,{className:"text-center",children:["We've sent a verification email to ",e.jsx("strong",{children:i.workEmail}),". Click the link in the email to verify your affiliation."]})]}),e.jsx("div",{className:"py-4",children:e.jsxs("div",{className:"p-4 bg-secondary/50 rounded-lg text-sm text-muted-foreground",children:[e.jsx("p",{className:"font-medium text-foreground mb-2",children:"What happens next?"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsx("li",{children:"• Check your email for the verification link"}),e.jsx("li",{children:"• Our team will review your claim within 24-48 hours"}),e.jsx("li",{children:"• You'll receive an email once your claim is approved"})]})]})}),e.jsx(ta,{children:e.jsx(D,{variant:"accent",onClick:d,className:"w-full",children:"Done"})})]})]})})};function m9({job:t,view:a,isSaved:r=!1,onApply:n,onSave:s,onRemove:i,onViewApplication:c}){var h;const l=t.city?`${t.city}, ${t.country}`:t.location,d=t.salaryMin&&t.salaryMax?`${t.salaryMin}–${t.salaryMax} ${t.salaryCurrency||""}`:void 0;return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-lg",children:t.title}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mt-2",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(zo,{className:"h-4 w-4"}),t.company]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"h-4 w-4"}),l]})]})]}),a==="applications"&&t.status&&e.jsx(xe,{variant:"secondary",children:t.status})]}),d&&e.jsx("p",{className:"text-sm font-semibold text-accent mt-1",children:d})]}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.department&&e.jsx(xe,{variant:"outline",children:t.department}),(h=t.skills)==null?void 0:h.slice(0,6).map(u=>e.jsx(xe,{variant:"secondary",children:u},u))]}),a==="applications"&&t.appliedDate&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(da,{className:"h-3 w-3"}),"Applied ",t.appliedDate]}),e.jsxs("div",{className:"flex gap-2",children:[a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Apply Now"}),e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save Job"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"}),a==="applications"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>c==null?void 0:c(t.id),children:"View Application"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>{window.location.href=t.link},children:"Apply"})]})]})})]})}function jC({article:t,view:a,isSaved:r=!1,onRead:n,onSave:s,onRemove:i}){var c;return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex gap-2 items-start mb-2",children:[(c=t.categories)==null?void 0:c.map(l=>e.jsx(xe,{variant:"secondary",children:l})),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.publishedDate})]}),e.jsx(ge,{className:"text-lg",children:t.title}),e.jsxs(Ue,{className:"text-xs",children:[t.source?t.source:t.company," • ",t.readTime," min"]})]}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:t.excerpt}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(l=>e.jsx(xe,{variant:"outline",className:"text-xs",children:l},l))}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[e.jsx(D,{size:"sm",onClick:()=>n==null?void 0:n(t.id),children:"Read Article"}),a==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{size:"sm",variant:r?"secondary":"outline",disabled:r,onClick:()=>s==null?void 0:s(t),children:r?"Saved":"Save"}),e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove"})]}),a==="saved"&&e.jsx(D,{size:"sm",variant:"destructive",onClick:()=>i==null?void 0:i(t.id),children:"Remove Saved"}),a==="company"&&e.jsx(D,{size:"sm",variant:"outline",onClick:()=>n==null?void 0:n(t.id),children:"Read"})]})]})})]})}const S$=({company:t,jobs:a,news:r,events:n,officeLocations:s})=>{var K,me,je,Z,Y,ke,fe,ve,le,_e,Re;const[i,c]=M.useState(!1),[l,d]=M.useState(!1);if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(pt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Company Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The company you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Directory"})})]})});const h=((me=(K=t.webIntelligence)==null?void 0:K.menus.primary_nav_details)==null?void 0:me.flatMap(z=>z.key_points))??[],u=t.trustAndCompliance.licenses.length+t.trustAndCompliance.certifications.length+t.trustAndCompliance.awards.length,p=t.signalsAndInsights,m=((je=t.group)==null?void 0:je.name)??t.groupName??t.group_name??null,y=((Z=t.group)==null?void 0:Z.slug)??t.groupSlug??t.group_slug??((Y=t.group)==null?void 0:Y.id)??t.groupId??t.group_id??void 0,x=a??[],f=r??[],v=n??[],k=x.length>0?x.length:Array.isArray(t.jobs.openRoles)?t.jobs.openRoles.length:t.jobs.openRoles,w=z=>typeof z=="string"?z:`${z.authority} (${z.jurisdiction})`,b=z=>typeof z=="string"?z:`${z.name} (${z.year})`,S=z=>"name"in z?z.name:z.eventName,C=z=>"startDate"in z?`${z.startDate}${z.endDate?` - ${z.endDate}`:""}`:z.date,A=z=>typeof z=="string"?z:`${z.title} • ${z.source}`,L=z=>typeof z=="object"&&z!==null&&"url"in z,j=z=>{if(typeof z=="string")return z;const se=z.city??z.cities??z.location,Ne=z.country;return`${se??"Remote"}, ${Ne??"Global"}`},N=s??t.overview.officeLocations??[],q=()=>t.claimedStatus==="claimed"?e.jsxs(xe,{className:"bg-accent/10 text-accent border-accent/20",children:[e.jsx(ht,{className:"w-3 h-3 mr-1"}),"Claimed"]}):null,P=[{name:"Casino Games (Slots & RNG)",category:"Game Content",description:"RNG-based casino games including slots and table games.",keywords:["slot","rng","casino game","table game","jackpot","buy bonus"],negativeKeywords:["live casino games","live casino"],priority:10},{name:"Live Casino Games",category:"Live Casino",description:"Live dealer games streamed from professional studios.",keywords:["live casino games","live dealer games","roulette games","live roulette","sic-bo","presenter"],negativeKeywords:["real-time reporting"],priority:10},{name:"iGaming Platform / PAM",category:"Platform",description:"Core iGaming platform including player accounts, wallet, and cashier.",keywords:["pam","aggregation platform","cashier","player account"],negativeKeywords:[],priority:10},{name:"Game Aggregation",category:"Aggregation",description:"Single API access to multiple game providers.",keywords:["aggregation","aggregator","single api","content hub"],negativeKeywords:[],priority:10},{name:"Bonus & Promotions Platform",category:"CRM & Engagement",description:"Bonus management, promotions, and player engagement tools.",keywords:["bonus tools","promotional tools","free spins tools","tournament","leaderboard","rewards tools","bonus features","bonus platform"],negativeKeywords:[],priority:10},{name:"Back Office & Analytics",category:"Operations",description:"Reporting, dashboards, and performance analytics.",keywords:["back office","real-time reporting","analytics","easy-to-use tools","insights"],negativeKeywords:[],priority:10},{name:"Live Casino Infrastructure",category:"Technology",description:"Hardware, streaming, and infrastructure for live casino operations.",keywords:["streaming","video streaming","Live Casino studio","professional game hosts"],negativeKeywords:[],priority:10},{name:"Payments & Payouts",category:"Payments",description:"Payment processing, deposits, and withdrawals.",keywords:["Payment processing","psp","payout","withdrawal","deposit"],negativeKeywords:[],priority:10},{name:"Compliance & Risk",category:"Compliance",description:"KYC, AML, fraud prevention, and responsible gaming.",keywords:["kyc detection","aml detection","compliance tools","fraud detection","fraud prevention","responsible gaming tools"],negativeKeywords:[],priority:10}];function T(z,se){var Te;const Ne=se.toLowerCase();return!(!z.keywords.some(rt=>Ne.includes(rt))||((Te=z.negativeKeywords)==null?void 0:Te.some(rt=>Ne.includes(rt))))}function R(z){return z!==null}const E=[{key:"migea",name:"Malta iGaming Excellence Awards",aliases:["migea","malta igaming excellence awards","malta gaming excellence awards"]},{key:"egr",name:"EGR Awards",aliases:["egr awards","egr b2b awards","egr operator awards"]},{key:"sigma",name:"SiGMA Awards",aliases:["sigma awards","sigma igaming awards"]},{key:"ice",name:"ICE Gaming Awards",aliases:["ice gaming awards","ice awards"]}];function $(z=[]){const se=z.map(Ne=>Ne.toLowerCase());return E.flatMap(Ne=>se.find(Ye=>Ne.aliases.some(Te=>Ye.includes(Te)))?[{name:Ne.name,year:new Date().getFullYear()}]:[])}const B=new Set(["malta","italy","spain","netherlands","united kingdom","germany","sweden","romania","croatia","serbia","brazil"]);function U(z=[]){return Array.from(new Set(z.map(se=>se.toLowerCase()).filter(se=>B.has(se)).map(se=>se[0].toUpperCase()+se.slice(1))))}const O=(ve=(fe=(ke=t.webIntelligence)==null?void 0:ke.signals)==null?void 0:fe.evidence)==null?void 0:ve.credibility,ae=$((O==null?void 0:O.awards_mentioned)??[]),ce=U((O==null?void 0:O.countries_mentioned)??[]);function pe(z){return P.map(se=>{const Ne=z.filter(Xe=>T(se,Xe));return Ne.length===0?null:{name:se.name,category:se.category,description:se.description,keyDifferentiators:Array.from(new Set(Ne)),source:"derived",confidence:Math.min(1,Ne.length/5),priority:se.priority}}).filter(R).sort((se,Ne)=>Ne.priority-se.priority)}const ne=pe(h),de=[...t.productsAndServices??[],...ne??[]];return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ha,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(pt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),q()]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[e.jsx(xe,{variant:"secondary",children:t.companyType}),m&&e.jsx("a",{href:y?`/groups/${y}`:"/groups",children:e.jsxs(xe,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:["Part of ",m]})}),t.classification.verticals.map(z=>e.jsx(xe,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground",children:z},z))]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-primary-foreground/80 text-sm mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"w-4 h-4"}),t.overview.headquarters.city,", ",t.overview.headquarters.country]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(oo,{className:"w-4 h-4"}),"Founded ",t.overview.foundedYear]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-4 h-4"}),t.overview.employeeRange," employees"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(D,{variant:"accent",onClick:()=>d(!l),children:[l?e.jsx(ht,{className:"w-4 h-4 mr-2"}):e.jsx(vt,{className:"w-4 h-4 mr-2"}),l?"Following":"Follow"]}),e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(Do,{className:"w-4 h-4 mr-2"}),"Save"]}),t.claimedStatus==="unclaimed"&&e.jsx(D,{variant:"ghost",className:"text-primary-foreground",onClick:()=>c(!0),children:"Claim Profile"})]})]}),e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:k}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Open Jobs"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(p.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:u}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Trust Signals"})]})]})]})]})}),e.jsx("section",{className:"py-6",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(Ir,{defaultValue:"overview",className:"space-y-6",children:[e.jsxs(Za,{className:"flex-wrap h-auto gap-1 bg-secondary/50 p-1",children:[e.jsxs(Ce,{value:"overview",children:[e.jsx(Ho,{className:"w-4 h-4 mr-1.5"}),"Overview"]}),e.jsxs(Ce,{value:"products",children:[e.jsx(Fc,{className:"w-4 h-4 mr-1.5"}),"Products"]}),e.jsxs(Ce,{value:"trust",children:[e.jsx(gr,{className:"w-4 h-4 mr-1.5"}),"Trust"]}),e.jsxs(Ce,{value:"people",children:[e.jsx(Gc,{className:"w-4 h-4 mr-1.5"}),"People"]}),e.jsxs(Ce,{value:"jobs",children:[e.jsx(at,{className:"w-4 h-4 mr-1.5"}),"Jobs"]}),e.jsxs(Ce,{value:"news",children:[e.jsx(Ma,{className:"w-4 h-4 mr-1.5"}),"News"]}),e.jsxs(Ce,{value:"events",children:[e.jsx(Cc,{className:"w-4 h-4 mr-1.5"}),"Events"]}),e.jsxs(Ce,{value:"insights",children:[e.jsx(lo,{className:"w-4 h-4 mr-1.5"}),"Insights"]})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[e.jsxs(Se,{value:"overview",className:"space-y-6 mt-0",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"About"})}),e.jsxs(oe,{children:[e.jsx("p",{className:"text-muted-foreground mb-4",children:t.overview.longDescription||t.overview.shortDescription}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.classification.tags.map(z=>e.jsxs(xe,{variant:"secondary",children:["#",z]},z))})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Office Locations"})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-3",children:N.map((z,se)=>e.jsxs(xe,{variant:"outline",children:[e.jsx(it,{className:"w-3 h-3 mr-1"}),j(z)]},se))})})]})]}),e.jsx(Se,{value:"products",className:"space-y-4 mt-0",children:de.map((z,se)=>e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{children:[e.jsx(ge,{className:"text-lg",children:z.name}),e.jsx(xe,{variant:"secondary",className:"mt-1",children:z.category})]})})}),e.jsxs(oe,{children:[e.jsx("p",{className:"text-muted-foreground mb-3",children:z.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:z.keyDifferentiators.map((Ne,Xe)=>e.jsxs(xe,{variant:"outline",children:[e.jsx(Wc,{className:"w-3 h-3 mr-1"}),Ne]},Xe))})]})]},se))}),e.jsxs(Se,{value:"trust",className:"space-y-4 mt-0",children:[t.trustAndCompliance.licenses.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(gr,{className:"w-5 h-5 text-gaming-success"}),"Licenses"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.licenses.map((z,se)=>e.jsx(xe,{className:"bg-gaming-success/10 text-gaming-success",children:w(z)},se))})})]}),t.trustAndCompliance.awards.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jt,{className:"w-5 h-5 text-gaming-gold"}),"Awards"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:t.trustAndCompliance.awards.map((z,se)=>e.jsx(xe,{className:"bg-gaming-gold/10 text-gaming-gold",children:b(z)},se))})})]}),ae.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Jt,{className:"w-5 h-5 text-gaming-gold"}),"Industry Recognition"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:ae.map((z,se)=>e.jsxs(xe,{variant:"outline",children:[z.name,e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:"(inferred)"})]},se))})})]}),ce.length>0&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(Qt,{className:"w-5 h-5 text-accent"}),"Markets Mentioned"]})}),e.jsx(oe,{children:e.jsx("div",{className:"flex flex-wrap gap-2",children:ce.map((z,se)=>e.jsx(xe,{variant:"secondary",children:z},se))})})]})]}),e.jsx(Se,{value:"jobs",className:"space-y-4 mt-0",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(ge,{children:["Open Positions (",k,")"]}),e.jsx(xe,{children:t.jobs.remotePolicy})]})}),e.jsx("div",{className:"grid gap-4 p-4",children:x.length===0?e.jsx(re,{children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):x.map(z=>e.jsx(m9,{job:z,view:"company"},z.id))})]})}),e.jsx(Se,{value:"people",className:"mt-0",children:e.jsx(re,{children:e.jsx(oe,{className:"py-6 space-y-4",children:t.people.members.length===0?e.jsx("p",{className:"text-center text-muted-foreground",children:"Employee profiles are opt-in. No verified members yet."}):t.people.members.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:z.name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:z.title})]}),z.profileUrl&&e.jsx("a",{href:z.profileUrl,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View Profile"})})]},se))})})}),e.jsx(Se,{value:"news",className:"mt-0",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{children:["News (",f.length,")"]})}),e.jsx(oe,{className:"py-6 space-y-4",children:f.length>0?e.jsx("div",{className:"grid gap-4",children:f.map(z=>e.jsx(jC,{article:z,view:"company",onRead:()=>window.open(z.link,"_blank")},z.id))}):(_e=(le=t.newsAndMedia)==null?void 0:le.pressMentions)!=null&&_e.length?t.newsAndMedia.pressMentions.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between gap-3 p-3 bg-secondary/50 rounded-lg",children:[e.jsx("span",{className:"text-sm",children:A(z)}),L(z)&&z.url&&e.jsx("a",{href:z.url,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"Read"})})]},se)):e.jsx("p",{className:"text-center text-muted-foreground",children:"No recent news mentions."})})]})}),e.jsx(Se,{value:"events",className:"space-y-4 mt-0",children:v.length>0?e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"flex items-center gap-2",children:"Upcoming Events"})}),e.jsx(oe,{children:e.jsx("div",{className:"grid gap-4 p-4",children:v.map(z=>e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 p-3 m-3 rounded-xl border bg-card text-card-foreground shadow",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-lg",children:[z.conference," - ",z.event_year]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stand: ",z.stand]})]}),e.jsx("a",{href:z.link,target:"_blank",rel:"noreferrer",children:e.jsx(D,{size:"sm",variant:"outline",children:"View"})})]},z._id))})})]}):t.events.upcomingEvents.map((z,se)=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-secondary/50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold tracking-tight text-lg",children:S(z)}),e.jsxs("p",{className:"font-semibold tracking-tight text-lg",children:[z.location," • ",C(z)]})]}),t.events.bookMeetingEnabled&&e.jsx(D,{size:"sm",variant:"accent",children:"Book Meeting"})]},se))}),e.jsx(Se,{value:"insights",className:"mt-0",children:e.jsx(re,{children:e.jsxs(oe,{className:"py-12 text-center",children:[e.jsx(lo,{className:"w-10 h-10 text-muted-foreground mx-auto mb-3"}),e.jsx("h3",{className:"font-semibold mb-2",children:"Premium Insights"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Unlock demand trends, competitor analysis, and intent signals."}),e.jsx(D,{variant:"accent",children:"Upgrade to Access"})]})})})]}),e.jsxs("aside",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-base",children:"Contact"})}),e.jsxs(oe,{className:"space-y-3",children:[e.jsxs("a",{href:t.overview.website,target:"_blank",className:"flex items-center gap-2 text-sm text-accent hover:underline",children:[e.jsx(Qt,{className:"w-4 h-4"}),t.overview.website.replace(/^https?:\/\//,"")]}),((Re=t.overview.socialLinks)==null?void 0:Re.linkedin)&&e.jsxs("a",{href:t.overview.socialLinks.linkedin,target:"_blank",className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground",children:[e.jsx(qc,{className:"w-4 h-4"}),"LinkedIn"]})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{className:"text-base",children:"Similar Companies"})}),e.jsx(oe,{className:"space-y-2",children:p.similarCompanies.map((z,se)=>e.jsx("div",{className:"flex items-center gap-2 p-2 bg-secondary/50 rounded-lg text-sm",children:z},se))})]})]})]})]})})}),e.jsx(C$,{company:t,open:i,onOpenChange:c})]})},L$=({group:t})=>{var n,s;if(!t)return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[e.jsx(pt,{className:"w-16 h-16 text-muted-foreground mx-auto mb-4"}),e.jsx("h1",{className:"text-2xl font-bold mb-2",children:"Group Not Found"}),e.jsx("p",{className:"text-muted-foreground mb-6",children:"The group you're looking for doesn't exist."}),e.jsx("a",{href:"/companies",children:e.jsx(D,{variant:"accent",children:"Browse Companies"})})]})});const a=t.intelligenceProfile,r=((n=t.companies)==null?void 0:n.length)??0;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-primary-variant py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("a",{href:"/companies",className:"inline-flex items-center text-primary-foreground/70 hover:text-primary-foreground mb-6 text-sm",children:[e.jsx(Ha,{className:"w-4 h-4 mr-1"})," Back to Directory"]}),e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-white/10 backdrop-blur flex items-center justify-center flex-shrink-0",children:e.jsx(pt,{className:"w-10 h-10 text-primary-foreground"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-2",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:t.name}),e.jsx(xe,{className:"bg-white/10 text-primary-foreground border-white/20",children:"Company Group"})]}),t.description&&e.jsx("p",{className:"text-primary-foreground/80 text-sm mb-4 max-w-2xl",children:t.description}),e.jsx("div",{className:"flex flex-wrap gap-2",children:t.website&&e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",children:e.jsxs(D,{variant:"outline",className:"border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10",children:[e.jsx(Qt,{className:"w-4 h-4 mr-2"})," Visit Website"]})})})]}),a&&e.jsxs("div",{className:"flex gap-4 md:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:r}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Member Companies"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-primary-foreground",children:[(a.profileViews30d/1e3).toFixed(1),"k"]}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Views/30d"})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-primary-foreground",children:a.followsCount.toLocaleString()}),e.jsx("div",{className:"text-xs text-primary-foreground/70",children:"Followers"})]})]})]})]})}),e.jsx("section",{className:"py-8",children:e.jsxs("div",{className:"container mx-auto px-4 space-y-6",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Group Overview"})}),e.jsxs(oe,{className:"space-y-4",children:[t.website&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-accent",children:[e.jsx(Qt,{className:"w-4 h-4"}),e.jsx("a",{href:t.website,target:"_blank",rel:"noreferrer",className:"hover:underline",children:t.website.replace(/^https?:\/\//,"")})]}),t.description?e.jsx("p",{className:"text-muted-foreground",children:t.description}):e.jsx("p",{className:"text-muted-foreground",children:"No group description available yet."})]})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Member Companies"})}),e.jsxs(oe,{className:"space-y-3",children:[r===0&&e.jsx("p",{className:"text-muted-foreground",children:"No member companies listed."}),(s=t.companies)==null?void 0:s.map(i=>{var l,d,h;const c=i.isPrimary||i.id===t.primaryCompanyId;return e.jsxs("div",{className:`flex flex-col md:flex-row md:items-center md:justify-between gap-3 rounded-lg border p-4 ${c?"border-accent/40 bg-accent/5":"border-border"}`,children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`/companies/${i.slug}`,className:"font-semibold hover:text-accent",children:i.name}),c&&e.jsx(xe,{className:"bg-accent/10 text-accent border-accent/20",children:"Primary"})]}),((l=i.overview)==null?void 0:l.shortDescription)&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:i.overview.shortDescription})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-muted-foreground",children:[((d=i.overview)==null?void 0:d.headquarters)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(pt,{className:"w-4 h-4"}),i.overview.headquarters.city,", ",i.overview.headquarters.country]}),((h=i.overview)==null?void 0:h.employeeRange)&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(jt,{className:"w-4 h-4"}),i.overview.employeeRange]})]})]},i.id)})]})]}),a&&e.jsxs(re,{children:[e.jsx(ye,{children:e.jsx(ge,{children:"Group Intelligence"})}),e.jsxs(oe,{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(vt,{className:"w-4 h-4"})," Followers"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.followsCount.toLocaleString()})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(ja,{className:"w-4 h-4"})," Hiring Intensity"]}),e.jsx("div",{className:"text-2xl font-semibold mt-2",children:a.hiringIntensity})]}),e.jsxs("div",{className:"rounded-lg border border-border/60 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(jt,{className:"w-4 h-4"})," Top Viewing Countries"]}),e.jsx("div",{className:"text-sm font-medium mt-2",children:a.topViewingCountries.join(", ")||"No data"})]})]})]})]})})]})},N$=t=>{var a,r;if(t==null)return"";if(typeof t=="string"&&t.startsWith("http"))return t;if(typeof t=="string"&&t.startsWith("{"))try{const n=JSON.parse(t.replace(/'/g,'"'));return(n==null?void 0:n.url)??""}catch{return""}return typeof t=="object"?(t==null?void 0:t.url)??((r=(a=t==null?void 0:t.formats)==null?void 0:a.thumbnail)==null?void 0:r.url)??"":""},gR=t=>({profileViews30d:(t==null?void 0:t.profile_views_30d)??(t==null?void 0:t.profileViews30d)??0,followsCount:(t==null?void 0:t.follows_count)??(t==null?void 0:t.followsCount)??0,hiringIntensity:(t==null?void 0:t.hiring_intensity)??(t==null?void 0:t.hiringIntensity)??"Low",topSkillsHiring:(t==null?void 0:t.top_skills_hiring)??(t==null?void 0:t.topSkillsHiring)??[],topViewingCountries:(t==null?void 0:t.top_viewing_countries)??(t==null?void 0:t.topViewingCountries)??[],oftenComparedWith:(t==null?void 0:t.often_compared_with)??(t==null?void 0:t.oftenComparedWith)??[],similarCompanies:(t==null?void 0:t.similar_companies)??(t==null?void 0:t.similarCompanies)??[]}),I$=t=>{if(t)return{capabilitiesScore:t.capabilities_score??t.capabilitiesScore??0,credibilityScore:t.credibility_score??t.credibilityScore??0,complianceScore:t.compliance_score??t.complianceScore??0,hiringScore:t.hiring_score??t.hiringScore??0,overallScore:t.overall_score??t.overallScore??0,detectedBusinessModel:t.detected_business_model??t.detectedBusinessModel??"",detectedProducts:t.detected_products??t.detectedProducts??[],detectedMarkets:t.detected_markets??t.detectedMarkets??[]}},A$=t=>({id:String(t.id??t.company_id??""),name:t.name??"",slug:t.slug??"",companyType:t.company_type??t.companyType,overview:t.overview?{shortDescription:t.overview.short_description??t.overview.shortDescription,headquarters:t.overview.headquarters,employeeRange:t.overview.employee_range??t.overview.employeeRange}:void 0,isPrimary:t.is_primary??t.isPrimary}),P$=t=>({id:String((t==null?void 0:t.id)??(t==null?void 0:t.group_id)??""),name:(t==null?void 0:t.name)??(t==null?void 0:t.group_name)??"",slug:(t==null?void 0:t.slug)??"",website:(t==null?void 0:t.website)??"",description:(t==null?void 0:t.description)??"",primaryCompanyId:(t==null?void 0:t.primary_company_id)??(t==null?void 0:t.primaryCompanyId)??"",companies:Array.isArray(t==null?void 0:t.companies)?t.companies.map(A$):[],intelligenceProfile:gR((t==null?void 0:t.intelligence_profile)??(t==null?void 0:t.intelligenceProfile))}),_$=t=>{var a,r;return{shortDescription:(t==null?void 0:t.shortDescription)??(t==null?void 0:t.short_description)??"",longDescription:(t==null?void 0:t.longDescription)??(t==null?void 0:t.long_description),foundedYear:typeof(t==null?void 0:t.foundedYear)=="number"?t.foundedYear:0,headquarters:{city:((a=t==null?void 0:t.headquarters)==null?void 0:a.city)??"",country:((r=t==null?void 0:t.headquarters)==null?void 0:r.country)??""},officeLocations:t==null?void 0:t.officeLocations,employeeRange:(t==null?void 0:t.employeeRange)??(t==null?void 0:t.employee_range)??"",publicCompany:t==null?void 0:t.publicCompany,stockTicker:t==null?void 0:t.stockTicker,website:(t==null?void 0:t.website)??"",socialLinks:t==null?void 0:t.socialLinks}},R$=t=>({searchImpressions:(t==null?void 0:t.searchImpressions)??0,profileClicks:(t==null?void 0:t.profileClicks)??0,externalClicks:(t==null?void 0:t.externalClicks)??0}),T$=t=>{var a,r,n;return{...t,overview:_$(t.overview),logo:N$(t.logo),jobs:q$(t.jobs),group:P$(t.group),groupId:t.groupId??t.group_id??((a=t.group)==null?void 0:a.id),groupName:t.groupName??t.group_name??((r=t.group)==null?void 0:r.name),groupSlug:t.group_slug??t.groupSlug??((n=t.group)==null?void 0:n.slug),signalsAndInsights:gR(t.signalsAndInsights??t.signals_and_insights??t.signalsAndInsights)??t.signalsAndInsights,visibilityMetrics:R$(t.visibilityMetrics),intelligenceProfile:I$(t.intelligence_profile??t.intelligenceProfile),classification:D$(t.classification)}},q$=t=>({openRoles:Array.isArray(t==null?void 0:t.openRoles)||typeof(t==null?void 0:t.openRoles)=="number"?t.openRoles:[],departmentsHiring:Array.isArray(t==null?void 0:t.departmentsHiring)?t.departmentsHiring:[],locationsHiring:Array.isArray(t==null?void 0:t.locationsHiring)?t.locationsHiring:[],remotePolicy:(t==null?void 0:t.remotePolicy)??""}),D$=t=>({businessModel:(t==null?void 0:t.businessModel)??(t==null?void 0:t.business_model)??"",verticals:Array.isArray(t==null?void 0:t.verticals)?t.verticals:[],productCategories:Array.isArray(t==null?void 0:t.productCategories)?t.productCategories:[],tags:((t==null?void 0:t.tags)??[]).map(a=>typeof a=="string"?a:a.title??a.tag??"")}),z$=t=>({count:(t==null?void 0:t.count)??0,page:(t==null?void 0:t.page)??1,pageSize:(t==null?void 0:t.page_size)??(t==null?void 0:t.pageSize)??0,totalPages:(t==null?void 0:t.total_pages)??(t==null?void 0:t.totalPages)??1,results:Array.isArray(t==null?void 0:t.results)?t.results.map(T$):[],filterOptions:(t==null?void 0:t.filter_options)??(t==null?void 0:t.filterOptions)}),E$=(t,a)=>{const{buildUrl:r,initialData:n}=a,[s,i]=M.useState(n??null),[c,l]=M.useState(!n),d=M.useMemo(()=>r(t),[r,t]);return M.useEffect(()=>{let h=!1;return l(!0),fetch(d).then(u=>{if(!u.ok)throw new Error(`Failed to load companies: ${u.status}`);return u.json()}).then(u=>{h||i(z$(u))}).catch(u=>{console.error(u)}).finally(()=>{h||l(!1)}),()=>{h=!0}},[d]),{data:s,loading:c}},CC={query:"",filters:{},sort:"popularity_desc",page:1,pageSize:50,scope:"company"},gt=(t,a)=>{var r;return((r=t.get(a))==null?void 0:r.split(",").filter(Boolean))??[]},hN=(t,a)=>{const r=Number(t);return Number.isFinite(r)&&r>0?r:a},F$=t=>{var r,n,s,i,c,l,d;const a=new URLSearchParams;return t.query&&a.set("query",t.query),t.sort&&a.set("sort",t.sort),t.scope&&t.scope!=="company"&&a.set("scope",t.scope),t.segment&&a.set("segment",t.segment),t.subcategory&&a.set("subcategory",t.subcategory),t.region&&a.set("region",t.region),a.set("page",String(t.page)),a.set("pageSize",String(t.pageSize)),t.filters.companyType&&a.set("filters[companyType]",t.filters.companyType),(r=t.filters.country)!=null&&r.length&&a.set("filters[country]",t.filters.country.join(",")),(n=t.filters.products)!=null&&n.length&&a.set("filters[products]",t.filters.products.join(",")),(s=t.filters.employees)!=null&&s.length&&a.set("filters[employees]",t.filters.employees.join(",")),(i=t.filters.verticals)!=null&&i.length&&a.set("filters[verticals]",t.filters.verticals.join(",")),(c=t.filters.productCategories)!=null&&c.length&&a.set("filters[productCategories]",t.filters.productCategories.join(",")),(l=t.filters.openRoles)!=null&&l.length&&a.set("filters[openRoles]",t.filters.openRoles.join(",")),(d=t.filters.yearsActive)!=null&&d.length&&a.set("filters[yearsActive]",t.filters.yearsActive.join(",")),t.filters.hiringNow&&a.set("filters[hiringNow]","true"),t.filters.claimedOnly&&a.set("filters[claimedOnly]","true"),t.filters.hasLicenses&&a.set("filters[hasLicenses]","true"),t.filters.hasAwards&&a.set("filters[hasAwards]","true"),a.toString()},O$=(t,a=CC)=>{const r=new URLSearchParams(t),n=r.get("scope"),s=n==="group"||n==="company"?n:a.scope,i=r.get("query")??r.get("search")??a.query??"",c=r.get("pageSize")??r.get("page_size");return{...a,query:i,sort:r.get("sort")??a.sort,page:hN(r.get("page"),a.page),pageSize:hN(c,a.pageSize),scope:s,segment:r.get("segment")??a.segment,subcategory:r.get("subcategory")??a.subcategory,region:r.get("region")??a.region,filters:{companyType:r.get("filters[companyType]")??r.get("companyType")??a.filters.companyType,country:gt(r,"filters[country]").concat(gt(r,"country")),products:gt(r,"filters[products]").concat(gt(r,"products")),employees:gt(r,"filters[employees]").concat(gt(r,"employees")).concat(gt(r,"employeeRanges")),verticals:gt(r,"filters[verticals]").concat(gt(r,"verticals")),productCategories:gt(r,"filters[productCategories]").concat(gt(r,"productCategories")),openRoles:gt(r,"filters[openRoles]").concat(gt(r,"openRoles")),yearsActive:gt(r,"filters[yearsActive]").concat(gt(r,"yearsActive")),hiringNow:["true","1","yes"].includes(r.get("filters[hiringNow]")??r.get("hiringNow")??""),claimedOnly:["true","1","yes"].includes(r.get("filters[claimedOnly]")??r.get("claimedOnly")??""),hasLicenses:["true","1","yes"].includes(r.get("filters[hasLicenses]")??r.get("hasLicenses")??""),hasAwards:["true","1","yes"].includes(r.get("filters[hasAwards]")??r.get("hasAwards")??"")}}},H$=t=>({...fR,search:t.query??"",companyType:t.filters.companyType??"",verticals:t.filters.verticals??[],productCategories:t.filters.productCategories??[],employeeRanges:t.filters.employees??[],products:t.filters.products??[],openRolesRanges:t.filters.openRoles??[],yearsActiveRanges:t.filters.yearsActive??[],hiringNow:t.filters.hiringNow??!1,scope:t.scope,claimedOnly:t.filters.claimedOnly??!1,hasLicenses:t.filters.hasLicenses??!1,hasAwards:t.filters.hasAwards??!1}),V$=t=>({companyType:t.companyType||void 0,verticals:t.verticals.length?t.verticals:void 0,productCategories:t.productCategories.length?t.productCategories:void 0,employees:t.employeeRanges.length?t.employeeRanges:void 0,products:t.products.length?t.products:void 0,openRoles:t.openRolesRanges.length?t.openRolesRanges:void 0,yearsActive:t.yearsActiveRanges.length?t.yearsActiveRanges:void 0,hiringNow:t.hiringNow||void 0,claimedOnly:t.claimedOnly||void 0,hasLicenses:t.hasLicenses||void 0,hasAwards:t.hasAwards||void 0}),B$={companyTypes:[],verticals:[],productCategories:[],employeeRanges:[],products:[],openRolesRanges:[],yearsActiveRanges:[]},$$=({initialData:t,initialFilterOptions:a,buildUrl:r,initialQuery:n})=>{const[s,i]=M.useState(()=>n||(typeof window>"u"?CC:O$(window.location.search,CC))),[c,l]=M.useState("list"),[d,h]=M.useState(a),{data:u,loading:p}=E$(s,{buildUrl:r,initialData:t}),m=u??t,y=M.useMemo(()=>H$(s),[s]);M.useEffect(()=>{if(typeof window>"u")return;const b=F$(s),S=b?`${window.location.pathname}?${b}`:window.location.pathname;window.history.replaceState(null,"",S)},[s]),M.useEffect(()=>{u!=null&&u.filterOptions&&h({...B$,...u.filterOptions})},[u]);const x=b=>{i(S=>({...S,query:b.search,scope:b.scope,filters:V$(b),page:1}))},f=()=>{x(fR)},v=b=>{i(S=>({...S,page:b}))},k=b=>{i(S=>({...S,pageSize:b,page:1}))},w=()=>{l(b=>b==="grid"?"list":"grid")};return e.jsx(xR,{companies:m.results,loading:p,page:m.page,pageSize:m.pageSize||s.pageSize,totalCount:m.count,totalPages:m.totalPages,onPageChange:v,onPageSizeChange:k,filters:y,filterOptions:d,onFiltersChange:x,onClearFilters:f,viewMode:c,onViewModeChange:w})};var SC={exports:{}},VS={};function U$(t){return t&&t.__esModule?t:{default:t}}VS._=U$;var kR={};function vR(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,r=new WeakMap;return(vR=function(n){return n?r:a})(t)}function G$(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=vR(a);if(r&&r.has(t))return r.get(t);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var c=s?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}kR._=G$;var Vj={},uN;function W$(){return uN||(uN=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});const n=VS._(M).default.createContext({});process.env.NODE_ENV!=="production"&&(n.displayName="HeadManagerContext")}(Vj)),Vj}var Al={exports:{}},pN;function Z$(){return pN||(pN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"setAttributesFromProps",{enumerable:!0,get:function(){return i}});const r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function s(c){return["async","defer","noModule"].includes(c)}function i(c,l){for(const[d,h]of Object.entries(l)){if(!l.hasOwnProperty(d)||n.includes(d)||h===void 0)continue;const u=r[d]||d.toLowerCase();c.tagName==="SCRIPT"&&s(u)?c[u]=!!h:c.setAttribute(u,String(h)),(h===!1||c.tagName==="SCRIPT"&&s(u)&&(!h||h==="false"))&&(c.setAttribute(u,""),c.removeAttribute(u))}}(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Al,Al.exports)),Al.exports}var Pl={exports:{}},yN;function J$(){return yN||(yN=1,function(t,a){Object.defineProperty(a,"__esModule",{value:!0});function r(i,c){for(var l in c)Object.defineProperty(i,l,{enumerable:!0,get:c[l]})}r(a,{cancelIdleCallback:function(){return s},requestIdleCallback:function(){return n}});const n=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(i){let c=Date.now();return self.setTimeout(function(){i({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-c))}})},1)},s=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(i){return clearTimeout(i)};(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)}(Pl,Pl.exports)),Pl.exports}(function(t,a){"use client";Object.defineProperty(a,"__esModule",{value:!0});function r(C,A){for(var L in A)Object.defineProperty(C,L,{enumerable:!0,get:A[L]})}r(a,{default:function(){return S},handleClientScriptLoad:function(){return f},initScriptLoader:function(){return w}});const n=VS,s=kR,i=e,c=n._(LC),l=s._(M),d=W$(),h=Z$(),u=J$(),p=new Map,m=new Set,y=C=>{if(c.default.preinit){C.forEach(A=>{c.default.preinit(A,{as:"style"})});return}if(typeof window<"u"){let A=document.head;C.forEach(L=>{let j=document.createElement("link");j.type="text/css",j.rel="stylesheet",j.href=L,A.appendChild(j)})}},x=C=>{const{src:A,id:L,onLoad:j=()=>{},onReady:N=null,dangerouslySetInnerHTML:q,children:P="",strategy:T="afterInteractive",onError:R,stylesheets:E}=C,$=L||A;if($&&m.has($))return;if(p.has(A)){m.add($),p.get(A).then(j,R);return}const B=()=>{N&&N(),m.add($)},U=document.createElement("script"),O=new Promise((ae,ce)=>{U.addEventListener("load",function(pe){ae(),j&&j.call(this,pe),B()}),U.addEventListener("error",function(pe){ce(pe)})}).catch(function(ae){R&&R(ae)});q?(U.innerHTML=q.__html||"",B()):P?(U.textContent=typeof P=="string"?P:Array.isArray(P)?P.join(""):"",B()):A&&(U.src=A,p.set(A,O)),(0,h.setAttributesFromProps)(U,C),T==="worker"&&U.setAttribute("type","text/partytown"),U.setAttribute("data-nscript",T),E&&y(E),document.body.appendChild(U)};function f(C){const{strategy:A="afterInteractive"}=C;A==="lazyOnload"?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))}):x(C)}function v(C){document.readyState==="complete"?(0,u.requestIdleCallback)(()=>x(C)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>x(C))})}function k(){[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(A=>{const L=A.id||A.getAttribute("src");m.add(L)})}function w(C){C.forEach(f),k()}function b(C){const{id:A,src:L="",onLoad:j=()=>{},onReady:N=null,strategy:q="afterInteractive",onError:P,stylesheets:T,...R}=C,{updateScripts:E,scripts:$,getIsSsr:B,appDir:U,nonce:O}=(0,l.useContext)(d.HeadManagerContext),ae=(0,l.useRef)(!1);(0,l.useEffect)(()=>{const pe=A||L;ae.current||(N&&pe&&m.has(pe)&&N(),ae.current=!0)},[N,A,L]);const ce=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{ce.current||(q==="afterInteractive"?x(C):q==="lazyOnload"&&v(C),ce.current=!0)},[C,q]),(q==="beforeInteractive"||q==="worker")&&(E?($[q]=($[q]||[]).concat([{id:A,src:L,onLoad:j,onReady:N,onError:P,...R}]),E($)):B&&B()?m.add(A||L):B&&!B()&&x(C)),U){if(T&&T.forEach(pe=>{c.default.preinit(pe,{as:"style"})}),q==="beforeInteractive")return L?(c.default.preload(L,R.integrity?{as:"script",integrity:R.integrity,nonce:O,crossOrigin:R.crossOrigin}:{as:"script",nonce:O,crossOrigin:R.crossOrigin}),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([L,{...R,id:A}])+")"}})):(R.dangerouslySetInnerHTML&&(R.children=R.dangerouslySetInnerHTML.__html,delete R.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...R,id:A}])+")"}}));q==="afterInteractive"&&L&&c.default.preload(L,R.integrity?{as:"script",integrity:R.integrity,nonce:O,crossOrigin:R.crossOrigin}:{as:"script",nonce:O,crossOrigin:R.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});const S=b;(typeof a.default=="function"||typeof a.default=="object"&&a.default!==null)&&typeof a.default.__esModule>"u"&&(Object.defineProperty(a.default,"__esModule",{value:!0}),Object.assign(a.default,a),t.exports=a.default)})(SC,SC.exports);var X$=SC.exports,Y$=X$;const K$=jT(Y$),Q$=`
|
|
7826
7826
|
window.dataLayer = window.dataLayer || [];
|
|
7827
7827
|
window.dataLayer.push({ event: 'consent_granted' });
|
|
7828
7828
|
// gtag('consent', 'update', { ad_storage: 'granted', analytics_storage: 'granted' });
|
|
7829
|
-
`;function J$({allow:t="analytics",scriptId:a="ga",scriptStrategy:r="afterInteractive",scriptContent:n=Z$}){return e.jsx(Hz,{allow:t,children:e.jsx(W$,{id:a,strategy:r,children:n})})}const X$=D9("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),yl=g.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,role:"alert",className:ue(X$({variant:a}),t),...r}));yl.displayName="Alert";const Y$=g.forwardRef(({className:t,...a},r)=>e.jsx("h5",{ref:r,className:ue("mb-1 font-medium leading-none tracking-tight",t),...a}));Y$.displayName="AlertTitle";const ml=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("text-sm [&_p]:leading-relaxed",t),...a}));ml.displayName="AlertDescription";function K$({onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n=!1,error:s,title:i="Welcome Back",description:c="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=M.useState(""),[p,y]=M.useState(""),[m,x]=M.useState(!1),f=v=>{v.preventDefault(),t(h,p,m)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:f,children:[e.jsxs(oe,{className:"space-y-4",children:[s&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:s})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"identifier",children:l}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"identifier",type:"text",placeholder:d,value:h,onChange:v=>u(v.target.value),className:"pl-10",required:!0,disabled:n})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"password",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(lo,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:v=>y(v.target.value),className:"pl-10",required:!0,disabled:n})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"remember",checked:m,onCheckedChange:v=>x(v),disabled:n}),e.jsx(Q,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const Q$=({onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n=!1,error:s="",appName:i="Your App",logo:c,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),e.jsx(K$,{onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function eU({onSubmit:t,fields:a,onLoginClick:r,isLoading:n=!1,error:s,title:i="Create Account",description:c="Join us to access exclusive opportunities"}){const[l,d]=M.useState({}),[h,u]=M.useState(""),p=(m,x)=>d(f=>({...f,[m]:x})),y=m=>{if(m.preventDefault(),u(""),"password"in l&&("confirmPassword"in l||"password2"in l)){const f=l.confirmPassword??l.password2;if(l.password!==f){u("Passwords do not match");return}}const x={...l};if("confirmPassword"in x&&!("password2"in x)&&(x.password2=x.confirmPassword,delete x.confirmPassword),"fullName"in x&&!("first_name"in x)&&!("last_name"in x)){const f=String(x.fullName||"").trim().split(/\s+/).filter(Boolean);f.length>0&&(x.first_name=f[0],f.length>1&&(x.last_name=f.slice(1).join(" "))),delete x.fullName}t(x)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:y,children:[e.jsxs(oe,{className:"space-y-4",children:[(s||h)&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:s||h})]}),a.map(m=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:m.name,children:m.label}),e.jsx(Pe,{id:m.name,type:m.type||"text",placeholder:m.placeholder,required:m.required,disabled:n,value:l[m.name]||"",onChange:x=>p(m.name,x.target.value)})]},m.name))]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Creating account...":"Create Account"}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:n,children:"Sign in"})]})]})]})]})}const tU=({onSubmit:t,fields:a,onLoginClick:r,isLoading:n=!1,error:s="",appName:i="Your App",logo:c,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(eU,{onSubmit:t,fields:a,onLoginClick:r,isLoading:n,error:s,title:l,description:d})]})}),aU=t=>{let a=0;return t.length>=8&&(a+=1),/[A-Z]/.test(t)&&(a+=1),/[a-z]/.test(t)&&(a+=1),/\d/.test(t)&&(a+=1),/[^A-Za-z0-9]/.test(t)&&(a+=1),t?a<=2?{label:"Weak",score:a}:a<=4?{label:"Good",score:a}:{label:"Strong",score:a}:{label:"",score:0}};function rU({onSubmit:t,fields:a,optionalFields:r=[],onLoginClick:n,isLoading:s=!1,error:i,title:c="Create Account",description:l="Join iGaming Career in seconds",privacyNote:d="We respect your privacy. Your data is protected and never shared without consent."}){const[h,u]=M.useState({}),[p,y]=M.useState(""),[m,x]=M.useState(!1),[f,v]=M.useState({}),k=M.useMemo(()=>{const L=a.find(j=>j.type==="password"||j.name==="password");return L&&h[L.name]||""},[a,h]),w=M.useMemo(()=>aU(k),[k]),b=(L,j)=>u(N=>({...N,[L]:j})),S=L=>{if(L.preventDefault(),y(""),"password"in h&&("confirmPassword"in h||"password2"in h)){const N=h.confirmPassword??h.password2;if(h.password!==N){y("Passwords do not match");return}}const j={...h};if("confirmPassword"in j&&!("password2"in j)&&(j.password2=j.confirmPassword,delete j.confirmPassword),"fullName"in j&&!("first_name"in j)&&!("last_name"in j)){const N=String(j.fullName||"").trim().split(/\s+/).filter(Boolean);N.length>0&&(j.first_name=N[0],N.length>1&&(j.last_name=N.slice(1).join(" "))),delete j.fullName}t(j)},C=L=>e.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>v(j=>({...j,[L]:!j[L]})),disabled:s,children:f[L]?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Ic,{className:"h-3.5 w-3.5"})," Hide"]}):e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Oo,{className:"h-3.5 w-3.5"})," Show"]})}),A=L=>{const j=L.type==="password"||L.name.toLowerCase().includes("password");return e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:L.name,children:L.label}),e.jsxs("div",{className:j?"relative":void 0,children:[e.jsx(Pe,{id:L.name,type:j?f[L.name]?"text":"password":L.type||"text",placeholder:L.placeholder,required:L.required,disabled:s,value:h[L.name]||"",onChange:N=>b(L.name,N.target.value),className:j?"pr-20":void 0}),j?C(L.name):null]}),j&&L.name==="password"&&w.label?e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Vc,{className:"h-3.5 w-3.5"})," Strength:"]}),e.jsx("span",{className:w.label==="Weak"?"text-destructive":w.label==="Good"?"text-amber-500":"text-emerald-500",children:w.label})]}):null]},L.name)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:c}),e.jsx(Ue,{children:l})]}),e.jsxs("form",{onSubmit:S,children:[e.jsxs(oe,{className:"space-y-4",children:[(i||p)&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:i||p})]}),e.jsx("div",{className:"space-y-4",children:a.map(L=>A(L))}),r.length>0&&e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>x(L=>!L),className:"text-sm font-medium text-accent hover:underline",disabled:s,children:m?"Hide optional details":"Complete your profile (optional)"}),m&&e.jsx("div",{className:"space-y-4 rounded-lg border border-dashed border-muted-foreground/40 p-4",children:r.map(L=>A(L))})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:s,children:s?"Creating account...":"Create Account"}),e.jsx("p",{className:"text-center text-xs text-muted-foreground",children:d}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:s,children:"Sign in"})]})]})]})]})}const nU=({onSubmit:t,fields:a,optionalFields:r,onLoginClick:n,isLoading:s=!1,error:i="",appName:c="Your App",logo:l,title:d="Create Account",description:h="Join iGaming Career in seconds",privacyNote:u})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:c})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(rU,{onSubmit:t,fields:a,optionalFields:r,onLoginClick:n,isLoading:s,error:i,title:d,description:h,privacyNote:u})]})});function sU({onSubmit:t,onBackToLogin:a,isLoading:r=!1,error:n,success:s=!1,title:i="Reset Password",description:c="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=M.useState(""),u=p=>{p.preventDefault(),t(d)};return s?e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center mb-4",children:e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:e.jsx(qt,{className:"h-6 w-6 text-green-600"})})}),e.jsx(ge,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),e.jsx(Ue,{className:"text-center",children:l})]}),e.jsx(xo,{className:"flex flex-col space-y-4",children:a&&e.jsxs(D,{type:"button",variant:"outline",className:"w-full",onClick:a,children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:u,children:[e.jsxs(oe,{className:"space-y-4",children:[n&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:n})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email Address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:r})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Sending...":"Send Reset Link"}),a&&e.jsxs(D,{type:"button",variant:"ghost",className:"w-full",onClick:a,disabled:r,children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const iU=({onSubmit:t,onBackToLogin:a,isLoading:r=!1,error:n="",success:s=!1,appName:i="Your App",logo:c})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),e.jsx(sU,{onSubmit:t,onBackToLogin:a,isLoading:r,error:n,success:s})]})}),oU=["Save and track your favorite jobs","Unlock full job descriptions","Get personalized recommendations"],cU=t=>{if(!t)return"continue";const a=t.trim();return a.length===0?"continue":a.toLowerCase()},lU=({open:t,onClose:a,onLogin:r,onRegister:n,appName:s="Your App",attemptedAction:i,title:c="Sign in to continue",description:l,helperContent:d})=>{const h=cU(i),u=l??`Please sign in to ${h} and keep your progress synced with ${s}.`;return e.jsx(Ja,{open:t,onOpenChange:p=>!p&&a(),children:e.jsxs(Aa,{className:"sm:max-w-lg",children:[e.jsxs(ha,{className:"space-y-2",children:[e.jsxs(aa,{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-accent/10 text-accent",children:e.jsx(Tt,{className:"h-5 w-5"})}),c]}),e.jsx(fo,{className:"text-base text-muted-foreground",children:u})]}),e.jsxs("div",{className:"mt-2 space-y-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 bg-muted/30 p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(ga,{className:"h-4 w-4 text-accent"}),"Why create an account?"]}),e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:oU.map(p=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"mt-1 block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0}),e.jsx("span",{children:p})]},p))})]}),d&&e.jsx("div",{className:"rounded-md bg-card p-4 text-sm text-muted-foreground shadow-sm",children:d})]}),e.jsx(zS,{className:"my-4"}),e.jsxs(ta,{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsx(D,{variant:"outline",onClick:n,className:"w-full",children:"Create account"}),e.jsx(D,{onClick:r,className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:"Sign in"}),e.jsx(D,{variant:"ghost",onClick:a,className:"w-full sm:col-span-2 text-muted-foreground",children:"Maybe later"})]})]})})},dU=[{icon:Rc,label:"Dashboard",path:"/dashboard"},{icon:at,label:"My Jobs",path:"/dashboard/jobs"},{icon:Kt,label:"Courses",path:"/dashboard/courses"},{icon:Go,label:"Settings",path:"/dashboard/settings"}];function hU({children:t,user:a={name:"User",email:"user@example.com"},onLogout:r,onNavigate:n,currentPath:s="/dashboard",notificationCount:i=0}){return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"flex",children:[e.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[e.jsx("nav",{className:"flex-1 space-y-1 p-4",children:dU.map(c=>{const l=c.icon,d=s===c.path;return e.jsxs("button",{onClick:()=>n==null?void 0:n(c.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[e.jsx(l,{className:"h-4 w-4"}),c.label]},c.path)})}),r&&e.jsx("div",{className:"border-t p-4",children:e.jsxs(D,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:r,children:[e.jsx(zc,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),e.jsx("main",{className:"flex-1 p-6 md:p-8",children:t})]})})}function uU({userName:t,feedItems:a,alerts:r,snapshot:n,onSave:s,onApply:i,onEnroll:c,onRead:l}){const d=u=>{switch(u){case"job":return at;case"course":return Kt;case"news":return Ma;default:return at}},h=u=>{switch(u.type){case"job":return e.jsxs(e.Fragment,{children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(D,{size:"sm",onClick:()=>i(u.id),children:"Apply"})]});case"course":return e.jsxs(e.Fragment,{children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(D,{size:"sm",onClick:()=>c(u.id),children:"Enroll"})]});case"news":return e.jsx(D,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",t," 👋"]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),a.map(u=>{const p=d(u.type);return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5 text-primary"}),e.jsx(xe,{variant:"secondary",children:u.type})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),e.jsx(ge,{className:"text-lg mt-2",children:u.title}),u.company&&e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(zo,{className:"h-4 w-4"}),u.company]}),u.location&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"h-4 w-4"}),u.location]})]}),e.jsx(Ue,{children:u.description})]}),e.jsxs(oe,{children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(y=>e.jsx(xe,{variant:"outline",children:y},y))}),u.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),e.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(ja,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),e.jsx(oe,{className:"space-y-3",children:n.map(u=>e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&e.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(da,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),e.jsx(oe,{className:"space-y-3",children:r.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):r.map(u=>e.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[e.jsx(xe,{variant:"outline",className:"mb-2",children:u.type}),e.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function pU(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function mN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function yU(...t){return a=>{let r=!1;const n=t.map(s=>{const i=mN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():mN(t[s],null)}}}}function wR(...t){return g.useCallback(yU(...t),t)}function mU(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,fU(s,...a)]}function fU(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var xU=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},gU=g[" useInsertionEffect ".trim().toString()]||xU;function kU({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=vU({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=wU(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function vU({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return gU(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function wU(t){return typeof t=="function"}var bU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bR=bU.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),lj="Switch",[MU,XG]=mU(lj),[jU,CU]=MU(lj),MR=g.forwardRef((t,a)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=t,[y,m]=g.useState(null),x=wR(a,b=>m(b)),f=g.useRef(!1),v=y?u||!!y.closest("form"):!0,[k,w]=kU({prop:s,defaultProp:i??!1,onChange:h,caller:lj});return e.jsxs(jU,{scope:r,checked:k,disabled:l,children:[e.jsx(bR.button,{type:"button",role:"switch","aria-checked":k,"aria-required":c,"data-state":LR(k),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:pU(t.onClick,b=>{w(S=>!S),v&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})}),v&&e.jsx(SR,{control:y,bubbles:!f.current,name:n,value:d,checked:k,required:c,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});MR.displayName=lj;var jR="SwitchThumb",CR=g.forwardRef((t,a)=>{const{__scopeSwitch:r,...n}=t,s=CU(jR,r);return e.jsx(bR.span,{"data-state":LR(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a})});CR.displayName=jR;var SU="SwitchBubbleInput",SR=g.forwardRef(({__scopeSwitch:t,control:a,checked:r,bubbles:n=!0,...s},i)=>{const c=g.useRef(null),l=wR(c,i),d=wS(r),h=bS(a);return g.useEffect(()=>{const u=c.current;if(!u)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&m){const x=new Event("click",{bubbles:n});m.call(u,r),u.dispatchEvent(x)}},[d,r,n]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});SR.displayName=SU;function LR(t){return t?"checked":"unchecked"}var NR=MR,LU=CR;const ca=g.forwardRef(({className:t,...a},r)=>e.jsx(NR,{className:ue("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...a,ref:r,children:e.jsx(LU,{className:ue("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ca.displayName=NR.displayName;function Qc(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function fN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function NU(...t){return a=>{let r=!1;const n=t.map(s=>{const i=fN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():fN(t[s],null)}}}}function BS(...t){return g.useCallback(NU(...t),t)}function IU(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,AU(s,...a)]}function AU(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var R9=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},PU=g[" useId ".trim().toString()]||(()=>{}),_U=0;function RU(t){const[a,r]=g.useState(PU());return R9(()=>{t||r(n=>n??String(_U++))},[t]),t||(a?`radix-${a}`:"")}function TU(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $S=t=>{const{present:a,children:r}=t,n=qU(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=BS(n.ref,DU(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$S.displayName="Presence";function qU(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=TU(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=_l(n.current);i.current=l==="mounted"?h:"none"},[l]),R9(()=>{const h=n.current,u=s.current;if(u!==t){const y=i.current,m=_l(h);t?d("MOUNT"):m==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&y!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),R9(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=m=>{const f=_l(n.current).includes(CSS.escape(m.animationName));if(m.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},y=m=>{m.target===a&&(i.current=_l(n.current))};return a.addEventListener("animationstart",y),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",y),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function _l(t){return(t==null?void 0:t.animationName)||"none"}function DU(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var zU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],IR=zU.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),EU=g[" useInsertionEffect ".trim().toString()]||R9;function FU({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=OU({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const y=HU(u)?u(t):u;y!==t&&((p=c.current)==null||p.call(c,y))}else i(u)},[l,t,i,c]);return[d,h]}function OU({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return EU(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function HU(t){return typeof t=="function"}var dj="Popover",[AR,YG]=IU(dj,[nj]),fl=nj(),[VU,Rr]=AR(dj),PR=t=>{const{__scopePopover:a,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:c=!1}=t,l=fl(a),d=g.useRef(null),[h,u]=g.useState(!1),[p,y]=FU({prop:n,defaultProp:s??!1,onChange:i,caller:dj});return e.jsx(b_,{...l,children:e.jsx(VU,{scope:a,contentId:RU(),triggerRef:d,open:p,onOpenChange:y,onOpenToggle:g.useCallback(()=>y(m=>!m),[y]),hasCustomAnchor:h,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:c,children:r})})};PR.displayName=dj;var _R="PopoverAnchor",BU=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(_R,r),i=fl(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=s;return g.useEffect(()=>(c(),()=>l()),[c,l]),e.jsx(qS,{...i,...n,ref:a})});BU.displayName=_R;var RR="PopoverTrigger",TR=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(RR,r),i=fl(r),c=BS(a,s.triggerRef),l=e.jsx(IR.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":FR(s.open),...n,ref:c,onClick:Qc(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:e.jsx(qS,{asChild:!0,...i,children:l})});TR.displayName=RR;var US="PopoverPortal",[$U,UU]=AR(US,{forceMount:void 0}),qR=t=>{const{__scopePopover:a,forceMount:r,children:n,container:s}=t,i=Rr(US,a);return e.jsx($U,{scope:a,forceMount:r,children:e.jsx($S,{present:r||i.open,children:e.jsx(W9,{asChild:!0,container:s,children:n})})})};qR.displayName=US;var cc="PopoverContent",DR=g.forwardRef((t,a)=>{const r=UU(cc,t.__scopePopover),{forceMount:n=r.forceMount,...s}=t,i=Rr(cc,t.__scopePopover);return e.jsx($S,{present:n||i.open,children:i.modal?e.jsx(WU,{...s,ref:a}):e.jsx(ZU,{...s,ref:a})})});DR.displayName=cc;var GU=et("PopoverContent.RemoveScroll"),WU=g.forwardRef((t,a)=>{const r=Rr(cc,t.__scopePopover),n=g.useRef(null),s=BS(a,n),i=g.useRef(!1);return g.useEffect(()=>{const c=n.current;if(c)return lS(c)},[]),e.jsx(X9,{as:GU,allowPinchZoom:!0,children:e.jsx(zR,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qc(t.onCloseAutoFocus,c=>{var l;c.preventDefault(),i.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Qc(t.onPointerDownOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,h=l.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Qc(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),ZU=g.forwardRef((t,a)=>{const r=Rr(cc,t.__scopePopover),n=g.useRef(!1),s=g.useRef(!1);return e.jsx(zR,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c,l;(c=t.onCloseAutoFocus)==null||c.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var d,h;(d=t.onInteractOutside)==null||d.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((h=r.triggerRef.current)==null?void 0:h.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zR=g.forwardRef((t,a)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:u,...p}=t,y=Rr(cc,r),m=fl(r);return cS(),e.jsx(G9,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>y.onOpenChange(!1),children:e.jsx(M_,{"data-state":FR(y.open),role:"dialog",id:y.contentId,...m,...p,ref:a,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ER="PopoverClose",JU=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(ER,r);return e.jsx(IR.button,{type:"button",...n,ref:a,onClick:Qc(t.onClick,()=>s.onOpenChange(!1))})});JU.displayName=ER;var XU="PopoverArrow",YU=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=fl(r);return e.jsx(j_,{...s,...n,ref:a})});YU.displayName=XU;function FR(t){return t?"open":"closed"}var KU=PR,QU=TR,eG=qR,OR=DR;const tG=KU,aG=QU,HR=g.forwardRef(({className:t,align:a="center",sideOffset:r=4,...n},s)=>e.jsx(eG,{children:e.jsx(OR,{ref:s,align:a,sideOffset:r,className:ue("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...n})}));HR.displayName=OR.displayName;function rG({open:t,onClose:a,onAdded:r,existingExperience:n,onUpdated:s}){const i=new Date().getFullYear(),c=Array.from({length:40},(m,x)=>`${i-x}`),[l,d]=M.useState({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""});M.useEffect(()=>{if(n){const[m,x]=n.period.split(" - ");d({title:n.title,company:n.company,startYear:m||"",endYear:x==="Present"?"":x||"",isPresent:x==="Present",location:n.location||"",summary:n.summary||"",tags:n.tags.join(", ")})}else d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""})},[n,t]);const[h,u]=M.useState(!1),p=(m,x)=>d(f=>({...f,[m]:x})),y=()=>{const m=l.isPresent?`${l.startYear} - Present`:`${l.startYear} - ${l.endYear}`,x={id:(n==null?void 0:n.id)||`temp-${Date.now()}`,title:l.title,company:l.company,period:m,summary:l.summary.trim()||void 0,location:l.location.trim()||void 0,tags:l.tags.split(",").map(f=>f.trim()).filter(Boolean)};n?s==null||s(x):r(x),d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""}),a()};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(aa,{children:n?"Edit Work Experience":"Add Work Experience"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Title"}),e.jsx(Pe,{value:l.title,onChange:m=>p("title",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Company"}),e.jsx(Pe,{value:l.company,onChange:m=>p("company",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Location (optional)"}),e.jsx(Pe,{value:l.location,onChange:m=>p("location",m.target.value),placeholder:"e.g., Malta or Remote"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Start Year"}),e.jsxs(jo,{onValueChange:m=>p("startYear",m),value:l.startYear,children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select year"})}),e.jsx(Nr,{children:c.map(m=>e.jsx(Et,{value:m,children:m},m))})]})]}),!l.isPresent&&e.jsxs("div",{children:[e.jsx(Q,{children:"End Year"}),e.jsxs(jo,{onValueChange:m=>p("endYear",m),value:l.endYear,children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select year"})}),e.jsx(Nr,{children:c.map(m=>e.jsx(Et,{value:m,children:m},m))})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{id:"present",type:"checkbox",checked:l.isPresent,onChange:m=>p("isPresent",m.target.checked),className:"w-4 h-4 accent-primary"}),e.jsx(Q,{htmlFor:"present",children:"I currently work here"})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Summary (optional)"}),e.jsx(_9,{placeholder:"e.g., Led product roadmap for iGaming platform",value:l.summary,onChange:m=>p("summary",m.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Tags (comma-separated)"}),e.jsx(_9,{placeholder:"e.g., Product Strategy, iGaming, Agile",value:l.tags,onChange:m=>p("tags",m.target.value)})]})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:y,disabled:h||!l.title||!l.company||!l.startYear||!l.isPresent&&!l.endYear,children:h?"Saving...":n?"Save Changes":"Add Experience"})]})]})})}function nG(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:y,children:m,...x}=p,f=((k=y==null?void 0:y[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:m})};h.displayName=i+"Provider";function u(p,y){var f;const m=((f=y==null?void 0:y[t])==null?void 0:f[d])||l,x=g.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,sG(s,...a)]}function sG(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function xN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function iG(...t){return a=>{let r=!1;const n=t.map(s=>{const i=xN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():xN(t[s],null)}}}}function VR(...t){return g.useCallback(iG(...t),t)}function oG(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var BR="AlertDialog",[cG,KG]=nG(BR,[rP]),Xa=rP(),$R=t=>{const{__scopeAlertDialog:a,...r}=t,n=Xa(a);return e.jsx(kP,{...n,...r,modal:!0})};$R.displayName=BR;var lG="AlertDialogTrigger",dG=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(vP,{...s,...n,ref:a})});dG.displayName=lG;var hG="AlertDialogPortal",UR=t=>{const{__scopeAlertDialog:a,...r}=t,n=Xa(a);return e.jsx(wP,{...n,...r})};UR.displayName=hG;var uG="AlertDialogOverlay",GR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(pS,{...s,...n,ref:a})});GR.displayName=uG;var tc="AlertDialogContent",[pG,yG]=cG(tc),mG=AT("AlertDialogContent"),WR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,children:n,...s}=t,i=Xa(r),c=g.useRef(null),l=VR(a,c),d=g.useRef(null);return e.jsx(WF,{contentName:tc,titleName:ZR,docsSlug:"alert-dialog",children:e.jsx(pG,{scope:r,cancelRef:d,children:e.jsxs(yS,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:oG(s.onOpenAutoFocus,h=>{var u;h.preventDefault(),(u=d.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[e.jsx(mG,{children:n}),e.jsx(xG,{contentRef:c})]})})})});WR.displayName=tc;var ZR="AlertDialogTitle",JR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(mS,{...s,...n,ref:a})});JR.displayName=ZR;var XR="AlertDialogDescription",YR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(fS,{...s,...n,ref:a})});YR.displayName=XR;var fG="AlertDialogAction",KR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(xS,{...s,...n,ref:a})});KR.displayName=fG;var QR="AlertDialogCancel",eT=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,{cancelRef:s}=yG(QR,r),i=Xa(r),c=VR(a,s);return e.jsx(xS,{...i,...n,ref:c})});eT.displayName=QR;var xG=({contentRef:t})=>{const a=`\`${tc}\` requires a description for the component to be accessible for screen reader users.
|
|
7829
|
+
`;function eU({allow:t="analytics",scriptId:a="ga",scriptStrategy:r="afterInteractive",scriptContent:n=Q$}){return e.jsx(Hz,{allow:t,children:e.jsx(K$,{id:a,strategy:r,children:n})})}const tU=D9("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),yl=g.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,role:"alert",className:ue(tU({variant:a}),t),...r}));yl.displayName="Alert";const aU=g.forwardRef(({className:t,...a},r)=>e.jsx("h5",{ref:r,className:ue("mb-1 font-medium leading-none tracking-tight",t),...a}));aU.displayName="AlertTitle";const ml=g.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:ue("text-sm [&_p]:leading-relaxed",t),...a}));ml.displayName="AlertDescription";function rU({onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n=!1,error:s,title:i="Welcome Back",description:c="Sign in to your account to continue",identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"}){const[h,u]=M.useState(""),[p,m]=M.useState(""),[y,x]=M.useState(!1),f=v=>{v.preventDefault(),t(h,p,y)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:f,children:[e.jsxs(oe,{className:"space-y-4",children:[s&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:s})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"identifier",children:l}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"identifier",type:"text",placeholder:d,value:h,onChange:v=>u(v.target.value),className:"pl-10",required:!0,disabled:n})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"password",children:"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(lo,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"password",type:"password",placeholder:"••••••••",value:p,onChange:v=>m(v.target.value),className:"pl-10",required:!0,disabled:n})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(_t,{id:"remember",checked:y,onCheckedChange:v=>x(v),disabled:n}),e.jsx(Q,{htmlFor:"remember",className:"text-sm font-normal cursor-pointer",children:"Remember me"})]}),a&&e.jsx("button",{type:"button",onClick:a,className:"text-sm text-accent hover:underline",disabled:n,children:"Forgot password?"})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Signing in...":"Sign In"}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Don't have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:n,children:"Create account"})]})]})]})]})}const nU=({onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n=!1,error:s="",appName:i="Your App",logo:c,identifierLabel:l="Email or Username",identifierPlaceholder:d="you@example.com"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Access your dashboard"})]}),e.jsx(rU,{onSubmit:t,onForgotPassword:a,onRegisterClick:r,isLoading:n,error:s,identifierLabel:l,identifierPlaceholder:d})]})});function sU({onSubmit:t,fields:a,onLoginClick:r,isLoading:n=!1,error:s,title:i="Create Account",description:c="Join us to access exclusive opportunities"}){const[l,d]=M.useState({}),[h,u]=M.useState(""),p=(y,x)=>d(f=>({...f,[y]:x})),m=y=>{if(y.preventDefault(),u(""),"password"in l&&("confirmPassword"in l||"password2"in l)){const f=l.confirmPassword??l.password2;if(l.password!==f){u("Passwords do not match");return}}const x={...l};if("confirmPassword"in x&&!("password2"in x)&&(x.password2=x.confirmPassword,delete x.confirmPassword),"fullName"in x&&!("first_name"in x)&&!("last_name"in x)){const f=String(x.fullName||"").trim().split(/\s+/).filter(Boolean);f.length>0&&(x.first_name=f[0],f.length>1&&(x.last_name=f.slice(1).join(" "))),delete x.fullName}t(x)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:m,children:[e.jsxs(oe,{className:"space-y-4",children:[(s||h)&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:s||h})]}),a.map(y=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:y.name,children:y.label}),e.jsx(Pe,{id:y.name,type:y.type||"text",placeholder:y.placeholder,required:y.required,disabled:n,value:l[y.name]||"",onChange:x=>p(y.name,x.target.value)})]},y.name))]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:n,children:n?"Creating account...":"Create Account"}),r&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:r,className:"text-accent hover:underline font-medium",disabled:n,children:"Sign in"})]})]})]})]})}const iU=({onSubmit:t,fields:a,onLoginClick:r,isLoading:n=!1,error:s="",appName:i="Your App",logo:c,title:l="Create Account",description:d="Join us to access exclusive opportunities"})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(sU,{onSubmit:t,fields:a,onLoginClick:r,isLoading:n,error:s,title:l,description:d})]})}),oU=t=>{let a=0;return t.length>=8&&(a+=1),/[A-Z]/.test(t)&&(a+=1),/[a-z]/.test(t)&&(a+=1),/\d/.test(t)&&(a+=1),/[^A-Za-z0-9]/.test(t)&&(a+=1),t?a<=2?{label:"Weak",score:a}:a<=4?{label:"Good",score:a}:{label:"Strong",score:a}:{label:"",score:0}};function cU({onSubmit:t,fields:a,optionalFields:r=[],onLoginClick:n,isLoading:s=!1,error:i,title:c="Create Account",description:l="Join iGaming Career in seconds",privacyNote:d="We respect your privacy. Your data is protected and never shared without consent."}){const[h,u]=M.useState({}),[p,m]=M.useState(""),[y,x]=M.useState(!1),[f,v]=M.useState({}),k=M.useMemo(()=>{const L=a.find(j=>j.type==="password"||j.name==="password");return L&&h[L.name]||""},[a,h]),w=M.useMemo(()=>oU(k),[k]),b=(L,j)=>u(N=>({...N,[L]:j})),S=L=>{if(L.preventDefault(),m(""),"password"in h&&("confirmPassword"in h||"password2"in h)){const N=h.confirmPassword??h.password2;if(h.password!==N){m("Passwords do not match");return}}const j={...h};if("confirmPassword"in j&&!("password2"in j)&&(j.password2=j.confirmPassword,delete j.confirmPassword),"fullName"in j&&!("first_name"in j)&&!("last_name"in j)){const N=String(j.fullName||"").trim().split(/\s+/).filter(Boolean);N.length>0&&(j.first_name=N[0],N.length>1&&(j.last_name=N.slice(1).join(" "))),delete j.fullName}t(j)},C=L=>e.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium text-muted-foreground hover:text-foreground",onClick:()=>v(j=>({...j,[L]:!j[L]})),disabled:s,children:f[L]?e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Ic,{className:"h-3.5 w-3.5"})," Hide"]}):e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Oo,{className:"h-3.5 w-3.5"})," Show"]})}),A=L=>{const j=L.type==="password"||L.name.toLowerCase().includes("password");return e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:L.name,children:L.label}),e.jsxs("div",{className:j?"relative":void 0,children:[e.jsx(Pe,{id:L.name,type:j?f[L.name]?"text":"password":L.type||"text",placeholder:L.placeholder,required:L.required,disabled:s,value:h[L.name]||"",onChange:N=>b(L.name,N.target.value),className:j?"pr-20":void 0}),j?C(L.name):null]}),j&&L.name==="password"&&w.label?e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(Vc,{className:"h-3.5 w-3.5"})," Strength:"]}),e.jsx("span",{className:w.label==="Weak"?"text-destructive":w.label==="Good"?"text-amber-500":"text-emerald-500",children:w.label})]}):null]},L.name)};return e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:c}),e.jsx(Ue,{children:l})]}),e.jsxs("form",{onSubmit:S,children:[e.jsxs(oe,{className:"space-y-4",children:[(i||p)&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:i||p})]}),e.jsx("div",{className:"space-y-4",children:a.map(L=>A(L))}),r.length>0&&e.jsxs("div",{className:"space-y-3 pt-2",children:[e.jsx("button",{type:"button",onClick:()=>x(L=>!L),className:"text-sm font-medium text-accent hover:underline",disabled:s,children:y?"Hide optional details":"Complete your profile (optional)"}),y&&e.jsx("div",{className:"space-y-4 rounded-lg border border-dashed border-muted-foreground/40 p-4",children:r.map(L=>A(L))})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:s,children:s?"Creating account...":"Create Account"}),e.jsx("p",{className:"text-center text-xs text-muted-foreground",children:d}),n&&e.jsxs("div",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",e.jsx("button",{type:"button",onClick:n,className:"text-accent hover:underline font-medium",disabled:s,children:"Sign in"})]})]})]})]})}const lU=({onSubmit:t,fields:a,optionalFields:r,onLoginClick:n,isLoading:s=!1,error:i="",appName:c="Your App",logo:l,title:d="Create Account",description:h="Join iGaming Career in seconds",privacyNote:u})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[l||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:c})]}),e.jsx("p",{className:"text-gray-300",children:"Start your journey"})]}),e.jsx(cU,{onSubmit:t,fields:a,optionalFields:r,onLoginClick:n,isLoading:s,error:i,title:d,description:h,privacyNote:u})]})});function dU({onSubmit:t,onBackToLogin:a,isLoading:r=!1,error:n,success:s=!1,title:i="Reset Password",description:c="Enter your email address and we'll send you a link to reset your password",successMessage:l="If an account exists with that email, you will receive a password reset link shortly. Please check your inbox and spam folder."}){const[d,h]=M.useState(""),u=p=>{p.preventDefault(),t(d)};return s?e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx("div",{className:"flex items-center justify-center mb-4",children:e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:e.jsx(qt,{className:"h-6 w-6 text-green-600"})})}),e.jsx(ge,{className:"text-2xl font-bold text-center",children:"Check Your Email"}),e.jsx(Ue,{className:"text-center",children:l})]}),e.jsx(xo,{className:"flex flex-col space-y-4",children:a&&e.jsxs(D,{type:"button",variant:"outline",className:"w-full",onClick:a,children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Back to Login"]})})]}):e.jsxs(re,{className:"w-full max-w-md",children:[e.jsxs(ye,{className:"space-y-1",children:[e.jsx(ge,{className:"text-2xl font-bold",children:i}),e.jsx(Ue,{children:c})]}),e.jsxs("form",{onSubmit:u,children:[e.jsxs(oe,{className:"space-y-4",children:[n&&e.jsxs(yl,{variant:"destructive",children:[e.jsx(Tt,{className:"h-4 w-4"}),e.jsx(ml,{children:n})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email Address"}),e.jsxs("div",{className:"relative",children:[e.jsx(ea,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e.jsx(Pe,{id:"email",type:"email",placeholder:"you@example.com",value:d,onChange:p=>h(p.target.value),className:"pl-10",required:!0,disabled:r})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We'll send you an email with instructions to reset your password"})]})]}),e.jsxs(xo,{className:"flex flex-col space-y-4",children:[e.jsx(D,{type:"submit",className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",disabled:r,children:r?"Sending...":"Send Reset Link"}),a&&e.jsxs(D,{type:"button",variant:"ghost",className:"w-full",onClick:a,disabled:r,children:[e.jsx(Ha,{className:"mr-2 h-4 w-4"}),"Back to Login"]})]})]})]})}const hU=({onSubmit:t,onBackToLogin:a,isLoading:r=!1,error:n="",success:s=!1,appName:i="Your App",logo:c})=>e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-[#0f1219] to-[#1a2236] p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"mb-8 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-4",children:[c||e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-accent",children:e.jsx("span",{className:"text-xl font-bold text-accent-foreground",children:"APP"})}),e.jsx("span",{className:"text-2xl font-bold text-white",children:i})]}),e.jsx("p",{className:"text-gray-300",children:"Recover your account access"})]}),e.jsx(dU,{onSubmit:t,onBackToLogin:a,isLoading:r,error:n,success:s})]})}),uU=["Save and track your favorite jobs","Unlock full job descriptions","Get personalized recommendations"],pU=t=>{if(!t)return"continue";const a=t.trim();return a.length===0?"continue":a.toLowerCase()},yU=({open:t,onClose:a,onLogin:r,onRegister:n,appName:s="Your App",attemptedAction:i,title:c="Sign in to continue",description:l,helperContent:d})=>{const h=pU(i),u=l??`Please sign in to ${h} and keep your progress synced with ${s}.`;return e.jsx(Ja,{open:t,onOpenChange:p=>!p&&a(),children:e.jsxs(Aa,{className:"sm:max-w-lg",children:[e.jsxs(ha,{className:"space-y-2",children:[e.jsxs(aa,{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsx("span",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-accent/10 text-accent",children:e.jsx(Tt,{className:"h-5 w-5"})}),c]}),e.jsx(fo,{className:"text-base text-muted-foreground",children:u})]}),e.jsxs("div",{className:"mt-2 space-y-4",children:[e.jsxs("div",{className:"rounded-lg border border-border/60 bg-muted/30 p-4",children:[e.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm font-medium text-foreground",children:[e.jsx(ga,{className:"h-4 w-4 text-accent"}),"Why create an account?"]}),e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:uU.map(p=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"mt-1 block h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0}),e.jsx("span",{children:p})]},p))})]}),d&&e.jsx("div",{className:"rounded-md bg-card p-4 text-sm text-muted-foreground shadow-sm",children:d})]}),e.jsx(zS,{className:"my-4"}),e.jsxs(ta,{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsx(D,{variant:"outline",onClick:n,className:"w-full",children:"Create account"}),e.jsx(D,{onClick:r,className:"w-full bg-accent text-accent-foreground hover:bg-accent/90",children:"Sign in"}),e.jsx(D,{variant:"ghost",onClick:a,className:"w-full sm:col-span-2 text-muted-foreground",children:"Maybe later"})]})]})})},mU=[{icon:Rc,label:"Dashboard",path:"/dashboard"},{icon:at,label:"My Jobs",path:"/dashboard/jobs"},{icon:Kt,label:"Courses",path:"/dashboard/courses"},{icon:Go,label:"Settings",path:"/dashboard/settings"}];function fU({children:t,user:a={name:"User",email:"user@example.com"},onLogout:r,onNavigate:n,currentPath:s="/dashboard",notificationCount:i=0}){return e.jsx("div",{className:"min-h-screen bg-background",children:e.jsxs("div",{className:"flex",children:[e.jsxs("aside",{className:"hidden md:flex w-64 flex-col border-r bg-card h-[calc(100vh-4rem)]",children:[e.jsx("nav",{className:"flex-1 space-y-1 p-4",children:mU.map(c=>{const l=c.icon,d=s===c.path;return e.jsxs("button",{onClick:()=>n==null?void 0:n(c.path),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${d?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[e.jsx(l,{className:"h-4 w-4"}),c.label]},c.path)})}),r&&e.jsx("div",{className:"border-t p-4",children:e.jsxs(D,{variant:"ghost",className:"w-full justify-start text-muted-foreground hover:text-foreground",onClick:r,children:[e.jsx(zc,{className:"mr-3 h-4 w-4"}),"Logout"]})})]}),e.jsx("main",{className:"flex-1 p-6 md:p-8",children:t})]})})}function xU({userName:t,feedItems:a,alerts:r,snapshot:n,onSave:s,onApply:i,onEnroll:c,onRead:l}){const d=u=>{switch(u){case"job":return at;case"course":return Kt;case"news":return Ma;default:return at}},h=u=>{switch(u.type){case"job":return e.jsxs(e.Fragment,{children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(D,{size:"sm",onClick:()=>i(u.id),children:"Apply"})]});case"course":return e.jsxs(e.Fragment,{children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>s(u.id),children:"Save"}),e.jsx(D,{size:"sm",onClick:()=>c(u.id),children:"Enroll"})]});case"news":return e.jsx(D,{size:"sm",onClick:()=>l(u.id),children:"Read"});default:return null}};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl font-bold",children:["Welcome back, ",t," 👋"]}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Your personalized iGaming career hub"})]}),e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[e.jsx("h3",{className:"text-xl font-semibold",children:"Your Feed"}),a.map(u=>{const p=d(u.type);return e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5 text-primary"}),e.jsx(xe,{variant:"secondary",children:u.type})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:u.timestamp})]}),e.jsx(ge,{className:"text-lg mt-2",children:u.title}),u.company&&e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(zo,{className:"h-4 w-4"}),u.company]}),u.location&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(it,{className:"h-4 w-4"}),u.location]})]}),e.jsx(Ue,{children:u.description})]}),e.jsxs(oe,{children:[e.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:u.tags.map(m=>e.jsx(xe,{variant:"outline",children:m},m))}),u.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground mb-3 italic",children:["💡 ",u.reason]}),e.jsx("div",{className:"flex gap-2",children:h(u)})]})]},u.id)})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(ja,{className:"h-5 w-5"}),"Your iGaming Career Snapshot"]})}),e.jsx(oe,{className:"space-y-3",children:n.map(u=>e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:u.label}),e.jsxs("div",{className:"text-right",children:[e.jsx("span",{className:"font-semibold",children:u.value}),u.trend&&e.jsx("span",{className:"text-xs text-green-600 ml-2",children:u.trend})]})]},u.label))})]}),e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs(ge,{className:"flex items-center gap-2",children:[e.jsx(da,{className:"h-5 w-5"}),"Alerts & Notifications"]})}),e.jsx(oe,{className:"space-y-3",children:r.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No new alerts"}):r.map(u=>e.jsxs("div",{className:"p-3 rounded-lg bg-secondary/50 text-sm",children:[e.jsx(xe,{variant:"outline",className:"mb-2",children:u.type}),e.jsx("p",{children:u.message})]},u.id))})]})]})]})]})}function gU(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function mN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function kU(...t){return a=>{let r=!1;const n=t.map(s=>{const i=mN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():mN(t[s],null)}}}}function wR(...t){return g.useCallback(kU(...t),t)}function vU(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,wU(s,...a)]}function wU(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var bU=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},MU=g[" useInsertionEffect ".trim().toString()]||bU;function jU({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=CU({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=SU(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function CU({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return MU(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function SU(t){return typeof t=="function"}var LU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bR=LU.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),lj="Switch",[NU,tW]=vU(lj),[IU,AU]=NU(lj),MR=g.forwardRef((t,a)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:c,disabled:l,value:d="on",onCheckedChange:h,form:u,...p}=t,[m,y]=g.useState(null),x=wR(a,b=>y(b)),f=g.useRef(!1),v=m?u||!!m.closest("form"):!0,[k,w]=jU({prop:s,defaultProp:i??!1,onChange:h,caller:lj});return e.jsxs(IU,{scope:r,checked:k,disabled:l,children:[e.jsx(bR.button,{type:"button",role:"switch","aria-checked":k,"aria-required":c,"data-state":LR(k),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:gU(t.onClick,b=>{w(S=>!S),v&&(f.current=b.isPropagationStopped(),f.current||b.stopPropagation())})}),v&&e.jsx(SR,{control:m,bubbles:!f.current,name:n,value:d,checked:k,required:c,disabled:l,form:u,style:{transform:"translateX(-100%)"}})]})});MR.displayName=lj;var jR="SwitchThumb",CR=g.forwardRef((t,a)=>{const{__scopeSwitch:r,...n}=t,s=AU(jR,r);return e.jsx(bR.span,{"data-state":LR(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:a})});CR.displayName=jR;var PU="SwitchBubbleInput",SR=g.forwardRef(({__scopeSwitch:t,control:a,checked:r,bubbles:n=!0,...s},i)=>{const c=g.useRef(null),l=wR(c,i),d=wS(r),h=bS(a);return g.useEffect(()=>{const u=c.current;if(!u)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&y){const x=new Event("click",{bubbles:n});y.call(u,r),u.dispatchEvent(x)}},[d,r,n]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:l,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});SR.displayName=PU;function LR(t){return t?"checked":"unchecked"}var NR=MR,_U=CR;const ca=g.forwardRef(({className:t,...a},r)=>e.jsx(NR,{className:ue("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...a,ref:r,children:e.jsx(_U,{className:ue("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ca.displayName=NR.displayName;function Qc(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}function fN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function RU(...t){return a=>{let r=!1;const n=t.map(s=>{const i=fN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():fN(t[s],null)}}}}function BS(...t){return g.useCallback(RU(...t),t)}function TU(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,qU(s,...a)]}function qU(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var R9=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},DU=g[" useId ".trim().toString()]||(()=>{}),zU=0;function EU(t){const[a,r]=g.useState(DU());return R9(()=>{t||r(n=>n??String(zU++))},[t]),t||(a?`radix-${a}`:"")}function FU(t,a){return g.useReducer((r,n)=>a[r][n]??r,t)}var $S=t=>{const{present:a,children:r}=t,n=OU(a),s=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),i=BS(n.ref,HU(s));return typeof r=="function"||n.isPresent?g.cloneElement(s,{ref:i}):null};$S.displayName="Presence";function OU(t){const[a,r]=g.useState(),n=g.useRef(null),s=g.useRef(t),i=g.useRef("none"),c=t?"mounted":"unmounted",[l,d]=FU(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const h=_l(n.current);i.current=l==="mounted"?h:"none"},[l]),R9(()=>{const h=n.current,u=s.current;if(u!==t){const m=i.current,y=_l(h);t?d("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(u&&m!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,d]),R9(()=>{if(a){let h;const u=a.ownerDocument.defaultView??window,p=y=>{const f=_l(n.current).includes(CSS.escape(y.animationName));if(y.target===a&&f&&(d("ANIMATION_END"),!s.current)){const v=a.style.animationFillMode;a.style.animationFillMode="forwards",h=u.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=v)})}},m=y=>{y.target===a&&(i.current=_l(n.current))};return a.addEventListener("animationstart",m),a.addEventListener("animationcancel",p),a.addEventListener("animationend",p),()=>{u.clearTimeout(h),a.removeEventListener("animationstart",m),a.removeEventListener("animationcancel",p),a.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(h=>{n.current=h?getComputedStyle(h):null,r(h)},[])}}function _l(t){return(t==null?void 0:t.animationName)||"none"}function HU(t){var n,s;let a=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var VU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],IR=VU.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),BU=g[" useInsertionEffect ".trim().toString()]||R9;function $U({prop:t,defaultProp:a,onChange:r=()=>{},caller:n}){const[s,i,c]=UU({defaultProp:a,onChange:r}),l=t!==void 0,d=l?t:s;{const u=g.useRef(t!==void 0);g.useEffect(()=>{const p=u.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,n])}const h=g.useCallback(u=>{var p;if(l){const m=GU(u)?u(t):u;m!==t&&((p=c.current)==null||p.call(c,m))}else i(u)},[l,t,i,c]);return[d,h]}function UU({defaultProp:t,onChange:a}){const[r,n]=g.useState(t),s=g.useRef(r),i=g.useRef(a);return BU(()=>{i.current=a},[a]),g.useEffect(()=>{var c;s.current!==r&&((c=i.current)==null||c.call(i,r),s.current=r)},[r,s]),[r,n,i]}function GU(t){return typeof t=="function"}var dj="Popover",[AR,aW]=TU(dj,[nj]),fl=nj(),[WU,Rr]=AR(dj),PR=t=>{const{__scopePopover:a,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:c=!1}=t,l=fl(a),d=g.useRef(null),[h,u]=g.useState(!1),[p,m]=$U({prop:n,defaultProp:s??!1,onChange:i,caller:dj});return e.jsx(b_,{...l,children:e.jsx(WU,{scope:a,contentId:EU(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:g.useCallback(()=>m(y=>!y),[m]),hasCustomAnchor:h,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:c,children:r})})};PR.displayName=dj;var _R="PopoverAnchor",ZU=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(_R,r),i=fl(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=s;return g.useEffect(()=>(c(),()=>l()),[c,l]),e.jsx(qS,{...i,...n,ref:a})});ZU.displayName=_R;var RR="PopoverTrigger",TR=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(RR,r),i=fl(r),c=BS(a,s.triggerRef),l=e.jsx(IR.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":FR(s.open),...n,ref:c,onClick:Qc(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:e.jsx(qS,{asChild:!0,...i,children:l})});TR.displayName=RR;var US="PopoverPortal",[JU,XU]=AR(US,{forceMount:void 0}),qR=t=>{const{__scopePopover:a,forceMount:r,children:n,container:s}=t,i=Rr(US,a);return e.jsx(JU,{scope:a,forceMount:r,children:e.jsx($S,{present:r||i.open,children:e.jsx(W9,{asChild:!0,container:s,children:n})})})};qR.displayName=US;var cc="PopoverContent",DR=g.forwardRef((t,a)=>{const r=XU(cc,t.__scopePopover),{forceMount:n=r.forceMount,...s}=t,i=Rr(cc,t.__scopePopover);return e.jsx($S,{present:n||i.open,children:i.modal?e.jsx(KU,{...s,ref:a}):e.jsx(QU,{...s,ref:a})})});DR.displayName=cc;var YU=et("PopoverContent.RemoveScroll"),KU=g.forwardRef((t,a)=>{const r=Rr(cc,t.__scopePopover),n=g.useRef(null),s=BS(a,n),i=g.useRef(!1);return g.useEffect(()=>{const c=n.current;if(c)return lS(c)},[]),e.jsx(X9,{as:YU,allowPinchZoom:!0,children:e.jsx(zR,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qc(t.onCloseAutoFocus,c=>{var l;c.preventDefault(),i.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Qc(t.onPointerDownOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,h=l.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Qc(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),QU=g.forwardRef((t,a)=>{const r=Rr(cc,t.__scopePopover),n=g.useRef(!1),s=g.useRef(!1);return e.jsx(zR,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c,l;(c=t.onCloseAutoFocus)==null||c.call(t,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var d,h;(d=t.onInteractOutside)==null||d.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((h=r.triggerRef.current)==null?void 0:h.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zR=g.forwardRef((t,a)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:u,...p}=t,m=Rr(cc,r),y=fl(r);return cS(),e.jsx(G9,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:e.jsx(U9,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>m.onOpenChange(!1),children:e.jsx(M_,{"data-state":FR(m.open),role:"dialog",id:m.contentId,...y,...p,ref:a,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ER="PopoverClose",eG=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=Rr(ER,r);return e.jsx(IR.button,{type:"button",...n,ref:a,onClick:Qc(t.onClick,()=>s.onOpenChange(!1))})});eG.displayName=ER;var tG="PopoverArrow",aG=g.forwardRef((t,a)=>{const{__scopePopover:r,...n}=t,s=fl(r);return e.jsx(j_,{...s,...n,ref:a})});aG.displayName=tG;function FR(t){return t?"open":"closed"}var rG=PR,nG=TR,sG=qR,OR=DR;const iG=rG,oG=nG,HR=g.forwardRef(({className:t,align:a="center",sideOffset:r=4,...n},s)=>e.jsx(sG,{children:e.jsx(OR,{ref:s,align:a,sideOffset:r,className:ue("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...n})}));HR.displayName=OR.displayName;function cG({open:t,onClose:a,onAdded:r,existingExperience:n,onUpdated:s}){const i=new Date().getFullYear(),c=Array.from({length:40},(y,x)=>`${i-x}`),[l,d]=M.useState({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""});M.useEffect(()=>{if(n){const[y,x]=n.period.split(" - ");d({title:n.title,company:n.company,startYear:y||"",endYear:x==="Present"?"":x||"",isPresent:x==="Present",location:n.location||"",summary:n.summary||"",tags:n.tags.join(", ")})}else d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""})},[n,t]);const[h,u]=M.useState(!1),p=(y,x)=>d(f=>({...f,[y]:x})),m=()=>{const y=l.isPresent?`${l.startYear} - Present`:`${l.startYear} - ${l.endYear}`,x={id:(n==null?void 0:n.id)||`temp-${Date.now()}`,title:l.title,company:l.company,period:y,summary:l.summary.trim()||void 0,location:l.location.trim()||void 0,tags:l.tags.split(",").map(f=>f.trim()).filter(Boolean)};n?s==null||s(x):r(x),d({title:"",company:"",startYear:"",endYear:"",isPresent:!1,location:"",summary:"",tags:""}),a()};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(aa,{children:n?"Edit Work Experience":"Add Work Experience"}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Title"}),e.jsx(Pe,{value:l.title,onChange:y=>p("title",y.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Company"}),e.jsx(Pe,{value:l.company,onChange:y=>p("company",y.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Location (optional)"}),e.jsx(Pe,{value:l.location,onChange:y=>p("location",y.target.value),placeholder:"e.g., Malta or Remote"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Start Year"}),e.jsxs(jo,{onValueChange:y=>p("startYear",y),value:l.startYear,children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select year"})}),e.jsx(Nr,{children:c.map(y=>e.jsx(Et,{value:y,children:y},y))})]})]}),!l.isPresent&&e.jsxs("div",{children:[e.jsx(Q,{children:"End Year"}),e.jsxs(jo,{onValueChange:y=>p("endYear",y),value:l.endYear,children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select year"})}),e.jsx(Nr,{children:c.map(y=>e.jsx(Et,{value:y,children:y},y))})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{id:"present",type:"checkbox",checked:l.isPresent,onChange:y=>p("isPresent",y.target.checked),className:"w-4 h-4 accent-primary"}),e.jsx(Q,{htmlFor:"present",children:"I currently work here"})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Summary (optional)"}),e.jsx(_9,{placeholder:"e.g., Led product roadmap for iGaming platform",value:l.summary,onChange:y=>p("summary",y.target.value)})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Tags (comma-separated)"}),e.jsx(_9,{placeholder:"e.g., Product Strategy, iGaming, Agile",value:l.tags,onChange:y=>p("tags",y.target.value)})]})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:m,disabled:h||!l.title||!l.company||!l.startYear||!l.isPresent&&!l.endYear,children:h?"Saving...":n?"Save Changes":"Add Experience"})]})]})})}function lG(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,dG(s,...a)]}function dG(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function xN(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function hG(...t){return a=>{let r=!1;const n=t.map(s=>{const i=xN(s,a);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():xN(t[s],null)}}}}function VR(...t){return g.useCallback(hG(...t),t)}function uG(t,a,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return a==null?void 0:a(s)}}var BR="AlertDialog",[pG,rW]=lG(BR,[rP]),Xa=rP(),$R=t=>{const{__scopeAlertDialog:a,...r}=t,n=Xa(a);return e.jsx(kP,{...n,...r,modal:!0})};$R.displayName=BR;var yG="AlertDialogTrigger",mG=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(vP,{...s,...n,ref:a})});mG.displayName=yG;var fG="AlertDialogPortal",UR=t=>{const{__scopeAlertDialog:a,...r}=t,n=Xa(a);return e.jsx(wP,{...n,...r})};UR.displayName=fG;var xG="AlertDialogOverlay",GR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(pS,{...s,...n,ref:a})});GR.displayName=xG;var tc="AlertDialogContent",[gG,kG]=pG(tc),vG=AT("AlertDialogContent"),WR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,children:n,...s}=t,i=Xa(r),c=g.useRef(null),l=VR(a,c),d=g.useRef(null);return e.jsx(WF,{contentName:tc,titleName:ZR,docsSlug:"alert-dialog",children:e.jsx(gG,{scope:r,cancelRef:d,children:e.jsxs(yS,{role:"alertdialog",...i,...s,ref:l,onOpenAutoFocus:uG(s.onOpenAutoFocus,h=>{var u;h.preventDefault(),(u=d.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[e.jsx(vG,{children:n}),e.jsx(bG,{contentRef:c})]})})})});WR.displayName=tc;var ZR="AlertDialogTitle",JR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(mS,{...s,...n,ref:a})});JR.displayName=ZR;var XR="AlertDialogDescription",YR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(fS,{...s,...n,ref:a})});YR.displayName=XR;var wG="AlertDialogAction",KR=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,s=Xa(r);return e.jsx(xS,{...s,...n,ref:a})});KR.displayName=wG;var QR="AlertDialogCancel",eT=g.forwardRef((t,a)=>{const{__scopeAlertDialog:r,...n}=t,{cancelRef:s}=kG(QR,r),i=Xa(r),c=VR(a,s);return e.jsx(xS,{...i,...n,ref:c})});eT.displayName=QR;var bG=({contentRef:t})=>{const a=`\`${tc}\` requires a description for the component to be accessible for screen reader users.
|
|
7830
7830
|
|
|
7831
7831
|
You can add a description to the \`${tc}\` by passing a \`${XR}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
7832
7832
|
|
|
7833
7833
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${tc}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
7834
7834
|
|
|
7835
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var n;document.getElementById((n=t.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},gG=$R,kG=UR,tT=GR,aT=WR,rT=KR,nT=eT,sT=JR,iT=YR;const vG=gG,wG=kG,oT=g.forwardRef(({className:t,...a},r)=>e.jsx(tT,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:r}));oT.displayName=tT.displayName;const cT=g.forwardRef(({className:t,...a},r)=>e.jsxs(wG,{children:[e.jsx(oT,{}),e.jsx(aT,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a})]}));cT.displayName=aT.displayName;const lT=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",t),...a});lT.displayName="AlertDialogHeader";const dT=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});dT.displayName="AlertDialogFooter";const hT=g.forwardRef(({className:t,...a},r)=>e.jsx(sT,{ref:r,className:ue("text-lg font-semibold",t),...a}));hT.displayName=sT.displayName;const uT=g.forwardRef(({className:t,...a},r)=>e.jsx(iT,{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));uT.displayName=iT.displayName;const pT=g.forwardRef(({className:t,...a},r)=>e.jsx(rT,{ref:r,className:ue(IC(),t),...a}));pT.displayName=rT.displayName;const yT=g.forwardRef(({className:t,...a},r)=>e.jsx(nT,{ref:r,className:ue(IC({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));yT.displayName=nT.displayName;function gN({open:t,onClose:a,onAdded:r,title:n,placeholder:s}){const[i,c]=M.useState("");M.useEffect(()=>{t||c("")},[t]);const l=()=>{i.trim()&&(r(i.trim()),c(""),a())};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:n})}),e.jsx("div",{className:"space-y-4 py-2",children:e.jsxs("div",{children:[e.jsx(Q,{children:n}),e.jsx(Pe,{value:i,onChange:d=>c(d.target.value),placeholder:s||"Type and save"})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!i.trim(),children:"Add"})]})]})})}const kN=["Product Management","Project Management","Agile","Scrum","Leadership","Communication","Stakeholder Management","Game Design","Data Analysis","Marketing Strategy","UX/UI Design","Regulatory Compliance","Casino Operations","Sportsbook Operations","Frontend Development","Backend Development","React","TypeScript","Python","SQL","Kubernetes","Cloud Infrastructure"];function bG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState(""),[i,c]=M.useState(kN),l=()=>{n.trim()&&(r(n.trim()),s(""),a())},d=h=>{s(h);const u=kN.filter(p=>p.toLowerCase().includes(h.toLowerCase()));c(u)};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Skill"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"skill",children:"Skill Name"}),e.jsx(Pe,{id:"skill",placeholder:"e.g. Product Strategy",value:n,onChange:h=>d(h.target.value)})]}),n&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>{s(h)},children:h},h))})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!n.trim(),children:"Add Skill"})]})]})})}const vN=["Regulation","Technology","Market Trends","Responsible Gaming","Game Design","Payments","Marketing","AI in iGaming","Player Retention","Security"];function MG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState(""),[i,c]=M.useState(vN),l=()=>{n.trim()&&(r(n.trim()),s(""),a())},d=h=>{s(h),c(vN.filter(u=>u.toLowerCase().includes(h.toLowerCase())))};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Interested Topic"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"topic",children:"Topic"}),e.jsx(Pe,{id:"topic",placeholder:"e.g. Game Design",value:n,onChange:h=>d(h.target.value)})]}),n&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>s(h),children:h},h))})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!n.trim(),children:"Add Topic"})]})]})})}const jG=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],CG=["Native","Fluent","Intermediate","Basic"];function SG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState({name:"",proficiency:""}),i=()=>{if(!n.name||!n.proficiency)return;const c={name:n.name,proficiency:n.proficiency};r(c),s({name:"",proficiency:""}),a()};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Language"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Language"}),e.jsxs(jo,{value:n.name,onValueChange:c=>s(l=>({...l,name:c})),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select a language"})}),e.jsx(Nr,{children:jG.map(c=>e.jsx(Et,{value:c,children:c},c))})]})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Proficiency"}),e.jsxs(jo,{value:n.proficiency,onValueChange:c=>s(l=>({...l,proficiency:c})),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select proficiency"})}),e.jsx(Nr,{children:CG.map(c=>e.jsx(Et,{value:c,children:c},c))})]})]})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:i,disabled:!n.name||!n.proficiency,children:"Add"})]})]})})}function LG({profile:t,onUpdate:a,isSaving:r=!1}){const[n,s]=M.useState(t),[i,c]=M.useState(!1),[l,d]=M.useState(null);M.useState(null);const[h,u]=M.useState(null),[p,y]=M.useState(!1),[m,x]=M.useState(!1),[f,v]=M.useState(!1),[k,w]=M.useState(!1),[b,S]=M.useState(!1),C=["Full-time","Part-time","Contract","Freelance","Internship","Temporary"],A=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],L=()=>{l&&(s(P=>{const R={...P,workExperience:P.workExperience.filter(T=>T.id!==l)};return a({type:"profile",payload:R}),R}),d(null))},j=(P,R,T)=>{s(F=>({...F,[P]:{...F[P],[R]:T}}))},N=(P,R,T)=>{s(F=>({...F,[P]:{...F[P],[R]:T}}))},q=()=>{a({type:"profile",payload:n})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),e.jsx(D,{onClick:q,disabled:r,children:r?"Saving...":"Save Changes"})]}),e.jsxs(Ir,{defaultValue:"personal",className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-7",children:[e.jsx(Ce,{value:"personal",children:"Personal"}),e.jsx(Ce,{value:"experience",children:"Experience"}),e.jsx(Ce,{value:"job-search",children:"Job Search"}),e.jsx(Ce,{value:"skills",children:"Skills"}),e.jsx(Ce,{value:"languages",children:"Languages"}),e.jsx(Ce,{value:"alerts",children:"Alerts"}),e.jsx(Ce,{value:"preferences",children:"Preferences"})]}),e.jsx(Se,{value:"personal",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Personal Details"}),e.jsx(Ue,{children:"Update your personal information"})]}),e.jsx(oe,{className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Pe,{id:"fullName",value:n.personalDetails.fullName??"",onChange:P=>j("personalDetails","fullName",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email"}),e.jsx(Pe,{id:"email",type:"email",value:n.personalDetails.email??"",onChange:P=>j("personalDetails","email",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"phone",children:"Phone"}),e.jsx(Pe,{id:"phone",value:n.personalDetails.phone??"",onChange:P=>j("personalDetails","phone",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"location",children:"Location"}),e.jsx(Pe,{id:"location",value:n.personalDetails.location??"",onChange:P=>j("personalDetails","location",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"dob",children:"Date of Birth"}),e.jsx(Pe,{id:"dob",type:"date",value:n.personalDetails.dob??"",onChange:P=>j("personalDetails","dob",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"address",children:"Address"}),e.jsx(Pe,{id:"address",value:n.personalDetails.address??"",onChange:P=>j("personalDetails","address",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"nationality",children:"Nationality"}),e.jsx(Pe,{id:"nationality",value:n.personalDetails.nationality??"",onChange:P=>j("personalDetails","nationality",P.target.value)})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(Q,{htmlFor:"summary",children:"Summary"}),e.jsx(Pe,{id:"summary",value:n.personalDetails.summary??"",onChange:P=>j("personalDetails","summary",P.target.value)})]})]})})]})}),e.jsx(Se,{value:"experience",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Work Experience"}),e.jsx(Ue,{children:"Your iGaming industry experience"})]}),e.jsxs(oe,{className:"space-y-4",children:[n.workExperience.map(P=>e.jsxs("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold",children:P.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:P.company}),e.jsx("p",{className:"text-xs text-muted-foreground",children:P.period}),P.location&&e.jsx("p",{className:"text-xs text-muted-foreground",children:P.location})]}),e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>{const R=n.workExperience.find(T=>T.id===P.id);u(R||null),c(!0)},children:"Edit"}),e.jsx(D,{variant:"destructive",size:"sm",onClick:()=>d(P.id),children:"Delete"})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:P.tags.map(R=>e.jsx(xe,{variant:"secondary",children:R},R))}),P.summary&&e.jsx("p",{className:"text-sm text-muted-foreground",children:P.summary})]},P.id)),e.jsx(D,{variant:"outline",className:"w-full",onClick:()=>c(!0),children:"Add Experience"})]})]})}),e.jsx(rG,{open:i,onClose:()=>{c(!1),u(null)},existingExperience:h,onAdded:P=>{s(R=>({...R,workExperience:[...R.workExperience,P]}))},onUpdated:P=>{s(R=>({...R,workExperience:R.workExperience.map(T=>T.id===P.id?P:T)}))}}),e.jsx(vG,{open:!!l,onOpenChange:()=>d(null),children:e.jsxs(cT,{children:[e.jsxs(lT,{children:[e.jsx(hT,{children:"Delete Experience"}),e.jsx(uT,{children:"Are you sure you want to delete this work experience? This action cannot be undone."})]}),e.jsxs(dT,{children:[e.jsx(yT,{children:"Cancel"}),e.jsx(pT,{onClick:L,className:"bg-destructive text-white",children:"Delete"})]})]})}),e.jsxs(Se,{value:"job-search",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Job Search Details"}),e.jsx(Ue,{children:"Define your ideal job preferences"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Desired Roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.jobSearchDetails.desiredRoles.map(P=>e.jsxs(xe,{variant:"secondary",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(R=>({...R,jobSearchDetails:{...R.jobSearchDetails,desiredRoles:Array.from(new Set([...R.jobSearchDetails.desiredRoles,P]))}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>y(!0),children:"Add Role"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Preferred Locations"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.jobSearchDetails.locations.map(P=>e.jsxs(xe,{variant:"secondary",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(R=>({...R,jobSearchDetails:{...R.jobSearchDetails,locations:R.jobSearchDetails.locations.filter(T=>T!==P)}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>x(!0),children:"Add Location"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Employment Type"}),e.jsxs(tG,{children:[e.jsx(aG,{asChild:!0,children:e.jsx(D,{variant:"outline",className:"w-full justify-between",children:n.jobSearchDetails.employmentType.length>0?n.jobSearchDetails.employmentType.join(", "):"Select Employment Type"})}),e.jsx(HR,{className:"w-64 p-2 space-y-2",children:C.map(P=>{const R=n.jobSearchDetails.employmentType.includes(P);return e.jsxs("div",{className:"flex items-center space-x-2",onClick:()=>s(T=>{const U=T.jobSearchDetails.employmentType.includes(P)?T.jobSearchDetails.employmentType.filter($=>$!==P):[...T.jobSearchDetails.employmentType,P];return{...T,jobSearchDetails:{...T.jobSearchDetails,employmentType:U}}}),children:[e.jsx(_t,{checked:R}),e.jsx(Q,{className:"text-sm",children:P})]},P)})})]})]})]})]}),e.jsx(gN,{open:p,onClose:()=>y(!1),title:"Add Desired Role",placeholder:"e.g. Senior Product Manager",onAdded:P=>s(R=>({...R,jobSearchDetails:{...R.jobSearchDetails,desiredRoles:[...R.jobSearchDetails.desiredRoles,P]}}))}),e.jsx(gN,{open:m,onClose:()=>x(!1),title:"Add Preferred Location",placeholder:"e.g. Malta or Remote",onAdded:P=>s(R=>({...R,jobSearchDetails:{...R.jobSearchDetails,locations:[...R.jobSearchDetails.locations,P]}}))})]}),e.jsxs(Se,{value:"skills",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Skill Set"}),e.jsx(Ue,{children:"Your professional skills and expertise"})]}),e.jsxs(oe,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(P=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(R=>({...R,skills:R.skills.filter(T=>T!==P)})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",onClick:()=>v(!0),children:"Add Skill"})]})]}),e.jsx(bG,{open:f,onClose:()=>v(!1),onAdded:P=>s(R=>({...R,skills:Array.from(new Set([...R.skills,P]))}))})]}),e.jsxs(Se,{value:"languages",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Languages"}),e.jsx(Ue,{children:"Your spoken and professional languages"})]}),e.jsxs(oe,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:n.languages.map((P,R)=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P.name," — ",P.proficiency,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(T=>({...T,languages:T.languages.filter((F,U)=>U!==R)})),children:"✕"})]},`${P.name}-${R}`))}),e.jsx(D,{variant:"outline",onClick:()=>S(!0),children:"Add Language"})]})]}),e.jsx(SG,{open:b,onClose:()=>S(!1),onAdded:P=>s(R=>({...R,languages:[...R.languages,P]}))})]}),e.jsx(Se,{value:"alerts",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Alerts & Subscriptions"}),e.jsx(Ue,{children:"Manage your notification preferences"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),e.jsx(ca,{id:"job-alerts",checked:n.alerts.jobAlerts,onCheckedChange:P=>N("alerts","jobAlerts",P)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),e.jsx(ca,{id:"course-alerts",checked:n.alerts.courseAlerts,onCheckedChange:P=>N("alerts","courseAlerts",P)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),e.jsx(ca,{id:"news-alerts",checked:n.alerts.newsAlerts,onCheckedChange:P=>N("alerts","newsAlerts",P)})]})]})]})}),e.jsxs(Se,{value:"preferences",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Preferences"}),e.jsx(Ue,{children:"Customize your platform experience"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Interested Topics"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.preferences.topics.map(P=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(R=>({...R,preferences:{...R.preferences,topics:R.preferences.topics.filter(T=>T!==P)}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>w(!0),children:"Manage Topics"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"language",children:"Language"}),e.jsxs(jo,{value:n.preferences.language,onValueChange:P=>j("preferences","language",P),children:[e.jsx(Lr,{id:"language",children:e.jsx(Co,{placeholder:"Select your preferred language"})}),e.jsx(Nr,{children:A.map(P=>e.jsx(Et,{value:P,children:P},P))})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ca,{id:"email-notif",checked:n.preferences.emailNotifications,onCheckedChange:P=>N("preferences","emailNotifications",P)})]})]})]}),e.jsx(MG,{open:k,onClose:()=>w(!1),onAdded:P=>s(R=>({...R,preferences:{...R.preferences,topics:Array.from(new Set([...R.preferences.topics,P]))}}))})]})]})]})}const NG=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`,wN=800;function IG({onCVChange:t,previewText:a,previewStatus:r="idle",previewErrorMessage:n}){const[s,i]=M.useState(!1),[c,l]=M.useState(null),[d,h]=M.useState(null),[u,p]=M.useState(null),[y,m]=M.useState(!1);M.useEffect(()=>()=>{d&&URL.revokeObjectURL(d)},[d]);const x=M.useMemo(()=>c?{name:c.name,size:NG(c.size),lastModified:new Date(c.lastModified).toLocaleDateString()}:null,[c]),f=async S=>{var L;const C=(L=S.target.files)==null?void 0:L[0];if(!C)return;if(C.type!=="application/pdf"){p("Only PDF files are supported.");return}d&&URL.revokeObjectURL(d);const A=URL.createObjectURL(C);l(C),h(A),m(!1),t(C)},v=()=>{d&&URL.revokeObjectURL(d),l(null),h(null),p(null),m(!1),t(null)},k=(a==null?void 0:a.replace(/\s{2,}/g," ").replace(/\n{3,}/g,`
|
|
7835
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var n;document.getElementById((n=t.current)==null?void 0:n.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},MG=$R,jG=UR,tT=GR,aT=WR,rT=KR,nT=eT,sT=JR,iT=YR;const CG=MG,SG=jG,oT=g.forwardRef(({className:t,...a},r)=>e.jsx(tT,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:r}));oT.displayName=tT.displayName;const cT=g.forwardRef(({className:t,...a},r)=>e.jsxs(SG,{children:[e.jsx(oT,{}),e.jsx(aT,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a})]}));cT.displayName=aT.displayName;const lT=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",t),...a});lT.displayName="AlertDialogHeader";const dT=({className:t,...a})=>e.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});dT.displayName="AlertDialogFooter";const hT=g.forwardRef(({className:t,...a},r)=>e.jsx(sT,{ref:r,className:ue("text-lg font-semibold",t),...a}));hT.displayName=sT.displayName;const uT=g.forwardRef(({className:t,...a},r)=>e.jsx(iT,{ref:r,className:ue("text-sm text-muted-foreground",t),...a}));uT.displayName=iT.displayName;const pT=g.forwardRef(({className:t,...a},r)=>e.jsx(rT,{ref:r,className:ue(IC(),t),...a}));pT.displayName=rT.displayName;const yT=g.forwardRef(({className:t,...a},r)=>e.jsx(nT,{ref:r,className:ue(IC({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));yT.displayName=nT.displayName;function gN({open:t,onClose:a,onAdded:r,title:n,placeholder:s}){const[i,c]=M.useState("");M.useEffect(()=>{t||c("")},[t]);const l=()=>{i.trim()&&(r(i.trim()),c(""),a())};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:n})}),e.jsx("div",{className:"space-y-4 py-2",children:e.jsxs("div",{children:[e.jsx(Q,{children:n}),e.jsx(Pe,{value:i,onChange:d=>c(d.target.value),placeholder:s||"Type and save"})]})}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!i.trim(),children:"Add"})]})]})})}const kN=["Product Management","Project Management","Agile","Scrum","Leadership","Communication","Stakeholder Management","Game Design","Data Analysis","Marketing Strategy","UX/UI Design","Regulatory Compliance","Casino Operations","Sportsbook Operations","Frontend Development","Backend Development","React","TypeScript","Python","SQL","Kubernetes","Cloud Infrastructure"];function LG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState(""),[i,c]=M.useState(kN),l=()=>{n.trim()&&(r(n.trim()),s(""),a())},d=h=>{s(h);const u=kN.filter(p=>p.toLowerCase().includes(h.toLowerCase()));c(u)};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Skill"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"skill",children:"Skill Name"}),e.jsx(Pe,{id:"skill",placeholder:"e.g. Product Strategy",value:n,onChange:h=>d(h.target.value)})]}),n&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>{s(h)},children:h},h))})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!n.trim(),children:"Add Skill"})]})]})})}const vN=["Regulation","Technology","Market Trends","Responsible Gaming","Game Design","Payments","Marketing","AI in iGaming","Player Retention","Security"];function NG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState(""),[i,c]=M.useState(vN),l=()=>{n.trim()&&(r(n.trim()),s(""),a())},d=h=>{s(h),c(vN.filter(u=>u.toLowerCase().includes(h.toLowerCase())))};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Interested Topic"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"topic",children:"Topic"}),e.jsx(Pe,{id:"topic",placeholder:"e.g. Game Design",value:n,onChange:h=>d(h.target.value)})]}),n&&i.length>0&&e.jsx("div",{className:"border rounded-md p-2 space-y-1 max-h-40 overflow-y-auto",children:i.map(h=>e.jsx("div",{className:"cursor-pointer px-2 py-1 hover:bg-muted rounded-md text-sm",onClick:()=>s(h),children:h},h))})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:l,disabled:!n.trim(),children:"Add Topic"})]})]})})}const IG=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],AG=["Native","Fluent","Intermediate","Basic"];function PG({open:t,onClose:a,onAdded:r}){const[n,s]=M.useState({name:"",proficiency:""}),i=()=>{if(!n.name||!n.proficiency)return;const c={name:n.name,proficiency:n.proficiency};r(c),s({name:"",proficiency:""}),a()};return e.jsx(Ja,{open:t,onOpenChange:a,children:e.jsxs(Aa,{children:[e.jsx(ha,{children:e.jsx(aa,{children:"Add Language"})}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{children:[e.jsx(Q,{children:"Language"}),e.jsxs(jo,{value:n.name,onValueChange:c=>s(l=>({...l,name:c})),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select a language"})}),e.jsx(Nr,{children:IG.map(c=>e.jsx(Et,{value:c,children:c},c))})]})]}),e.jsxs("div",{children:[e.jsx(Q,{children:"Proficiency"}),e.jsxs(jo,{value:n.proficiency,onValueChange:c=>s(l=>({...l,proficiency:c})),children:[e.jsx(Lr,{children:e.jsx(Co,{placeholder:"Select proficiency"})}),e.jsx(Nr,{children:AG.map(c=>e.jsx(Et,{value:c,children:c},c))})]})]})]}),e.jsxs(ta,{children:[e.jsx(D,{variant:"outline",onClick:a,children:"Cancel"}),e.jsx(D,{onClick:i,disabled:!n.name||!n.proficiency,children:"Add"})]})]})})}function _G({profile:t,onUpdate:a,isSaving:r=!1}){const[n,s]=M.useState(t),[i,c]=M.useState(!1),[l,d]=M.useState(null);M.useState(null);const[h,u]=M.useState(null),[p,m]=M.useState(!1),[y,x]=M.useState(!1),[f,v]=M.useState(!1),[k,w]=M.useState(!1),[b,S]=M.useState(!1),C=["Full-time","Part-time","Contract","Freelance","Internship","Temporary"],A=["English","Spanish","French","German","Italian","Portuguese","Polish","Turkish","Swedish","Norwegian","Finnish","Danish","Dutch","Japanese","Chinese","Korean"],L=()=>{l&&(s(P=>{const T={...P,workExperience:P.workExperience.filter(R=>R.id!==l)};return a({type:"profile",payload:T}),T}),d(null))},j=(P,T,R)=>{s(E=>({...E,[P]:{...E[P],[T]:R}}))},N=(P,T,R)=>{s(E=>({...E,[P]:{...E[P],[T]:R}}))},q=()=>{a({type:"profile",payload:n})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Your Profile"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your professional information"})]}),e.jsx(D,{onClick:q,disabled:r,children:r?"Saving...":"Save Changes"})]}),e.jsxs(Ir,{defaultValue:"personal",className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-7",children:[e.jsx(Ce,{value:"personal",children:"Personal"}),e.jsx(Ce,{value:"experience",children:"Experience"}),e.jsx(Ce,{value:"job-search",children:"Job Search"}),e.jsx(Ce,{value:"skills",children:"Skills"}),e.jsx(Ce,{value:"languages",children:"Languages"}),e.jsx(Ce,{value:"alerts",children:"Alerts"}),e.jsx(Ce,{value:"preferences",children:"Preferences"})]}),e.jsx(Se,{value:"personal",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Personal Details"}),e.jsx(Ue,{children:"Update your personal information"})]}),e.jsx(oe,{className:"space-y-4",children:e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"fullName",children:"Full Name"}),e.jsx(Pe,{id:"fullName",value:n.personalDetails.fullName??"",onChange:P=>j("personalDetails","fullName",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"email",children:"Email"}),e.jsx(Pe,{id:"email",type:"email",value:n.personalDetails.email??"",onChange:P=>j("personalDetails","email",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"phone",children:"Phone"}),e.jsx(Pe,{id:"phone",value:n.personalDetails.phone??"",onChange:P=>j("personalDetails","phone",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"location",children:"Location"}),e.jsx(Pe,{id:"location",value:n.personalDetails.location??"",onChange:P=>j("personalDetails","location",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"dob",children:"Date of Birth"}),e.jsx(Pe,{id:"dob",type:"date",value:n.personalDetails.dob??"",onChange:P=>j("personalDetails","dob",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"address",children:"Address"}),e.jsx(Pe,{id:"address",value:n.personalDetails.address??"",onChange:P=>j("personalDetails","address",P.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"nationality",children:"Nationality"}),e.jsx(Pe,{id:"nationality",value:n.personalDetails.nationality??"",onChange:P=>j("personalDetails","nationality",P.target.value)})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(Q,{htmlFor:"summary",children:"Summary"}),e.jsx(Pe,{id:"summary",value:n.personalDetails.summary??"",onChange:P=>j("personalDetails","summary",P.target.value)})]})]})})]})}),e.jsx(Se,{value:"experience",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Work Experience"}),e.jsx(Ue,{children:"Your iGaming industry experience"})]}),e.jsxs(oe,{className:"space-y-4",children:[n.workExperience.map(P=>e.jsxs("div",{className:"p-4 border rounded-lg space-y-2 relative group",children:[e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold",children:P.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:P.company}),e.jsx("p",{className:"text-xs text-muted-foreground",children:P.period}),P.location&&e.jsx("p",{className:"text-xs text-muted-foreground",children:P.location})]}),e.jsxs("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-2",children:[e.jsx(D,{variant:"outline",size:"sm",onClick:()=>{const T=n.workExperience.find(R=>R.id===P.id);u(T||null),c(!0)},children:"Edit"}),e.jsx(D,{variant:"destructive",size:"sm",onClick:()=>d(P.id),children:"Delete"})]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:P.tags.map(T=>e.jsx(xe,{variant:"secondary",children:T},T))}),P.summary&&e.jsx("p",{className:"text-sm text-muted-foreground",children:P.summary})]},P.id)),e.jsx(D,{variant:"outline",className:"w-full",onClick:()=>c(!0),children:"Add Experience"})]})]})}),e.jsx(cG,{open:i,onClose:()=>{c(!1),u(null)},existingExperience:h,onAdded:P=>{s(T=>({...T,workExperience:[...T.workExperience,P]}))},onUpdated:P=>{s(T=>({...T,workExperience:T.workExperience.map(R=>R.id===P.id?P:R)}))}}),e.jsx(CG,{open:!!l,onOpenChange:()=>d(null),children:e.jsxs(cT,{children:[e.jsxs(lT,{children:[e.jsx(hT,{children:"Delete Experience"}),e.jsx(uT,{children:"Are you sure you want to delete this work experience? This action cannot be undone."})]}),e.jsxs(dT,{children:[e.jsx(yT,{children:"Cancel"}),e.jsx(pT,{onClick:L,className:"bg-destructive text-white",children:"Delete"})]})]})}),e.jsxs(Se,{value:"job-search",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Job Search Details"}),e.jsx(Ue,{children:"Define your ideal job preferences"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Desired Roles"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.jobSearchDetails.desiredRoles.map(P=>e.jsxs(xe,{variant:"secondary",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(T=>({...T,jobSearchDetails:{...T.jobSearchDetails,desiredRoles:Array.from(new Set([...T.jobSearchDetails.desiredRoles,P]))}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>m(!0),children:"Add Role"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Preferred Locations"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.jobSearchDetails.locations.map(P=>e.jsxs(xe,{variant:"secondary",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(T=>({...T,jobSearchDetails:{...T.jobSearchDetails,locations:T.jobSearchDetails.locations.filter(R=>R!==P)}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>x(!0),children:"Add Location"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Employment Type"}),e.jsxs(iG,{children:[e.jsx(oG,{asChild:!0,children:e.jsx(D,{variant:"outline",className:"w-full justify-between",children:n.jobSearchDetails.employmentType.length>0?n.jobSearchDetails.employmentType.join(", "):"Select Employment Type"})}),e.jsx(HR,{className:"w-64 p-2 space-y-2",children:C.map(P=>{const T=n.jobSearchDetails.employmentType.includes(P);return e.jsxs("div",{className:"flex items-center space-x-2",onClick:()=>s(R=>{const $=R.jobSearchDetails.employmentType.includes(P)?R.jobSearchDetails.employmentType.filter(B=>B!==P):[...R.jobSearchDetails.employmentType,P];return{...R,jobSearchDetails:{...R.jobSearchDetails,employmentType:$}}}),children:[e.jsx(_t,{checked:T}),e.jsx(Q,{className:"text-sm",children:P})]},P)})})]})]})]})]}),e.jsx(gN,{open:p,onClose:()=>m(!1),title:"Add Desired Role",placeholder:"e.g. Senior Product Manager",onAdded:P=>s(T=>({...T,jobSearchDetails:{...T.jobSearchDetails,desiredRoles:[...T.jobSearchDetails.desiredRoles,P]}}))}),e.jsx(gN,{open:y,onClose:()=>x(!1),title:"Add Preferred Location",placeholder:"e.g. Malta or Remote",onAdded:P=>s(T=>({...T,jobSearchDetails:{...T.jobSearchDetails,locations:[...T.jobSearchDetails.locations,P]}}))})]}),e.jsxs(Se,{value:"skills",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Skill Set"}),e.jsx(Ue,{children:"Your professional skills and expertise"})]}),e.jsxs(oe,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:n.skills.map(P=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(T=>({...T,skills:T.skills.filter(R=>R!==P)})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",onClick:()=>v(!0),children:"Add Skill"})]})]}),e.jsx(LG,{open:f,onClose:()=>v(!1),onAdded:P=>s(T=>({...T,skills:Array.from(new Set([...T.skills,P]))}))})]}),e.jsxs(Se,{value:"languages",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Languages"}),e.jsx(Ue,{children:"Your spoken and professional languages"})]}),e.jsxs(oe,{className:"space-y-4",children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:n.languages.map((P,T)=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P.name," — ",P.proficiency,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(R=>({...R,languages:R.languages.filter((E,$)=>$!==T)})),children:"✕"})]},`${P.name}-${T}`))}),e.jsx(D,{variant:"outline",onClick:()=>S(!0),children:"Add Language"})]})]}),e.jsx(PG,{open:b,onClose:()=>S(!1),onAdded:P=>s(T=>({...T,languages:[...T.languages,P]}))})]}),e.jsx(Se,{value:"alerts",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Alerts & Subscriptions"}),e.jsx(Ue,{children:"Manage your notification preferences"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"job-alerts",className:"text-base",children:"Job Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about new job matches"})]}),e.jsx(ca,{id:"job-alerts",checked:n.alerts.jobAlerts,onCheckedChange:P=>N("alerts","jobAlerts",P)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"course-alerts",className:"text-base",children:"Course Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Updates on new courses and training"})]}),e.jsx(ca,{id:"course-alerts",checked:n.alerts.courseAlerts,onCheckedChange:P=>N("alerts","courseAlerts",P)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"news-alerts",className:"text-base",children:"News Alerts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Industry news and updates"})]}),e.jsx(ca,{id:"news-alerts",checked:n.alerts.newsAlerts,onCheckedChange:P=>N("alerts","newsAlerts",P)})]})]})]})}),e.jsxs(Se,{value:"preferences",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Preferences"}),e.jsx(Ue,{children:"Customize your platform experience"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{children:"Interested Topics"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:n.preferences.topics.map(P=>e.jsxs(xe,{variant:"secondary",className:"flex items-center gap-1",children:[P,e.jsx(D,{variant:"ghost",size:"sm",className:"ml-1 text-xs text-muted-foreground hover:text-destructive",onClick:()=>s(T=>({...T,preferences:{...T.preferences,topics:T.preferences.topics.filter(R=>R!==P)}})),children:"✕"})]},P))}),e.jsx(D,{variant:"outline",size:"sm",onClick:()=>w(!0),children:"Manage Topics"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Q,{htmlFor:"language",children:"Language"}),e.jsxs(jo,{value:n.preferences.language,onValueChange:P=>j("preferences","language",P),children:[e.jsx(Lr,{id:"language",children:e.jsx(Co,{placeholder:"Select your preferred language"})}),e.jsx(Nr,{children:A.map(P=>e.jsx(Et,{value:P,children:P},P))})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ca,{id:"email-notif",checked:n.preferences.emailNotifications,onCheckedChange:P=>N("preferences","emailNotifications",P)})]})]})]}),e.jsx(NG,{open:k,onClose:()=>w(!1),onAdded:P=>s(T=>({...T,preferences:{...T.preferences,topics:Array.from(new Set([...T.preferences.topics,P]))}}))})]})]})]})}const RG=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`,wN=800;function TG({onCVChange:t,previewText:a,previewStatus:r="idle",previewErrorMessage:n}){const[s,i]=M.useState(!1),[c,l]=M.useState(null),[d,h]=M.useState(null),[u,p]=M.useState(null),[m,y]=M.useState(!1);M.useEffect(()=>()=>{d&&URL.revokeObjectURL(d)},[d]);const x=M.useMemo(()=>c?{name:c.name,size:RG(c.size),lastModified:new Date(c.lastModified).toLocaleDateString()}:null,[c]),f=async S=>{var L;const C=(L=S.target.files)==null?void 0:L[0];if(!C)return;if(C.type!=="application/pdf"){p("Only PDF files are supported.");return}d&&URL.revokeObjectURL(d);const A=URL.createObjectURL(C);l(C),h(A),y(!1),t(C)},v=()=>{d&&URL.revokeObjectURL(d),l(null),h(null),p(null),y(!1),t(null)},k=(a==null?void 0:a.replace(/\s{2,}/g," ").replace(/\n{3,}/g,`
|
|
7836
7836
|
|
|
7837
|
-
`).trim())??"",w=k.length>wN,b=
|
|
7837
|
+
`).trim())??"",w=k.length>wN,b=m?k:w?`${k.slice(0,wN)}…`:k;return e.jsxs(Ja,{open:s,onOpenChange:i,children:[e.jsx(nO,{asChild:!0,children:e.jsxs(D,{children:[e.jsx(or,{className:"h-4 w-4 mr-2"}),"Upload CV"]})}),e.jsxs(Aa,{className:"sm:max-w-2xl",children:[e.jsxs(ha,{children:[e.jsx(aa,{children:"Upload your CV"}),e.jsx(fo,{children:"Add a PDF so we can extract key details and keep it ready for job applications."})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Pe,{type:"file",accept:"application/pdf",onChange:f}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Accepted format: PDF only. Text extraction should be handled by the host application if needed."})]}),u&&e.jsx("div",{className:"rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:u}),c&&x&&e.jsxs("div",{className:"rounded-md border border-muted p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ho,{className:"h-5 w-5 text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:x.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[x.size," • Updated ",x.lastModified]})]})]}),e.jsx(xe,{variant:"secondary",children:"Stored"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[d&&e.jsx(D,{variant:"outline",size:"sm",asChild:!0,children:e.jsx("a",{href:d,target:"_blank",rel:"noreferrer",children:"View PDF"})}),e.jsxs(D,{variant:"destructive",size:"sm",onClick:v,children:[e.jsx(Zo,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]}),e.jsxs("div",{className:"rounded-md border border-muted p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"font-medium",children:"Extracted preview"}),r==="parsing"&&e.jsx(xe,{variant:"outline",children:"Parsing..."})]}),r==="error"?e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:n||"Text preview is unavailable for this file."}):b?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-2 max-h-48 overflow-y-auto rounded-md border bg-muted/30 p-2",children:e.jsx("p",{className:"whitespace-pre-wrap text-sm text-muted-foreground",children:b})}),w&&e.jsx(D,{variant:"link",size:"sm",className:"px-0",onClick:()=>y(S=>!S),children:m?"Show less":"Show full text"})]}):e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Upload a PDF to preview extracted text from the host app."})]})]}),e.jsx(ta,{children:e.jsx(D,{variant:"outline",onClick:()=>i(!1),children:"Close"})})]})]})}function qG({savedJobs:t,applications:a,recommendedJobs:r,onApply:n,onRemove:s,onUploadCV:i,cvPreviewText:c,cvPreviewStatus:l,cvPreviewErrorMessage:d,onSetAlert:h,onUpdateProfile:u}){const p=w=>({savedJobs:w.saved,recommendedJobs:w.recommended,applications:w.applications}),[m,y]=M.useState({saved:t||[],recommended:r||[],applications:a||[]});M.useEffect(()=>{y({saved:t||[],recommended:r||[],applications:a||[]})},[t,r,a]);const x=w=>{y(b=>{if(b.saved.some(A=>A.id===w.id))return b;const C={...b,saved:[...b.saved,w]};return u==null||u({type:"jobs",payload:p(C)}),C})},f=w=>{y(b=>{const S={...b,saved:b.saved.filter(C=>C.id!==w)};return u==null||u({type:"jobs",payload:p(S)}),S})},v=w=>{y(b=>{const S={...b,recommended:b.recommended.filter(C=>C.id!==w)};return u==null||u({type:"jobs",payload:p(S)}),S})},k=w=>{const b=m.recommended.find(S=>S.id===w);b&&(y(S=>{const C={...S,applications:[...S.applications,{...b,status:"Applied",appliedDate:new Date().toLocaleDateString()}]};return u==null||u({type:"jobs",payload:p(C)}),C}),n(w))};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Jobs"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your job search"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(D,{variant:"outline",onClick:h,children:"Set Job Alerts"}),e.jsx(TG,{onCVChange:i,previewText:c,previewStatus:l,previewErrorMessage:d})]})]}),e.jsxs(Ir,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-3",children:[e.jsxs(Ce,{value:"recommended",children:["Recommended (",m.recommended.length,")"]}),e.jsxs(Ce,{value:"saved",children:[e.jsx(la,{className:"h-4 w-4 mr-2"}),"Saved (",m.saved.length,")"]}),e.jsxs(Ce,{value:"applications",children:[e.jsx(at,{className:"h-4 w-4 mr-2"}),"Applications (",m.applications.length,")"]})]}),e.jsx(Se,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:m.recommended.map(w=>e.jsx(m9,{job:w,view:"recommended",isSaved:m.saved.some(b=>b.id===w.id),onApply:k,onSave:x,onRemove:v},w.id))})}),e.jsx(Se,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:m.saved.length===0?e.jsx(re,{children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved jobs yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Browse Jobs"})]})}):m.saved.map(w=>e.jsx(m9,{job:w,view:"saved",onRemove:f},w.id))})}),e.jsx(Se,{value:"applications",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4",children:m.applications.length===0?e.jsx(re,{children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(at,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No applications yet"}),e.jsx(D,{variant:"link",className:"mt-2",children:"Start Applying"})]})}):m.applications.map(w=>e.jsx(m9,{job:w,view:"applications",onViewApplication:()=>{}},w.id))})})]})]})}function DG(t,a=[]){let r=[];function n(i,c){const l=g.createContext(c),d=r.length;r=[...r,c];const h=p=>{var k;const{scope:m,children:y,...x}=p,f=((k=m==null?void 0:m[t])==null?void 0:k[d])||l,v=g.useMemo(()=>x,Object.values(x));return e.jsx(f.Provider,{value:v,children:y})};h.displayName=i+"Provider";function u(p,m){var f;const y=((f=m==null?void 0:m[t])==null?void 0:f[d])||l,x=g.useContext(y);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[h,u]}const s=()=>{const i=r.map(c=>g.createContext(c));return function(l){const d=(l==null?void 0:l[t])||i;return g.useMemo(()=>({[`__scope${t}`]:{...l,[t]:d}}),[l,d])}};return s.scopeName=t,[n,zG(s,...a)]}function zG(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const c=n.reduce((l,{useScope:d,scopeName:h})=>{const p=d(i)[`__scope${h}`];return{...l,...p}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}var EG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mT=EG.reduce((t,a)=>{const r=et(`Primitive.${a}`),n=g.forwardRef((s,i)=>{const{asChild:c,...l}=s,d=c?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...l,ref:i})});return n.displayName=`Primitive.${a}`,{...t,[a]:n}},{}),GS="Progress",WS=100,[FG,nW]=DG(GS),[OG,HG]=FG(GS),fT=g.forwardRef((t,a)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=VG,...c}=t;(s||s===0)&&!bN(s)&&console.error(BG(`${s}`,"Progress"));const l=bN(s)?s:WS;n!==null&&!MN(n,l)&&console.error($G(`${n}`,"Progress"));const d=MN(n,l)?n:null,h=T9(d)?i(d,l):void 0;return e.jsx(OG,{scope:r,value:d,max:l,children:e.jsx(mT.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":T9(d)?d:void 0,"aria-valuetext":h,role:"progressbar","data-state":kT(d,l),"data-value":d??void 0,"data-max":l,...c,ref:a})})});fT.displayName=GS;var xT="ProgressIndicator",gT=g.forwardRef((t,a)=>{const{__scopeProgress:r,...n}=t,s=HG(xT,r);return e.jsx(mT.div,{"data-state":kT(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:a})});gT.displayName=xT;function VG(t,a){return`${Math.round(t/a*100)}%`}function kT(t,a){return t==null?"indeterminate":t===a?"complete":"loading"}function T9(t){return typeof t=="number"}function bN(t){return T9(t)&&!isNaN(t)&&t>0}function MN(t,a){return T9(t)&&!isNaN(t)&&t<=a&&t>=0}function BG(t,a){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${WS}\`.`}function $G(t,a){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
7838
7838
|
- a positive number
|
|
7839
7839
|
- less than the value passed to \`max\` (or ${WS} if no \`max\` prop is set)
|
|
7840
7840
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
7841
7841
|
|
|
7842
|
-
Defaulting to \`null\`.`}var vT=fT,OG=gT;const wT=g.forwardRef(({className:t,value:a,...r},n)=>e.jsx(vT,{ref:n,className:ue("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...r,children:e.jsx(OG,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));wT.displayName=vT.displayName;function HG({enrolledCourses:t,savedCourses:a,recommendedCourses:r,certificates:n,onEnroll:s,onContinue:i,onExplore:c,onSave:l,onRemoveSaved:d,onRemoveRecommended:h}){const[u,p]=M.useState({enrolled:t||[],recommended:r||[],saved:a||[]});M.useEffect(()=>{p({enrolled:t||[],recommended:r||[],saved:a||[]})},[t,r,a]);const y=k=>s(k),m=k=>{p(w=>{if(w.saved.some(C=>C.id===k.id))return w;const S={...w,saved:[...w.saved,{...k,saved:!0}],recommended:w.recommended.map(C=>C.id===k.id?{...C,saved:!0}:C)};return l==null||l(k.id),S})},x=k=>{p(w=>{const b={...w,saved:w.saved.filter(S=>S.id!==k),recommended:w.recommended.map(S=>S.id===k?{...S,saved:!1}:S)};return d==null||d(k),b})},f=k=>{p(w=>{const b={...w,recommended:w.recommended.filter(S=>S.id!==k)};return h==null||h(k),b})},v=({course:k,view:w})=>{const b=u.saved.some(S=>S.id===k.id);return e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-lg",children:k.title}),e.jsx(Ue,{children:k.provider})]}),e.jsx(xe,{variant:"outline",children:k.level})]})}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsx("span",{children:k.duration}),k.certificate&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Jt,{className:"h-4 w-4"}),"Certificate"]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:k.tags.map(S=>e.jsx(xe,{variant:"secondary",children:S},S))}),w==="enrolled"&&k.progress!==void 0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Progress"}),e.jsxs("span",{className:"font-medium",children:[k.progress,"%"]})]}),e.jsx(wT,{value:k.progress})]}),w==="recommended"&&k.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",k.reason]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[w==="enrolled"&&e.jsx(D,{className:"sm:w-auto w-full",onClick:()=>i(k.id),children:"Continue Learning"}),w==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"sm:w-auto w-full",onClick:()=>y(k.id),children:"Enroll Now"}),e.jsx(D,{variant:b?"secondary":"outline",className:"sm:w-auto w-full",size:"sm",disabled:b,onClick:()=>m(k),children:b?"Saved":"Save Course"}),e.jsx(D,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>f(k.id),children:"Remove"}),!h&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove not available yet"})]}),w==="saved"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"sm:w-auto w-full",size:"sm",onClick:()=>y(k.id),children:"Start Course"}),e.jsx(D,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>x(k.id),children:"Remove Saved"}),!d&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove from saved not available yet"})]})]})]})})]})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),e.jsx(D,{onClick:c,children:"Explore All Courses"})]}),e.jsxs(Ir,{defaultValue:"enrolled",className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-4",children:[e.jsxs(Ce,{value:"enrolled",children:[e.jsx(Kt,{className:"h-4 w-4 mr-2"}),"Enrolled (",u.enrolled.length,")"]}),e.jsxs(Ce,{value:"recommended",children:[e.jsx(ja,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Ce,{value:"saved",children:[e.jsx(la,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]}),e.jsxs(Ce,{value:"certificates",children:[e.jsx(Jt,{className:"h-4 w-4 mr-2"}),"Certificates (",n.length,")"]})]}),e.jsx(Se,{value:"enrolled",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.enrolled.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(Kt,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:c,children:"Browse Courses"})]})}):u.enrolled.map(k=>e.jsx(v,{course:k,view:"enrolled"},k.id))})}),e.jsx(Se,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(k=>e.jsx(v,{course:k,view:"recommended"},k.id))})}),e.jsx(Se,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved courses yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:c,children:"Browse Courses"}),!l&&e.jsx("p",{className:"text-[11px] text-muted-foreground mt-2",children:"Saving courses not available yet"})]})}):u.saved.map(k=>e.jsx(v,{course:k,view:"saved"},k.id))})}),e.jsx(Se,{value:"certificates",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:n.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(Jt,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):n.map(k=>e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:e.jsx(Jt,{className:"h-6 w-6 text-accent"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-base",children:k.title}),e.jsx(Ue,{children:k.issuer}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",k.date]})]})]})}),e.jsx(oe,{children:e.jsx(D,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},k.id))})})]})]})}function VG({recommendedNews:t,savedArticles:a,categories:r,selectedCategory:n,onRead:s,onSave:i,onRemoveSaved:c,onRemoveRecommended:l,onCategoryChange:d,onManagePreferences:h}){const[u,p]=M.useState({recommended:t||[],saved:a||[]});M.useEffect(()=>{p({recommended:t||[],saved:a||[]})},[t,a]);const y=f=>{p(v=>{if(v.saved.some(b=>b.id===f.id))return v;const w={recommended:v.recommended.map(b=>b.id===f.id?{...b,saved:!0}:b),saved:[...v.saved,{...f,saved:!0}]};return i(f.id),w})},m=f=>{p(v=>{const k={recommended:v.recommended.map(w=>w.id===f?{...w,saved:!1}:w),saved:v.saved.filter(w=>w.id!==f)};return c==null||c(f),k})},x=f=>{p(v=>{const k={...v,recommended:v.recommended.filter(w=>w.id!==f)};return l==null||l(f),k})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),e.jsxs(D,{variant:"outline",onClick:h,children:[e.jsx(yr,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),e.jsxs(Ir,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(Za,{children:[e.jsxs(Ce,{value:"recommended",children:[e.jsx(Ma,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Ce,{value:"saved",children:[e.jsx(la,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]})]}),e.jsxs(Se,{value:"recommended",className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx(D,{variant:n==="all"?"default":"outline",size:"sm",onClick:()=>d("all"),children:"All"}),r.map(f=>e.jsx(D,{variant:n===f?"default":"outline",size:"sm",onClick:()=>d(f),children:f},f))]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(f=>e.jsx(jC,{article:f,view:"recommended",isSaved:u.saved.some(v=>v.id===f.id),onRead:s,onSave:y,onRemove:x},f.id))})]}),e.jsx(Se,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:h,children:"Browse News"})]})}):u.saved.map(f=>e.jsx(jC,{article:f,view:"saved",onRead:s,onRemove:m},f.id))})})]})]})}function BG({settings:t,onUpdate:a}){const{notifications:r,connectedAccounts:n,subscription:s}=t,i=d=>{a({action:"notifications",updates:d})},c=d=>{a({action:"connect-account",platform:d})},l=d=>{a({action:"disconnect-account",accountId:d})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),e.jsxs(Ir,{defaultValue:"notifications",className:"w-full",children:[e.jsxs(Za,{children:[e.jsxs(Ce,{value:"notifications",children:[e.jsx(qo,{className:"h-4 w-4 mr-2"}),"Notifications"]}),e.jsxs(Ce,{value:"account",children:[e.jsx(gr,{className:"h-4 w-4 mr-2"}),"Account"]}),e.jsxs(Ce,{value:"subscription",children:[e.jsx(Sc,{className:"h-4 w-4 mr-2"}),"Subscription"]}),e.jsxs(Ce,{value:"connected",children:[e.jsx(Tc,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),e.jsx(Se,{value:"notifications",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Notification Preferences"}),e.jsx(Ue,{children:"Choose how you want to be notified"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ca,{id:"email-notif",checked:r.emailNotifications,onCheckedChange:d=>i({emailNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),e.jsx(ca,{id:"push-notif",checked:r.pushNotifications,onCheckedChange:d=>i({pushNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),e.jsx(ca,{id:"weekly-digest",checked:r.weeklyDigest,onCheckedChange:d=>i({weeklyDigest:d})})]}),e.jsxs("div",{className:"border-t pt-4 space-y-4",children:[e.jsx("h4",{className:"font-medium",children:"Content Alerts"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"job-alerts-set",children:"Job Alerts"}),e.jsx(ca,{id:"job-alerts-set",checked:r.jobAlerts,onCheckedChange:d=>i({jobAlerts:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"course-updates",children:"Course Updates"}),e.jsx(ca,{id:"course-updates",checked:r.courseUpdates,onCheckedChange:d=>i({courseUpdates:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"news-digest",children:"News Digest"}),e.jsx(ca,{id:"news-digest",checked:r.newsDigest,onCheckedChange:d=>i({newsDigest:d})})]})]})]})]})}),e.jsx(Se,{value:"account",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Password"}),e.jsx(Ue,{children:"Change your account password"})]}),e.jsx(oe,{children:e.jsx(D,{onClick:()=>a({action:"change-password"}),children:"Change Password"})})]}),e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Delete Account"}),e.jsx(Ue,{children:"Permanently delete your account and all data"})]}),e.jsx(oe,{children:e.jsx(D,{variant:"destructive",onClick:()=>a({action:"delete-account"}),children:"Delete Account"})})]})]})}),e.jsx(Se,{value:"subscription",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx(ge,{children:"Subscription Plan"}),e.jsx(Ue,{children:"Manage your membership"})]}),s.isPremium&&e.jsx(xe,{children:"Premium"})]})}),e.jsx(oe,{className:"space-y-4",children:s.isPremium?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),e.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:"✓ Unlimited job applications"}),e.jsx("li",{children:"✓ Access to all courses"}),e.jsx("li",{children:"✓ Priority support"}),e.jsx("li",{children:"✓ Advanced analytics"}),e.jsx("li",{children:"✓ Ad-free experience"})]})]}),e.jsx(D,{variant:"outline",children:"Manage Subscription"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),e.jsx(D,{onClick:()=>a({action:"upgrade",plan:"premium"}),children:"Upgrade to Premium"})]})})]})}),e.jsx(Se,{value:"connected",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Connected Accounts"}),e.jsx(Ue,{children:"Manage linked accounts and integrations"})]}),e.jsx(oe,{className:"space-y-4",children:n.map(d=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:d.platform}),d.connected&&d.email&&e.jsx("p",{className:"text-sm text-muted-foreground",children:d.email})]}),d.connected?e.jsx(D,{variant:"outline",size:"sm",onClick:()=>l(d.id),children:"Disconnect"}):e.jsx(D,{size:"sm",onClick:()=>c(d.platform),children:"Connect"})]},d.id))})]})})]})]})}function $G({user:t,profileData:a,jobsDashboard:r,alerts:n,snapshot:s,feedItems:i,onUploadCV:c,cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,coursesData:u,newsData:p,settingsData:y,onUpdateProfile:m}){const[x,f]=M.useState("overview"),v=r||(a==null?void 0:a.jobsDashboard)||{savedJobs:[],recommendedJobs:[],applications:[]},k=()=>console.log("/logout"),w=j=>console.log(j),b=async j=>{await m({type:"courses",payload:j})},S=(...j)=>console.log("Action:",...j),C=async j=>{await m({type:"news",payload:j})},A=y||{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[{id:"google_89213",platform:"Google",connected:!0,email:t.email},{id:"linkedin_55521",platform:"LinkedIn",connected:!1}],subscription:{isPremium:!1,plan:"free",renewalDate:null}},L=async j=>{await m({type:"settings",payload:j})};return e.jsx(hU,{user:t,onLogout:k,onNavigate:w,currentPath:"/dashboard",notificationCount:n.length,children:e.jsxs(Ir,{value:x,onValueChange:f,className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[e.jsxs(Ce,{value:"overview",className:"flex items-center gap-2",children:[e.jsx(za,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),e.jsxs(Ce,{value:"profile",className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),e.jsxs(Ce,{value:"jobs",className:"flex items-center gap-2",children:[e.jsx(at,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),e.jsxs(Ce,{value:"courses",className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),e.jsxs(Ce,{value:"news",className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"News"})]}),e.jsxs(Ce,{value:"settings",className:"flex items-center gap-2",children:[e.jsx(Go,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),e.jsx(Se,{value:"overview",className:"mt-6",children:e.jsx(uU,{userName:t.name,feedItems:i,alerts:n,snapshot:s,onSave:S,onApply:S,onEnroll:j=>b({action:"enroll",courseId:j}),onRead:j=>C({action:"read",articleId:j})})}),e.jsx(Se,{value:"profile",className:"mt-6",children:e.jsx(LG,{profile:a,onUpdate:j=>m(j)})}),e.jsx(Se,{value:"jobs",className:"mt-6",children:e.jsx(AG,{savedJobs:v.savedJobs,applications:v.applications,recommendedJobs:v.recommendedJobs,onApply:j=>console.log("Applied:",j),onRemove:j=>console.log("Removed:",j),onUploadCV:c??(j=>console.log("Upload CV changed:",(j==null?void 0:j.name)||"removed")),cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,onSetAlert:()=>console.log("Set alerts clicked"),onUpdateProfile:async j=>{await m({type:"jobs",payload:j.payload})}})}),e.jsx(Se,{value:"courses",className:"mt-6",children:e.jsx(HG,{enrolledCourses:(u==null?void 0:u.enrolledCourses)||[],savedCourses:(u==null?void 0:u.savedCourses)||[],recommendedCourses:(u==null?void 0:u.recommendedCourses)||[],certificates:(u==null?void 0:u.certificates)||[],onEnroll:j=>b({action:"enroll",courseId:j}),onContinue:j=>b({action:"continue",courseId:j}),onExplore:()=>b({action:"explore"}),onSave:j=>b({action:"save",courseId:j}),onRemoveSaved:j=>b({action:"remove-saved",courseId:j}),onRemoveRecommended:j=>b({action:"remove-recommended",courseId:j})})}),e.jsx(Se,{value:"news",className:"mt-6",children:e.jsx(VG,{recommendedNews:(p==null?void 0:p.recommendedNews)||[],savedArticles:(p==null?void 0:p.savedArticles)||[],categories:(p==null?void 0:p.categories)||[],selectedCategory:(p==null?void 0:p.selectedCategory)||"all",onRead:j=>C({action:"read",articleId:j}),onSave:j=>C({action:"save",articleId:j}),onRemoveSaved:j=>C({action:"remove-saved",articleId:j}),onRemoveRecommended:j=>C({action:"remove-recommended",articleId:j}),onCategoryChange:j=>C({action:"category",category:j}),onManagePreferences:()=>C({action:"manage-preferences"})})}),e.jsx(Se,{value:"settings",className:"mt-6",children:e.jsx(BG,{settings:A,onUpdate:L})})]})})}exports.Advantages=sA;exports.Analytics=J$;exports.Banner=ol;exports.Button=D;exports.CandidateProfile=cH;exports.Cart=gA;exports.Chatbot=xA;exports.CompanyDetail=S$;exports.CompanyDirectory=xR;exports.CompanyDirectoryContainer=F$;exports.CompanyGroupDetail=L$;exports.ConsentBanner=_A;exports.ConsentProvider=PA;exports.CourseTypes=vA;exports.Courses=cA;exports.CoursesPage=TO;exports.Dashboard=$G;exports.Destinations=lA;exports.FAQ=mA;exports.FeatureJobs=Fz;exports.Features=yA;exports.Footer=nE;exports.FooterLib=NA;exports.ForEmployers=wA;exports.ForgotPassword=iU;exports.Gallery=fA;exports.GroupPrices=sD;exports.Header=CO;exports.HeaderAlternative=LA;exports.Hero=dA;exports.HeroAlternative=bA;exports.HomePage=Ez;exports.IgamingCareerHome=Xz;exports.Input=Pe;exports.JobDetailPage=jO;exports.JobListings=rE;exports.JobSearchWidget=SA;exports.Listing=vO;exports.Login=Q$;exports.MobileNav=qA;exports.Navbar=sE;exports.NewsPage=LO;exports.Newsletter=CA;exports.NotificationModal=RA;exports.Partners=IA;exports.Register=tU;exports.RegisterV2=nU;exports.SearchableSelect=H9;exports.Services=hA;exports.ServicesNoIcons=kA;exports.SidebarNewsletter=eS;exports.SignInPromptModal=lU;exports.SlidingSummary=iD;exports.TagBadge=AC;exports.TagPicker=gq;exports.Testimonials=uA;exports.TrustSignals=jA;exports.ValueProposition=MA;exports.Videos=pA;exports.useConsent=QC;
|
|
7842
|
+
Defaulting to \`null\`.`}var vT=fT,UG=gT;const wT=g.forwardRef(({className:t,value:a,...r},n)=>e.jsx(vT,{ref:n,className:ue("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...r,children:e.jsx(UG,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));wT.displayName=vT.displayName;function GG({enrolledCourses:t,savedCourses:a,recommendedCourses:r,certificates:n,onEnroll:s,onContinue:i,onExplore:c,onSave:l,onRemoveSaved:d,onRemoveRecommended:h}){const[u,p]=M.useState({enrolled:t||[],recommended:r||[],saved:a||[]});M.useEffect(()=>{p({enrolled:t||[],recommended:r||[],saved:a||[]})},[t,r,a]);const m=k=>s(k),y=k=>{p(w=>{if(w.saved.some(C=>C.id===k.id))return w;const S={...w,saved:[...w.saved,{...k,saved:!0}],recommended:w.recommended.map(C=>C.id===k.id?{...C,saved:!0}:C)};return l==null||l(k.id),S})},x=k=>{p(w=>{const b={...w,saved:w.saved.filter(S=>S.id!==k),recommended:w.recommended.map(S=>S.id===k?{...S,saved:!1}:S)};return d==null||d(k),b})},f=k=>{p(w=>{const b={...w,recommended:w.recommended.filter(S=>S.id!==k)};return h==null||h(k),b})},v=({course:k,view:w})=>{const b=u.saved.some(S=>S.id===k.id);return e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-lg",children:k.title}),e.jsx(Ue,{children:k.provider})]}),e.jsx(xe,{variant:"outline",children:k.level})]})}),e.jsx(oe,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsx("span",{children:k.duration}),k.certificate&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Jt,{className:"h-4 w-4"}),"Certificate"]})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:k.tags.map(S=>e.jsx(xe,{variant:"secondary",children:S},S))}),w==="enrolled"&&k.progress!==void 0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Progress"}),e.jsxs("span",{className:"font-medium",children:[k.progress,"%"]})]}),e.jsx(wT,{value:k.progress})]}),w==="recommended"&&k.reason&&e.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["💡 ",k.reason]}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap",children:[w==="enrolled"&&e.jsx(D,{className:"sm:w-auto w-full",onClick:()=>i(k.id),children:"Continue Learning"}),w==="recommended"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"sm:w-auto w-full",onClick:()=>m(k.id),children:"Enroll Now"}),e.jsx(D,{variant:b?"secondary":"outline",className:"sm:w-auto w-full",size:"sm",disabled:b,onClick:()=>y(k),children:b?"Saved":"Save Course"}),e.jsx(D,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>f(k.id),children:"Remove"}),!h&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove not available yet"})]}),w==="saved"&&e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"sm:w-auto w-full",size:"sm",onClick:()=>m(k.id),children:"Start Course"}),e.jsx(D,{variant:"destructive",size:"sm",className:"sm:w-auto w-full",onClick:()=>x(k.id),children:"Remove Saved"}),!d&&e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Remove from saved not available yet"})]})]})]})})]})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Courses"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Advance your iGaming career"})]}),e.jsx(D,{onClick:c,children:"Explore All Courses"})]}),e.jsxs(Ir,{defaultValue:"enrolled",className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-4",children:[e.jsxs(Ce,{value:"enrolled",children:[e.jsx(Kt,{className:"h-4 w-4 mr-2"}),"Enrolled (",u.enrolled.length,")"]}),e.jsxs(Ce,{value:"recommended",children:[e.jsx(ja,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Ce,{value:"saved",children:[e.jsx(la,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]}),e.jsxs(Ce,{value:"certificates",children:[e.jsx(Jt,{className:"h-4 w-4 mr-2"}),"Certificates (",n.length,")"]})]}),e.jsx(Se,{value:"enrolled",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.enrolled.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(Kt,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No enrolled courses yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:c,children:"Browse Courses"})]})}):u.enrolled.map(k=>e.jsx(v,{course:k,view:"enrolled"},k.id))})}),e.jsx(Se,{value:"recommended",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(k=>e.jsx(v,{course:k,view:"recommended"},k.id))})}),e.jsx(Se,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved courses yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:c,children:"Browse Courses"}),!l&&e.jsx("p",{className:"text-[11px] text-muted-foreground mt-2",children:"Saving courses not available yet"})]})}):u.saved.map(k=>e.jsx(v,{course:k,view:"saved"},k.id))})}),e.jsx(Se,{value:"certificates",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:n.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(Jt,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No certificates yet"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Complete courses to earn certificates"})]})}):n.map(k=>e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-accent/10",children:e.jsx(Jt,{className:"h-6 w-6 text-accent"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx(ge,{className:"text-base",children:k.title}),e.jsx(Ue,{children:k.issuer}),e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Issued: ",k.date]})]})]})}),e.jsx(oe,{children:e.jsx(D,{variant:"outline",size:"sm",className:"w-full",children:"Download Certificate"})})]},k.id))})})]})]})}function WG({recommendedNews:t,savedArticles:a,categories:r,selectedCategory:n,onRead:s,onSave:i,onRemoveSaved:c,onRemoveRecommended:l,onCategoryChange:d,onManagePreferences:h}){const[u,p]=M.useState({recommended:t||[],saved:a||[]});M.useEffect(()=>{p({recommended:t||[],saved:a||[]})},[t,a]);const m=f=>{p(v=>{if(v.saved.some(b=>b.id===f.id))return v;const w={recommended:v.recommended.map(b=>b.id===f.id?{...b,saved:!0}:b),saved:[...v.saved,{...f,saved:!0}]};return i(f.id),w})},y=f=>{p(v=>{const k={recommended:v.recommended.map(w=>w.id===f?{...w,saved:!1}:w),saved:v.saved.filter(w=>w.id!==f)};return c==null||c(f),k})},x=f=>{p(v=>{const k={...v,recommended:v.recommended.filter(w=>w.id!==f)};return l==null||l(f),k})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"News"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Stay updated with iGaming industry"})]}),e.jsxs(D,{variant:"outline",onClick:h,children:[e.jsx(yr,{className:"h-4 w-4 mr-2"}),"Preferences"]})]}),e.jsxs(Ir,{defaultValue:"recommended",className:"w-full",children:[e.jsxs(Za,{children:[e.jsxs(Ce,{value:"recommended",children:[e.jsx(Ma,{className:"h-4 w-4 mr-2"}),"Recommended (",u.recommended.length,")"]}),e.jsxs(Ce,{value:"saved",children:[e.jsx(la,{className:"h-4 w-4 mr-2"}),"Saved (",u.saved.length,")"]})]}),e.jsxs(Se,{value:"recommended",className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.jsx(D,{variant:n==="all"?"default":"outline",size:"sm",onClick:()=>d("all"),children:"All"}),r.map(f=>e.jsx(D,{variant:n===f?"default":"outline",size:"sm",onClick:()=>d(f),children:f},f))]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.recommended.map(f=>e.jsx(jC,{article:f,view:"recommended",isSaved:u.saved.some(v=>v.id===f.id),onRead:s,onSave:m,onRemove:x},f.id))})]}),e.jsx(Se,{value:"saved",className:"space-y-4",children:e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.saved.length===0?e.jsx(re,{className:"md:col-span-2",children:e.jsxs(oe,{className:"flex flex-col items-center justify-center py-10",children:[e.jsx(la,{className:"h-12 w-12 text-muted-foreground mb-4"}),e.jsx("p",{className:"text-muted-foreground",children:"No saved articles yet"}),e.jsx(D,{variant:"link",className:"mt-2",onClick:h,children:"Browse News"})]})}):u.saved.map(f=>e.jsx(jC,{article:f,view:"saved",onRead:s,onRemove:y},f.id))})})]})]})}function ZG({settings:t,onUpdate:a}){const{notifications:r,connectedAccounts:n,subscription:s}=t,i=d=>{a({action:"notifications",updates:d})},c=d=>{a({action:"connect-account",platform:d})},l=d=>{a({action:"disconnect-account",accountId:d})};return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold",children:"Settings"}),e.jsx("p",{className:"text-muted-foreground mt-1",children:"Manage your account preferences"})]}),e.jsxs(Ir,{defaultValue:"notifications",className:"w-full",children:[e.jsxs(Za,{children:[e.jsxs(Ce,{value:"notifications",children:[e.jsx(qo,{className:"h-4 w-4 mr-2"}),"Notifications"]}),e.jsxs(Ce,{value:"account",children:[e.jsx(gr,{className:"h-4 w-4 mr-2"}),"Account"]}),e.jsxs(Ce,{value:"subscription",children:[e.jsx(Sc,{className:"h-4 w-4 mr-2"}),"Subscription"]}),e.jsxs(Ce,{value:"connected",children:[e.jsx(Tc,{className:"h-4 w-4 mr-2"}),"Connected"]})]}),e.jsx(Se,{value:"notifications",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Notification Preferences"}),e.jsx(Ue,{children:"Choose how you want to be notified"})]}),e.jsxs(oe,{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"email-notif",className:"text-base",children:"Email Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),e.jsx(ca,{id:"email-notif",checked:r.emailNotifications,onCheckedChange:d=>i({emailNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"push-notif",className:"text-base",children:"Push Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Browser push notifications"})]}),e.jsx(ca,{id:"push-notif",checked:r.pushNotifications,onCheckedChange:d=>i({pushNotifications:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Q,{htmlFor:"weekly-digest",className:"text-base",children:"Weekly Digest"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Summary of activities"})]}),e.jsx(ca,{id:"weekly-digest",checked:r.weeklyDigest,onCheckedChange:d=>i({weeklyDigest:d})})]}),e.jsxs("div",{className:"border-t pt-4 space-y-4",children:[e.jsx("h4",{className:"font-medium",children:"Content Alerts"}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"job-alerts-set",children:"Job Alerts"}),e.jsx(ca,{id:"job-alerts-set",checked:r.jobAlerts,onCheckedChange:d=>i({jobAlerts:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"course-updates",children:"Course Updates"}),e.jsx(ca,{id:"course-updates",checked:r.courseUpdates,onCheckedChange:d=>i({courseUpdates:d})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Q,{htmlFor:"news-digest",children:"News Digest"}),e.jsx(ca,{id:"news-digest",checked:r.newsDigest,onCheckedChange:d=>i({newsDigest:d})})]})]})]})]})}),e.jsx(Se,{value:"account",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Password"}),e.jsx(Ue,{children:"Change your account password"})]}),e.jsx(oe,{children:e.jsx(D,{onClick:()=>a({action:"change-password"}),children:"Change Password"})})]}),e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Delete Account"}),e.jsx(Ue,{children:"Permanently delete your account and all data"})]}),e.jsx(oe,{children:e.jsx(D,{variant:"destructive",onClick:()=>a({action:"delete-account"}),children:"Delete Account"})})]})]})}),e.jsx(Se,{value:"subscription",children:e.jsxs(re,{children:[e.jsx(ye,{children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{children:[e.jsx(ge,{children:"Subscription Plan"}),e.jsx(Ue,{children:"Manage your membership"})]}),s.isPremium&&e.jsx(xe,{children:"Premium"})]})}),e.jsx(oe,{className:"space-y-4",children:s.isPremium?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 border rounded-lg bg-accent/5",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Premium Benefits"}),e.jsxs("ul",{className:"space-y-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:"✓ Unlimited job applications"}),e.jsx("li",{children:"✓ Access to all courses"}),e.jsx("li",{children:"✓ Priority support"}),e.jsx("li",{children:"✓ Advanced analytics"}),e.jsx("li",{children:"✓ Ad-free experience"})]})]}),e.jsx(D,{variant:"outline",children:"Manage Subscription"})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Upgrade to Premium to unlock exclusive features"}),e.jsx(D,{onClick:()=>a({action:"upgrade",plan:"premium"}),children:"Upgrade to Premium"})]})})]})}),e.jsx(Se,{value:"connected",children:e.jsxs(re,{children:[e.jsxs(ye,{children:[e.jsx(ge,{children:"Connected Accounts"}),e.jsx(Ue,{children:"Manage linked accounts and integrations"})]}),e.jsx(oe,{className:"space-y-4",children:n.map(d=>e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-medium",children:d.platform}),d.connected&&d.email&&e.jsx("p",{className:"text-sm text-muted-foreground",children:d.email})]}),d.connected?e.jsx(D,{variant:"outline",size:"sm",onClick:()=>l(d.id),children:"Disconnect"}):e.jsx(D,{size:"sm",onClick:()=>c(d.platform),children:"Connect"})]},d.id))})]})})]})]})}function JG({user:t,profileData:a,jobsDashboard:r,alerts:n,snapshot:s,feedItems:i,onUploadCV:c,cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,coursesData:u,newsData:p,settingsData:m,onUpdateProfile:y}){const[x,f]=M.useState("overview"),v=r||(a==null?void 0:a.jobsDashboard)||{savedJobs:[],recommendedJobs:[],applications:[]},k=()=>console.log("/logout"),w=j=>console.log(j),b=async j=>{await y({type:"courses",payload:j})},S=(...j)=>console.log("Action:",...j),C=async j=>{await y({type:"news",payload:j})},A=m||{notifications:{emailNotifications:!0,pushNotifications:!1,weeklyDigest:!0,jobAlerts:!0,courseUpdates:!0,newsDigest:!1},connectedAccounts:[{id:"google_89213",platform:"Google",connected:!0,email:t.email},{id:"linkedin_55521",platform:"LinkedIn",connected:!1}],subscription:{isPremium:!1,plan:"free",renewalDate:null}},L=async j=>{await y({type:"settings",payload:j})};return e.jsx(fU,{user:t,onLogout:k,onNavigate:w,currentPath:"/dashboard",notificationCount:n.length,children:e.jsxs(Ir,{value:x,onValueChange:f,className:"w-full",children:[e.jsxs(Za,{className:"grid w-full grid-cols-3 lg:grid-cols-6",children:[e.jsxs(Ce,{value:"overview",className:"flex items-center gap-2",children:[e.jsx(za,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Overview"})]}),e.jsxs(Ce,{value:"profile",className:"flex items-center gap-2",children:[e.jsx(Jo,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Profile"})]}),e.jsxs(Ce,{value:"jobs",className:"flex items-center gap-2",children:[e.jsx(at,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Jobs"})]}),e.jsxs(Ce,{value:"courses",className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Courses"})]}),e.jsxs(Ce,{value:"news",className:"flex items-center gap-2",children:[e.jsx(Ma,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"News"})]}),e.jsxs(Ce,{value:"settings",className:"flex items-center gap-2",children:[e.jsx(Go,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Settings"})]})]}),e.jsx(Se,{value:"overview",className:"mt-6",children:e.jsx(xU,{userName:t.name,feedItems:i,alerts:n,snapshot:s,onSave:S,onApply:S,onEnroll:j=>b({action:"enroll",courseId:j}),onRead:j=>C({action:"read",articleId:j})})}),e.jsx(Se,{value:"profile",className:"mt-6",children:e.jsx(_G,{profile:a,onUpdate:j=>y(j)})}),e.jsx(Se,{value:"jobs",className:"mt-6",children:e.jsx(qG,{savedJobs:v.savedJobs,applications:v.applications,recommendedJobs:v.recommendedJobs,onApply:j=>console.log("Applied:",j),onRemove:j=>console.log("Removed:",j),onUploadCV:c??(j=>console.log("Upload CV changed:",(j==null?void 0:j.name)||"removed")),cvPreviewText:l,cvPreviewStatus:d,cvPreviewErrorMessage:h,onSetAlert:()=>console.log("Set alerts clicked"),onUpdateProfile:async j=>{await y({type:"jobs",payload:j.payload})}})}),e.jsx(Se,{value:"courses",className:"mt-6",children:e.jsx(GG,{enrolledCourses:(u==null?void 0:u.enrolledCourses)||[],savedCourses:(u==null?void 0:u.savedCourses)||[],recommendedCourses:(u==null?void 0:u.recommendedCourses)||[],certificates:(u==null?void 0:u.certificates)||[],onEnroll:j=>b({action:"enroll",courseId:j}),onContinue:j=>b({action:"continue",courseId:j}),onExplore:()=>b({action:"explore"}),onSave:j=>b({action:"save",courseId:j}),onRemoveSaved:j=>b({action:"remove-saved",courseId:j}),onRemoveRecommended:j=>b({action:"remove-recommended",courseId:j})})}),e.jsx(Se,{value:"news",className:"mt-6",children:e.jsx(WG,{recommendedNews:(p==null?void 0:p.recommendedNews)||[],savedArticles:(p==null?void 0:p.savedArticles)||[],categories:(p==null?void 0:p.categories)||[],selectedCategory:(p==null?void 0:p.selectedCategory)||"all",onRead:j=>C({action:"read",articleId:j}),onSave:j=>C({action:"save",articleId:j}),onRemoveSaved:j=>C({action:"remove-saved",articleId:j}),onRemoveRecommended:j=>C({action:"remove-recommended",articleId:j}),onCategoryChange:j=>C({action:"category",category:j}),onManagePreferences:()=>C({action:"manage-preferences"})})}),e.jsx(Se,{value:"settings",className:"mt-6",children:e.jsx(ZG,{settings:A,onUpdate:L})})]})})}exports.Advantages=sA;exports.Analytics=eU;exports.Banner=ol;exports.Button=D;exports.CandidateProfile=cH;exports.Cart=gA;exports.Chatbot=xA;exports.CompanyDetail=S$;exports.CompanyDirectory=xR;exports.CompanyDirectoryContainer=$$;exports.CompanyGroupDetail=L$;exports.ConsentBanner=_A;exports.ConsentProvider=PA;exports.CourseTypes=vA;exports.Courses=cA;exports.CoursesPage=TO;exports.Dashboard=JG;exports.Destinations=lA;exports.FAQ=mA;exports.FeatureJobs=Fz;exports.Features=yA;exports.Footer=nE;exports.FooterLib=NA;exports.ForEmployers=wA;exports.ForgotPassword=hU;exports.Gallery=fA;exports.GroupPrices=sD;exports.Header=CO;exports.HeaderAlternative=LA;exports.Hero=dA;exports.HeroAlternative=bA;exports.HomePage=Ez;exports.IgamingCareerHome=Xz;exports.Input=Pe;exports.JobDetailPage=jO;exports.JobListings=rE;exports.JobSearchWidget=SA;exports.Listing=vO;exports.Login=nU;exports.MobileNav=qA;exports.Navbar=sE;exports.NewsPage=LO;exports.Newsletter=CA;exports.NotificationModal=RA;exports.Partners=IA;exports.Register=iU;exports.RegisterV2=lU;exports.SearchableSelect=H9;exports.Services=hA;exports.ServicesNoIcons=kA;exports.SidebarNewsletter=eS;exports.SignInPromptModal=yU;exports.SlidingSummary=iD;exports.TagBadge=AC;exports.TagPicker=gq;exports.Testimonials=uA;exports.TrustSignals=jA;exports.ValueProposition=MA;exports.Videos=pA;exports.useConsent=QC;
|