@noxickon/onyx 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,4 +17,4 @@ object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
19
  */var h5,w3;function Co2(){if(w3)return h5;w3=1;var H=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;function L(M){if(M==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(M)}function e(){try{if(!Object.assign)return!1;var M=new String("abc");if(M[5]="de",Object.getOwnPropertyNames(M)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var i=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return h5=e()?Object.assign:function(M,r){for(var t,i=L(M),a,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var n in t)C.call(t,n)&&(i[n]=t[n]);if(H){a=H(t);for(var A=0;A<a.length;A++)V.call(t,a[A])&&(i[a[A]]=t[a[A]])}}return i},h5}var g5,k3;function Y5(){if(k3)return g5;k3=1;var H="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return g5=H,g5}var O5,P3;function B0(){return P3||(P3=1,O5=Function.call.bind(Object.prototype.hasOwnProperty)),O5}var x5,T3;function Ho2(){if(T3)return x5;T3=1;var H=function(){};if(process.env.NODE_ENV!=="production"){var C=Y5(),V={},L=B0();H=function(M){var r="Warning: "+M;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}}}function e(M,r,t,i,a){if(process.env.NODE_ENV!=="production"){for(var o in M)if(L(M,o)){var n;try{if(typeof M[o]!="function"){var A=Error((i||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw A.name="Invariant Violation",A}n=M[o](r,o,i,t,null,C)}catch(l){n=l}if(n&&!(n instanceof Error)&&H((i||"React class")+": type specification of "+t+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof n+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),n instanceof Error&&!(n.message in V)){V[n.message]=!0;var d=a?a():"";H("Failed "+t+" type: "+n.message+(d??""))}}}}return e.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(V={})},x5=e,x5}var b5,B3;function Vo2(){if(B3)return b5;B3=1;var H=T0(),C=Co2(),V=Y5(),L=B0(),e=Ho2(),M=function(){};process.env.NODE_ENV!=="production"&&(M=function(t){var i="Warning: "+t;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}});function r(){return null}return b5=function(t,i){var a=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(P){var E=P&&(a&&P[a]||P[o]);if(typeof E=="function")return E}var A="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:u(),arrayOf:Z,element:f(),elementType:S(),instanceOf:p,node:x(),objectOf:h,oneOf:g,oneOfType:O,shape:w,exact:y};function l(P,E){return P===E?P!==0||1/P===1/E:P!==P&&E!==E}function s(P,E){this.message=P,this.data=E&&typeof E=="object"?E:{},this.stack=""}s.prototype=Error.prototype;function c(P){if(process.env.NODE_ENV!=="production")var E={},$=0;function W(U,Y,_,q,K,Q,X){if(q=q||A,Q=Q||_,X!==V){if(i){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var H1=q+":"+_;!E[H1]&&$<3&&(M("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),E[H1]=!0,$++)}}return Y[_]==null?U?Y[_]===null?new s("The "+K+" `"+Q+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new s("The "+K+" `"+Q+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:P(Y,_,q,K,Q)}var G=W.bind(null,!1);return G.isRequired=W.bind(null,!0),G}function v(P){function E($,W,G,U,Y,_){var q=$[W],K=N(q);if(K!==P){var Q=j(q);return new s("Invalid "+U+" `"+Y+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return c(E)}function u(){return c(r)}function Z(P){function E($,W,G,U,Y){if(typeof P!="function")return new s("Property `"+Y+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var _=$[W];if(!Array.isArray(_)){var q=N(_);return new s("Invalid "+U+" `"+Y+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an array."))}for(var K=0;K<_.length;K++){var Q=P(_,K,G,U,Y+"["+K+"]",V);if(Q instanceof Error)return Q}return null}return c(E)}function f(){function P(E,$,W,G,U){var Y=E[$];if(!t(Y)){var _=N(Y);return new s("Invalid "+G+" `"+U+"` of type "+("`"+_+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return c(P)}function S(){function P(E,$,W,G,U){var Y=E[$];if(!H.isValidElementType(Y)){var _=N(Y);return new s("Invalid "+G+" `"+U+"` of type "+("`"+_+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return c(P)}function p(P){function E($,W,G,U,Y){if(!($[W]instanceof P)){var _=P.name||A,q=I($[W]);return new s("Invalid "+U+" `"+Y+"` of type "+("`"+q+"` supplied to `"+G+"`, expected ")+("instance of `"+_+"`."))}return null}return c(E)}function g(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?M("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):M("Invalid argument supplied to oneOf, expected an array.")),r;function E($,W,G,U,Y){for(var _=$[W],q=0;q<P.length;q++)if(l(_,P[q]))return null;var K=JSON.stringify(P,function(X,z){var H1=j(z);return H1==="symbol"?String(z):z});return new s("Invalid "+U+" `"+Y+"` of value `"+String(_)+"` "+("supplied to `"+G+"`, expected one of "+K+"."))}return c(E)}function h(P){function E($,W,G,U,Y){if(typeof P!="function")return new s("Property `"+Y+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var _=$[W],q=N(_);if(q!=="object")return new s("Invalid "+U+" `"+Y+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an object."));for(var K in _)if(L(_,K)){var Q=P(_,K,G,U,Y+"."+K,V);if(Q instanceof Error)return Q}return null}return c(E)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&M("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var E=0;E<P.length;E++){var $=P[E];if(typeof $!="function")return M("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F($)+" at index "+E+"."),r}function W(G,U,Y,_,q){for(var K=[],Q=0;Q<P.length;Q++){var X=P[Q],z=X(G,U,Y,_,q,V);if(z==null)return null;z.data&&L(z.data,"expectedType")&&K.push(z.data.expectedType)}var H1=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new s("Invalid "+_+" `"+q+"` supplied to "+("`"+Y+"`"+H1+"."))}return c(W)}function x(){function P(E,$,W,G,U){return k(E[$])?null:new s("Invalid "+G+" `"+U+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return c(P)}function b(P,E,$,W,G){return new s((P||"React class")+": "+E+" type `"+$+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function w(P){function E($,W,G,U,Y){var _=$[W],q=N(_);if(q!=="object")return new s("Invalid "+U+" `"+Y+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));for(var K in P){var Q=P[K];if(typeof Q!="function")return b(G,U,Y,K,j(Q));var X=Q(_,K,G,U,Y+"."+K,V);if(X)return X}return null}return c(E)}function y(P){function E($,W,G,U,Y){var _=$[W],q=N(_);if(q!=="object")return new s("Invalid "+U+" `"+Y+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));var K=C({},$[W],P);for(var Q in K){var X=P[Q];if(L(P,Q)&&typeof X!="function")return b(G,U,Y,Q,j(X));if(!X)return new s("Invalid "+U+" `"+Y+"` key `"+Q+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify($[W],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=X(_,Q,G,U,Y+"."+Q,V);if(z)return z}return null}return c(E)}function k(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(k);if(P===null||t(P))return!0;var E=n(P);if(E){var $=E.call(P),W;if(E!==P.entries){for(;!(W=$.next()).done;)if(!k(W.value))return!1}else for(;!(W=$.next()).done;){var G=W.value;if(G&&!k(G[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,E){return P==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function N(P){var E=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(E,P)?"symbol":E}function j(P){if(typeof P>"u"||P===null)return""+P;var E=N(P);if(E==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return E}function F(P){var E=j(P);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function I(P){return!P.constructor||!P.constructor.name?A:P.constructor.name}return d.checkPropTypes=e,d.resetWarningCache=e.resetWarningCache,d.PropTypes=d,d},b5}var y5,R3;function Lo2(){if(R3)return y5;R3=1;var H=Y5();function C(){}function V(){}return V.resetWarningCache=C,y5=function(){function L(r,t,i,a,o,n){if(n!==H){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}L.isRequired=L;function e(){return L}var M={array:L,bigint:L,bool:L,func:L,number:L,object:L,string:L,symbol:L,any:L,arrayOf:e,element:L,elementType:L,instanceOf:e,node:L,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:V,resetWarningCache:C};return M.PropTypes=M,M},y5}var E3;function eo2(){if(E3)return W2.exports;if(E3=1,process.env.NODE_ENV!=="production"){var H=T0(),C=!0;W2.exports=Vo2()(H.isElement,C)}else W2.exports=Lo2()();return W2.exports}var w5,F3;function Mo2(){return F3||(F3=1,w5=(function(H){var C={};function V(L){if(C[L])return C[L].exports;var e=C[L]={i:L,l:!1,exports:{}};return H[L].call(e.exports,e,e.exports,V),e.l=!0,e.exports}return V.m=H,V.c=C,V.d=function(L,e,M){V.o(L,e)||Object.defineProperty(L,e,{enumerable:!0,get:M})},V.r=function(L){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})},V.t=function(L,e){if(1&e&&(L=V(L)),8&e||4&e&&typeof L=="object"&&L&&L.__esModule)return L;var M=Object.create(null);if(V.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:L}),2&e&&typeof L!="string")for(var r in L)V.d(M,r,(function(t){return L[t]}).bind(null,r));return M},V.n=function(L){var e=L&&L.__esModule?function(){return L.default}:function(){return L};return V.d(e,"a",e),e},V.o=function(L,e){return Object.prototype.hasOwnProperty.call(L,e)},V.p="",V(V.s=2)})([function(H,C){H.exports=eo2()},function(H,C){H.exports=D},function(H,C,V){V.r(C);var L=V(1),e=V(0),M=function(){return(M=Object.assign||function(l){for(var s,c=1,v=arguments.length;c<v;c++)for(var u in s=arguments[c])Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l}).apply(this,arguments)},r=function(l,s){var c={};for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&s.indexOf(v)<0&&(c[v]=l[v]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var u=0;for(v=Object.getOwnPropertySymbols(l);u<v.length;u++)s.indexOf(v[u])<0&&Object.prototype.propertyIsEnumerable.call(l,v[u])&&(c[v[u]]=l[v[u]])}return c},t=0,i=L.forwardRef((function(l,s){var c=l.title,v=c===void 0?null:c,u=l.description,Z=u===void 0?null:u,f=l.size,S=f===void 0?null:f,p=l.color,g=p===void 0?"currentColor":p,h=l.horizontal,O=h===void 0?null:h,x=l.vertical,b=x===void 0?null:x,w=l.rotate,y=w===void 0?null:w,k=l.spin,R=k===void 0?null:k,N=l.style,j=N===void 0?{}:N,F=l.children,I=r(l,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);t++;var P,E=R!==null&&R,$=L.Children.map(F,(function(Y){var _=Y;E!==!0&&(E=(R===null?_.props.spin:R)===!0);var q=_.props.size;typeof S=="number"&&typeof _.props.size=="number"&&(q=_.props.size/S);var K={size:q,color:g===null?_.props.color:g,horizontal:O===null?_.props.horizontal:O,vertical:b===null?_.props.vertical:b,rotate:y===null?_.props.rotate:y,spin:R===null?_.props.spin:R,inStack:!0};return L.cloneElement(_,K)}));S!==null&&(j.width=typeof S=="string"?S:1.5*S+"rem");var W,G="stack_labelledby_"+t,U="stack_describedby_"+t;if(v)P=Z?G+" "+U:G;else if(W="presentation",Z)throw new Error("title attribute required when description is set");return L.createElement("svg",M({ref:s,viewBox:"0 0 24 24",style:j,role:W,"aria-labelledby":P},I),v&&L.createElement("title",{id:G},v),Z&&L.createElement("desc",{id:U},Z),E&&L.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),$)}));i.displayName="Stack",i.propTypes={size:e.oneOfType([e.number,e.string]),color:e.string,horizontal:e.bool,vertical:e.bool,rotate:e.number,spin:e.oneOfType([e.bool,e.number]),children:e.oneOfType([e.arrayOf(e.node),e.node]).isRequired,className:e.string,style:e.object},i.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var a=i;V.d(C,"Icon",(function(){return d})),V.d(C,"Stack",(function(){return a}));var o=function(){return(o=Object.assign||function(l){for(var s,c=1,v=arguments.length;c<v;c++)for(var u in s=arguments[c])Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l}).apply(this,arguments)},n=function(l,s){var c={};for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&s.indexOf(v)<0&&(c[v]=l[v]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var u=0;for(v=Object.getOwnPropertySymbols(l);u<v.length;u++)s.indexOf(v[u])<0&&Object.prototype.propertyIsEnumerable.call(l,v[u])&&(c[v[u]]=l[v[u]])}return c},A=0,d=L.forwardRef((function(l,s){var c=l.path,v=l.id,u=v===void 0?++A:v,Z=l.title,f=Z===void 0?null:Z,S=l.description,p=S===void 0?null:S,g=l.size,h=g===void 0?null:g,O=l.color,x=O===void 0?"currentColor":O,b=l.horizontal,w=b!==void 0&&b,y=l.vertical,k=y!==void 0&&y,R=l.rotate,N=R===void 0?0:R,j=l.spin,F=j!==void 0&&j,I=l.style,P=I===void 0?{}:I,E=l.inStack,$=E!==void 0&&E,W=n(l,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),G={},U=[];h!==null&&($?U.push("scale("+h+")"):(P.width=typeof h=="string"?h:1.5*h+"rem",P.height=P.width)),w&&U.push("scaleX(-1)"),k&&U.push("scaleY(-1)"),N!==0&&U.push("rotate("+N+"deg)"),x!==null&&(G.fill=x);var Y=L.createElement("path",o({d:c,style:G},$?W:{})),_=Y;U.length>0&&(P.transform=U.join(" "),P.transformOrigin="center",$&&(_=L.createElement("g",{style:P},Y,L.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var q,K=_,Q=F===!0||typeof F!="number"?2:F,X=!$&&(w||k);if(Q<0&&(X=!X),F&&(K=L.createElement("g",{style:{animation:"spin"+(X?"-inverse":"")+" linear "+Math.abs(Q)+"s infinite",transformOrigin:"center"}},_,!(w||k||N!==0)&&L.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),$)return K;var z,H1="icon_labelledby_"+u,M1="icon_describedby_"+u;if(f)q=p?H1+" "+M1:H1;else if(z="presentation",p)throw new Error("title attribute required when description is set");return L.createElement("svg",o({ref:s,viewBox:"0 0 24 24",style:P,role:z,"aria-labelledby":q},W),f&&L.createElement("title",{id:H1},f),p&&L.createElement("desc",{id:M1},p),!$&&F&&(X?L.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):L.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),K)}));d.displayName="Icon",d.propTypes={path:e.string.isRequired,size:e.oneOfType([e.number,e.string]),color:e.string,horizontal:e.bool,vertical:e.bool,rotate:e.number,spin:e.oneOfType([e.bool,e.number]),style:e.object,inStack:e.bool,className:e.string},d.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},C.default=d}])),w5}var ro2=Mo2();const to2=T.getDefaultExportFromCjs(ro2),a1=H=>{const C=T.compilerRuntimeExports.c(19);let V,L,e,M,r;C[0]!==H?({className:V,path:L,placeholder:M,size:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?.9:r;let a;C[6]!==L?(a=()=>{const s=Ka2;return L&&s[L]?s[L]:s.mdiHelpCircleOutline},C[6]=L,C[7]=a):a=C[7];const o=a,n=!t;let A;C[8]!==V||C[9]!==t||C[10]!==n?(A=B({"text-gray-1200":n,"text-transparent":t},V),C[8]=V,C[9]=t,C[10]=n,C[11]=A):A=C[11];let d;C[12]!==o?(d=o(),C[12]=o,C[13]=d):d=C[13];let l;return C[14]!==e||C[15]!==i||C[16]!==A||C[17]!==d?(l=m.jsx(to2,{"aria-hidden":"true",className:A,"data-ox-slot":"icon","data-testid":"icon",path:d,size:i,...e}),C[14]=e,C[15]=i,C[16]=A,C[17]=d,C[18]=l):l=C[18],l},q2=H=>{const C=T.compilerRuntimeExports.c(61),{data:V,level:L}=H,[e,M]=D.useState(L>2);let r;C[0]!==L?(r=" ".repeat(L),C[0]=L,C[1]=r):r=C[1];const t=r;if(V===null){let o;return C[2]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("span",{className:"text-gray-1000",children:"null"}),C[2]=o):o=C[2],o}if(V===void 0){let o;return C[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("span",{className:"text-gray-1000",children:"undefined"}),C[3]=o):o=C[3],o}if(typeof V=="string"){let o;return C[4]!==V?(o=m.jsxs("span",{className:d1.green.text,children:['"',V,'"']}),C[4]=V,C[5]=o):o=C[5],o}if(typeof V=="number"){let o;return C[6]!==V?(o=m.jsx("span",{className:d1.blue.text,children:V}),C[6]=V,C[7]=o):o=C[7],o}if(typeof V=="boolean"){let o;C[8]!==V?(o=V.toString(),C[8]=V,C[9]=o):o=C[9];let n;return C[10]!==o?(n=m.jsx("span",{className:d1.amber.text,children:o}),C[10]=o,C[11]=n):n=C[11],n}if(Array.isArray(V)){if(V.length===0){let u;return C[12]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx("span",{className:d1.gray.text,children:"[]"}),C[12]=u):u=C[12],u}const o=e?"collapsed":"expanded";let n;C[13]!==e?(n=()=>M(!e),C[13]=e,C[14]=n):n=C[14];let A;C[15]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx("span",{className:"text-gray-1200",children:"["}),C[15]=A):A=C[15];let d;C[16]!==e||C[17]!==V.length?(d=e?m.jsxs("span",{className:"ml-1 text-gray-900",children:[V.length," item",V.length!==1?"s":""]}):null,C[16]=e,C[17]=V.length,C[18]=d):d=C[18];let l;C[19]!==o||C[20]!==n||C[21]!==d?(l=m.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":o,onClick:n,children:[A,d]}),C[19]=o,C[20]=n,C[21]=d,C[22]=l):l=C[22];let s;C[23]!==e||C[24]!==V||C[25]!==t||C[26]!==L?(s=e?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"ml-4",children:V.map((u,Z)=>m.jsxs("div",{className:"block",children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx(q2,{data:u,level:L+1}),Z<V.length-1&&m.jsx("span",{className:"text-gray-1100",children:","})]},Z))}),m.jsxs("div",{children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx("span",{className:"text-gray-1200",children:"]"})]})]}),C[23]=e,C[24]=V,C[25]=t,C[26]=L,C[27]=s):s=C[27];let c;C[28]!==e?(c=e&&m.jsx("span",{className:"text-gray-1200",children:"]"}),C[28]=e,C[29]=c):c=C[29];let v;return C[30]!==l||C[31]!==s||C[32]!==c?(v=m.jsxs("div",{className:"inline","data-ox-slot":"json-array",children:[l,s,c]}),C[30]=l,C[31]=s,C[32]=c,C[33]=v):v=C[33],v}if(typeof V=="object"){let o;C[34]!==V?(o=Object.keys(V),C[34]=V,C[35]=o):o=C[35];const n=o;if(n.length===0){let f;return C[36]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx("span",{className:"text-gray-1100",children:"{}"}),C[36]=f):f=C[36],f}const A=e?"collapsed":"expanded";let d;C[37]!==e?(d=()=>M(!e),C[37]=e,C[38]=d):d=C[38];let l;C[39]===Symbol.for("react.memo_cache_sentinel")?(l=m.jsx("span",{className:"text-gray-1200",children:"{"}),C[39]=l):l=C[39];let s;C[40]!==e||C[41]!==n.length?(s=e?m.jsxs("span",{className:"ml-1 text-gray-1100",children:[n.length," key",n.length!==1?"s":""]}):null,C[40]=e,C[41]=n.length,C[42]=s):s=C[42];let c;C[43]!==A||C[44]!==d||C[45]!==s?(c=m.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":A,onClick:d,children:[l,s]}),C[43]=A,C[44]=d,C[45]=s,C[46]=c):c=C[46];let v;C[47]!==e||C[48]!==V||C[49]!==t||C[50]!==n||C[51]!==L?(v=e?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"ml-4",children:n.map((f,S)=>m.jsxs("div",{className:"block",children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsxs("span",{className:"text-gray-1200",children:['"',f,'"']}),m.jsx("span",{className:"text-gray-1100",children:": "}),m.jsx(q2,{data:V[f],level:L+1}),S<n.length-1&&m.jsx("span",{className:"text-gray-1100",children:","})]},f))}),m.jsxs("div",{children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx("span",{className:"text-gray-1200",children:"}"})]})]}),C[47]=e,C[48]=V,C[49]=t,C[50]=n,C[51]=L,C[52]=v):v=C[52];let u;C[53]!==e?(u=e&&m.jsx("span",{className:"text-gray-1200",children:"}"}),C[53]=e,C[54]=u):u=C[54];let Z;return C[55]!==c||C[56]!==v||C[57]!==u?(Z=m.jsxs("div",{className:"inline",children:[c,v,u]}),C[55]=c,C[56]=v,C[57]=u,C[58]=Z):Z=C[58],Z}const i=String(V);let a;return C[59]!==i?(a=m.jsx("span",{className:"text-gray-1100",children:i}),C[59]=i,C[60]=a):a=C[60],a},io2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e;C[0]!==H?({className:V,value:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const[M,r]=D.useState(!1);let t;C[4]!==e?(t=(()=>{if(e==null)return{parsedData:null,isValid:!0,error:null};if(typeof e=="object")return{parsedData:e,isValid:!0,error:null};if(typeof e=="string")try{return{parsedData:JSON.parse(e),isValid:!0,error:null}}catch(S){const p=S;return{parsedData:null,isValid:!1,error:p instanceof Error?p.message:"Invalid JSON"}}return{parsedData:e,isValid:!0,error:null}})(),C[4]=e,C[5]=t):t=C[5];const{error:i,isValid:a,parsedData:o}=t;let n;C[6]!==o||C[7]!==e?(n=async()=>{const f=typeof e=="string"?e:JSON.stringify(o,null,2);try{await navigator.clipboard.writeText(f),r(!0),setTimeout(()=>r(!1),2e3)}catch(S){console.error("Failed to copy:",S)}},C[6]=o,C[7]=e,C[8]=n):n=C[8];const A=n;let d;C[9]!==V?(d=B("ox-gray-border relative w-full overflow-auto rounded-lg bg-gray-50 p-4 font-mono text-sm",V),C[9]=V,C[10]=d):d=C[10];const l=a?M?"copied":"default":"error",s=M?"mdiCheck":"mdiContentCopy";let c;C[11]!==s?(c=m.jsx(x1.Icon,{path:s}),C[11]=s,C[12]=c):c=C[12];let v;C[13]!==A||C[14]!==c?(v=m.jsx(x1,{"aria-label":"Copy JSON to clipboard",className:"absolute top-1 right-1",size:"sm",variant:"ghost",onClick:A,children:c}),C[13]=A,C[14]=c,C[15]=v):v=C[15];let u;C[16]!==i||C[17]!==a||C[18]!==o||C[19]!==e?(u=m.jsx("div",{className:"pr-8 text-gray-1200",children:a?m.jsx(q2,{data:o,level:0}):m.jsxs("div",{className:"text-rose-400",children:[m.jsx("div",{className:"font-medium",children:"Invalid JSON:"}),m.jsx("div",{className:"mt-1 text-xs text-gray-900",children:i}),m.jsx("div",{className:"mt-2 text-gray-1100",children:m.jsx("pre",{className:"whitespace-pre-wrap",children:e})})]})}),C[16]=i,C[17]=a,C[18]=o,C[19]=e,C[20]=u):u=C[20];let Z;return C[21]!==L||C[22]!==d||C[23]!==l||C[24]!==v||C[25]!==u?(Z=m.jsxs("div",{className:d,"data-ox-slot":"json-field",...L,"data-ox-state":l,children:[v,u]}),C[21]=L,C[22]=d,C[23]=l,C[24]=v,C[25]=u,C[26]=Z):Z=C[26],Z},R0=io2;R0.Node=q2;const ao2={primary:"border border-violet-700 bg-gradient-to-br from-violet-700 from-20% to-rose-500",secondary:"ox-gray-border bg-transparent",ghost:"border border-transparent bg-transparent",link:"border border-transparent bg-transparent",danger:"border border-rose-700 bg-rose-700/80"},oo2={primary:"ox-violet-outset-focus",secondary:"ox-gray-outset-focus",ghost:"ox-gray-outset-focus",link:"ox-gray-outset-focus",danger:"ox-rose-outset-focus"},no2={primary:"hover:brightness-120",secondary:"hover:bg-gray-300",ghost:"hover:bg-gray-300",link:"underline-offset-4 decoration-violet-700 hover:underline",danger:"hover:bg-rose-700"},Ao2={sm:`px-1.5 min-w-8 ${s1.sm} ${w1.sm}`,md:`px-2 min-w-10 ${s1.md} ${w1.md}`},lo2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r,t,i;C[0]!==H?({children:V,className:L,disabled:e,href:r,size:t,variant:i,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=t===void 0?"sm":t,o=i===void 0?"link":i,n=Ao2[a],A=ao2[o],d=no2[o],l=!e,s=oo2[o],c=!e;let v;C[8]!==L||C[9]!==e||C[10]!==n||C[11]!==A||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c?(v=B("inline-flex items-center rounded-lg font-medium transition-colors",n,A,{[d]:l,[s]:c,"ox-default-disabled cursor-not-allowed":e},L),C[8]=L,C[9]=e,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v):v=C[16];const u=e?void 0:r,Z=e?-1:void 0,f=e?do2:void 0;let S;return C[17]!==V||C[18]!==e||C[19]!==M||C[20]!==u||C[21]!==Z||C[22]!==f||C[23]!==v?(S=m.jsx("a",{"aria-disabled":e,className:v,"data-ox-slot":"link",href:u,tabIndex:Z,onClick:f,...M,children:V}),C[17]=V,C[18]=e,C[19]=M,C[20]=u,C[21]=Z,C[22]=f,C[23]=v,C[24]=S):S=C[24],S};function do2(H){return H.preventDefault()}const E0=D.createContext(null),so2={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"},mo2=H=>{const C=T.compilerRuntimeExports.c(59);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,closeOnOutsideClick:t,isOpen:M,onClose:r,persistent:i,showCloseButton:a,size:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=t===void 0?!0:t,A=i===void 0?!1:i,d=a===void 0?!0:a,l=o===void 0?"sm":o,s=D.useId(),c=D.useId(),v=D.useRef(null),[u,Z]=D.useState(!1);let f;C[10]!==r?(f=q=>q?void 0:r?.(),C[10]=r,C[11]=f):f=C[11];let S;C[12]!==M||C[13]!==f?(S={value:M,onChange:f,defaultValue:!1,name:"OxDialog"},C[12]=M,C[13]=f,C[14]=S):S=C[14];const[p,g]=T.useControllableState(S),h=u&&p;let O;C[15]!==h?(O={containerRef:v,options:{enabled:h,restoreFocus:!0,trapFocus:!0,autoFocus:!0}},C[15]=h,C[16]=O):O=C[16],T.useFocus(O);let x;C[17]!==g?(x=()=>g(!1),C[17]=g,C[18]=x):x=C[18];let b;C[19]!==c||C[20]!==A||C[21]!==d||C[22]!==x||C[23]!==s?(b={onClose:x,titleId:s,bodyId:c,persistent:A,showCloseButton:d},C[19]=c,C[20]=A,C[21]=d,C[22]=x,C[23]=s,C[24]=b):b=C[24];const w=b;let y;C[25]!==p||C[26]!==u?(y=q=>{q.target===v.current&&!p&&u&&(Z(!1),v.current?.close())},C[25]=p,C[26]=u,C[27]=y):y=C[27];const k=y;let R;C[28]!==p||C[29]!==A||C[30]!==g?(R=()=>{A&&p?v.current?.showModal():A||g(!1)},C[28]=p,C[29]=A,C[30]=g,C[31]=R):R=C[31];const N=R;let j,F;C[32]!==p?(j=()=>{p&&Z(!0)},F=[p],C[32]=p,C[33]=j,C[34]=F):(j=C[33],F=C[34]),D.useEffect(j,F);let I,P;C[35]!==p||C[36]!==u?(I=()=>{const q=v.current;if(!(!q||!u))return p&&(document.body.classList.add("overflow-hidden"),q.showModal()),co2},P=[p,u],C[35]=p,C[36]=u,C[37]=I,C[38]=P):(I=C[37],P=C[38]),D.useEffect(I,P);let E,$;if(C[39]!==n||C[40]!==N||C[41]!==A||C[42]!==u?(E=()=>{const q=v.current;if(!q||!u)return;const K=z=>{z.key==="Escape"&&A&&(z.preventDefault(),z.stopPropagation())},Q=z=>{z.preventDefault(),N()},X=z=>{n&&z.target===q&&N()};return document.addEventListener("keydown",K),q.addEventListener("cancel",Q),q.addEventListener("click",X),q.addEventListener("close",N),()=>{document.removeEventListener("keydown",K),q.removeEventListener("cancel",Q),q.removeEventListener("click",X),q.removeEventListener("close",N)}},$=[u,n,N,A],C[39]=n,C[40]=N,C[41]=A,C[42]=u,C[43]=E,C[44]=$):(E=C[43],$=C[44]),D.useEffect(E,$),!u)return null;const W=so2[l];let G;C[45]!==L||C[46]!==W?(G=B("ox-gray-border fixed inset-0 m-auto h-fit w-full rounded-lg bg-gray-50","ox-dialog-animation ox-dialog-backdrop",W,L),C[45]=L,C[46]=W,C[47]=G):G=C[47];const U=p?"open":"closing";let Y;C[48]!==V||C[49]!==w?(Y=m.jsx(E0.Provider,{value:w,children:V}),C[48]=V,C[49]=w,C[50]=Y):Y=C[50];let _;return C[51]!==c||C[52]!==e||C[53]!==k||C[54]!==G||C[55]!==U||C[56]!==Y||C[57]!==s?(_=k2.createPortal(m.jsx("dialog",{"aria-describedby":c,"aria-labelledby":s,className:G,"data-ox-slot":"dialog",ref:v,role:"dialog",onAnimationEnd:k,...e,"data-ox-state":U,children:Y}),document.body),C[51]=c,C[52]=e,C[53]=k,C[54]=G,C[55]=U,C[56]=Y,C[57]=s,C[58]=_):_=C[58],_};function co2(){document.body.classList.remove("overflow-hidden")}const F0=()=>{const H=D.useContext(E0);if(!H)throw new Error("Dialog sub-components must be used within OxDialog");return H},vo2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{bodyId:M}=F0();let r;C[4]!==L?(r=B("p-4 text-sm text-gray-1200",L),C[4]=L,C[5]=r):r=C[5];let t;return C[6]!==M||C[7]!==V||C[8]!==e||C[9]!==r?(t=m.jsx("div",{id:M,className:r,"data-ox-slot":"dialog-body",...e,children:V}),C[6]=M,C[7]=V,C[8]=e,C[9]=r,C[10]=t):t=C[10],t},uo2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("mx-4 flex justify-end gap-3 border-t border-gray-400 py-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"dialog-footer",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},Zo2=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{onClose:M,persistent:r,showCloseButton:t,titleId:i}=F0(),a=t&&!r;let o;C[4]!==L?(o=B("mx-4 box-content flex h-8 items-center justify-between border-b border-gray-400 py-4 text-gray-1200",L),C[4]=L,C[5]=o):o=C[5];let n;C[6]!==V?(n=m.jsx("div",{className:"flex-1",children:V}),C[6]=V,C[7]=n):n=C[7];let A;C[8]!==M||C[9]!==a?(A=a?m.jsx(x1,{"aria-label":"Close Dialog",size:"sm",variant:"ghost",onClick:M,children:m.jsx(x1.Icon,{path:"mdiClose"})}):null,C[8]=M,C[9]=a,C[10]=A):A=C[10];let d;return C[11]!==e||C[12]!==o||C[13]!==n||C[14]!==A||C[15]!==i?(d=m.jsxs("div",{id:i,className:o,"data-ox-slot":"dialog-header",...e,children:[n,A]}),C[11]=e,C[12]=o,C[13]=n,C[14]=A,C[15]=i,C[16]=d):d=C[16],d},e5=mo2;e5.Body=vo2;e5.Footer=uo2;e5.Header=Zo2;const y2=D.createContext(null),M5=()=>{const H=D.useContext(y2);if(!H)throw new Error("useNotificationsContext must be used within a NotificationsContext.Provider");return H},D0=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({children:V,className:L,icon:M,img:r,message:t,timestamp:o,title:n,type:i,unread:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?"default":i,d=a===void 0?!1:a,{isMobile:l,onItemClick:s,setOpen:c}=M5(),v=F1[A];let u;C[11]!==M||C[12]!==r||C[13]!==l||C[14]!==t||C[15]!==s||C[16]!==c||C[17]!==o||C[18]!==n||C[19]!==A||C[20]!==d?(u=()=>{const O={id:crypto.randomUUID(),icon:M,img:r,message:t,read:!d,timestamp:o||new Date,title:n||"",type:A};s?.(O),l&&c(!1)},C[11]=M,C[12]=r,C[13]=l,C[14]=t,C[15]=s,C[16]=c,C[17]=o,C[18]=n,C[19]=A,C[20]=d,C[21]=u):u=C[21];const Z=u;let f;C[22]!==V||C[23]!==M||C[24]!==r||C[25]!==t||C[26]!==v||C[27]!==o||C[28]!==n||C[29]!==d?(f=V||m.jsxs(m.Fragment,{children:[m.jsx("div",{className:B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",v.background),"data-ox-slot":"notifications-icon",children:r?m.jsx(C5,{alt:"User avatar",fallback:"NA",size:"md",src:r}):m.jsx(a1,{className:v.text,path:M??v.icon,size:.75})}),m.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[n&&m.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:n}),t&&m.jsx("p",{className:"mb-1 text-xs leading-4",children:t}),o&&m.jsx("p",{className:"text-xs text-gray-1000",children:I5(o)})]}),d&&m.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),C[22]=V,C[23]=M,C[24]=r,C[25]=t,C[26]=v,C[27]=o,C[28]=n,C[29]=d,C[30]=f):f=C[30];const S=f;let p;C[31]!==L||C[32]!==d?(p=B("col-span-3 grid cursor-pointer grid-cols-subgrid items-start gap-3 px-3 py-3 text-left","ox-gray-inset-focus hover:bg-gray-400",{"bg-gray-300/80":d},L),C[31]=L,C[32]=d,C[33]=p):p=C[33];const g=d?"unread":"read";let h;return C[34]!==e||C[35]!==Z||C[36]!==S||C[37]!==p||C[38]!==g?(h=m.jsx("li",{className:"contents",children:m.jsx("button",{className:p,"data-ox-slot":"notifications-button",...e,"data-ox-state":g,onClick:Z,children:S})}),C[34]=e,C[35]=Z,C[36]=S,C[37]=p,C[38]=g,C[39]=h):h=C[39],h},D3=B("grid min-h-0 flex-1 auto-rows-min grid-cols-[auto_1fr_auto] overflow-y-auto",'[&_[data-ox-slot="notifications-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="notifications-icon"]]:justify-self-center','[&_[data-ox-slot="notifications-content"]]:[grid-column-start:var(--ox-menu-label-col)]','[&_[data-ox-slot="notifications-unread"]]:[grid-column-start:var(--ox-menu-shortcut-col)] [&_[data-ox-slot="notifications-unread"]]:justify-self-end'),Y2=H=>{const C=T.compilerRuntimeExports.c(52);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{emptyMessage:M,isMobile:r,items:t,onMarkAllRead:i,setOpen:a,unreadCount:o}=M5(),n=t.length>0,A=o>0;let d;C[4]!==r||C[5]!==i||C[6]!==a?(d=()=>{i?.(),r&&a(!1)},C[4]=r,C[5]=i,C[6]=a,C[7]=d):d=C[7];const l=d;let s;C[8]!==V||C[9]!==M||C[10]!==n||C[11]!==t?(s=V||m.jsx(m.Fragment,{children:n?t.map(So2):m.jsxs("li",{className:"col-span-3 px-3 py-8 text-center",role:"status",children:[m.jsx(a1,{className:"mx-auto mb-2 opacity-50",path:"mdiBellOffOutline",size:2}),m.jsx("p",{className:"text-sm opacity-50",children:M})]})}),C[8]=V,C[9]=M,C[10]=n,C[11]=t,C[12]=s):s=C[12];const c=s;if(r){let g;C[13]!==a?(g=()=>a(!1),C[13]=a,C[14]=g):g=C[14];let h;C[15]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx(x1.Icon,{path:"mdiClose"}),C[15]=h):h=C[15];let O;C[16]!==g?(O=m.jsx(x1,{"aria-label":"Close notifications",size:"md",variant:"ghost",onClick:g,children:h}),C[16]=g,C[17]=O):O=C[17];let x;C[18]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),C[18]=x):x=C[18];let b;C[19]!==l||C[20]!==A||C[21]!==i?(b=A&&i&&m.jsx("button",{className:"cursor-pointer text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:l,children:"Mark all read"}),C[19]=l,C[20]=A,C[21]=i,C[22]=b):b=C[22];let w;C[23]!==b?(w=m.jsx("div",{className:"flex items-center gap-2",children:b}),C[23]=b,C[24]=w):w=C[24];let y;C[25]!==O||C[26]!==w?(y=m.jsxs("div",{className:"flex h-15 items-center justify-between border-b border-gray-400 px-4",children:[O,x,w]}),C[25]=O,C[26]=w,C[27]=y):y=C[27];let k;C[28]!==L?(k=B(D3,L),C[28]=L,C[29]=k):k=C[29];let R;C[30]!==e||C[31]!==c||C[32]!==k?(R=m.jsx("ul",{"aria-orientation":"vertical",className:k,"data-ox-slot":"notifications-body",...e,children:c}),C[30]=e,C[31]=c,C[32]=k,C[33]=R):R=C[33];let N;return C[34]!==R||C[35]!==y?(N=m.jsxs(q1.Content,{closeOnOutsideClick:!0,side:"right",children:[y,R]}),C[34]=R,C[35]=y,C[36]=N):N=C[36],N}let v;C[37]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),C[37]=v):v=C[37];let u;C[38]!==A||C[39]!==i?(u=A&&i&&m.jsx("button",{className:"ox-gray-outset-focus cursor-pointer rounded-lg p-1 text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:i,children:"Mark all read"}),C[38]=A,C[39]=i,C[40]=u):u=C[40];let Z;C[41]!==u?(Z=m.jsx(B1.Header,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[v,u]})}),C[41]=u,C[42]=Z):Z=C[42];let f;C[43]!==L?(f=B("w-85",D3,L),C[43]=L,C[44]=f):f=C[44];let S;C[45]!==e||C[46]!==c||C[47]!==f?(S=m.jsx("ul",{"aria-orientation":"vertical",className:f,"data-ox-slot":"notifications-body",...e,children:c}),C[45]=e,C[46]=c,C[47]=f,C[48]=S):S=C[48];let p;return C[49]!==Z||C[50]!==S?(p=m.jsxs(B1.Content,{className:"p-0",children:[Z,S]}),C[49]=Z,C[50]=S,C[51]=p):p=C[51],p};function So2(H,C){return m.jsx(D0,{className:B({"border-t border-gray-400":C>0}),icon:H.icon,img:H.img,message:H.message,timestamp:H.timestamp,title:H.title,type:H.type,unread:!H.read},H.id)}const K2=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e,M,r;C[0]!==H?({children:V,className:L,customIcon:e,unreadCount:r,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const{disabled:t,isMobile:i,open:a,setOpen:o,unreadCount:n}=M5(),A=r??n;let d;C[6]!==A?(d=A>99?"99+":A.toString(),C[6]=A,C[7]=d):d=C[7];const l=d,s=A>0,c=e??"mdiBellOutline",v=`Notifications${s?` (${A} unread)`:""}`;let u;C[8]!==t||C[9]!==l||C[10]!==s?(u=s&&m.jsx("div",{className:B("absolute -top-2 -right-2",{"opacity-50":t}),children:m.jsx(_2,{className:"min-w-[1.25rem] justify-center px-1",color:"violet",size:"sm",children:l})}),C[8]=t,C[9]=l,C[10]=s,C[11]=u):u=C[11];const f=V||u;if(i){let O;C[12]!==L?(O=B("relative",L),C[12]=L,C[13]=O):O=C[13];const x=a?"open":"closed";let b;C[14]!==o?(b=()=>o(!0),C[14]=o,C[15]=b):b=C[15];let w;C[16]!==c?(w=m.jsx(x1.Icon,{path:c}),C[16]=c,C[17]=w):w=C[17];let y;return C[18]!==v||C[19]!==f||C[20]!==t||C[21]!==M||C[22]!==O||C[23]!==x||C[24]!==b||C[25]!==w?(y=m.jsxs(x1,{"aria-label":v,className:O,"data-ox-slot":"notifications-trigger",disabled:t,size:"md",variant:"ghost",...M,"data-ox-state":x,onClick:b,children:[w,f]}),C[18]=v,C[19]=f,C[20]=t,C[21]=M,C[22]=O,C[23]=x,C[24]=b,C[25]=w,C[26]=y):y=C[26],y}let S;C[27]!==L||C[28]!==a?(S=B("relative flex h-10 min-w-10 items-center justify-center rounded-lg border border-transparent bg-transparent px-2 text-sm","ox-gray-outset-focus enabled:cursor-pointer enabled:text-gray-1200 enabled:hover:bg-gray-300 disabled:ox-default-disabled",{"bg-gray-300":a},L),C[27]=L,C[28]=a,C[29]=S):S=C[29];const p=a?"open":"closed";let g;C[30]!==c?(g=m.jsx(a1,{path:c}),C[30]=c,C[31]=g):g=C[31];let h;return C[32]!==v||C[33]!==f||C[34]!==t||C[35]!==M||C[36]!==S||C[37]!==p||C[38]!==g?(h=m.jsxs(B1.Trigger,{"aria-label":v,className:S,"data-ox-slot":"notifications-trigger",disabled:t,hideIcon:!0,...M,"data-ox-state":p,children:[g,f]}),C[32]=v,C[33]=f,C[34]=t,C[35]=M,C[36]=S,C[37]=p,C[38]=g,C[39]=h):h=C[39],h},fo2=H=>{const C=T.compilerRuntimeExports.c(68);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,disabled:r,emptyMessage:t,items:i,onItemClick:e,onMarkAllRead:M,unreadCount:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?!1:r,n=t===void 0?"No notifications":t;let A;C[9]!==i?(A=i===void 0?[]:i,C[9]=i,C[10]=A):A=C[10];const d=A,l=a===void 0?0:a,[s,c]=D.useState(!1),[v,u]=D.useState(!1);let Z,f;C[11]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{const w=()=>{u(window.innerWidth<i0)};return w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}},f=[],C[11]=Z,C[12]=f):(Z=C[11],f=C[12]),D.useEffect(Z,f);let S;C[13]!==o||C[14]!==n||C[15]!==v||C[16]!==d||C[17]!==e||C[18]!==M||C[19]!==s||C[20]!==l?(S={disabled:o,emptyMessage:n,isMobile:v,items:d,open:s,setOpen:c,unreadCount:l,onItemClick:e,onMarkAllRead:M},C[13]=o,C[14]=n,C[15]=v,C[16]=d,C[17]=e,C[18]=M,C[19]=s,C[20]=l,C[21]=S):S=C[21];const p=S;if(V){let w;C[22]!==V?(w=D.Children.toArray(V).find(po2),C[22]=V,C[23]=w):w=C[23];const y=w;let k;C[24]!==V?(k=D.Children.toArray(V).find(ho2),C[24]=V,C[25]=k):k=C[25];const R=k;if(v){let I;C[26]!==R||C[27]!==s?(I=m.jsx(q1,{open:s,onOpenChange:c,children:R}),C[26]=R,C[27]=s,C[28]=I):I=C[28];let P;C[29]!==L||C[30]!==I||C[31]!==y?(P=m.jsxs("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"mobile",children:[y,I]}),C[29]=L,C[30]=I,C[31]=y,C[32]=P):P=C[32];let E;return C[33]!==p||C[34]!==P?(E=m.jsx(y2.Provider,{value:p,children:P}),C[33]=p,C[34]=P,C[35]=E):E=C[35],E}let N;C[36]!==R||C[37]!==o||C[38]!==s||C[39]!==y?(N=m.jsxs(B1,{align:"end",disabled:o,open:s,side:"bottom",onOpenChange:c,children:[y,R]}),C[36]=R,C[37]=o,C[38]=s,C[39]=y,C[40]=N):N=C[40];let j;C[41]!==L||C[42]!==N?(j=m.jsx("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"desktop",children:N}),C[41]=L,C[42]=N,C[43]=j):j=C[43];let F;return C[44]!==p||C[45]!==j?(F=m.jsx(y2.Provider,{value:p,children:j}),C[44]=p,C[45]=j,C[46]=F):F=C[46],F}if(v){let w;C[47]===Symbol.for("react.memo_cache_sentinel")?(w=m.jsx(K2,{}),C[47]=w):w=C[47];let y;C[48]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx(Y2,{}),C[48]=y):y=C[48];let k;C[49]!==s?(k=m.jsx(q1,{open:s,onOpenChange:c,children:y}),C[49]=s,C[50]=k):k=C[50];let R;C[51]!==L||C[52]!==k?(R=m.jsxs("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"mobile",children:[w,k]}),C[51]=L,C[52]=k,C[53]=R):R=C[53];let N;return C[54]!==p||C[55]!==R?(N=m.jsx(y2.Provider,{value:p,children:R}),C[54]=p,C[55]=R,C[56]=N):N=C[56],N}let g,h;C[57]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx(K2,{}),g=m.jsx(Y2,{}),C[57]=g,C[58]=h):(g=C[57],h=C[58]);let O;C[59]!==o||C[60]!==s?(O=m.jsxs(B1,{align:"end",disabled:o,open:s,side:"bottom",onOpenChange:c,children:[h,g]}),C[59]=o,C[60]=s,C[61]=O):O=C[61];let x;C[62]!==L||C[63]!==O?(x=m.jsx("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"desktop",children:O}),C[62]=L,C[63]=O,C[64]=x):x=C[64];let b;return C[65]!==p||C[66]!==x?(b=m.jsx(y2.Provider,{value:p,children:x}),C[65]=p,C[66]=x,C[67]=b):b=C[67],b};function po2(H){return D.isValidElement(H)&&H.type===K2}function ho2(H){return D.isValidElement(H)&&H.type===Y2}const go2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M,r,t,i,a,o,n,A;C[0]!==H?({children:V,className:L,href:M,icon:r,img:t,message:i,timestamp:n,title:A,type:a,unread:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11]);const d=a===void 0?"default":a,l=o===void 0?!1:o,{isMobile:s,onItemClick:c,setOpen:v}=M5(),u=F1[d];let Z;C[12]!==r||C[13]!==t||C[14]!==s||C[15]!==i||C[16]!==c||C[17]!==v||C[18]!==n||C[19]!==A||C[20]!==d||C[21]!==l?(Z=()=>{const x={id:crypto.randomUUID(),icon:r,img:t,message:i,read:!l,timestamp:n||new Date,title:A||"",type:d};c?.(x),s&&v(!1)},C[12]=r,C[13]=t,C[14]=s,C[15]=i,C[16]=c,C[17]=v,C[18]=n,C[19]=A,C[20]=d,C[21]=l,C[22]=Z):Z=C[22];const f=Z;let S;C[23]!==V||C[24]!==r||C[25]!==t||C[26]!==i||C[27]!==u||C[28]!==n||C[29]!==A||C[30]!==l?(S=V||m.jsxs(m.Fragment,{children:[m.jsx("div",{className:B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",u.background),"data-ox-slot":"notifications-icon",children:t?m.jsx(C5,{alt:"User avatar",fallback:"NA",size:"md",src:t}):m.jsx(a1,{className:u.text,path:r??u.icon,size:.75})}),m.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[A&&m.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:A}),i&&m.jsx("p",{className:"mb-1 text-xs leading-4",children:i}),n&&m.jsx("p",{className:"text-xs text-gray-1000",children:I5(n)})]}),l&&m.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),C[23]=V,C[24]=r,C[25]=t,C[26]=i,C[27]=u,C[28]=n,C[29]=A,C[30]=l,C[31]=S):S=C[31];const p=S;let g;C[32]!==L||C[33]!==l?(g=B("col-span-3 grid cursor-pointer grid-cols-subgrid items-start gap-3 px-3 py-3 text-left","ox-gray-inset-focus hover:bg-gray-400",{"bg-gray-300/80":l},L),C[32]=L,C[33]=l,C[34]=g):g=C[34];const h=l?"unread":"read";let O;return C[35]!==e||C[36]!==f||C[37]!==M||C[38]!==p||C[39]!==g||C[40]!==h?(O=m.jsx("li",{className:"contents",children:m.jsx("a",{className:g,"data-ox-slot":"notifications-link",href:M,...e,"data-ox-state":h,onClick:f,children:p})}),C[35]=e,C[36]=f,C[37]=M,C[38]=p,C[39]=g,C[40]=h,C[41]=O):O=C[41],O},P2=fo2;P2.Body=Y2;P2.Button=D0;P2.Link=go2;P2.Trigger=K2;const Oo2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("flex justify-center",L),C[4]=L,C[5]=M):M=C[5];let r;C[6]!==V?(r=m.jsx("ul",{className:"flex items-center gap-1",children:V}),C[6]=V,C[7]=r):r=C[7];let t;return C[8]!==e||C[9]!==M||C[10]!==r?(t=m.jsx("nav",{"aria-label":"Pagination",className:M,"data-ox-slot":"pagination",role:"navigation",...e,children:r}),C[8]=e,C[9]=M,C[10]=r,C[11]=t):t=C[11],t},N0=["inline-flex items-center justify-center rounded-lg","transition-colors duration-150","border border-transparent bg-transparent"],K5=B(N0,"enabled:cursor-pointer enabled:text-gray-1200","enabled:hover:bg-gray-300","enabled:ox-gray-outset-focus disabled:ox-default-disabled"),T2={sm:`px-2 ${s1.sm}`,md:`px-2.5 ${s1.md}`},xo2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e;C[0]!==H?({className:V,size:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=e===void 0?"sm":e,r=T2[M],t=f2[M];let i;C[4]!==V||C[5]!==r||C[6]!==t?(i=B("flex items-center justify-center text-gray-900",r,t,V),C[4]=V,C[5]=r,C[6]=t,C[7]=i):i=C[7];let a;C[8]===Symbol.for("react.memo_cache_sentinel")?(a=m.jsx("span",{className:"sr-only",children:"More pages"}),C[8]=a):a=C[8];const o=R1[M];let n;C[9]!==o?(n=m.jsx(a1,{path:"mdiDotsHorizontal",size:o}),C[9]=o,C[10]=n):n=C[10];let A;return C[11]!==L||C[12]!==i||C[13]!==n?(A=m.jsx("li",{children:m.jsxs("span",{className:i,"data-ox-slot":"pagination-ellipsis",...L,children:[a,n]})}),C[11]=L,C[12]=i,C[13]=n,C[14]=A):A=C[14],A},bo2=H=>"href"in H,yo2=H=>{const C=T.compilerRuntimeExports.c(28);let V,L,e,M,r,t,i,a;C[0]!==H?({className:V,disabled:t,href:L,isActive:i,onClick:e,page:M,size:a,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?!1:i,A=a===void 0?"sm":a,d=T2[A],l=f2[A],s=!o;let c;C[9]!==V||C[10]!==o||C[11]!==n||C[12]!==d||C[13]!==l||C[14]!==s?(c=B(N0,d,l,{"ox-gray-outset-focus cursor-pointer text-gray-1200 hover:bg-gray-300":s,"ox-default-disabled":o,"bg-gray-300":n},V),C[9]=V,C[10]=o,C[11]=n,C[12]=d,C[13]=l,C[14]=s,C[15]=c):c=C[15];const v=c;let u;C[16]!==o||C[17]!==e?(u=h=>{if(o){h.preventDefault();return}e?.(h)},C[16]=o,C[17]=e,C[18]=u):u=C[18];const Z=u,f=n?"page":void 0,S=n?`Current page: ${M}`:`Go to page ${M}`,p=o?void 0:L;let g;return C[19]!==o||C[20]!==Z||C[21]!==v||C[22]!==M||C[23]!==r||C[24]!==S||C[25]!==p||C[26]!==f?(g=m.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:m.jsx("a",{"aria-current":f,"aria-disabled":o,"aria-label":S,className:v,"data-ox-slot":"pagination-link",href:p,onClick:Z,...r,children:M})}),C[19]=o,C[20]=Z,C[21]=v,C[22]=M,C[23]=r,C[24]=S,C[25]=p,C[26]=f,C[27]=g):g=C[27],g},wo2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t,i,a;C[0]!==H?({className:V,disabled:r,isActive:t,onClick:L,page:e,size:i,type:a,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?!1:r,n=t===void 0?!1:t,A=i===void 0?"sm":i,d=a===void 0?"button":a,l=T2[A],s=f2[A];let c;C[9]!==V||C[10]!==n||C[11]!==l||C[12]!==s?(c=B(K5,l,s,{"bg-gray-300 enabled:text-gray-1200":n},V),C[9]=V,C[10]=n,C[11]=l,C[12]=s,C[13]=c):c=C[13];const v=c;let u;C[14]!==L||C[15]!==e?(u=()=>{L?.(e)},C[14]=L,C[15]=e,C[16]=u):u=C[16];const Z=u,f=n?"page":void 0,S=n?`Current page: ${e}`:`Go to page ${e}`;let p;return C[17]!==v||C[18]!==o||C[19]!==Z||C[20]!==e||C[21]!==M||C[22]!==S||C[23]!==f||C[24]!==d?(p=m.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:m.jsx("button",{"aria-current":f,"aria-label":S,className:v,"data-ox-slot":"pagination-link",disabled:o,type:d,onClick:Z,...M,children:e})}),C[17]=v,C[18]=o,C[19]=Z,C[20]=e,C[21]=M,C[22]=S,C[23]=f,C[24]=d,C[25]=p):p=C[25],p},ko2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=bo2(H)?m.jsx(yo2,{...H}):m.jsx(wo2,{...H}),C[0]=H,C[1]=V):V=C[1],V},Po2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t;C[0]!==H?({className:V,disabled:M,onClick:e,short:r,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?!1:M,a=r===void 0?!1:r,o=t===void 0?"sm":t;let n;C[7]!==i||C[8]!==e?(n=()=>{i||e()},C[7]=i,C[8]=e,C[9]=n):n=C[9];const A=n,d=T2[o],l=w1[o],s=!a,c=f2[o],v=!a;let u;C[10]!==V||C[11]!==a||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c||C[16]!==v?(u=B(K5,d,{[l]:s,[c]:a,"gap-1":v},V),C[10]=V,C[11]=a,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):u=C[17];const Z=a?null:"Next",f=R1[o];let S;C[18]!==f?(S=m.jsx(a1,{path:"mdiChevronRight",size:f}),C[18]=f,C[19]=S):S=C[19];let p;return C[20]!==i||C[21]!==L||C[22]!==A||C[23]!==u||C[24]!==Z||C[25]!==S?(p=m.jsx("li",{children:m.jsxs("button",{"aria-label":"Go to next page",className:u,"data-ox-slot":"pagination-next",disabled:i,type:"button",onClick:A,...L,children:[Z,S]})}),C[20]=i,C[21]=L,C[22]=A,C[23]=u,C[24]=Z,C[25]=S,C[26]=p):p=C[26],p},To2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t;C[0]!==H?({className:V,disabled:M,onClick:e,short:r,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?!1:M,a=r===void 0?!1:r,o=t===void 0?"sm":t;let n;C[7]!==i||C[8]!==e?(n=()=>{i||e()},C[7]=i,C[8]=e,C[9]=n):n=C[9];const A=n,d=T2[o],l=w1[o],s=!a,c=f2[o],v=!a;let u;C[10]!==V||C[11]!==a||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c||C[16]!==v?(u=B(K5,d,{[l]:s,[c]:a,"gap-1":v},V),C[10]=V,C[11]=a,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):u=C[17];const Z=R1[o];let f;C[18]!==Z?(f=m.jsx(a1,{path:"mdiChevronLeft",size:Z}),C[18]=Z,C[19]=f):f=C[19];const S=a?null:"Previous";let p;return C[20]!==i||C[21]!==L||C[22]!==A||C[23]!==u||C[24]!==f||C[25]!==S?(p=m.jsx("li",{children:m.jsxs("button",{"aria-label":"Go to previous page",className:u,"data-ox-slot":"pagination-previous",disabled:i,type:"button",onClick:A,...L,children:[f,S]})}),C[20]=i,C[21]=L,C[22]=A,C[23]=u,C[24]=f,C[25]=S,C[26]=p):p=C[26],p},B2=Oo2;B2.Ellipsis=xo2;B2.Item=ko2;B2.Next=Po2;B2.Previous=To2;const Bo2=H=>{const C=T.compilerRuntimeExports.c(20);let V,L,e,M,r,t,i,a;C[0]!==H?({align:r,children:V,defaultOpen:t,disabled:i,onOpenChange:e,open:M,side:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?"center":r,n=t===void 0?!1:t,A=i===void 0?!1:i,d=a===void 0?"bottom":a;let l;C[9]!==o||C[10]!==V||C[11]!==n||C[12]!==A||C[13]!==e||C[14]!==M||C[15]!==d?(l=m.jsx(g1,{align:o,animationDuration:100,ariaHaspopup:"dialog",defaultOpen:n,disabled:A,open:M,position:d,trigger:"click",onOpenChange:e,children:V}),C[9]=o,C[10]=V,C[11]=n,C[12]=A,C[13]=e,C[14]=M,C[15]=d,C[16]=l):l=C[16];let s;return C[17]!==L||C[18]!==l?(s=m.jsx("div",{className:"inline-block","data-ox-slot":"popover",...L,children:l}),C[17]=L,C[18]=l,C[19]=s):s=C[19],s},Ro2=H=>{const C=T.compilerRuntimeExports.c(21);let V,L,e,M;C[0]!==H?({children:V,className:L,showCloseButton:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!0:M,{open:t,setOpen:i}=j1();let a;C[5]!==L?(a=B("ox-gray-border relative max-w-sm min-w-[16rem] rounded-lg bg-gray-200 p-4 shadow-lg",L),C[5]=L,C[6]=a):a=C[6];const o=t?"open":"closing";let n;C[7]!==i||C[8]!==r?(n=r&&m.jsx("div",{className:"absolute top-2 right-2",children:m.jsx(x1,{"aria-label":"Close popover",size:"sm",variant:"ghost",onClick:()=>i(!1),children:m.jsx(x1.Icon,{path:"mdiClose"})})}),C[7]=i,C[8]=r,C[9]=n):n=C[9];let A;C[10]!==r?(A=B({"pr-8":r}),C[10]=r,C[11]=A):A=C[11];let d;C[12]!==V||C[13]!==A?(d=m.jsx("div",{className:A,children:V}),C[12]=V,C[13]=A,C[14]=d):d=C[14];let l;return C[15]!==e||C[16]!==a||C[17]!==o||C[18]!==n||C[19]!==d?(l=m.jsx(g1.Content,{className:"ox-popover-animate",children:m.jsxs("div",{className:a,"data-ox-slot":"popover-content","data-ox-state":o,...e,children:[n,d]})}),C[15]=e,C[16]=a,C[17]=o,C[18]=n,C[19]=d,C[20]=l):l=C[20],l},Eo2=Q5("OxPopoverTrigger","button"),Fo2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e,M;C[0]!==H?({asChild:M,children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!1:M;let t;C[5]!==e?(t={"data-ox-slot":"popover-trigger",type:"button",...e},C[5]=e,C[6]=t):t=C[6];const i=t;if(r){let o;return C[7]!==V||C[8]!==L||C[9]!==i?(o=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx(Eo2,{...i,className:L,children:V})}),C[7]=V,C[8]=L,C[9]=i,C[10]=o):o=C[10],o}let a;return C[11]!==V||C[12]!==L||C[13]!==i?(a=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx("button",{...i,className:L,children:V})}),C[11]=V,C[12]=L,C[13]=i,C[14]=a):a=C[14],a},X5=Bo2;X5.Content=Ro2;X5.Trigger=Fo2;const Do2={purple:"bg-purple-500/30",lime:"bg-lime-400/30",red:"bg-red-500/30",yellow:"bg-yellow-500/30",green:"bg-green-500/30",blue:"bg-blue-500/30",indigo:"bg-indigo-500/30",pink:"bg-pink-500/30",amber:"bg-amber-500/30",emerald:"bg-emerald-500/30",teal:"bg-teal-500/30",cyan:"bg-cyan-500/30",sky:"bg-sky-500/30",violet:"bg-violet-500/30",fuchsia:"bg-fuchsia-500/30",orange:"bg-orange-500/30",rose:"bg-rose-500/30",gray:"bg-gray-1100/30"},No2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t;C[0]!==H?({buffer:V,className:L,max:M,value:r,variant:t,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?100:M,a=r===void 0?0:r,o=t===void 0?"violet":t,n=Math.max(0,Math.min(a,i)),A=V?Math.max(0,Math.min(V,i)):0,d=d1[o];let l;C[7]!==L?(l=B("relative h-2 overflow-hidden rounded-full bg-gray-300",L),C[7]=L,C[8]=l):l=C[8];let s;C[9]!==V||C[10]!==A||C[11]!==i||C[12]!==o?(s=V!==void 0?m.jsx("div",{className:B("absolute inset-y-0 left-0 rounded-full transition-all duration-300",Do2[o]),style:{width:`${A/i*100}%`}}):null,C[9]=V,C[10]=A,C[11]=i,C[12]=o,C[13]=s):s=C[13];let c;C[14]!==d.backgroundSolid?(c=B("absolute inset-y-0 left-0 rounded-full transition-all duration-300",d.backgroundSolid),C[14]=d.backgroundSolid,C[15]=c):c=C[15];const v=`${n/i*100}%`;let u;C[16]!==v?(u={width:v},C[16]=v,C[17]=u):u=C[17];let Z;C[18]!==c||C[19]!==u?(Z=m.jsx("div",{className:c,style:u}),C[18]=c,C[19]=u,C[20]=Z):Z=C[20];let f;return C[21]!==e||C[22]!==l||C[23]!==s||C[24]!==Z?(f=m.jsxs("div",{className:l,"data-ox-slot":"progress",role:"progressbar",...e,children:[s,Z]}),C[21]=e,C[22]=l,C[23]=s,C[24]=Z,C[25]=f):f=C[25],f},Io2={sm:40,md:48},jo2=H=>{const C=T.compilerRuntimeExports.c(38);let V,L,e,M,r,t,i;C[0]!==H?({className:V,max:e,showPercentage:M,size:r,value:t,variant:i,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=e===void 0?100:e,o=M===void 0?!1:M,n=r===void 0?"sm":r,A=t===void 0?0:t,d=i===void 0?"violet":i,l=Math.max(0,Math.min(A,a));let s;C[8]!==a||C[9]!==l?(s=Math.round(l/a*100),C[8]=a,C[9]=l,C[10]=s):s=C[10];const c=s,v=Io2[n],u=d1[d],Z=(v-4)/2,f=2*Math.PI*Z,S=f-l/a*f;let p;C[11]!==V?(p=B("inline-flex items-center justify-center",V),C[11]=V,C[12]=p):p=C[12];let g;C[13]!==u.stroke?(g=B("transition-all duration-300 ease-in-out",u.stroke),C[13]=u.stroke,C[14]=g):g=C[14];const h=v/2,O=v/2;let x;C[15]!==f||C[16]!==S?(x={strokeDasharray:f,strokeDashoffset:S},C[15]=f,C[16]=S,C[17]=x):x=C[17];let b;C[18]!==Z||C[19]!==O||C[20]!==x||C[21]!==g||C[22]!==h?(b=m.jsx("circle",{className:g,cx:h,cy:O,fill:"none",r:Z,strokeLinecap:"round",strokeWidth:"4",style:x}),C[18]=Z,C[19]=O,C[20]=x,C[21]=g,C[22]=h,C[23]=b):b=C[23];let w;C[24]!==v||C[25]!==b?(w=m.jsx("svg",{className:"-rotate-90 transform",height:v,width:v,children:b}),C[24]=v,C[25]=b,C[26]=w):w=C[26];let y;C[27]!==c||C[28]!==o||C[29]!==n?(y=o&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsxs("span",{className:B("font-medium text-gray-1200",{"text-xxs":n==="sm","text-xs":n==="md"}),children:[c,"%"]})}),C[27]=c,C[28]=o,C[29]=n,C[30]=y):y=C[30];let k;C[31]!==w||C[32]!==y?(k=m.jsxs("div",{className:"relative",children:[w,y]}),C[31]=w,C[32]=y,C[33]=k):k=C[33];let R;return C[34]!==L||C[35]!==k||C[36]!==p?(R=m.jsx("div",{className:p,"data-ox-slot":"progress",...L,children:k}),C[34]=L,C[35]=k,C[36]=p,C[37]=R):R=C[37],R},I0=No2;I0.Circular=jo2;const J5=H=>{const C=T.compilerRuntimeExports.c(13);let V,L,e,M;C[0]!==H?({className:V,decorative:e,orientation:M,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=e===void 0?!0:e,t=M===void 0?"horizontal":M,i=r?void 0:t,a=t==="horizontal"?"h-0.25 w-full":"h-full w-0.25";let o;C[5]!==V||C[6]!==a?(o=B("shrink-0 bg-gray-400",a,V),C[5]=V,C[6]=a,C[7]=o):o=C[7];const n=r?"none":"separator";let A;return C[8]!==L||C[9]!==i||C[10]!==o||C[11]!==n?(A=m.jsx("div",{"aria-orientation":i,className:o,"data-ox-slot":"separator",role:n,...L}),C[8]=L,C[9]=i,C[10]=o,C[11]=n,C[12]=A):A=C[12],A},Wo2={rectangle:"rounded-lg",circle:"rounded-full"},h2=H=>{const C=T.compilerRuntimeExports.c(22);let V,L,e,M,r,t,i,a;C[0]!==H?({animate:M,className:V,color:r,fullWidth:t,height:e,shape:i,width:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=M===void 0?!0:M,n=r===void 0?"gray":r,A=t===void 0?!1:t,d=i===void 0?"rectangle":i,l=typeof e=="number"?`${e}px`:e,s=typeof a=="number"?`${a}px`:a;let c;C[9]!==l||C[10]!==s?(c={height:l,width:s},C[9]=l,C[10]=s,C[11]=c):c=C[11];const v=c,u=d1[n],Z=Wo2[d];let f;C[12]!==o||C[13]!==V||C[14]!==A||C[15]!==u.background||C[16]!==Z?(f=B("relative overflow-hidden",u.background,Z,{"animate-pulse":o,"w-full":A},V),C[12]=o,C[13]=V,C[14]=A,C[15]=u.background,C[16]=Z,C[17]=f):f=C[17];let S;return C[18]!==L||C[19]!==v||C[20]!==f?(S=m.jsx("div",{"aria-busy":"true","aria-label":"Loading...",className:f,"data-ox-slot":"skeleton",role:"status",style:v,...L}),C[18]=L,C[19]=v,C[20]=f,C[21]=S):S=C[21],S},zo2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t,i,a;C[0]!==H?({animate:e,className:V,color:M,fullWidth:r,height:t,lines:i,width:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=e===void 0?!0:e,n=M===void 0?"gray":M,A=r===void 0?!1:r,d=t===void 0?20:t,l=i===void 0?1:i;let s;C[9]!==A||C[10]!==a?(s=S=>{if(!A){if(a!==void 0&&!Array.isArray(a))return typeof a=="number"?`${a}px`:a;if(Array.isArray(a)&&a.length>0){const p=a[S%a.length];return typeof p=="number"?`${p}px`:p}return"100px"}},C[9]=A,C[10]=a,C[11]=s):s=C[11];const c=s;let v;C[12]!==V?(v=B("flex flex-col space-y-2",V),C[12]=V,C[13]=v):v=C[13];let u;C[14]!==l?(u=Array.from({length:l}),C[14]=l,C[15]=u):u=C[15];let Z;C[16]!==o||C[17]!==n||C[18]!==A||C[19]!==c||C[20]!==d||C[21]!==u?(Z=u.map((S,p)=>m.jsx(h2,{animate:o,color:n,"data-ox-slot":"skeleton-text",fullWidth:A,height:d,width:c(p)},p)),C[16]=o,C[17]=n,C[18]=A,C[19]=c,C[20]=d,C[21]=u,C[22]=Z):Z=C[22];let f;return C[23]!==L||C[24]!==v||C[25]!==Z?(f=m.jsx("div",{className:v,...L,children:Z}),C[23]=L,C[24]=v,C[25]=Z,C[26]=f):f=C[26],f},$o2={sm:{track:"h-1",handle:"size-4",text:"text-xs"},md:{track:"h-2",handle:"size-5",text:"text-sm"}},N3=(H,C,V)=>{if(Array.isArray(H))return[Math.max(C,Math.min(V,H[0])),Math.max(C,Math.min(V,H[1]))];const L=Math.max(C,Math.min(V,H));return[L,L]},I3=(H,C,V)=>(H-C)/(V-C)*100,_o2=(H,C,V,L)=>{const e=C+H/100*(V-C),M=Math.round(e/L)*L;return Math.max(C,Math.min(V,M))},Go2=H=>{const C=T.compilerRuntimeExports.c(126);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c;C[0]!==H?({"aria-label":V,"aria-labelledby":L,className:e,defaultValue:a,disabled:o,max:n,min:A,onChange:t,onChangeCommitted:i,orientation:d,showValue:l,size:s,step:c,value:M,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15]);const v=a===void 0?0:a,u=o===void 0?!1:o,Z=n===void 0?100:n,f=A===void 0?0:A,S=d===void 0?"horizontal":d,p=l===void 0?!1:l,g=s===void 0?"md":s,h=c===void 0?1:c,O=D.useRef(null),x=D.useRef(!1),b=D.useRef(0),w=M!==void 0,y=Array.isArray(v)||Array.isArray(M),k=M||v;let R;C[16]!==Z||C[17]!==f||C[18]!==k?(R=N3(k,f,Z),C[16]=Z,C[17]=f,C[18]=k,C[19]=R):R=C[19];const[N,j]=D.useState(R);let F;C[20]!==M||C[21]!==N||C[22]!==w||C[23]!==Z||C[24]!==f?(F=w?N3(M,f,Z):N,C[20]=M,C[21]=N,C[22]=w,C[23]=Z,C[24]=f,C[25]=F):F=C[25];const I=F;let P;C[26]!==u||C[27]!==w||C[28]!==y||C[29]!==t?(P=m1=>{if(u)return;const n1=y?m1:m1[0];w||j(m1),t?.(n1)},C[26]=u,C[27]=w,C[28]=y,C[29]=t,C[30]=P):P=C[30];const E=P;let $;C[31]!==Z||C[32]!==f||C[33]!==S||C[34]!==h?($=m1=>{if(!O.current)return f;const n1=O.current.getBoundingClientRect(),T1=S==="horizontal"?(m1.clientX-n1.left)/n1.width*100:(n1.bottom-m1.clientY)/n1.height*100;return _o2(Math.max(0,Math.min(100,T1)),f,Z,h)},C[31]=Z,C[32]=f,C[33]=S,C[34]=h,C[35]=$):$=C[35];const W=$;let G;C[36]!==I||C[37]!==u||C[38]!==W||C[39]!==E||C[40]!==y?(G=(m1,n1)=>{if(u)return;m1.preventDefault(),x.current=!0,b.current=n1||0;const T1=W(m1);if(y&&n1!==void 0){const l1=[...I];l1[n1]=T1,n1===0&&l1[0]>l1[1]?l1[1]=l1[0]:n1===1&&l1[1]<l1[0]&&(l1[0]=l1[1]),E(l1)}else E([T1,T1])},C[36]=I,C[37]=u,C[38]=W,C[39]=E,C[40]=y,C[41]=G):G=C[41];const U=G;let Y;C[42]!==I||C[43]!==u||C[44]!==W||C[45]!==E||C[46]!==y?(Y=m1=>{if(u||x.current)return;const n1=W(m1);if(y){const[T1,l1]=I,N1=Math.abs(n1-T1),c7=Math.abs(n1-l1),v7=N1<=c7?0:1,r3=[...I];r3[v7]=n1,E(r3)}else E([n1,n1])},C[42]=I,C[43]=u,C[44]=W,C[45]=E,C[46]=y,C[47]=Y):Y=C[47];const _=Y;let q;C[48]!==I||C[49]!==u||C[50]!==E||C[51]!==y||C[52]!==Z||C[53]!==f||C[54]!==h?(q=(m1,n1)=>{if(u)return;let T1;C:switch(m1.key){case"ArrowRight":case"ArrowUp":{T1=h;break C}case"ArrowLeft":case"ArrowDown":{T1=-h;break C}case"PageUp":{T1=(Z-f)*.1;break C}case"PageDown":{T1=-(Z-f)*.1;break C}case"Home":{T1=f-I[n1];break C}case"End":{T1=Z-I[n1];break C}default:return}m1.preventDefault();const l1=[...I];l1[n1]=Math.max(f,Math.min(Z,I[n1]+T1)),y&&(n1===0&&l1[0]>l1[1]?l1[1]=l1[0]:n1===1&&l1[1]<l1[0]&&(l1[0]=l1[1])),E(l1)},C[48]=I,C[49]=u,C[50]=E,C[51]=y,C[52]=Z,C[53]=f,C[54]=h,C[55]=q):q=C[55];const K=q;let Q,X;C[56]!==I||C[57]!==W||C[58]!==E||C[59]!==y||C[60]!==i?(Q=()=>{const m1=T1=>{if(!x.current)return;const l1=W(T1);if(y){const N1=[...I];N1[b.current]=l1,b.current===0&&N1[0]>N1[1]?N1[1]=N1[0]:b.current===1&&N1[1]<N1[0]&&(N1[0]=N1[1]),E(N1)}else E([l1,l1])},n1=()=>{x.current&&(x.current=!1,i?.(y?I:I[0]))};return x.current&&(document.addEventListener("mousemove",m1),document.addEventListener("mouseup",n1)),()=>{document.removeEventListener("mousemove",m1),document.removeEventListener("mouseup",n1)}},X=[W,y,I,E,i],C[56]=I,C[57]=W,C[58]=E,C[59]=y,C[60]=i,C[61]=Q,C[62]=X):(Q=C[61],X=C[62]),D.useEffect(Q,X);const z=$o2[g],[H1,M1]=I,L1=I3(H1,f,Z),c1=I3(M1,f,Z);let S1;C[63]!==e?(S1=B("w-full py-3",e),C[63]=e,C[64]=S1):S1=C[64];let v1;C[65]!==u||C[66]!==z.track?(v1=B("relative w-full cursor-pointer rounded-full bg-gray-300",z.track,{"ox-default-disabled":u}),C[65]=u,C[66]=z.track,C[67]=v1):v1=C[67];const k1=`${y?L1:0}%`,E1=`${y?c1-L1:L1}%`;let D1;C[68]!==k1||C[69]!==E1?(D1=m.jsx("div",{className:"absolute h-full rounded-full bg-violet-700",style:{left:k1,width:E1}}),C[68]=k1,C[69]=E1,C[70]=D1):D1=C[70];const W1=y?`${V} minimum`:V,J1=String(H1);let V1;C[71]!==u||C[72]!==z.handle?(V1=B("ox-violet-outset-focus absolute top-1/2 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-violet-700 bg-gray-50 active:cursor-grabbing",z.handle,{"cursor-not-allowed":u}),C[71]=u,C[72]=z.handle,C[73]=V1):V1=C[73];const A1=`${L1}%`;let P1;C[74]!==A1?(P1={left:A1},C[74]=A1,C[75]=P1):P1=C[75];const C2=u?-1:0;let L2;C[76]!==K?(L2=m1=>K(m1,0),C[76]=K,C[77]=L2):L2=C[77];let o2;C[78]!==U?(o2=m1=>U(m1,0),C[78]=U,C[79]=o2):o2=C[79];let n2;C[80]!==L||C[81]!==Z||C[82]!==f||C[83]!==H1||C[84]!==S||C[85]!==W1||C[86]!==J1||C[87]!==V1||C[88]!==P1||C[89]!==C2||C[90]!==L2||C[91]!==o2?(n2=m.jsx("div",{"aria-label":W1,"aria-labelledby":L,"aria-orientation":S,"aria-valuemax":Z,"aria-valuemin":f,"aria-valuenow":H1,"aria-valuetext":J1,className:V1,role:"slider",style:P1,tabIndex:C2,onKeyDown:L2,onMouseDown:o2}),C[80]=L,C[81]=Z,C[82]=f,C[83]=H1,C[84]=S,C[85]=W1,C[86]=J1,C[87]=V1,C[88]=P1,C[89]=C2,C[90]=L2,C[91]=o2,C[92]=n2):n2=C[92];let A2;C[93]!==V||C[94]!==L||C[95]!==u||C[96]!==K||C[97]!==U||C[98]!==y||C[99]!==Z||C[100]!==c1||C[101]!==M1||C[102]!==f||C[103]!==S||C[104]!==z.handle?(A2=y?m.jsx("div",{"aria-label":y?`${V} maximum`:V,"aria-labelledby":L,"aria-orientation":S,"aria-valuemax":Z,"aria-valuemin":f,"aria-valuenow":M1,"aria-valuetext":String(M1),className:B("ox-violet-outset-focus absolute top-1/2 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-violet-700 bg-gray-50 active:cursor-grabbing",z.handle,{"cursor-not-allowed":u}),role:"slider",style:{left:`${c1}%`},tabIndex:u?-1:0,onKeyDown:m1=>K(m1,1),onMouseDown:m1=>U(m1,1)}):null,C[93]=V,C[94]=L,C[95]=u,C[96]=K,C[97]=U,C[98]=y,C[99]=Z,C[100]=c1,C[101]=M1,C[102]=f,C[103]=S,C[104]=z.handle,C[105]=A2):A2=C[105];let l2;C[106]!==_||C[107]!==v1||C[108]!==D1||C[109]!==n2||C[110]!==A2?(l2=m.jsxs("div",{className:v1,ref:O,onClick:_,children:[D1,n2,A2]}),C[106]=_,C[107]=v1,C[108]=D1,C[109]=n2,C[110]=A2,C[111]=l2):l2=C[111];let d2;C[112]!==y||C[113]!==Z||C[114]!==M1||C[115]!==f||C[116]!==H1||C[117]!==p?(d2=p&&m.jsxs("div",{className:B("mt-2 flex justify-between text-xs text-gray-1000"),children:[m.jsx("span",{children:y?`${H1} - ${M1}`:H1}),m.jsxs("span",{children:[f," - ",Z]})]}),C[112]=y,C[113]=Z,C[114]=M1,C[115]=f,C[116]=H1,C[117]=p,C[118]=d2):d2=C[118];let s2;C[119]!==l2||C[120]!==d2?(s2=m.jsxs("div",{className:"relative py-3",children:[l2,d2]}),C[119]=l2,C[120]=d2,C[121]=s2):s2=C[121];let D2;return C[122]!==r||C[123]!==S1||C[124]!==s2?(D2=m.jsx("div",{className:S1,"data-ox-slot":"slider",...r,children:s2}),C[122]=r,C[123]=S1,C[124]=s2,C[125]=D2):D2=C[125],D2},Uo2={loading:{title:"Loading...",message:"Good things take time",icon:"mdiLoading",showAction:!1},empty:{title:"Nothing here",message:"It's so empty... like my soul",icon:"mdiPackageVariant",showAction:!1},offline:{title:"You're offline",message:"Did you forget to pay the internet bill?",icon:"mdiWifiOff",showAction:!0},success:{title:"Success!",message:"Everything went perfectly as planned",icon:"mdiCheckCircle",showAction:!1},warning:{title:"Heads up!",message:"Something needs your attention",icon:"mdiAlertCircle",showAction:!1},info:{title:"Just so you know",message:"Here's some helpful information",icon:"mdiInformationCircle",showAction:!1},401:{title:"Please log in",message:"You need to authenticate to access this page",showAction:!0},403:{title:"Access denied",message:"You don't have permission to view this content",showAction:!0},404:{title:"Page not found",message:"Nothing to see here... just... go away... now.",showAction:!0},408:{title:"Request timeout",message:"Taking too long? Try refreshing the page",showAction:!0},429:{title:"Slow down there!",message:"Too many requests. Take a coffee break",showAction:!0},500:{title:"Oops! We broke something",message:"Don't worry, it's not your fault... probably",showAction:!0},502:{title:"Bad gateway",message:"The server is having an existential crisis",showAction:!0},503:{title:"Taking a quick nap",message:"Service will be back after coffee break",showAction:!0},504:{title:"Server timeout",message:"Server is slower than a Windows 95 boot",showAction:!0}},Qo2={sm:{container:"max-w-sm space-y-4",spacing:"space-y-1",title:"text-lg",message:s1.sm,numberText:"text-3xl"},md:{container:"max-w-md space-y-6",spacing:"space-y-2",title:"text-xl",message:"text-base",numberText:"text-4xl"}},qo2=H=>H==="success"?F1.success:H==="warning"?F1.warning:H==="info"?F1.info:typeof H=="number"?F1.error:{text:"text-violet-700"},Yo2=H=>{const C=T.compilerRuntimeExports.c(76);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({action:V,children:L,className:e,inline:i,message:r,onBack:t,size:a,title:o,type:n,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?!1:i,d=a===void 0?"sm":a;if(L){let G;C[11]!==e?(G=B("min-h-screen w-full",e),C[11]=e,C[12]=G):G=C[12];let U;return C[13]!==L||C[14]!==G?(U=m.jsx("div",{className:G,children:L}),C[13]=L,C[14]=G,C[15]=U):U=C[15],U}const l=Uo2[n],s=o||l.title,c=r||l.message;let v;C[16]!==t?(v=()=>{t?t():window.history.back()},C[16]=t,C[17]=v):v=C[17];const u=v;let Z;C[18]!==V||C[19]!==l.showAction||C[20]!==u||C[21]!==d?(Z=()=>V!==void 0?V:l.showAction?m.jsx(x1,{size:d,variant:"secondary",onClick:u,children:"Back"}):null,C[18]=V,C[19]=l.showAction,C[20]=u,C[21]=d,C[22]=Z):Z=C[22];const f=Z,S=Qo2[d];let p,g,h,O,x,b,w,y;if(C[23]!==e||C[24]!==l.icon||C[25]!==M||C[26]!==A||C[27]!==d||C[28]!==S.container||C[29]!==S.numberText||C[30]!==n){const G=qo2(n);w=typeof n=="number"?"assertive":"polite";const U=!A;C[39]!==e||C[40]!==A||C[41]!==U?(y=B("flex w-full items-center justify-center",{"min-h-screen bg-gray-50":U,"h-full":A},e),C[39]=e,C[40]=A,C[41]=U,C[42]=y):y=C[42],p="status-display",g=typeof n=="number"?"alert":"status",h=M,C[43]!==S.container?(b=B("flex flex-col items-center text-center",S.container),C[43]=S.container,C[44]=b):b=C[44],O="flex items-center space-x-4",x=l.icon?m.jsx(a1,{className:B(G.text,{"animate-spin":n==="loading"}),path:l.icon,size:d==="md"?1.75:1.25}):typeof n=="number"?m.jsx("div",{className:B("bg-gradient-to-br from-violet-700 from-20% to-rose-500 bg-clip-text font-bold text-transparent",S.numberText),children:n}):null,C[23]=e,C[24]=l.icon,C[25]=M,C[26]=A,C[27]=d,C[28]=S.container,C[29]=S.numberText,C[30]=n,C[31]=p,C[32]=g,C[33]=h,C[34]=O,C[35]=x,C[36]=b,C[37]=w,C[38]=y}else p=C[31],g=C[32],h=C[33],O=C[34],x=C[35],b=C[36],w=C[37],y=C[38];let k;C[45]!==O||C[46]!==x?(k=m.jsx("div",{className:O,children:x}),C[45]=O,C[46]=x,C[47]=k):k=C[47];const R=S.spacing;let N;C[48]!==S.title?(N=B("font-bold text-gray-1200",S.title),C[48]=S.title,C[49]=N):N=C[49];let j;C[50]!==s||C[51]!==N?(j=m.jsx("h1",{id:"status-title","aria-describedby":"status-message",className:N,children:s}),C[50]=s,C[51]=N,C[52]=j):j=C[52];let F;C[53]!==S.message?(F=B("text-gray-1000",S.message),C[53]=S.message,C[54]=F):F=C[54];let I;C[55]!==c||C[56]!==F?(I=m.jsx("p",{id:"status-message",className:F,children:c}),C[55]=c,C[56]=F,C[57]=I):I=C[57];let P;C[58]!==S.spacing||C[59]!==j||C[60]!==I?(P=m.jsxs("div",{className:R,children:[j,I]}),C[58]=S.spacing,C[59]=j,C[60]=I,C[61]=P):P=C[61];let E;C[62]!==f?(E=f(),C[62]=f,C[63]=E):E=C[63];let $;C[64]!==k||C[65]!==P||C[66]!==E||C[67]!==b?($=m.jsxs("div",{className:b,children:[k,P,E]}),C[64]=k,C[65]=P,C[66]=E,C[67]=b,C[68]=$):$=C[68];let W;return C[69]!==p||C[70]!==g||C[71]!==h||C[72]!==$||C[73]!==w||C[74]!==y?(W=m.jsx("div",{"aria-live":w,className:y,"data-ox-slot":p,role:g,...h,children:$}),C[69]=p,C[70]=g,C[71]=h,C[72]=$,C[73]=w,C[74]=y,C[75]=W):W=C[75],W},j0=D.createContext(null),C3=()=>{const H=D.useContext(j0);if(!H)throw new Error("OxStepperItem must be used within OxStepper");return H},W0=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{orientation:M}=C3(),r=M==="vertical";let t;C[4]!==L||C[5]!==r?(t=B("mt-2 p-4",{"border-t border-gray-400":r},L),C[4]=L,C[5]=r,C[6]=t):t=C[6];let i;return C[7]!==V||C[8]!==e||C[9]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"stepper-actions",...e,children:V}),C[7]=V,C[8]=e,C[9]=t,C[10]=i):i=C[10],i},Ko2=(H,C,V)=>H==="error"?F1.error.icon:H==="warning"?F1.warning.icon:C||(V?F1.success.icon:null),z0=(H,C)=>H==="error"?F1.error:H==="warning"?F1.warning:d1[C],j3=(H,C)=>H==="error"||H==="warning"?C.text:"text-gray-1200",$0=H=>{const C=T.compilerRuntimeExports.c(18);let V,L,e,M;C[0]!==H?({className:V,state:e,stepIndex:M,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{color:r,currentStep:t,orientation:i}=C3(),a=t>M,o=e||(a?"completed":"current");let n;C[5]!==o||C[6]!==r?(n=z0(o,r),C[5]=o,C[6]=r,C[7]=n):n=C[7];const A=n,d=i==="horizontal",l=i==="vertical",s=!a;let c;C[8]!==V||C[9]!==a||C[10]!==A.border||C[11]!==d||C[12]!==l||C[13]!==s?(c=B("flex-1 border transition-colors duration-300",{"mx-4 mt-[19px]":d,"my-2 min-h-6":l,"border-gray-400":s,[A.border]:a},V),C[8]=V,C[9]=a,C[10]=A.border,C[11]=d,C[12]=l,C[13]=s,C[14]=c):c=C[14];let v;return C[15]!==L||C[16]!==c?(v=m.jsx("div",{className:c,"data-ox-slot":"stepper-connector",...L}),C[15]=L,C[16]=c,C[17]=v):v=C[17],v},u2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,disabled:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!1:M;let t;C[5]!==L||C[6]!==r?(t=B("text-xs leading-relaxed text-pretty text-gray-1100",{"ox-default-disabled":r},L),C[5]=L,C[6]=r,C[7]=t):t=C[7];let i;return C[8]!==V||C[9]!==e||C[10]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"description",...e,children:V}),C[8]=V,C[9]=e,C[10]=t,C[11]=i):i=C[11],i},_0=H=>{const C=T.compilerRuntimeExports.c(14);let V,L,e,M;C[0]!==H?({children:V,className:L,icon:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?"mdiAlertCircleOutline":M;if(!V)return null;let t;C[5]!==L?(t=B("grid grid-cols-[auto_1fr] items-center gap-1 text-xs text-pretty text-rose-400",L),C[5]=L,C[6]=t):t=C[6];let i;C[7]!==r?(i=r?m.jsx(a1,{className:"shrink-0 text-current",path:r,size:R1.md}):null,C[7]=r,C[8]=i):i=C[8];let a;return C[9]!==V||C[10]!==e||C[11]!==t||C[12]!==i?(a=m.jsxs("div",{className:t,"data-ox-slot":"error",role:"alert",...e,children:[i,V]}),C[9]=V,C[10]=e,C[11]=t,C[12]=i,C[13]=a):a=C[13],a},Xo2={1:"text-2xl font-bold",2:"text-xl font-semibold",3:"text-lg font-semibold",4:"text-base font-semibold",5:"text-sm font-semibold",6:"text-sm font-medium",7:"text-sm"},G0=({as:H="h2",children:C,className:V,level:L,...e})=>{const M=L??(H!=="div"?parseInt(H.slice(1)):2),r=T.clamp(M,1,7),t={className:B("text-gray-1200",Xo2[r],V),"data-ox-slot":"heading",...e,...H==="div"&&{role:"heading","aria-level":M}};return D.createElement(H,t,C)},U0=H=>{const C=T.compilerRuntimeExports.c(19);let V,L,e,M,r,t;C[0]!==H?({children:V,className:L,disabled:r,htmlFor:M,required:t,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=r===void 0?!1:r,a=t===void 0?!1:t,o=!i;let n;C[7]!==L||C[8]!==i||C[9]!==o?(n=B("block text-sm font-medium",{"text-gray-1200":o,"ox-default-disabled":i},L),C[7]=L,C[8]=i,C[9]=o,C[10]=n):n=C[10];let A;C[11]!==a?(A=a&&m.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),C[11]=a,C[12]=A):A=C[12];let d;return C[13]!==V||C[14]!==e||C[15]!==M||C[16]!==n||C[17]!==A?(d=m.jsxs("label",{className:n,"data-ox-slot":"label",htmlFor:M,...e,children:[V,A]}),C[13]=V,C[14]=e,C[15]=M,C[16]=n,C[17]=A,C[18]=d):d=C[18],d},Jo2=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,required:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?!1:r,a=!t;let o;C[6]!==L||C[7]!==t||C[8]!==a?(o=B("block text-base font-semibold",{"text-gray-1200":a,"ox-default-disabled":t},L),C[6]=L,C[7]=t,C[8]=a,C[9]=o):o=C[9];let n;C[10]!==i?(n=i&&m.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),C[10]=i,C[11]=n):n=C[11];let A;return C[12]!==V||C[13]!==e||C[14]!==o||C[15]!==n?(A=m.jsxs("legend",{className:o,"data-ox-slot":"legend",...e,children:[V,n]}),C[12]=V,C[13]=e,C[14]=o,C[15]=n,C[16]=A):A=C[16],A},Cn2={completed:"check",error:"close",warning:"warning",current:"current step",upcoming:"upcoming step"},Q0=H=>{const C=T.compilerRuntimeExports.c(73);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,description:e,icon:r,state:t,stepIndex:i,title:a,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=i===void 0?0:i,{color:n,currentStep:A,onStepChange:d,orientation:l,totalSteps:s,type:c}=C3(),v=A===o,u=A>o,Z=t||(o<A?"completed":o===A?"current":"upcoming"),f=c==="non-linear"||u||v;let S;C[9]!==Z||C[10]!==r||C[11]!==u?(S=Ko2(Z,r,u),C[9]=Z,C[10]=r,C[11]=u,C[12]=S):S=C[12];const p=S;let g,h,O,x,b,w,y,k;if(C[13]!==Z||C[14]!==f||C[15]!==L||C[16]!==n||C[17]!==e||C[18]!==M||C[19]!==v||C[20]!==d||C[21]!==l||C[22]!==t||C[23]!==p||C[24]!==o||C[25]!==a||C[26]!==s){g=Symbol.for("react.early_return_sentinel");C:{const E=z0(Z,n);let $;C[35]!==f||C[36]!==d||C[37]!==o?($=()=>{f&&d&&d(o)},C[35]=f,C[36]=d,C[37]=o,C[38]=$):$=C[38];const W=$,G=()=>m.jsx("button",{"aria-current":v?"step":void 0,"aria-describedby":e?`step-${o}-desc`:void 0,"aria-label":`${a} - ${Cn2[Z]} (${o+1} of ${s})`,className:B("flex items-center justify-center rounded-lg transition-colors","enabled:cursor-pointer",Z==="error"?"ox-rose-outset-focus":"ox-violet-outset-focus",{"cursor-pointer":f,"opacity-50":Z==="upcoming"}),disabled:!f,type:"button",onClick:W,children:m.jsx("div",{className:B("flex size-10 flex-shrink-0 items-center justify-center rounded-lg border",E.border,E.background),children:p?m.jsx(a1,{className:E.text,path:p}):m.jsx("span",{className:B("text-base font-medium text-current"),children:o+1})})});if(l==="horizontal"){let Y;C[39]!==L?(Y=B("flex flex-col items-center text-center",L),C[39]=L,C[40]=Y):Y=C[40];let _;C[41]!==e||C[42]!==o?(_=e?m.jsx(u2,{id:`step-${o}-desc`,children:e}):null,C[41]=e,C[42]=o,C[43]=_):_=C[43],g=m.jsxs("div",{className:Y,"data-ox-slot":"stepper-item",...M,children:[G(),m.jsxs("div",{className:"mt-2",children:[m.jsx("h6",{className:B("text-sm font-medium",j3(Z,E)),children:a}),_]})]});break C}C[44]!==L?(b=B("flex gap-3",L),C[44]=L,C[45]=b):b=C[45],w="stepper-item",y=M;let U;C[46]!==t||C[47]!==o||C[48]!==s?(U=o<s-1?m.jsx($0,{state:t,stepIndex:o}):null,C[46]=t,C[47]=o,C[48]=s,C[49]=U):U=C[49],k=m.jsxs("div",{className:"flex flex-col items-center",children:[G(),U]}),x="flex-1",O="mb-4",h=B("text-sm font-medium",j3(Z,E))}C[13]=Z,C[14]=f,C[15]=L,C[16]=n,C[17]=e,C[18]=M,C[19]=v,C[20]=d,C[21]=l,C[22]=t,C[23]=p,C[24]=o,C[25]=a,C[26]=s,C[27]=g,C[28]=h,C[29]=O,C[30]=x,C[31]=b,C[32]=w,C[33]=y,C[34]=k}else g=C[27],h=C[28],O=C[29],x=C[30],b=C[31],w=C[32],y=C[33],k=C[34];if(g!==Symbol.for("react.early_return_sentinel"))return g;let R;C[50]!==h||C[51]!==a?(R=m.jsx("h6",{className:h,children:a}),C[50]=h,C[51]=a,C[52]=R):R=C[52];let N;C[53]!==e||C[54]!==o?(N=e?m.jsx(u2,{id:`step-${o}-desc`,children:e}):null,C[53]=e,C[54]=o,C[55]=N):N=C[55];let j;C[56]!==R||C[57]!==N||C[58]!==O?(j=m.jsxs("div",{className:O,children:[R,N]}),C[56]=R,C[57]=N,C[58]=O,C[59]=j):j=C[59];let F;C[60]!==V||C[61]!==v?(F=v&&V?m.jsx("div",{className:"ox-gray-border mb-4 rounded-lg bg-gray-50 p-4",children:V}):null,C[60]=V,C[61]=v,C[62]=F):F=C[62];let I;C[63]!==j||C[64]!==F||C[65]!==x?(I=m.jsxs("div",{className:x,children:[j,F]}),C[63]=j,C[64]=F,C[65]=x,C[66]=I):I=C[66];let P;return C[67]!==I||C[68]!==b||C[69]!==w||C[70]!==y||C[71]!==k?(P=m.jsxs("div",{className:b,"data-ox-slot":w,...y,children:[k,I]}),C[67]=I,C[68]=b,C[69]=w,C[70]=y,C[71]=k,C[72]=P):P=C[72],P},Hn2=H=>{const C=T.compilerRuntimeExports.c(46);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,color:r,currentStep:t,onStepChange:M,orientation:i,type:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?"violet":r,n=t===void 0?0:t,A=i===void 0?"vertical":i,d=a===void 0?"linear":a;let l,s,c,v,u,Z,f,S,p,g,h;if(C[9]!==V||C[10]!==L||C[11]!==o||C[12]!==n||C[13]!==e||C[14]!==M||C[15]!==A||C[16]!==d){const b=D.Children.toArray(V).filter(Vn2);let w;C[28]!==V?(w=D.Children.toArray(V).find(Ln2),C[28]=V,C[29]=w):w=C[29],s=w;const y=b.map(en2),k={color:o,currentStep:n,onStepChange:M,orientation:A,totalSteps:b.length,type:d};l=j0.Provider,Z=k,f="Step-by-step progress",S=b.length,p=n+1,C[30]!==L?(g=B("w-full",L),C[30]=L,C[31]=g):g=C[31],h="stepper",c="navigation",v=e,u=A==="horizontal"?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex w-full items-start",children:y.map((R,N)=>m.jsxs(D.Fragment,{children:[D.cloneElement(R,{className:B("min-w-0 flex-1",R.props.className)}),N<b.length-1?m.jsx($0,{state:b[N].props.state,stepIndex:N}):null]},N))}),b[n]?.props.children?m.jsx("div",{className:"ox-gray-border mt-6 rounded-lg bg-gray-50 p-4",children:b[n].props.children}):null]}):y,C[9]=V,C[10]=L,C[11]=o,C[12]=n,C[13]=e,C[14]=M,C[15]=A,C[16]=d,C[17]=l,C[18]=s,C[19]=c,C[20]=v,C[21]=u,C[22]=Z,C[23]=f,C[24]=S,C[25]=p,C[26]=g,C[27]=h}else l=C[17],s=C[18],c=C[19],v=C[20],u=C[21],Z=C[22],f=C[23],S=C[24],p=C[25],g=C[26],h=C[27];let O;C[32]!==s||C[33]!==c||C[34]!==v||C[35]!==u||C[36]!==f||C[37]!==S||C[38]!==p||C[39]!==g||C[40]!==h?(O=m.jsxs("div",{"aria-label":f,"aria-valuemax":S,"aria-valuenow":p,className:g,"data-ox-slot":h,role:c,...v,children:[u,s]}),C[32]=s,C[33]=c,C[34]=v,C[35]=u,C[36]=f,C[37]=S,C[38]=p,C[39]=g,C[40]=h,C[41]=O):O=C[41];let x;return C[42]!==l||C[43]!==Z||C[44]!==O?(x=m.jsx(l,{value:Z,children:O}),C[42]=l,C[43]=Z,C[44]=O,C[45]=x):x=C[45],x};function Vn2(H){return D.isValidElement(H)&&H.type===Q0}function Ln2(H){return D.isValidElement(H)&&H.type===W0}function en2(H,C){return D.cloneElement(H,{stepIndex:C,key:C})}const H3=Hn2;H3.Actions=W0;H3.Item=Q0;const q0=D.createContext(void 0),Mn2=H=>{const C=T.compilerRuntimeExports.c(50);let V,L,e,M,r,t,i,a,o,n,A,d;C[0]!==H?({allRowIds:r,children:V,className:L,hoverable:t,isLoading:i,onSelectionChange:M,selectable:a,selectedRows:o,skeletonColumns:n,skeletonRows:A,striped:d,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12]);let l;C[13]!==r?(l=r===void 0?[]:r,C[13]=r,C[14]=l):l=C[14];const s=l,c=t===void 0?!1:t,v=i===void 0?!1:i,u=a===void 0?!1:a;let Z;C[15]!==o?(Z=o===void 0?[]:o,C[15]=o,C[16]=Z):Z=C[16];const f=Z,S=n===void 0?3:n,p=A===void 0?5:A,g=d===void 0?!1:d,h=s.length>0&&f.length===s.length,O=f.length>0&&f.length<s.length,x=Math.max(1,Math.min(S,20)),b=Math.max(1,Math.min(p,50));let w;C[17]!==f?(w=P=>f.includes(P),C[17]=f,C[18]=w):w=C[18];let y;C[19]!==M||C[20]!==f?(y=P=>{if(!M)return;const E=f.includes(P);M(E?f.filter($=>$!==P):[...f,P])},C[19]=M,C[20]=f,C[21]=y):y=C[21];let k;C[22]!==s||C[23]!==h||C[24]!==M?(k=()=>{M&&M(h?[]:[...s])},C[22]=s,C[23]=h,C[24]=M,C[25]=k):k=C[25];let R;C[26]!==s||C[27]!==c||C[28]!==h||C[29]!==O||C[30]!==v||C[31]!==M||C[32]!==u||C[33]!==f||C[34]!==g||C[35]!==w||C[36]!==y||C[37]!==k||C[38]!==x||C[39]!==b?(R={allRowIds:s,hoverable:c,isLoading:v,selectable:u,selectedRows:f,skeletonColumns:x,skeletonRows:b,striped:g,onSelectionChange:M,isSelected:w,toggleSelection:y,toggleAll:k,isAllSelected:h,isIndeterminate:O},C[26]=s,C[27]=c,C[28]=h,C[29]=O,C[30]=v,C[31]=M,C[32]=u,C[33]=f,C[34]=g,C[35]=w,C[36]=y,C[37]=k,C[38]=x,C[39]=b,C[40]=R):R=C[40];const N=R;let j;C[41]!==L?(j=B("w-full table-auto sm:table-fixed",L),C[41]=L,C[42]=j):j=C[42];let F;C[43]!==V||C[44]!==e||C[45]!==j?(F=m.jsx("div",{className:"rounded-lg bg-gray-50",children:m.jsx("table",{className:j,"data-ox-slot":"table",...e,children:V})}),C[43]=V,C[44]=e,C[45]=j,C[46]=F):F=C[46];let I;return C[47]!==N||C[48]!==F?(I=m.jsx(q0.Provider,{value:N,children:F}),C[47]=N,C[48]=F,C[49]=I):I=C[49],I},r5=()=>D.useContext(q0),Y0=H=>{const C=T.compilerRuntimeExports.c(7),{columns:V}=H,L=r5();let e;C[0]!==L?.selectable?(e=L?.selectable?m.jsx("td",{className:"px-3 py-2",children:m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(h2,{height:21,shape:"circle",width:16})})}):null,C[0]=L?.selectable,C[1]=e):e=C[1];let M;C[2]!==V?(M=Array.from({length:V}).map(rn2),C[2]=V,C[3]=M):M=C[3];let r;return C[4]!==e||C[5]!==M?(r=m.jsxs("tr",{className:"border-b border-gray-400 last:border-b-0",children:[e,M]}),C[4]=e,C[5]=M,C[6]=r):r=C[6],r};function rn2(H,C){return m.jsx("td",{className:"px-3 py-2",children:m.jsx(h2,{fullWidth:!0,height:21})},C)}const tn2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=r5();let r;C[4]!==V||C[5]!==M?(r=M?.isLoading?Array.from({length:M.skeletonRows}).map((i,a)=>m.jsx(Y0,{columns:M.skeletonColumns},a)):V,C[4]=V,C[5]=M,C[6]=r):r=C[6];let t;return C[7]!==L||C[8]!==e||C[9]!==r?(t=m.jsx("tbody",{className:L,"data-ox-slot":"table-body",...e,children:r}),C[7]=L,C[8]=e,C[9]=r,C[10]=t):t=C[10],t},in2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("px-3 py-2 text-sm text-gray-1200",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("td",{className:M,"data-ox-slot":"table-cell",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},an2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("mb-4 flex items-center justify-between gap-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"table-controls",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},on2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("border-t border-gray-400 bg-gray-100 font-semibold",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("tfoot",{className:M,"data-ox-slot":"table-footer",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},K0=D.createContext(void 0),nn2=()=>D.useContext(K0),An2={sm:"size-4.5",md:"size-5.5"},ln2=H=>{const C=T.compilerRuntimeExports.c(58);let V,L,e,M,r,t,i,a,o,n,A,d,l,s;C[0]!==H?({checked:V,className:L,defaultChecked:e,disabled:n,error:A,id:a,indeterminate:d,name:r,onChange:t,onCheckedChange:i,required:l,size:o,value:s,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14]);const c=n===void 0?!1:n,v=A===void 0?!1:A,u=d===void 0?!1:d,Z=l===void 0?!1:l,f=D.useId(),S=nn2(),p=D.useRef(null),h=`${a||f}-checkbox`,O=o||S?.size||"sm",x=c||S?.disabled||!1,b=r||S?.name,w=V!==void 0||S&&s!==void 0;let y;if(S&&s!==void 0){let X;C[15]!==S.value||C[16]!==s?(X=S.value?.includes(s)||!1,C[15]=S.value,C[16]=s,C[17]=X):X=C[17],y=X}else y=V??void 0;let k,R;C[18]!==u?(k=()=>{p.current&&(p.current.indeterminate=u)},R=[u],C[18]=u,C[19]=k,C[20]=R):(k=C[19],R=C[20]),D.useEffect(k,R);const N=u?"mixed":y===!0?"true":"false";let j;C[21]!==S||C[22]!==t||C[23]!==i||C[24]!==s?(j=X=>{const z=X.target.checked;if(S&&s!==void 0){const H1=S.value,M1=z?[...H1,s]:H1.filter(L1=>L1!==s);S.onChange?.(M1)}else t?.(X),i?.(z)},C[21]=S,C[22]=t,C[23]=i,C[24]=s,C[25]=j):j=C[25];const F=j,I=u?"mdiMinus":"mdiCheck";let P;C[26]!==y||C[27]!==e||C[28]!==w?(P=w?{checked:y}:{defaultChecked:e},C[26]=y,C[27]=e,C[28]=w,C[29]=P):P=C[29];const E=An2[O],$=!v;let W;C[30]!==L||C[31]!==v||C[32]!==$||C[33]!==E?(W=B("peer cursor-pointer appearance-none rounded-sm bg-gray-50",E,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":v,"ox-gray-border":$},L),C[30]=L,C[31]=v,C[32]=$,C[33]=E,C[34]=W):W=C[34];const G=x?"disabled":u?"indeterminate":y?"checked":"unchecked";let U;C[35]!==x||C[36]!==b||C[37]!==N||C[38]!==h||C[39]!==M||C[40]!==v||C[41]!==F||C[42]!==Z||C[43]!==W||C[44]!==G||C[45]!==P||C[46]!==s?(U=m.jsx("input",{id:h,"aria-checked":N,"aria-invalid":v,"aria-required":Z,"data-ox-slot":"checkbox",ref:p,...P,className:W,disabled:x,name:b,required:Z,type:"checkbox",value:s,onChange:F,...M,"data-ox-state":G}),C[35]=x,C[36]=b,C[37]=N,C[38]=h,C[39]=M,C[40]=v,C[41]=F,C[42]=Z,C[43]=W,C[44]=G,C[45]=P,C[46]=s,C[47]=U):U=C[47];const Y=!u;let _;C[48]!==u||C[49]!==Y?(_=B("pointer-events-none absolute inset-0 m-auto text-gray-1200",{"opacity-80":u,"opacity-0 peer-checked:opacity-80":Y}),C[48]=u,C[49]=Y,C[50]=_):_=C[50];const q=R1[O];let K;C[51]!==I||C[52]!==_||C[53]!==q?(K=m.jsx(a1,{className:_,path:I,size:q}),C[51]=I,C[52]=_,C[53]=q,C[54]=K):K=C[54];let Q;return C[55]!==U||C[56]!==K?(Q=m.jsxs("div",{className:"relative inline-flex shrink-0",children:[U,K]}),C[55]=U,C[56]=K,C[57]=Q):Q=C[57],Q},dn2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,disabled:t,name:M,onChange:r,size:i,value:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?"sm":i;let A;C[9]!==a?(A=a===void 0?[]:a,C[9]=a,C[10]=A):A=C[10];const d=A;let l;C[11]!==o||C[12]!==M||C[13]!==r||C[14]!==n||C[15]!==d?(l={value:d,onChange:r,name:M,size:n,disabled:o},C[11]=o,C[12]=M,C[13]=r,C[14]=n,C[15]=d,C[16]=l):l=C[16];let s;C[17]!==L?(s=B("space-y-2",L),C[17]=L,C[18]=s):s=C[18];let c;C[19]!==V||C[20]!==e||C[21]!==s?(c=m.jsx("div",{className:s,"data-ox-slot":"checkbox-group",role:"group",...e,children:V}),C[19]=V,C[20]=e,C[21]=s,C[22]=c):c=C[22];let v;return C[23]!==l||C[24]!==c?(v=m.jsx(K0.Provider,{value:l,children:c}),C[23]=l,C[24]=c,C[25]=v):v=C[25],v},t5=ln2;t5.Group=dn2;const X0=D.createContext(null),W3=H=>{const C={B:1,KB:1024,MB:1048576,GB:1073741824},V=H.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!V)throw new Error(`Invalid size format: ${H}. Use format like "5MB", "1.5GB", etc.`);const[,L,e]=V;return parseFloat(L)*C[e.toUpperCase()]},sn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),mn2=(H,C)=>C.some(V=>V.includes("/")?V.endsWith("/*")?H.type.startsWith(V.slice(0,-1)):H.type===V:H.name.toLowerCase().endsWith(`.${V.toLowerCase()}`)),cn2=H=>{const C=T.compilerRuntimeExports.c(68);let V,L,e,M,r,t,i,a,o,n,A;C[0]!==H?({accept:o,children:V,className:L,disabled:n,maxFiles:M,maxSize:r,minSize:t,multiple:A,onError:i,onFileSelect:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11]);let d;C[12]!==o?(d=o===void 0?[]:o,C[12]=o,C[13]=d):d=C[13];const l=d,s=n===void 0?!1:n,c=A===void 0?!1:A;let v;C[14]===Symbol.for("react.memo_cache_sentinel")?(v=[],C[14]=v):v=C[14];const[u,Z]=D.useState(v),[f,S]=D.useState(!1),[p,g]=D.useState();let h;C[15]!==l||C[16]!==M||C[17]!==r||C[18]!==t||C[19]!==c?(h=Q=>{if(!c&&Q.length>1)return"Only single file selection is allowed";if(M&&Q.length>M)return`Maximum ${M} file${M===1?"":"s"} allowed`;if(Q.length===0)return null;if(l.length>0&&Q.filter(z=>!mn2(z,l)).length>0)return`Invalid file type. Accepted formats: ${l.join(", ")}`;if(r){const X=W3(r);if(Q.filter(H1=>H1.size>X).length>0)return`File size must not exceed ${r}`}if(t){const X=W3(t);if(Q.filter(H1=>H1.size<X).length>0)return`File size must be at least ${t}`}return null},C[15]=l,C[16]=M,C[17]=r,C[18]=t,C[19]=c,C[20]=h):h=C[20];const O=h;let x;C[21]!==i||C[22]!==a||C[23]!==O?(x=Q=>{const X=O(Q);if(X){g(X),i?.(X);return}g(void 0),Z(Q),a?.(Q)},C[21]=i,C[22]=a,C[23]=O,C[24]=x):x=C[24];const b=x;let w;C[25]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{Z([]),g(void 0)},C[25]=w):w=C[25];const y=w;let k;C[26]!==l||C[27]!==s||C[28]!==p||C[29]!==u||C[30]!==f||C[31]!==M||C[32]!==r||C[33]!==t||C[34]!==c||C[35]!==i||C[36]!==a||C[37]!==b||C[38]!==O?(k={accept:l,clearFiles:y,disabled:s,error:p,files:u,isDragActive:f,maxFiles:M,maxSize:r,minSize:t,multiple:c,onError:i,onFileSelect:a,selectFiles:b,validateFiles:O},C[26]=l,C[27]=s,C[28]=p,C[29]=u,C[30]=f,C[31]=M,C[32]=r,C[33]=t,C[34]=c,C[35]=i,C[36]=a,C[37]=b,C[38]=O,C[39]=k):k=C[39];const R=k;let N;C[40]!==s?(N=Q=>{Q.preventDefault(),Q.stopPropagation(),s||S(!0)},C[40]=s,C[41]=N):N=C[41];const j=N;let F;C[42]!==s?(F=Q=>{Q.preventDefault(),Q.stopPropagation(),!s&&!Q.currentTarget.contains(Q.relatedTarget)&&S(!1)},C[42]=s,C[43]=F):F=C[43];const I=F,P=vn2;let E;C[44]!==s||C[45]!==b?(E=Q=>{if(Q.preventDefault(),Q.stopPropagation(),s)return;S(!1);const X=Array.from(Q.dataTransfer.files);b(X)},C[44]=s,C[45]=b,C[46]=E):E=C[46];const $=E;let W;C[47]!==L?(W=B("relative",L),C[47]=L,C[48]=W):W=C[48];const G=f?"drag-active":"idle";let U;C[49]!==l?(U=l.length>0?sn2(l):void 0,C[49]=l,C[50]=U):U=C[50];let Y;C[51]===Symbol.for("react.memo_cache_sentinel")?(Y={display:"none"},C[51]=Y):Y=C[51];let _;C[52]!==s||C[53]!==c||C[54]!==U?(_=m.jsx("input",{accept:U,className:"hidden","data-ox-slot":"file-upload-input",disabled:s,multiple:c,style:Y,type:"file"}),C[52]=s,C[53]=c,C[54]=U,C[55]=_):_=C[55];let q;C[56]!==V||C[57]!==e||C[58]!==j||C[59]!==I||C[60]!==$||C[61]!==W||C[62]!==G||C[63]!==_?(q=m.jsxs("div",{className:W,"data-ox-slot":"file-upload",...e,"data-ox-state":G,onDragEnter:j,onDragLeave:I,onDragOver:P,onDrop:$,children:[V,_]}),C[56]=V,C[57]=e,C[58]=j,C[59]=I,C[60]=$,C[61]=W,C[62]=G,C[63]=_,C[64]=q):q=C[64];let K;return C[65]!==R||C[66]!==q?(K=m.jsx(X0.Provider,{value:R,children:q}),C[65]=R,C[66]=q,C[67]=K):K=C[67],K};function vn2(H){H.preventDefault(),H.stopPropagation()}const V3=()=>{const H=D.useContext(X0);if(!H)throw new Error("useFileUploadContext must be used within a FileUploadContext.Provider");return H},un2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),Zn2=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useRef(null),{accept:r,disabled:t,error:i,isDragActive:a,multiple:o,selectFiles:n}=V3();let A;C[4]!==t?(A=()=>{!t&&M.current&&M.current.click()},C[4]=t,C[5]=A):A=C[5];const d=A;let l;C[6]!==n?(l=w=>{const y=Array.from(w.target.files||[]);y.length>0&&n(y),w.target.value=""},C[6]=n,C[7]=l):l=C[7];const s=l,c=!a&&!i,v=!i&&!t;let u;C[8]!==L||C[9]!==t||C[10]!==i||C[11]!==a||C[12]!==c||C[13]!==v?(u=B("rounded-lg border-2 border-dashed p-6 transition-all duration-200",{"border-gray-400 bg-gray-50":c,"border-violet-500 bg-gray-50":a,"border-rose-500 bg-gray-50":i,"cursor-pointer hover:border-violet-500 focus:border-violet-500 focus:outline-none":v,"ox-default-disabled":t},L),C[8]=L,C[9]=t,C[10]=i,C[11]=a,C[12]=c,C[13]=v,C[14]=u):u=C[14];const Z=t?-1:0,f=i?"error":a?"drag-active":t?"disabled":"idle";let S;C[15]!==t||C[16]!==d?(S=w=>{(w.key==="Enter"||w.key===" ")&&!t&&(w.preventDefault(),d())},C[15]=t,C[16]=d,C[17]=S):S=C[17];let p;C[18]!==i?(p=i&&m.jsx("div",{className:"mt-2 text-center text-sm text-rose-500",children:i}),C[18]=i,C[19]=p):p=C[19];let g;C[20]!==V||C[21]!==e||C[22]!==d||C[23]!==u||C[24]!==Z||C[25]!==f||C[26]!==S||C[27]!==p?(g=m.jsxs("div",{className:u,"data-ox-slot":"file-upload-area",role:"button",tabIndex:Z,...e,"data-ox-state":f,onClick:d,onKeyDown:S,children:[V,p]}),C[20]=V,C[21]=e,C[22]=d,C[23]=u,C[24]=Z,C[25]=f,C[26]=S,C[27]=p,C[28]=g):g=C[28];let h;C[29]!==r?(h=r.length>0?un2(r):void 0,C[29]=r,C[30]=h):h=C[30];let O;C[31]===Symbol.for("react.memo_cache_sentinel")?(O={display:"none"},C[31]=O):O=C[31];let x;C[32]!==t||C[33]!==s||C[34]!==o||C[35]!==h?(x=m.jsx("input",{accept:h,className:"hidden","data-ox-slot":"file-upload-area-input",disabled:t,multiple:o,ref:M,style:O,type:"file",onChange:s}),C[32]=t,C[33]=s,C[34]=o,C[35]=h,C[36]=x):x=C[36];let b;return C[37]!==g||C[38]!==x?(b=m.jsxs(m.Fragment,{children:[g,x]}),C[37]=g,C[38]=x,C[39]=b):b=C[39],b},Sn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),fn2=H=>{const C=T.compilerRuntimeExports.c(31);let V,L,e,M,r;C[0]!==H?({children:V,className:L,size:M,variant:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?"sm":M,i=r===void 0?"primary":r,a=D.useRef(null),{accept:o,disabled:n,multiple:A,selectFiles:d}=V3();let l;C[6]!==n?(l=()=>{!n&&a.current&&a.current.click()},C[6]=n,C[7]=l):l=C[7];const s=l;let c;C[8]!==d?(c=h=>{const O=Array.from(h.target.files||[]);O.length>0&&d(O),h.target.value=""},C[8]=d,C[9]=c):c=C[9];const v=c;let u;C[10]!==L?(u=B("cursor-pointer",L),C[10]=L,C[11]=u):u=C[11];let Z;C[12]!==V||C[13]!==n||C[14]!==e||C[15]!==s||C[16]!==t||C[17]!==u||C[18]!==i?(Z=m.jsx(x1,{className:u,"data-ox-slot":"file-upload-button",disabled:n,size:t,type:"button",variant:i,...e,onClick:s,children:V}),C[12]=V,C[13]=n,C[14]=e,C[15]=s,C[16]=t,C[17]=u,C[18]=i,C[19]=Z):Z=C[19];let f;C[20]!==o?(f=o.length>0?Sn2(o):void 0,C[20]=o,C[21]=f):f=C[21];let S;C[22]===Symbol.for("react.memo_cache_sentinel")?(S={display:"none"},C[22]=S):S=C[22];let p;C[23]!==n||C[24]!==v||C[25]!==A||C[26]!==f?(p=m.jsx("input",{accept:f,className:"hidden","data-ox-slot":"file-upload-button-input",disabled:n,multiple:A,ref:a,style:S,type:"file",onChange:v}),C[23]=n,C[24]=v,C[25]=A,C[26]=f,C[27]=p):p=C[27];let g;return C[28]!==Z||C[29]!==p?(g=m.jsxs(m.Fragment,{children:[Z,p]}),C[28]=Z,C[29]=p,C[30]=g):g=C[30],g},pn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),hn2=H=>{const C=T.compilerRuntimeExports.c(52);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useRef(null),[r,t]=D.useState(!1),{accept:i,disabled:a,isDragActive:o,multiple:n,selectFiles:A}=V3();let d;C[4]!==a?(d=()=>{!a&&M.current&&M.current.click()},C[4]=a,C[5]=d):d=C[5];const l=d;let s;C[6]!==A?(s=E=>{const $=Array.from(E.target.files||[]);$.length>0&&A($),E.target.value=""},C[6]=A,C[7]=s):s=C[7];const c=s,v=(r||o)&&!a;let u;C[8]!==L||C[9]!==a?(u=B("ox-backdrop-blur-parent group relative w-fit cursor-pointer overflow-hidden rounded-lg","ox-violet-outset-focus",{"cursor-not-allowed opacity-50":a},L),C[8]=L,C[9]=a,C[10]=u):u=C[10];const Z=a?-1:0,f=o?"drag-active":r?"hovered":a?"disabled":"idle";let S;C[11]!==a||C[12]!==l?(S=E=>{(E.key==="Enter"||E.key===" ")&&!a&&(E.preventDefault(),l())},C[11]=a,C[12]=l,C[13]=S):S=C[13];let p,g;C[14]===Symbol.for("react.memo_cache_sentinel")?(p=()=>t(!0),g=()=>t(!1),C[14]=p,C[15]=g):(p=C[14],g=C[15]);const h=!v;let O;C[16]!==o||C[17]!==v||C[18]!==h?(O=B("absolute inset-0 flex w-full items-center justify-center transition-all duration-200","bg-gray-50/50 backdrop-blur-[2px]",{"pointer-events-none opacity-0":h,"opacity-100":v,"bg-violet-700/60":o}),C[16]=o,C[17]=v,C[18]=h,C[19]=O):O=C[19];const x=!v;let b;C[20]!==o||C[21]!==v||C[22]!==x?(b=B("flex flex-col items-center gap-2 text-white transition-transform duration-200",{"scale-90":x,"scale-100":v,"scale-110":o}),C[20]=o,C[21]=v,C[22]=x,C[23]=b):b=C[23];const w=o?"mdiCloudUpload":"mdiUpload";let y;C[24]!==w?(y=m.jsx(a1,{className:"drop-shadow-sm",path:w,size:1.5}),C[24]=w,C[25]=y):y=C[25];let k;C[26]!==b||C[27]!==y?(k=m.jsx("div",{className:b,children:y}),C[26]=b,C[27]=y,C[28]=k):k=C[28];let R;C[29]!==O||C[30]!==k?(R=m.jsx("div",{className:O,"data-ox-slot":"file-upload-overlay-backdrop",children:k}),C[29]=O,C[30]=k,C[31]=R):R=C[31];let N;C[32]!==V||C[33]!==e||C[34]!==l||C[35]!==R||C[36]!==u||C[37]!==Z||C[38]!==f||C[39]!==S?(N=m.jsxs("div",{className:u,"data-ox-slot":"file-upload-overlay",role:"button",tabIndex:Z,...e,"data-ox-state":f,onClick:l,onKeyDown:S,onMouseEnter:p,onMouseLeave:g,children:[V,R]}),C[32]=V,C[33]=e,C[34]=l,C[35]=R,C[36]=u,C[37]=Z,C[38]=f,C[39]=S,C[40]=N):N=C[40];let j;C[41]!==i?(j=i.length>0?pn2(i):void 0,C[41]=i,C[42]=j):j=C[42];let F;C[43]===Symbol.for("react.memo_cache_sentinel")?(F={display:"none"},C[43]=F):F=C[43];let I;C[44]!==a||C[45]!==c||C[46]!==n||C[47]!==j?(I=m.jsx("input",{accept:j,className:"hidden","data-ox-slot":"file-upload-overlay-input",disabled:a,multiple:n,ref:M,style:F,type:"file",onChange:c}),C[44]=a,C[45]=c,C[46]=n,C[47]=j,C[48]=I):I=C[48];let P;return C[49]!==N||C[50]!==I?(P=m.jsxs(m.Fragment,{children:[N,I]}),C[49]=N,C[50]=I,C[51]=P):P=C[51],P},i5=cn2;i5.Area=Zn2;i5.Button=fn2;i5.Overlay=hn2;const gn2=H=>{const C=T.compilerRuntimeExports.c(14);let V,L,e,M,r;C[0]!==H?({children:V,className:L,fullWidth:M,noValidate:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?!0:r;let a;C[6]!==L||C[7]!==t?(a=B({"w-full":t},L),C[6]=L,C[7]=t,C[8]=a):a=C[8];let o;return C[9]!==V||C[10]!==e||C[11]!==i||C[12]!==a?(o=m.jsx("form",{className:a,"data-ox-slot":"form",noValidate:i,...e,children:V}),C[9]=V,C[10]=e,C[11]=i,C[12]=a,C[13]=o):o=C[13],o},On2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(u2,{...H}),C[0]=H,C[1]=V):V=C[1],V},xn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(_0,{...H}),C[0]=H,C[1]=V):V=C[1],V},bn2=B("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-1",'input[data-ox-slot="checkbox"]:[grid-column-start:1]','input[data-ox-slot="checkbox"]:[grid-row-start:1]','input[data-ox-slot="radio"]:[grid-column-start:1]','input[data-ox-slot="radio"]:[grid-row-start:1]','button[data-ox-slot="switch"]:[grid-column-start:1]','button[data-ox-slot="switch"]:[grid-row-start:1]',"*:data-[ox-slot=label]:[grid-column-start:2]","*:data-[ox-slot=label]:[grid-row-start:1]","*:data-[ox-slot=description]:[grid-column-start:2]","*:data-[ox-slot=description]:[grid-row-start:2]","*:data-[ox-slot=error]:[grid-column-start:2]","*:data-[ox-slot=error]:[grid-row-start:3]"),yn2=H=>{const C=T.compilerRuntimeExports.c(13);let V,L,e,M;C[0]!==H?({children:V,className:L,orientation:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?"vertical":M,t=r==="vertical",i=r==="horizontal";let a;C[5]!==L||C[6]!==t||C[7]!==i?(a=B({"space-y-1":t,[bn2]:i},L),C[5]=L,C[6]=t,C[7]=i,C[8]=a):a=C[8];let o;return C[9]!==V||C[10]!==e||C[11]!==a?(o=m.jsx("div",{className:a,"data-ox-slot":"form-field",...e,children:V}),C[9]=V,C[10]=e,C[11]=a,C[12]=o):o=C[12],o},wn2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,layout:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M==="grid";let t;C[5]!==L||C[6]!==r?(t=B("space-y-6",{"md:>*:data-[ox-slot=heading]:[grid-column:1] md:>*:data-[ox-slot=description]:[grid-column:1] md:>div:[grid-column:2] md:grid md:grid-cols-[1fr_2fr] md:gap-x-8 md:gap-y-3":r},L),C[5]=L,C[6]=r,C[7]=t):t=C[7];let i;return C[8]!==V||C[9]!==e||C[10]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"form-group",...e,children:V}),C[8]=V,C[9]=e,C[10]=t,C[11]=i):i=C[11],i},kn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(G0,{...H}),C[0]=H,C[1]=V):V=C[1],V},Pn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(U0,{...H}),C[0]=H,C[1]=V):V=C[1],V},t2=gn2;t2.Group=wn2;t2.Field=yn2;t2.Label=Pn2;t2.Description=On2;t2.Error=xn2;t2.GroupTitle=kn2;const R2=D.createContext(null),Y1=()=>{const H=D.useContext(R2);if(!H)throw new Error("useBaseInputContext must be used within a BaseInput component");return H},K1=H=>{const C=T.compilerRuntimeExports.c(18);let V,L,e,M;C[0]!==H?({children:V,className:L,path:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{disabled:r,size:t}=Y1(),i=s1[t],a=!M;let o;C[5]!==L||C[6]!==i||C[7]!==a?(o=B("enabled:cursor-pointer","disabled:ox-default-disabled",{[i]:a},L),C[5]=L,C[6]=i,C[7]=a,C[8]=o):o=C[8];let n;C[9]!==V||C[10]!==M||C[11]!==t?(n=M?m.jsx(a1,{path:M,size:R1[t]}):V,C[9]=V,C[10]=M,C[11]=t,C[12]=n):n=C[12];let A;return C[13]!==r||C[14]!==e||C[15]!==o||C[16]!==n?(A=m.jsx("button",{className:o,"data-ox-slot":"input-button",disabled:r,tabIndex:-1,type:"button",...e,children:n}),C[13]=r,C[14]=e,C[15]=o,C[16]=n,C[17]=A):A=C[17],A},Tn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},a5=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{error:M,showValidation:r,size:t,validationMessage:i}=Y1(),a=w1[t],o=!M;let n;C[4]!==L||C[5]!==M||C[6]!==a||C[7]!==o?(n=B("flex w-full items-center gap-1.5 rounded-lg bg-gray-50 p-1.5","ox-violet-outset-within-focus",a,{"ox-gray-border":o,"ox-rose-border":M},L),C[4]=L,C[5]=M,C[6]=a,C[7]=o,C[8]=n):n=C[8];let A;C[9]!==V||C[10]!==e||C[11]!==n?(A=m.jsx("div",{className:n,"data-ox-slot":"input-container",...e,children:V}),C[9]=V,C[10]=e,C[11]=n,C[12]=A):A=C[12];let d;return C[13]!==r||C[14]!==A||C[15]!==i?(d=m.jsx(m7,{content:i,open:r,position:"bottom",trigger:"click",variant:"error",children:A}),C[13]=r,C[14]=A,C[15]=i,C[16]=d):d=C[16],d},J0=D.createContext(null),C7=()=>{const H=D.useContext(J0);if(!H)throw new Error("useDateContext must be used within a DateInput component");return H},Bn2=()=>{const H=T.compilerRuntimeExports.c(10),{day:C,month:V,setValue:L,year:e}=C7(),{setOpen:M}=j1();let r;H[0]!==C||H[1]!==V||H[2]!==e?(r=C&&V&&e&&e.length===4?`${e}-${V.padStart(2,"0")}-${C.padStart(2,"0")}`:void 0,H[0]=C,H[1]=V,H[2]=e,H[3]=r):r=H[3];const t=r;let i;H[4]!==M||H[5]!==L?(i=n=>{const[A,d,l]=n.split("-");L({day:l,month:d,year:A}),M(!1)},H[4]=M,H[5]=L,H[6]=i):i=H[6];const a=i;let o;return H[7]!==t||H[8]!==a?(o=m.jsx(x0,{value:t,onChange:a}),H[7]=t,H[8]=a,H[9]=o):o=H[9],o},Rn2=H=>{const C=T.compilerRuntimeExports.c(21),{defaultValue:V,onChange:L,value:e}=H,M=V??"";let r;C[0]!==L?(r=g=>L?.(g??""),C[0]=L,C[1]=r):r=C[1];let t;C[2]!==M||C[3]!==r||C[4]!==e?(t={value:e,defaultValue:M,onChange:r},C[2]=M,C[3]=r,C[4]=e,C[5]=t):t=C[5];const[i,a]=T.useControllableState(t),o=En2,n=Fn2;let A;C[6]!==i?(A=o(i),C[6]=i,C[7]=A):A=C[7];const{day:d,month:l,year:s}=A;let c;C[8]!==d||C[9]!==l||C[10]!==a||C[11]!==s?(c=g=>{const h=g.day??d,O=g.month??l,x=g.year??s,b=n(h,O,x);a(b)},C[8]=d,C[9]=l,C[10]=a,C[11]=s,C[12]=c):c=C[12];const v=c;let u;C[13]===Symbol.for("react.memo_cache_sentinel")?(u=(g,h,O)=>{if(!g||!h||!O||O.length<4)return!1;const x=n(g,h,O),b=M8(x,"yyyy-MM-dd",new Date);return m0(b)},C[13]=u):u=C[13];const Z=u,f=Dn2,S=Nn2;let p;return C[14]!==i||C[15]!==d||C[16]!==l||C[17]!==a||C[18]!==v||C[19]!==s?(p={day:d,month:l,year:s,setValue:v,dateValue:i,setDateValue:a,isValidCompleteDate:Z,getMaxDayForMonth:f,autoCompleteYear:S},C[14]=i,C[15]=d,C[16]=l,C[17]=a,C[18]=v,C[19]=s,C[20]=p):p=C[20],p};function En2(H){if(!H)return{day:"",month:"",year:""};const[C,V,L]=H.split("-");return{day:L===void 0?"":L,month:V===void 0?"":V,year:C===void 0?"":C}}function Fn2(H,C,V){if(!H&&!C&&!V)return"";const L=H?H.padStart(2,"0"):"",e=C?C.padStart(2,"0"):"";return`${V?V.padStart(4,"0"):""}-${e}-${L}`}function Dn2(H,C){if(!H)return 31;const V=parseInt(H,10);if(V<1||V>12)return 31;const L=C&&C.length===4?parseInt(C,10):new Date().getFullYear(),e=new Date(L,V-1,1);return i6(e)}function Nn2(H){return H.length===2?parseInt(H,10)<50?`20${H}`:`19${H}`:H}const In2=H=>{const C=T.compilerRuntimeExports.c(59);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c,v,u,Z;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultOpen:M,defaultValue:o,disabled:n,error:A,onChange:t,onOpenChange:i,open:a,pickOnly:d,readOnly:l,required:s,showValidation:c,showValidationTooltip:v,size:u,value:Z,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u,C[18]=Z):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15],v=C[16],u=C[17],Z=C[18]);const f=o===void 0?"":o,S=n===void 0?!1:n,p=A===void 0?!1:A,g=d===void 0?!1:d,h=l===void 0?!1:l,O=s===void 0?!1:s,x=c===void 0?!1:c,b=v===void 0?!1:v,w=u===void 0?"sm":u,y=h||g;let k;C[19]!==f||C[20]!==t||C[21]!==Z?(k={value:Z,defaultValue:f,onChange:t},C[19]=f,C[20]=t,C[21]=Z,C[22]=k):k=C[22];const{autoCompleteYear:R,day:N,getMaxDayForMonth:j,isValidCompleteDate:F,month:I,setValue:P,year:E}=Rn2(k),[$,W]=D.useState(""),[G,U]=D.useState(x),Y=e||$;let _;C[23]!==S||C[24]!==p||C[25]!==O||C[26]!==G||C[27]!==b||C[28]!==w||C[29]!==Y?(_={disabled:S,error:p,showValidation:G,showValidationTooltip:b,required:O,size:w,validationMessage:Y,setShowValidation:U,setValidationMessage:W},C[23]=S,C[24]=p,C[25]=O,C[26]=G,C[27]=b,C[28]=w,C[29]=Y,C[30]=_):_=C[30];let q;C[31]!==R||C[32]!==N||C[33]!==y||C[34]!==j||C[35]!==F||C[36]!==I||C[37]!==g||C[38]!==P||C[39]!==E?(q={day:N,month:I,year:E,setValue:P,isValidCompleteDate:F,getMaxDayForMonth:j,autoCompleteYear:R,readOnly:y,pickOnly:g},C[31]=R,C[32]=N,C[33]=y,C[34]=j,C[35]=F,C[36]=I,C[37]=g,C[38]=P,C[39]=E,C[40]=q):q=C[40];let K;C[41]!==L?(K=B("w-fit",L),C[41]=L,C[42]=K):K=C[42];let Q;C[43]===Symbol.for("react.memo_cache_sentinel")?(Q=m.jsx(g1.Content,{className:"ox-date-input-animate",children:m.jsx(Bn2,{})}),C[43]=Q):Q=C[43];let X;C[44]!==V||C[45]!==M||C[46]!==i||C[47]!==a?(X=m.jsxs(g1,{align:"center",animationDuration:200,defaultOpen:M,offset:16,open:a,position:"bottom",trigger:"click",onOpenChange:i,children:[V,Q]}),C[44]=V,C[45]=M,C[46]=i,C[47]=a,C[48]=X):X=C[48];let z;C[49]!==r||C[50]!==K||C[51]!==X?(z=m.jsx(a5,{className:K,"data-ox-slot":"input-date-container",...r,children:X}),C[49]=r,C[50]=K,C[51]=X,C[52]=z):z=C[52];let H1;C[53]!==q||C[54]!==z?(H1=m.jsx(J0.Provider,{value:q,children:z}),C[53]=q,C[54]=z,C[55]=H1):H1=C[55];let M1;return C[56]!==_||C[57]!==H1?(M1=m.jsx(R2.Provider,{value:_,children:H1}),C[56]=_,C[57]=H1,C[58]=M1):M1=C[58],M1},o5=H=>{const C=T.compilerRuntimeExports.c(16);let V,L,e,M;C[0]!==H?({children:V,className:L,path:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{disabled:r,size:t}=Y1();let i;C[5]!==L||C[6]!==r?(i=B("enabled:cursor-pointer",{"ox-default-disabled":r},L),C[5]=L,C[6]=r,C[7]=i):i=C[7];let a;C[8]!==V||C[9]!==M||C[10]!==t?(a=M?m.jsx(a1,{path:M,size:R1[t]}):V,C[8]=V,C[9]=M,C[10]=t,C[11]=a):a=C[11];let o;return C[12]!==e||C[13]!==i||C[14]!==a?(o=m.jsx("span",{className:i,"data-ox-slot":"input-icon",tabIndex:-1,...e,children:a}),C[12]=e,C[13]=i,C[14]=a,C[15]=o):o=C[15],o},jn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},r2=H=>{const C=T.compilerRuntimeExports.c(23);let V,L,e;C[0]!==H?({className:V,id:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useId(),{customValidationMessage:r,disabled:t,error:i,required:a,setShowValidation:o,setValidationMessage:n,showValidationTooltip:A,size:d}=Y1();let l;C[4]!==r||C[5]!==o||C[6]!==n||C[7]!==A?(l=S=>{S.preventDefault(),A&&(n(r||S.currentTarget.validationMessage),o(!0))},C[4]=r,C[5]=o,C[6]=n,C[7]=A,C[8]=l):l=C[8];const s=l,c=e||M,v=s1[d];let u;C[9]!==V||C[10]!==v?(u=B("w-full min-w-10 appearance-none bg-transparent outline-none enabled:text-gray-1200","placeholder:text-gray-900 disabled:ox-default-disabled",v,V),C[9]=V,C[10]=v,C[11]=u):u=C[11];let Z;C[12]!==o?(Z=()=>o(!1),C[12]=o,C[13]=Z):Z=C[13];let f;return C[14]!==t||C[15]!==L||C[16]!==i||C[17]!==s||C[18]!==c||C[19]!==a||C[20]!==u||C[21]!==Z?(f=m.jsx("input",{id:c,"aria-invalid":i,"aria-required":a,className:u,disabled:t,required:a,onInput:Z,onInvalid:s,...L}),C[14]=t,C[15]=L,C[16]=i,C[17]=s,C[18]=c,C[19]=a,C[20]=u,C[21]=Z,C[22]=f):f=C[22],f},Wn2=()=>{const H=T.compilerRuntimeExports.c(95),{disabled:C,setValidationMessage:V,size:L}=Y1(),{autoCompleteYear:e,day:M,getMaxDayForMonth:r,isValidCompleteDate:t,month:i,pickOnly:a,readOnly:o,setValue:n,year:A}=C7(),{setOpen:d}=j1(),l=D.useRef(null),s=D.useRef(null),c=D.useRef(null);let v;H[0]!==M||H[1]!==r||H[2]!==i||H[3]!==n||H[4]!==A?(v=V1=>{const A1=r(i,A),P1=M?parseInt(M,10):V1===1?0:A1+1,C2=V1===1?P1>=A1?1:P1+1:P1<=1?A1:P1-1;n({day:String(C2)})},H[0]=M,H[1]=r,H[2]=i,H[3]=n,H[4]=A,H[5]=v):v=H[5];const u=v;let Z;H[6]!==M||H[7]!==r||H[8]!==i||H[9]!==n||H[10]!==A?(Z=V1=>{const A1=i?parseInt(i,10):V1===1?0:13,P1=V1===1?A1>=12?1:A1+1:A1<=1?12:A1-1,C2=r(String(P1),A);(M?parseInt(M,10):0)>C2?n({day:String(C2),month:String(P1)}):n({month:String(P1)})},H[6]=M,H[7]=r,H[8]=i,H[9]=n,H[10]=A,H[11]=Z):Z=H[11];const f=Z;let S;H[12]!==r||H[13]!==i||H[14]!==n||H[15]!==A?(S=V1=>{const A1=V1.target.value,P1=r(i,A);(A1===""||/^\d{1,2}$/.test(A1)&&parseInt(A1,10)<=P1)&&n({day:A1})},H[12]=r,H[13]=i,H[14]=n,H[15]=A,H[16]=S):S=H[16];const p=S;let g;H[17]!==n?(g=V1=>{const A1=V1.target.value;(A1===""||/^\d{1,2}$/.test(A1)&&parseInt(A1,10)<=12)&&n({month:A1})},H[17]=n,H[18]=g):g=H[18];const h=g;let O;H[19]!==n?(O=V1=>{const A1=V1.target.value;(A1===""||/^\d{1,4}$/.test(A1)&&parseInt(A1,10)<=2100)&&n({year:A1})},H[19]=n,H[20]=O):O=H[20];const x=O;let b;H[21]!==u?(b=V1=>{V1.key==="ArrowUp"?(V1.preventDefault(),u(1)):V1.key==="ArrowDown"?(V1.preventDefault(),u(-1)):(V1.key==="Tab"&&!V1.shiftKey||V1.key==="Enter"||V1.key==="-")&&(V1.preventDefault(),s.current?.focus())},H[21]=u,H[22]=b):b=H[22];const w=b;let y;H[23]!==f||H[24]!==i?(y=V1=>{V1.key==="ArrowUp"?(V1.preventDefault(),f(1)):V1.key==="ArrowDown"?(V1.preventDefault(),f(-1)):V1.key==="Tab"&&V1.shiftKey?(V1.preventDefault(),l.current?.focus()):V1.key==="Tab"&&!V1.shiftKey||V1.key==="Enter"||V1.key==="-"?(V1.preventDefault(),c.current?.focus()):V1.key==="Backspace"&&i===""&&l.current?.focus()},H[23]=f,H[24]=i,H[25]=y):y=H[25];const k=y;let R;H[26]!==A?(R=V1=>{V1.key==="Tab"&&V1.shiftKey?(V1.preventDefault(),s.current?.focus()):V1.key==="Backspace"&&A===""&&s.current?.focus()},H[26]=A,H[27]=R):R=H[27];const N=R;let j;H[28]!==M||H[29]!==t||H[30]!==i||H[31]!==V||H[32]!==A?(j=()=>{M&&i&&A?t(M,i,A)?V(""):V("Invalid date"):V("")},H[28]=M,H[29]=t,H[30]=i,H[31]=V,H[32]=A,H[33]=j):j=H[33];const F=j;let I;H[34]!==F?(I=()=>{F()},H[34]=F,H[35]=I):I=H[35];const P=I;let E;H[36]!==F?(E=()=>{F()},H[36]=F,H[37]=E):E=H[37];const $=E;let W;H[38]!==e||H[39]!==n||H[40]!==F||H[41]!==A?(W=()=>{if(A.length===2){const V1=e(A);n({year:V1})}F()},H[38]=e,H[39]=n,H[40]=F,H[41]=A,H[42]=W):W=H[42];const G=W;let U;H[43]!==a||H[44]!==d?(U=()=>{a&&d(!0)},H[43]=a,H[44]=d,H[45]=U):U=H[45];const Y=U,_=a&&!C;let q;H[46]!==_?(q=B("flex items-center bg-transparent",{"cursor-pointer":_}),H[46]=_,H[47]=q):q=H[47];let K;H[48]!==a?(K=B("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[48]=a,H[49]=K):K=H[49];let Q;H[50]!==M||H[51]!==P||H[52]!==p||H[53]!==w||H[54]!==o||H[55]!==K?(Q=m.jsx(r2,{"aria-label":"Day",autoComplete:"off",className:K,inputMode:"numeric",max:"31",min:"0",pattern:"[0-9]*",placeholder:"dd",readOnly:o,ref:l,type:"number",value:M,onBlur:P,onChange:p,onKeyDown:w}),H[50]=M,H[51]=P,H[52]=p,H[53]=w,H[54]=o,H[55]=K,H[56]=Q):Q=H[56];const X=s1[L],z=!C;let H1;H[57]!==C||H[58]!==X||H[59]!==z?(H1=B(X,{"text-gray-1000":z,"ox-default-disabled":C}),H[57]=C,H[58]=X,H[59]=z,H[60]=H1):H1=H[60];let M1;H[61]!==H1?(M1=m.jsx("span",{className:H1,children:"-"}),H[61]=H1,H[62]=M1):M1=H[62];let L1;H[63]!==a?(L1=B("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[63]=a,H[64]=L1):L1=H[64];let c1;H[65]!==$||H[66]!==h||H[67]!==k||H[68]!==i||H[69]!==o||H[70]!==L1?(c1=m.jsx(r2,{"aria-label":"Month",autoComplete:"off",className:L1,inputMode:"numeric",max:"12",min:"0",pattern:"[0-9]*",placeholder:"mm",readOnly:o,ref:s,type:"number",value:i,onBlur:$,onChange:h,onKeyDown:k}),H[65]=$,H[66]=h,H[67]=k,H[68]=i,H[69]=o,H[70]=L1,H[71]=c1):c1=H[71];const S1=s1[L],v1=!C;let k1;H[72]!==C||H[73]!==S1||H[74]!==v1?(k1=B(S1,{"text-gray-1000":v1,"ox-default-disabled":C}),H[72]=C,H[73]=S1,H[74]=v1,H[75]=k1):k1=H[75];let E1;H[76]!==k1?(E1=m.jsx("span",{className:k1,children:"-"}),H[76]=k1,H[77]=E1):E1=H[77];let D1;H[78]!==a?(D1=B("w-10 min-w-10 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[78]=a,H[79]=D1):D1=H[79];let W1;H[80]!==G||H[81]!==x||H[82]!==N||H[83]!==o||H[84]!==D1||H[85]!==A?(W1=m.jsx(r2,{"aria-label":"Year",autoComplete:"off",className:D1,inputMode:"numeric",max:"2100",min:"0",pattern:"[0-9]*",placeholder:"yyyy",readOnly:o,ref:c,type:"number",value:A,onBlur:G,onChange:x,onKeyDown:N}),H[80]=G,H[81]=x,H[82]=N,H[83]=o,H[84]=D1,H[85]=A,H[86]=W1):W1=H[86];let J1;return H[87]!==Y||H[88]!==q||H[89]!==Q||H[90]!==M1||H[91]!==c1||H[92]!==E1||H[93]!==W1?(J1=m.jsxs("div",{className:q,"data-ox-slot":"input-date",onClick:Y,children:[Q,M1,c1,E1,W1]}),H[87]=Y,H[88]=q,H[89]=Q,H[90]=M1,H[91]=c1,H[92]=E1,H[93]=W1,H[94]=J1):J1=H[94],J1},zn2=H=>{const C=T.compilerRuntimeExports.c(6);let V,L;C[0]!==H?({children:V,...L}=H,C[0]=H,C[1]=V,C[2]=L):(V=C[1],L=C[2]);let e;return C[3]!==V||C[4]!==L?(e=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx(K1,{...L,path:"mdiCalendar",children:V})}),C[3]=V,C[4]=L,C[5]=e):e=C[5],e},E2=Wn2;E2.Container=In2;E2.Icon=jn2;E2.Button=Tn2;E2.PickerButton=zn2;const $n2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},H7=D.createContext(null),_n2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c,v,u;C[0]!==H?({children:V,defaultValue:L,disabled:o,error:n,locale:A,max:M,maximumFractionDigits:r,min:t,minimumFractionDigits:i,onChange:a,required:d,showValidationTooltip:l,size:s,steps:c,useGrouping:v,value:u,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15],v=C[16],u=C[17]);const Z=o===void 0?!1:o,f=n===void 0?!1:n,S=A===void 0?"en-US":A,p=d===void 0?!1:d,g=l===void 0?!1:l,h=s===void 0?"sm":s,O=c===void 0?1:c,x=v===void 0?!0:v,b=D.useId(),w=new Intl.NumberFormat(S,{useGrouping:x!==!1,minimumFractionDigits:i,maximumFractionDigits:r});let y;C[18]!==L||C[19]!==a||C[20]!==u?(y={value:u,onChange:a,defaultValue:L,name:"OxNumberInput"},C[18]=L,C[19]=a,C[20]=u,C[21]=y):y=C[21];const[k,R]=T.useControllableState(y),[N,j]=D.useState(k!==void 0?w.format(k):""),[F,I]=D.useState(""),[P,E]=D.useState(!1),$=Gn2;let W;C[22]!==M||C[23]!==t?(W=z=>T.clamp(z,t??-1/0,M??1/0),C[22]=M,C[23]=t,C[24]=W):W=C[24];const G=W,U=z=>{let H1=$(N);H1===void 0&&(H1=k!==void 0?k:0);const M1=G(H1),L1=G(M1+z);R(L1),j(w.format(L1))};let Y;C[25]!==U||C[26]!==O?(Y=()=>U(O),C[25]=U,C[26]=O,C[27]=Y):Y=C[27];const _=Y;let q;C[28]!==U||C[29]!==O?(q=()=>U(-O),C[28]=U,C[29]=O,C[30]=q):q=C[30];const K=q;let Q;C[31]!==Z||C[32]!==f||C[33]!==p||C[34]!==P||C[35]!==g||C[36]!==h||C[37]!==F?(Q={disabled:Z,error:f,showValidation:P,showValidationTooltip:g,required:p,size:h,validationMessage:F,setShowValidation:E,setValidationMessage:I},C[31]=Z,C[32]=f,C[33]=p,C[34]=P,C[35]=g,C[36]=h,C[37]=F,C[38]=Q):Q=C[38];let X;return C[39]!==V||C[40]!==e?(X=m.jsx(a5,{"data-ox-slot":"input-number-container",...e,children:V}),C[39]=V,C[40]=e,C[41]=X):X=C[41],m.jsx(R2.Provider,{value:Q,children:m.jsx(H7.Provider,{value:{clampValue:G,displayValue:N,formatter:w,handleDecrement:K,handleIncrement:_,inputId:b,internalValue:k,max:M,min:t,parse:$,setDisplayValue:j,setInternalValue:R,steps:O},children:X})})};function Gn2(H){if(!H.trim())return;const C=H.replace(/[^\d.-]/g,""),V=parseFloat(C);return!isNaN(V)&&isFinite(V)?V:void 0}const L3=()=>{const H=D.useContext(H7);if(!H)throw new Error("useNumberContext must be used within a Number component");return H},Un2=()=>{const H=T.compilerRuntimeExports.c(6),{size:C}=Y1(),{handleDecrement:V,inputId:L}=L3(),e=R1[C];let M;H[0]!==e?(M=m.jsx(a1,{path:"mdiMinus",size:e}),H[0]=e,H[1]=M):M=H[1];let r;return H[2]!==V||H[3]!==L||H[4]!==M?(r=m.jsx(K1,{"aria-controls":L,"aria-label":"Decrease value","data-ox-slot":"input-number-decrement",onClick:V,children:M}),H[2]=V,H[3]=L,H[4]=M,H[5]=r):r=H[5],r},Qn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},qn2=()=>{const H=T.compilerRuntimeExports.c(6),{size:C}=Y1(),{handleIncrement:V,inputId:L}=L3(),e=R1[C];let M;H[0]!==e?(M=m.jsx(a1,{path:"mdiPlus",size:e}),H[0]=e,H[1]=M):M=H[1];let r;return H[2]!==V||H[3]!==L||H[4]!==M?(r=m.jsx(K1,{"aria-controls":L,"aria-label":"Increase value","data-slot":"input-number-increment",onClick:V,children:M}),H[2]=V,H[3]=L,H[4]=M,H[5]=r):r=H[5],r},Yn2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M;C[0]!==H?({"aria-label":V,"aria-labelledby":L,className:e,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{clampValue:r,displayValue:t,formatter:i,handleDecrement:a,handleIncrement:o,inputId:n,internalValue:A,max:d,min:l,parse:s,setDisplayValue:c,setInternalValue:v}=L3(),[u,Z]=D.useState(!1);let f;C[5]!==c?(f=N=>{c(N.target.value)},C[5]=c,C[6]=f):f=C[6];const S=f,p=Kn2;let g;C[7]!==r||C[8]!==t||C[9]!==i||C[10]!==s||C[11]!==c||C[12]!==v?(g=()=>{const N=s(t);if(N!==void 0){const j=r(N);v(j),c(i.format(j))}else v(void 0),c("")},C[7]=r,C[8]=t,C[9]=i,C[10]=s,C[11]=c,C[12]=v,C[13]=g):g=C[13];const h=g;let O;C[14]!==i||C[15]!==s||C[16]!==c||C[17]!==v?(O=N=>{const j=N.clipboardData.getData("text"),F=s(j);F!==void 0&&(N.preventDefault(),c(i.format(F)),v(F))},C[14]=i,C[15]=s,C[16]=c,C[17]=v,C[18]=O):O=C[18];const x=O;let b;C[19]!==h||C[20]!==a||C[21]!==o||C[22]!==u?(b={onArrowDown:a,onArrowUp:o,onEnter:h,enabled:u,allowRepeat:!0},C[19]=h,C[20]=a,C[21]=o,C[22]=u,C[23]=b):b=C[23],T.useKeyboard(b);let w;C[24]!==e?(w=B("text-center",e),C[24]=e,C[25]=w):w=C[25];let y;C[26]!==h?(y=()=>{Z(!1),h()},C[26]=h,C[27]=y):y=C[27];let k;C[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>Z(!0),C[28]=k):k=C[28];let R;return C[29]!==V||C[30]!==L||C[31]!==t||C[32]!==M||C[33]!==S||C[34]!==x||C[35]!==n||C[36]!==A||C[37]!==d||C[38]!==l||C[39]!==w||C[40]!==y?(R=m.jsx(r2,{id:n,"aria-label":V,"aria-labelledby":L,"aria-valuemax":d,"aria-valuemin":l,"aria-valuenow":A,autoComplete:"off",className:w,"data-ox-slot":"input-number",inputMode:"decimal",role:"spinbutton",type:"text",value:t,onBeforeInput:p,onBlur:y,onChange:S,onFocus:k,onPaste:x,...M}),C[29]=V,C[30]=L,C[31]=t,C[32]=M,C[33]=S,C[34]=x,C[35]=n,C[36]=A,C[37]=d,C[38]=l,C[39]=w,C[40]=y,C[41]=R):R=C[41],R};function Kn2(H){const C=H.nativeEvent,V=H.target,L=V.value.slice(0,V.selectionStart??void 0)+(C.data??"")+V.value.slice(V.selectionEnd??void 0);!/^-?[\d.,]*$/.test(L)&&L!==""&&H.preventDefault()}const g2=Yn2;g2.Button=$n2;g2.Container=_n2;g2.DecrementButton=Un2;g2.Icon=Qn2;g2.IncrementButton=qn2;const Xn2={sm:"size-8 text-sm",md:"size-9 text-sm"},Jn2={sm:"gap-1",md:"gap-2"},CA2=H=>{switch(H){case"numeric":return{inputMode:"numeric",pattern:"[0-9]*"};case"alphanumeric":return{inputMode:"text",pattern:"[A-Z0-9]*"};case"text":default:return{inputMode:"text"}}},HA2=(H,C)=>{switch(C){case"numeric":return H.replace(/[^0-9]/g,"");case"alphanumeric":return H.replace(/[^A-Z0-9]/gi,"").toUpperCase();default:return H}},VA2=H=>{const C=T.compilerRuntimeExports.c(25),{className:V,disabled:L,error:e,length:M,onComplete:r,onValueChange:t,placeholder:i,size:a,type:o}=H,n=L===void 0?!1:L,A=e===void 0?!1:e,d=M===void 0?6:M,l=i===void 0?"":i,s=a===void 0?"md":a,c=o===void 0?"numeric":o,v=D.useId();let u;C[0]!==d?(u=()=>new Array(d).fill(""),C[0]=d,C[1]=u):u=C[1];const[Z,f]=D.useState(u);let S;C[2]===Symbol.for("react.memo_cache_sentinel")?(S=[],C[2]=S):S=C[2];const p=D.useRef(S);let g;C[3]!==c?(g=CA2(c),C[3]=c,C[4]=g):g=C[4];const h=g;let O,x;C[5]!==d?(O=()=>{p.current=p.current.slice(0,d)},x=[d],C[5]=d,C[6]=O,C[7]=x):(O=C[6],x=C[7]),D.useEffect(O,x);let b;C[8]===Symbol.for("react.memo_cache_sentinel")?(b=k=>k2.flushSync(()=>{f(k)}),C[8]=b):b=C[8];const w=b;let y;if(C[9]!==v||C[10]!==V||C[11]!==Z||C[12]!==n||C[13]!==A||C[14]!==d||C[15]!==r||C[16]!==t||C[17]!==l||C[18]!==s||C[19]!==c||C[20]!==h){const k=(I,P)=>{const E=HA2(P,c),$=[...Z];$[I]=E[0]||"";const W=$[I]&&I<d-1?I+1:void 0;w($),W!==void 0&&p.current[W]?.focus();const G=$.filter(LA2),U=G.join("");t?.(U),G.length===d&&r?.(U)},R=(I,P)=>{const E=[...Z];if(P.key==="Backspace"){if(Z[I]){E[I]="",w(E);const $=E.filter(eA2);t?.($.join(""))}else if(I>0){E[I-1]="",w(E),p.current[I-1]?.focus();const $=E.filter(MA2);t?.($.join(""))}}P.key==="ArrowLeft"&&I>0&&p.current[I-1]?.focus(),P.key==="ArrowRight"&&I<d-1&&p.current[I+1]?.focus()},N=I=>{p.current[I]?.select()},j=Jn2[s];let F;C[22]!==V||C[23]!==j?(F=B("inline-flex",j,V),C[22]=V,C[23]=j,C[24]=F):F=C[24],y=m.jsx("div",{className:F,"data-ox-slot":"otp-input",children:Array.from({length:d},(I,P)=>{const E=P===0||Z.slice(0,P).every(rA2),$=n||!E;return m.jsx("input",{id:`${v}-digit-${P}`,"aria-label":`Digit ${P+1} of ${d}`,autoComplete:"one-time-code",className:B("rounded-lg border bg-gray-50 text-center font-mono transition-all duration-200","ox-violet-outset-focus",Xn2[s],{"ox-gray-border":!A,"ox-rose-border":A,"ox-default-disabled":n}),"data-ox-slot":"otp-digit",disabled:$,maxLength:1,placeholder:l,ref:W=>{p.current[P]=W},type:"text",value:Z[P],onChange:W=>k(P,W.target.value),onFocus:()=>N(P),onKeyDown:W=>R(P,W),onPaste:tA2,...h},P)})}),C[9]=v,C[10]=V,C[11]=Z,C[12]=n,C[13]=A,C[14]=d,C[15]=r,C[16]=t,C[17]=l,C[18]=s,C[19]=c,C[20]=h,C[21]=y}else y=C[21];return y};function LA2(H){return H!==""}function eA2(H){return H!==""}function MA2(H){return H!==""}function rA2(H){return H!==""}function tA2(H){return H.preventDefault()}const iA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},V7=D.createContext(null),e3=()=>{const H=D.useContext(V7);if(!H)throw new Error("useTextContext must be used within a Text component");return H},aA2=()=>{const H=T.compilerRuntimeExports.c(5),{handleClear:C,internalValue:V}=e3(),L=!V;let e;H[0]!==L?(e=B("",{invisible:L}),H[0]=L,H[1]=e):e=H[1];let M;return H[2]!==C||H[3]!==e?(M=m.jsx(K1,{"aria-label":"Clear input",className:e,"data-ox-slot":"input-text-clear",path:"mdiClose",onClick:C}),H[2]=C,H[3]=e,H[4]=M):M=H[4],M},oA2=H=>{const C=T.compilerRuntimeExports.c(53);let V,L,e,M,r,t,i,a,o,n,A,d,l,s;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultValue:M,disabled:i,error:a,onChange:t,required:o,showValidation:n,showValidationTooltip:A,size:d,type:l,value:s,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14]);const c=i===void 0?!1:i,v=a===void 0?!1:a,u=o===void 0?!1:o,Z=n===void 0?!1:n,f=A===void 0?!1:A,S=d===void 0?"sm":d,p=l===void 0?"text":l,g=D.useRef(null);let h;C[15]!==t?(h=z=>{t?.(z??"")},C[15]=t,C[16]=h):h=C[16];let O;C[17]!==M||C[18]!==h||C[19]!==s?(O={value:s,onChange:h,defaultValue:M,name:"OxTextInput"},C[17]=M,C[18]=h,C[19]=s,C[20]=O):O=C[20];const[x,b]=T.useControllableState(O),w=x??"";let y;C[21]!==b?(y=z=>b(z),C[21]=b,C[22]=y):y=C[22];const k=y,[R,N]=D.useState(p),[j,F]=D.useState(""),[I,P]=D.useState(Z);let E;C[23]!==k?(E=()=>{k(""),g.current?.focus()},C[23]=k,C[24]=E):E=C[24];const $=E;let W;C[25]!==R?(W=()=>{R==="password"?N("text"):R==="text"&&N("password")},C[25]=R,C[26]=W):W=C[26];const G=W,U=e||j;let Y;C[27]!==c||C[28]!==v||C[29]!==u||C[30]!==I||C[31]!==f||C[32]!==S||C[33]!==U?(Y={disabled:c,error:v,showValidation:I,showValidationTooltip:f,required:u,size:S,validationMessage:U,setShowValidation:P,setValidationMessage:F},C[27]=c,C[28]=v,C[29]=u,C[30]=I,C[31]=f,C[32]=S,C[33]=U,C[34]=Y):Y=C[34];let _;C[35]!==R||C[36]!==$||C[37]!==G||C[38]!==w||C[39]!==k?(_={handleClear:$,handleTypeToggle:G,inputRef:g,internalValue:w,setInternalValue:k,type:R},C[35]=R,C[36]=$,C[37]=G,C[38]=w,C[39]=k,C[40]=_):_=C[40];let q;C[41]!==L?(q=B("[&_[data-ox-slot='input-text']:only-child]:px-2",L),C[41]=L,C[42]=q):q=C[42];let K;C[43]!==V||C[44]!==r||C[45]!==q?(K=m.jsx(a5,{className:q,"data-ox-slot":"input-text-container",...r,children:V}),C[43]=V,C[44]=r,C[45]=q,C[46]=K):K=C[46];let Q;C[47]!==_||C[48]!==K?(Q=m.jsx(V7.Provider,{value:_,children:K}),C[47]=_,C[48]=K,C[49]=Q):Q=C[49];let X;return C[50]!==Y||C[51]!==Q?(X=m.jsx(R2.Provider,{value:Y,children:Q}),C[50]=Y,C[51]=Q,C[52]=X):X=C[52],X},nA2=H=>{const C=T.compilerRuntimeExports.c(16);let V,L,e,M,r,t;C[0]!==H?({className:V,currentLength:M,disabled:r,maxLength:e,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?0:M,a=r===void 0?!1:r,n=s1[t===void 0?"sm":t];let A;C[7]!==V||C[8]!==a||C[9]!==n?(A=B("mt-1 text-right text-gray-1000 tabular-nums",n,{"ox-default-disabled":a},V),C[7]=V,C[8]=a,C[9]=n,C[10]=A):A=C[10];let d;return C[11]!==i||C[12]!==L||C[13]!==e||C[14]!==A?(d=m.jsxs("div",{className:A,"data-ox-slot":"input-counter",...L,children:[i,"/",e]}),C[11]=i,C[12]=L,C[13]=e,C[14]=A,C[15]=d):d=C[15],d},AA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(nA2,{...H}),C[0]=H,C[1]=V):V=C[1],V},lA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},dA2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r,t,i;C[0]!==H?({autoComplete:V,className:L,id:M,maxLength:r,placeholder:t,spellCheck:i,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=i===void 0?!1:i,{disabled:o,error:n,required:A}=Y1(),{inputRef:d,internalValue:l,setInternalValue:s,type:c}=e3();let v;C[8]!==s?(v=f=>{s(f.target.value)},C[8]=s,C[9]=v):v=C[9];const u=v;let Z;return C[10]!==V||C[11]!==L||C[12]!==o||C[13]!==e||C[14]!==n||C[15]!==u||C[16]!==M||C[17]!==d||C[18]!==l||C[19]!==r||C[20]!==t||C[21]!==A||C[22]!==a||C[23]!==c?(Z=m.jsx(r2,{id:M,"aria-invalid":n,"aria-required":A,autoComplete:V,className:L,"data-ox-slot":"input-text",disabled:o,maxLength:r,placeholder:t,ref:d,required:A,spellCheck:a,type:c,value:l,onChange:u,...e}),C[10]=V,C[11]=L,C[12]=o,C[13]=e,C[14]=n,C[15]=u,C[16]=M,C[17]=d,C[18]=l,C[19]=r,C[20]=t,C[21]=A,C[22]=a,C[23]=c,C[24]=Z):Z=C[24],Z},sA2=()=>{const H=T.compilerRuntimeExports.c(4),{handleTypeToggle:C,type:V}=e3(),L=V==="text",e=L?"Hide password":"Show password",M=L?"mdiEyeOff":"mdiEye";let r;return H[0]!==C||H[1]!==e||H[2]!==M?(r=m.jsx(K1,{"aria-label":e,"data-ox-slot":"input-text-toggle",path:M,onClick:C}),H[0]=C,H[1]=e,H[2]=M,H[3]=r):r=H[3],r},i2=dA2;i2.Button=iA2;i2.ClearButton=aA2;i2.Container=oA2;i2.Counter=AA2;i2.Icon=lA2;i2.VisibilityButton=sA2;const mA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},L7=D.createContext(null),cA2=H=>{const C=T.compilerRuntimeExports.c(21),{defaultValue:V,onChange:L,value:e}=H,M=V??"";let r;C[0]!==L?(r=f=>L?.(f??""),C[0]=L,C[1]=r):r=C[1];let t;C[2]!==M||C[3]!==r||C[4]!==e?(t={value:e,defaultValue:M,onChange:r},C[2]=M,C[3]=r,C[4]=e,C[5]=t):t=C[5];const[i,a]=T.useControllableState(t),o=vA2,n=uA2;let A;C[6]!==i?(A=o(i),C[6]=i,C[7]=A):A=C[7];const{hours:d,minutes:l}=A;let s;C[8]!==l||C[9]!==a?(s=f=>{const S=n(f,l);a(S)},C[8]=l,C[9]=a,C[10]=s):s=C[10];const c=s;let v;C[11]!==d||C[12]!==a?(v=f=>{const S=n(d,f);a(S)},C[11]=d,C[12]=a,C[13]=v):v=C[13];const u=v;let Z;return C[14]!==d||C[15]!==l||C[16]!==c||C[17]!==u||C[18]!==a||C[19]!==i?(Z={hours:d,minutes:l,setHours:c,setMinutes:u,timeValue:i,setTimeValue:a},C[14]=d,C[15]=l,C[16]=c,C[17]=u,C[18]=a,C[19]=i,C[20]=Z):Z=C[20],Z};function vA2(H){if(!H)return{hours:"",minutes:""};const[C,V]=H.split(":");return{hours:C===void 0?"":C,minutes:V===void 0?"":V}}function uA2(H,C){if(!H&&!C)return"";const V=H?H.padStart(2,"0"):"",L=C?C.padStart(2,"0"):"";return`${V}:${L}`}const ZA2=H=>{const C=T.compilerRuntimeExports.c(43);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultValue:t,disabled:i,error:a,onChange:r,required:o,showValidation:n,showValidationTooltip:A,size:d,value:l,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=t===void 0?"":t,c=i===void 0?!1:i,v=a===void 0?!1:a,u=o===void 0?!1:o,Z=n===void 0?!1:n,f=A===void 0?!1:A,S=d===void 0?"sm":d;let p;C[14]!==s||C[15]!==r||C[16]!==l?(p={value:l,defaultValue:s,onChange:r},C[14]=s,C[15]=r,C[16]=l,C[17]=p):p=C[17];const{hours:g,minutes:h,setHours:O,setMinutes:x}=cA2(p),[b,w]=D.useState(""),[y,k]=D.useState(Z),R=e||b;let N;C[18]!==c||C[19]!==v||C[20]!==u||C[21]!==y||C[22]!==f||C[23]!==S||C[24]!==R?(N={disabled:c,error:v,showValidation:y,showValidationTooltip:f,required:u,size:S,validationMessage:R,setShowValidation:k,setValidationMessage:w},C[18]=c,C[19]=v,C[20]=u,C[21]=y,C[22]=f,C[23]=S,C[24]=R,C[25]=N):N=C[25];let j;C[26]!==g||C[27]!==h||C[28]!==O||C[29]!==x?(j={hours:g,minutes:h,setHours:O,setMinutes:x},C[26]=g,C[27]=h,C[28]=O,C[29]=x,C[30]=j):j=C[30];let F;C[31]!==L?(F=B("w-fit [&_[data-ox-slot='input-time']:only-child]:px-2",L),C[31]=L,C[32]=F):F=C[32];let I;C[33]!==V||C[34]!==M||C[35]!==F?(I=m.jsx(a5,{className:F,"data-ox-slot":"input-time-container",...M,children:V}),C[33]=V,C[34]=M,C[35]=F,C[36]=I):I=C[36];let P;C[37]!==j||C[38]!==I?(P=m.jsx(L7.Provider,{value:j,children:I}),C[37]=j,C[38]=I,C[39]=P):P=C[39];let E;return C[40]!==N||C[41]!==P?(E=m.jsx(R2.Provider,{value:N,children:P}),C[40]=N,C[41]=P,C[42]=E):E=C[42],E},SA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},fA2=()=>{const H=D.useContext(L7);if(!H)throw new Error("useTimeContext must be used within a TimeInput component");return H},pA2=()=>{const H=T.compilerRuntimeExports.c(26),{hours:C,minutes:V,setHours:L,setMinutes:e}=fA2(),{disabled:M,size:r}=Y1(),t=D.useRef(null),i=D.useRef(null);let a;H[0]!==L?(a=x=>{const b=x.target.value;(b===""||/^\d{1,2}$/.test(b)&&parseInt(b,10)<=23)&&L(b)},H[0]=L,H[1]=a):a=H[1];const o=a;let n;H[2]!==e?(n=x=>{const b=x.target.value;(b===""||/^\d{1,2}$/.test(b)&&parseInt(b,10)<=59)&&e(b)},H[2]=e,H[3]=n):n=H[3];const A=n;let d;H[4]===Symbol.for("react.memo_cache_sentinel")?(d=x=>{(x.key==="Tab"||x.key==="Enter"||x.key===":")&&(x.preventDefault(),i.current?.focus())},H[4]=d):d=H[4];const l=d;let s;H[5]!==V?(s=x=>{x.key==="Backspace"&&V===""&&t.current?.focus()},H[5]=V,H[6]=s):s=H[6];const c=s;let v;H[7]===Symbol.for("react.memo_cache_sentinel")?(v=B("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),H[7]=v):v=H[7];let u;H[8]!==o||H[9]!==C?(u=m.jsx(r2,{autoComplete:"off",className:v,max:"23",min:"0",placeholder:"hh",ref:t,type:"number",value:C,onChange:o,onKeyDown:l}),H[8]=o,H[9]=C,H[10]=u):u=H[10];const Z=s1[r],f=!M;let S;H[11]!==M||H[12]!==Z||H[13]!==f?(S=B(Z,{"text-gray-1000":f,"ox-default-disabled":M}),H[11]=M,H[12]=Z,H[13]=f,H[14]=S):S=H[14];let p;H[15]!==S?(p=m.jsx("span",{className:S,children:":"}),H[15]=S,H[16]=p):p=H[16];let g;H[17]===Symbol.for("react.memo_cache_sentinel")?(g=B("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),H[17]=g):g=H[17];let h;H[18]!==A||H[19]!==c||H[20]!==V?(h=m.jsx(r2,{autoComplete:"off",className:g,max:"59",min:"0",placeholder:"mm",ref:i,type:"number",value:V,onChange:A,onKeyDown:c}),H[18]=A,H[19]=c,H[20]=V,H[21]=h):h=H[21];let O;return H[22]!==h||H[23]!==u||H[24]!==p?(O=m.jsxs("div",{className:"flex items-center gap-1 bg-transparent px-2","data-ox-slot":"input-time",children:[u,p,h]}),H[22]=h,H[23]=u,H[24]=p,H[25]=O):O=H[25],O},n5=pA2;n5.Container=ZA2;n5.Icon=SA2;n5.Button=mA2;const e7=D.createContext(void 0),hA2=()=>{const H=D.useContext(e7);if(!H)throw new Error("OxRadio must be used within OxRadioGroup");return H},gA2={sm:"size-4.5",md:"size-5.5"},OA2=H=>{const C=T.compilerRuntimeExports.c(47);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({checked:V,className:L,defaultChecked:e,disabled:n,error:A,id:a,name:r,onChange:t,onCheckedChange:i,required:d,size:o,value:l,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=n===void 0?!1:n,c=A===void 0?!1:A,v=d===void 0?!1:d,u=D.useId(),Z=hA2(),f=D.useRef(null),p=`${a||u}-radio`,g=o||Z.size,h=s||Z.disabled,O=r||Z?.name,x=V!==void 0||Z&&l!==void 0&&Z.value!==void 0;let b;Z&&l!==void 0&&Z.value!==void 0?b=Z.value===l:b=V;let w;C[14]!==Z||C[15]!==t||C[16]!==i||C[17]!==l?(w=W=>{const G=W.target.checked;Z&&l!==void 0&&Z.onChange?.(l),t?.(W),i?.(G)},C[14]=Z,C[15]=t,C[16]=i,C[17]=l,C[18]=w):w=C[18];const y=w;let k;C[19]!==b||C[20]!==e||C[21]!==x?(k=x?{checked:b}:{defaultChecked:e},C[19]=b,C[20]=e,C[21]=x,C[22]=k):k=C[22];const R=gA2[g],N=!c;let j;C[23]!==L||C[24]!==c||C[25]!==R||C[26]!==N?(j=B("peer cursor-pointer appearance-none rounded-full bg-gray-50",R,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":c,"ox-gray-border":N},L),C[23]=L,C[24]=c,C[25]=R,C[26]=N,C[27]=j):j=C[27];const F=b?"checked":"unchecked";let I;C[28]!==h||C[29]!==O||C[30]!==M||C[31]!==c||C[32]!==y||C[33]!==p||C[34]!==v||C[35]!==k||C[36]!==j||C[37]!==F||C[38]!==l?(I=m.jsx("input",{id:p,"aria-invalid":c,"aria-required":v,"data-ox-slot":"radio",ref:f,...k,className:j,disabled:h,name:O,required:v,type:"radio",value:l,onChange:y,...M,"data-ox-state":F}),C[28]=h,C[29]=O,C[30]=M,C[31]=c,C[32]=y,C[33]=p,C[34]=v,C[35]=k,C[36]=j,C[37]=F,C[38]=l,C[39]=I):I=C[39];let P;C[40]!==h?(P=B("pointer-events-none absolute inset-0 m-auto size-2 rounded-full bg-gray-1200 opacity-0 peer-checked:opacity-100",{"bg-gray-800 opacity-50":h}),C[40]=h,C[41]=P):P=C[41];let E;C[42]!==P?(E=m.jsx("div",{className:P}),C[42]=P,C[43]=E):E=C[43];let $;return C[44]!==I||C[45]!==E?($=m.jsxs("div",{className:"relative inline-flex shrink-0",children:[I,E]}),C[44]=I,C[45]=E,C[46]=$):$=C[46],$},xA2=H=>{const C=T.compilerRuntimeExports.c(24);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,disabled:t,name:M,onChange:r,size:i,value:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?"sm":i;let A;C[9]!==o||C[10]!==M||C[11]!==r||C[12]!==n||C[13]!==a?(A={value:a,onChange:r,name:M,size:n,disabled:o},C[9]=o,C[10]=M,C[11]=r,C[12]=n,C[13]=a,C[14]=A):A=C[14];let d;C[15]!==L?(d=B("contents space-y-2",L),C[15]=L,C[16]=d):d=C[16];let l;C[17]!==V||C[18]!==e||C[19]!==d?(l=m.jsx("div",{className:d,"data-ox-slot":"radio-group",role:"radiogroup",...e,children:V}),C[17]=V,C[18]=e,C[19]=d,C[20]=l):l=C[20];let s;return C[21]!==A||C[22]!==l?(s=m.jsx(e7.Provider,{value:A,children:l}),C[21]=A,C[22]=l,C[23]=s):s=C[23],s},M7=OA2;M7.Group=xA2;const r7=D.createContext(void 0),M3=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("overflow-hidden text-ellipsis",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("span",{className:M,"data-ox-slot":"select-label",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},F2=()=>{const H=D.useContext(r7);if(!H)throw new Error("Select components must be used within an OxSelect");return H},bA2={sm:`px-2 ${s1.sm} ${w1.sm}`,md:`px-2.5 ${s1.md} ${w1.md}`},t7=H=>{const C=T.compilerRuntimeExports.c(44);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,value:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,{multiple:i,onSelect:a,selectedValue:o,size:n}=F2(),{setOpen:A}=j1();let d;if(C[6]!==V){const w=D.Children.toArray(V).find(yA2);d=w&&D.isValidElement(w)?w.props.children:V,C[6]=V,C[7]=d}else d=C[7];const l=d;let s;C[8]!==l||C[9]!==i||C[10]!==a||C[11]!==A||C[12]!==r?(s=()=>{a({value:r,label:l}),i||A(!1)},C[8]=l,C[9]=i,C[10]=a,C[11]=A,C[12]=r,C[13]=s):s=C[13];const c=s;let v;C[14]!==c||C[15]!==A?(v=w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),c()),w.key==="Escape"&&A(!1)},C[14]=c,C[15]=A,C[16]=v):v=C[16];const u=v;let Z,f,S,p,g;C[17]!==L||C[18]!==o||C[19]!==n||C[20]!==r?(Z=o.includes(r),p="contents",g="none",f=Z,S=B("group col-span-3 grid grid-cols-subgrid items-center rounded-sm text-left text-gray-1200",bA2[n],"ox-violet-inset-focus enabled:cursor-pointer enabled:hover:bg-gray-400","disabled:ox-default-disabled",{"bg-gray-400":Z},L),C[17]=L,C[18]=o,C[19]=n,C[20]=r,C[21]=Z,C[22]=f,C[23]=S,C[24]=p,C[25]=g):(Z=C[21],f=C[22],S=C[23],p=C[24],g=C[25]);const h=t?-1:0;let O;C[26]!==t||C[27]!==Z||C[28]!==n?(O=Z&&!t?m.jsx(a1,{className:"justify-self-center text-violet-700","data-ox-slot":"select-check-icon",path:"mdiCheck",size:R1[n]}):null,C[26]=t,C[27]=Z,C[28]=n,C[29]=O):O=C[29];let x;C[30]!==V||C[31]!==t||C[32]!==e||C[33]!==c||C[34]!==u||C[35]!==O||C[36]!==f||C[37]!==S||C[38]!==h?(x=m.jsxs("button",{"aria-selected":f,className:S,"data-ox-slot":"select-option",disabled:t,role:"option",tabIndex:h,onClick:c,onKeyDown:u,...e,children:[V,O]}),C[30]=V,C[31]=t,C[32]=e,C[33]=c,C[34]=u,C[35]=O,C[36]=f,C[37]=S,C[38]=h,C[39]=x):x=C[39];let b;return C[40]!==x||C[41]!==p||C[42]!==g?(b=m.jsx("li",{className:p,role:g,children:x}),C[40]=x,C[41]=p,C[42]=g,C[43]=b):b=C[43],b};function yA2(H){return D.isValidElement(H)&&(H.type===M3||X2(H,"select-label"))}const wA2=H=>{const C=new Map,V=L=>{if(!D.isValidElement(L))return;if(L.type===t7){const{children:r,value:t}=L.props,i=D.Children.toArray(r).find(o=>D.isValidElement(o)&&(o.type===M3||X2(o,"select-label"))),a=i&&D.isValidElement(i)?i.props.children:r;C.set(t,a);return}const e=L.props,{children:M}=e;M&&D.Children.forEach(M,V)};return H.forEach(V),C},i7=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{buttonRef:M,multiple:r,selectId:t}=F2(),{contentRef:i,open:a}=j1();let o,n;C[4]!==M||C[5]!==i||C[6]!==a?(o=()=>{if(a&&M.current&&i.current){const s=M.current.offsetWidth;i.current.style.minWidth=`${s}px`}},n=[a,M,i],C[4]=M,C[5]=i,C[6]=a,C[7]=o,C[8]=n):(o=C[7],n=C[8]),D.useLayoutEffect(o,n);const A=`${t}-listbox`;let d;C[9]!==L?(d=B("grid max-h-72 grid-cols-[auto_1fr_auto] gap-y-0.5 overflow-hidden overflow-y-auto",'[&_[data-ox-slot="select-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="select-icon"]]:justify-self-center','[&_[data-ox-slot="select-label"]]:[grid-column-start:var(--ox-menu-label-col)]','[&_[data-ox-slot="select-check-icon"]]:[grid-column-start:var(--ox-menu-shortcut-col)] [&_[data-ox-slot="select-check-icon"]]:justify-self-end',L),C[9]=L,C[10]=d):d=C[10];let l;return C[11]!==V||C[12]!==e||C[13]!==r||C[14]!==A||C[15]!==d?(l=m.jsx(g1.Content,{className:"ox-gray-border ox-select-animate rounded-lg bg-gray-200 p-1",portal:!1,children:m.jsx("ul",{id:A,"aria-multiselectable":r,className:d,"data-ox-slot":"select-listbox",role:"listbox",...e,children:V})}),C[11]=V,C[12]=e,C[13]=r,C[14]=A,C[15]=d,C[16]=l):l=C[16],l},z3=H=>H==null?[]:Array.isArray(H)?H:[H],kA2=H=>{const C=T.compilerRuntimeExports.c(63),{children:V,className:L,defaultOpen:e,defaultValue:M,disabled:r,error:t,id:i,isLoading:a,multiple:o,onChange:n,onOpenChange:A,open:d,required:l,size:s,value:c}=H,v=M===void 0?null:M,u=r===void 0?!1:r,Z=t===void 0?!1:t,f=a===void 0?!1:a,S=o===void 0?!1:o,p=l===void 0?!1:l,g=s===void 0?"sm":s,h=D.useId(),O=D.useRef(null),{checkOverflow:x,handleResize:b,overflowAmount:w}=T.useOverflowDetection();let y;if(C[0]!==V){C:{const L1=D.Children.toArray(V).find(PA2);if(!L1||!D.isValidElement(L1)){let S1;C[2]===Symbol.for("react.memo_cache_sentinel")?(S1=new Map,C[2]=S1):S1=C[2],y=S1;break C}const c1=D.Children.toArray(L1.props.children||[]);y=wA2(c1)}C[0]=V,C[1]=y}else y=C[1];const k=y;let R;C[3]!==c?(R=c?new Set(z3(c)):void 0,C[3]=c,C[4]=R):R=C[4];let N;C[5]!==v?(N=new Set(z3(v)),C[5]=v,C[6]=N):N=C[6];let j;C[7]!==S||C[8]!==n?(j=L1=>{if(!L1)return;const c1=S?Array.from(L1):L1.size>0?Array.from(L1)[0]:null;n?.(c1)},C[7]=S,C[8]=n,C[9]=j):j=C[9];let F;C[10]!==N||C[11]!==j||C[12]!==R?(F={value:R,defaultValue:N,onChange:j,name:"OxSelect"},C[10]=N,C[11]=j,C[12]=R,C[13]=F):F=C[13];const[I,P]=T.useControllableState(F);let E;C[14]!==k||C[15]!==I?(E=Array.from(I??new Set).map(L1=>({value:L1,label:k.get(L1)??L1})),C[14]=k,C[15]=I,C[16]=E):E=C[16];const $=E;let W;C[17]!==x?(W=()=>{x()},C[17]=x,C[18]=W):W=C[18];let G;if(C[19]!==x||C[20]!==I?(G=[I,x],C[19]=x,C[20]=I,C[21]=G):G=C[21],D.useLayoutEffect(W,G),f){let L1;C[22]!==L?(L1=B("flex w-full flex-col",L),C[22]=L,C[23]=L1):L1=C[23];const c1=w1[g],S1=!Z;let v1;C[24]!==Z||C[25]!==c1||C[26]!==S1?(v1=B("rounded-lg",c1,{"ox-rose-border":Z,"ox-gray-border":S1}),C[24]=Z,C[25]=c1,C[26]=S1,C[27]=v1):v1=C[27];let k1;C[28]!==v1?(k1=m.jsx(h2,{className:v1,fullWidth:!0}),C[28]=v1,C[29]=k1):k1=C[29];let E1;return C[30]!==L1||C[31]!==k1?(E1=m.jsx("div",{className:L1,children:k1}),C[30]=L1,C[31]=k1,C[32]=E1):E1=C[32],E1}const Y=`${i||h}-select`;let _;C[33]!==S||C[34]!==P?(_=L1=>{const{value:c1}=L1;P(S1=>{const v1=new Set(S1);return S?v1.has(c1)?v1.delete(c1):v1.add(c1):(v1.clear(),v1.add(c1)),v1})},C[33]=S,C[34]=P,C[35]=_):_=C[35];const q=_;let K;C[36]!==I?(K=Array.from(I??new Set),C[36]=I,C[37]=K):K=C[37];let Q;C[38]!==Z||C[39]!==b||C[40]!==S||C[41]!==q||C[42]!==w||C[43]!==p||C[44]!==Y||C[45]!==$||C[46]!==g||C[47]!==K?(Q={selectedValue:K,onSelect:q,multiple:S,size:g,error:Z,selectedOptions:$,required:p,handleResize:b,overflowAmount:w,selectId:Y,buttonRef:O},C[38]=Z,C[39]=b,C[40]=S,C[41]=q,C[42]=w,C[43]=p,C[44]=Y,C[45]=$,C[46]=g,C[47]=K,C[48]=Q):Q=C[48];let X;C[49]!==L?(X=B("flex w-full flex-col",L),C[49]=L,C[50]=X):X=C[50];let z;C[51]!==V||C[52]!==e||C[53]!==u||C[54]!==A||C[55]!==d?(z=m.jsx(g1,{align:"start",animationDuration:100,ariaHaspopup:"listbox",defaultOpen:e,disabled:u,open:d,position:"bottom",trigger:"click",onOpenChange:A,children:V}),C[51]=V,C[52]=e,C[53]=u,C[54]=A,C[55]=d,C[56]=z):z=C[56];let H1;C[57]!==X||C[58]!==z?(H1=m.jsx("div",{className:X,children:z}),C[57]=X,C[58]=z,C[59]=H1):H1=C[59];let M1;return C[60]!==Q||C[61]!==H1?(M1=m.jsx(r7.Provider,{value:Q,children:H1}),C[60]=Q,C[61]=H1,C[62]=M1):M1=C[62],M1};function PA2(H){return D.isValidElement(H)&&(H.type===i7||X2(H,"select-content"))}const TA2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({className:V,path:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{size:M}=F2();let r;C[4]!==V?(r=B("mr-2 shrink-0 text-current",V),C[4]=V,C[5]=r):r=C[5];const t=R1[M];let i;return C[6]!==L||C[7]!==e||C[8]!==r||C[9]!==t?(i=m.jsx(a1,{className:r,"data-ox-slot":"select-icon",path:e,size:t,...L}),C[6]=L,C[7]=e,C[8]=r,C[9]=t,C[10]=i):i=C[10],i},BA2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e,M;C[0]!==H?({children:V,className:L,label:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{size:r}=F2(),t=s1[r];let i;C[5]!==L||C[6]!==t?(i=B("col-span-full px-2 py-1 font-semibold text-gray-1000",t,L),C[5]=L,C[6]=t,C[7]=i):i=C[7];let a;C[8]!==e||C[9]!==M||C[10]!==i?(a=m.jsx("div",{className:i,"data-ox-slot":"select-option-group",...e,children:M}),C[8]=e,C[9]=M,C[10]=i,C[11]=a):a=C[11];let o;return C[12]!==V||C[13]!==a?(o=m.jsxs("div",{className:"contents [&_[data-ox-slot=select-option]]:pl-4",children:[a,V]}),C[12]=V,C[13]=a,C[14]=o):o=C[14],o},RA2={sm:`px-1.25 ${s1.sm} ${w1.sm}`,md:`px-1.75 ${s1.md} ${w1.md}`},EA2=H=>{const C=T.compilerRuntimeExports.c(46);let V,L,e,M,r,t,i;C[0]!==H?({badgeColor:M,className:V,disabled:e,displayAsBadges:r,placeholder:t,size:i,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=M===void 0?"purple":M,o=r===void 0?!1:r,n=t===void 0?"Select an option":t,A=i===void 0?"sm":i,{buttonRef:d,error:l,handleResize:s,multiple:c,overflowAmount:v,required:u,selectId:Z,selectedOptions:f,size:S}=F2(),{disabled:p,open:g}=j1(),h=A||S,O=v>0,x=e??p,b=`${Z}-listbox`;let w;C[8]!==n||C[9]!==f?(w=f.length>0?`Selected: ${f.map(FA2).join(", ")}`:n,C[8]=n,C[9]=f,C[10]=w):w=C[10];const y=RA2[h],k=!l;let R;C[11]!==V||C[12]!==l||C[13]!==g||C[14]!==y||C[15]!==k?(R=B("relative flex w-full items-center gap-x-2 rounded-lg bg-gray-50 ps-3 pe-9 text-start enabled:cursor-pointer enabled:text-gray-1200","ox-violet-outset-focus disabled:ox-default-disabled",y,{"ox-rose-border":l,"ox-gray-border":k,"default-active-border":g},V),C[11]=V,C[12]=l,C[13]=g,C[14]=y,C[15]=k,C[16]=R):R=C[16];const N=g?"open":"closed";let j;C[17]!==a||C[18]!==o||C[19]!==s||C[20]!==x||C[21]!==h||C[22]!==c||C[23]!==v||C[24]!==n||C[25]!==f||C[26]!==O?(j=f.length>0?m.jsxs("div",{className:B("flex w-full items-center overflow-hidden","[&_[data-ox-slot=select-icon]]:hidden",{"opacity-50":x&&o}),children:[m.jsx("div",{className:B("overflow-hidden text-ellipsis whitespace-nowrap",{"flex gap-1":o&&c}),ref:s,children:o&&c?f.map($=>m.jsx(_2,{color:a,"data-ox-state":"selected",size:h,children:$.label},String($.value))):f.map(($,W,G)=>{const U=G.length-v,Y=W===U-1;return m.jsxs("span",{"data-ox-state":"selected",children:[$.label,W<G.length-1&&!Y&&", "]},String($.value))})}),O&&c?m.jsxs(_2,{className:"ml-1",color:a,size:h,children:["+",v]}):null]}):m.jsx("span",{className:"w-full overflow-hidden text-ellipsis whitespace-nowrap",children:n}),C[17]=a,C[18]=o,C[19]=s,C[20]=x,C[21]=h,C[22]=c,C[23]=v,C[24]=n,C[25]=f,C[26]=O,C[27]=j):j=C[27];let F;C[28]!==g?(F=B("text-current transition-transform duration-300 ease-in-out",{"rotate-180":g}),C[28]=g,C[29]=F):F=C[29];const I=R1[h];let P;C[30]!==F||C[31]!==I?(P=m.jsx("div",{className:"absolute end-3 top-1/2 -translate-y-1/2",children:m.jsx(a1,{className:F,path:"mdiChevronDown",size:I})}),C[30]=F,C[31]=I,C[32]=P):P=C[32];let E;return C[33]!==d||C[34]!==L||C[35]!==l||C[36]!==x||C[37]!==u||C[38]!==Z||C[39]!==N||C[40]!==j||C[41]!==P||C[42]!==b||C[43]!==w||C[44]!==R?(E=m.jsx(g1.Trigger,{asChild:!0,children:m.jsxs("button",{id:Z,"aria-controls":b,"aria-disabled":x,"aria-invalid":l,"aria-label":w,"aria-required":u,className:R,"data-ox-slot":"select-trigger",disabled:x,ref:d,role:"combobox",type:"button",...L,"data-ox-state":N,children:[j,P]})}),C[33]=d,C[34]=L,C[35]=l,C[36]=x,C[37]=u,C[38]=Z,C[39]=N,C[40]=j,C[41]=P,C[42]=b,C[43]=w,C[44]=R,C[45]=E):E=C[45],E};function FA2(H){return H.label}const a2=kA2;a2.Content=i7;a2.Icon=TA2;a2.Label=M3;a2.Option=t7;a2.OptionGroup=BA2;a2.Trigger=EA2;const DA2={sm:{container:"h-4.5 w-9",thumb:"size-3.75",translate:"translate-x-4.25"},md:{container:"h-5.5 w-11",thumb:"size-4.75",translate:"translate-x-5.25"}},NA2=H=>{const C=T.compilerRuntimeExports.c(37);let V,L,e,M,r,t,i,a,o;C[0]!==H?({checked:r,className:V,disabled:t,error:i,id:M,onChange:e,required:a,size:o,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=r===void 0?!1:r,A=t===void 0?!1:t,d=i===void 0?!1:i,l=a===void 0?!1:a,s=o===void 0?"sm":o,c=D.useId(),u=`${M||c}-switch`,Z=DA2[s];let f;C[10]!==n||C[11]!==e?(f=()=>{e?.(!n)},C[10]=n,C[11]=e,C[12]=f):f=C[12];const S=f,p=!n,g=!d;let h;C[13]!==n||C[14]!==V||C[15]!==d||C[16]!==Z.container||C[17]!==p||C[18]!==g?(h=B("ox-violet-outset-focus relative inline-flex shrink-0 items-center rounded-full border-2 transition-colors duration-200 ease-in-out","enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",Z.container,{"bg-violet-700":n,"bg-gray-400":p,"ox-rose-border":d,"border-transparent":g},V),C[13]=n,C[14]=V,C[15]=d,C[16]=Z.container,C[17]=p,C[18]=g,C[19]=h):h=C[19];const O=n?"checked":"unchecked";let x;C[20]!==n||C[21]!==Z.thumb||C[22]!==Z.translate?(x=B("inline-block transform rounded-full bg-gray-1200 shadow-sm","transition-transform duration-200 ease-in-out",Z.thumb,{[Z.translate]:n}),C[20]=n,C[21]=Z.thumb,C[22]=Z.translate,C[23]=x):x=C[23];let b;C[24]!==x?(b=m.jsx("span",{className:x}),C[24]=x,C[25]=b):b=C[25];let w;return C[26]!==n||C[27]!==A||C[28]!==L||C[29]!==d||C[30]!==S||C[31]!==l||C[32]!==u||C[33]!==O||C[34]!==b||C[35]!==h?(w=m.jsx("button",{id:u,"aria-checked":n,"aria-invalid":d,"aria-required":l,className:h,"data-ox-slot":"switch",disabled:A,role:"switch",type:"button",onClick:S,...L,"data-ox-state":O,children:b}),C[26]=n,C[27]=A,C[28]=L,C[29]=d,C[30]=S,C[31]=l,C[32]=u,C[33]=O,C[34]=b,C[35]=h,C[36]=w):w=C[36],w},IA2={sm:`${s1.sm} min-${w1.sm}`,md:`${s1.md} min-${w1.md}`},jA2=H=>{const C=T.compilerRuntimeExports.c(41);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({className:V,disabled:t,error:i,id:r,name:e,onChange:M,placeholder:a,required:o,rows:n,showMaxLength:A,size:d,value:l,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=t===void 0?!1:t,c=i===void 0?!1:i,v=a===void 0?"Enter text...":a,u=o===void 0?!1:o,Z=n===void 0?3:n,f=A===void 0?!1:A,S=d===void 0?"sm":d,p=D.useId(),[g,h]=D.useState(0),x=`${r||p}-textarea`,b=L.maxLength,w=l!==void 0,y=w?typeof l=="string"?l.length:0:g;let k;C[14]!==w||C[15]!==M?(k=$=>{w||h($.target.value.length),M?.($)},C[14]=w,C[15]=M,C[16]=k):k=C[16];const R=k,N=IA2[S],j=!c;let F;C[17]!==V||C[18]!==c||C[19]!==j||C[20]!==N?(F=B("flex w-full resize-y rounded-lg bg-gray-50 px-2 py-2 enabled:text-gray-1200","ox-violet-outset-focus placeholder:text-gray-900 disabled:ox-default-disabled",N,{"ox-rose-border":c,"ox-gray-border":j},V),C[17]=V,C[18]=c,C[19]=j,C[20]=N,C[21]=F):F=C[21];let I;C[22]!==s||C[23]!==L||C[24]!==c||C[25]!==R||C[26]!==e||C[27]!==v||C[28]!==u||C[29]!==Z||C[30]!==F||C[31]!==x||C[32]!==l?(I=m.jsx("textarea",{id:x,"aria-invalid":c,"aria-required":u,className:F,"data-ox-slot":"textarea",disabled:s,name:e,placeholder:v,required:u,rows:Z,value:l,onChange:R,...L}),C[22]=s,C[23]=L,C[24]=c,C[25]=R,C[26]=e,C[27]=v,C[28]=u,C[29]=Z,C[30]=F,C[31]=x,C[32]=l,C[33]=I):I=C[33];let P;C[34]!==y||C[35]!==b||C[36]!==f?(P=f&&typeof b=="number"?m.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-gray-1000",children:[y,"/",b]}):null,C[34]=y,C[35]=b,C[36]=f,C[37]=P):P=C[37];let E;return C[38]!==I||C[39]!==P?(E=m.jsxs("div",{className:"flex w-full flex-col",children:[I,P]}),C[38]=I,C[39]=P,C[40]=E):E=C[40],E},WA2=H=>{const C=T.compilerRuntimeExports.c(20);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=r5();let r;C[4]!==V||C[5]!==M?.selectable?(r=M?.selectable&&(V==null||typeof V=="string"&&V.trim()===""),C[4]=V,C[5]=M?.selectable,C[6]=r):r=C[6];const t=r;let i;C[7]!==M?(i=()=>{M?.toggleAll()},C[7]=M,C[8]=i):i=C[8];const a=i;let o;C[9]!==L?(o=B("border-b border-gray-400 bg-gray-100 px-3 py-2 text-left text-sm font-semibold text-gray-1200",L),C[9]=L,C[10]=o):o=C[10];let n;C[11]!==V||C[12]!==M||C[13]!==a||C[14]!==t?(n=t?m.jsxs("div",{className:"flex items-center justify-center",children:[m.jsx("span",{className:"sr-only",children:"Select all rows"}),m.jsx(t5,{"aria-label":"Select all rows",checked:M.isAllSelected,indeterminate:M.isIndeterminate,onCheckedChange:a})]}):V,C[11]=V,C[12]=M,C[13]=a,C[14]=t,C[15]=n):n=C[15];let A;return C[16]!==e||C[17]!==o||C[18]!==n?(A=m.jsx("th",{className:o,"data-ox-slot":"table-head",...e,children:n}),C[16]=e,C[17]=o,C[18]=n,C[19]=A):A=C[19],A},zA2=H=>{const C=T.compilerRuntimeExports.c(8);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;return C[4]!==V||C[5]!==L||C[6]!==e?(M=m.jsx("thead",{className:L,"data-ox-slot":"table-header",...e,children:V}),C[4]=V,C[5]=L,C[6]=e,C[7]=M):M=C[7],M},$A2=H=>{const C=T.compilerRuntimeExports.c(21);let V,L,e,M;C[0]!==H?({children:V,className:L,rowId:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=r5();let t;C[5]!==r||C[6]!==M?(t=()=>{M&&r?.selectable&&r.toggleSelection(M)},C[5]=r,C[6]=M,C[7]=t):t=C[7];const i=t;let a;if(C[8]!==L||C[9]!==r||C[10]!==M){const A=M&&r?.isSelected(M);a=B("border-b border-gray-400 last:border-b-0","in-[tfoot]:hover:bg-transparent in-[thead]:hover:bg-transparent",{"bg-gray-300":r?.selectable&&A,"in-[tbody]:even:bg-gray-100":r?.striped&&!A,"in-[tbody]:hover:bg-gray-300":r?.hoverable&&!A},L),C[8]=L,C[9]=r,C[10]=M,C[11]=a}else a=C[11];let o;C[12]!==r||C[13]!==i||C[14]!==M?(o=r?.selectable&&M?m.jsx("td",{className:"px-3 py-2",children:m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(t5,{"aria-label":`Select row ${M}`,checked:r.isSelected(M),onCheckedChange:i})})}):null,C[12]=r,C[13]=i,C[14]=M,C[15]=o):o=C[15];let n;return C[16]!==V||C[17]!==e||C[18]!==a||C[19]!==o?(n=m.jsxs("tr",{className:a,"data-ox-slot":"table-row",...e,children:[o,V]}),C[16]=V,C[17]=e,C[18]=a,C[19]=o,C[20]=n):n=C[20],n},X1=Mn2;X1.Body=tn2;X1.Cell=in2;X1.Controls=an2;X1.Footer=on2;X1.Head=WA2;X1.Header=zA2;X1.Row=$A2;X1.SkeletonRow=Y0;const a7=D.createContext(null),_A2=H=>{const C=T.compilerRuntimeExports.c(22);let V,L,e,M,r,t;C[0]!==H?({children:V,className:L,defaultValue:e,onValueChange:r,value:t,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const[i,a]=D.useState(e||""),o=t!==void 0,n=o?t:i;let A;C[7]!==o||C[8]!==r?(A=Z=>{o||a(Z),r?.(Z)},C[7]=o,C[8]=r,C[9]=A):A=C[9];const d=A;let l;C[10]!==n||C[11]!==d?(l={value:n,onValueChange:d},C[10]=n,C[11]=d,C[12]=l):l=C[12];const s=l;let c;C[13]!==L?(c=B("w-full",L),C[13]=L,C[14]=c):c=C[14];let v;C[15]!==V||C[16]!==M||C[17]!==c?(v=m.jsx("div",{className:c,"data-ox-slot":"tabs",...M,children:V}),C[15]=V,C[16]=M,C[17]=c,C[18]=v):v=C[18];let u;return C[19]!==s||C[20]!==v?(u=m.jsx(a7.Provider,{value:s,children:v}),C[19]=s,C[20]=v,C[21]=u):u=C[21],u},o7=()=>{const H=D.useContext(a7);if(!H)throw new Error("Tabs components must be used within OxTabs");return H},GA2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,value:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{value:r}=o7();if(!(r===M))return null;const i=`tab-${M}`;let a;C[5]!==L?(a=B("pt-4 text-gray-1200",L),C[5]=L,C[6]=a):a=C[6];let o;return C[7]!==V||C[8]!==e||C[9]!==i||C[10]!==a?(o=m.jsx("div",{"aria-labelledby":i,className:a,"data-ox-slot":"tabs-content",role:"tabpanel",...e,children:V}),C[7]=V,C[8]=e,C[9]=i,C[10]=a,C[11]=o):o=C[11],o},UA2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("flex border-b border-gray-400",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"tabs-list",role:"tablist",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},QA2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,value:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,{onValueChange:i,value:a}=o7(),o=a===r;let n;C[6]!==t||C[7]!==i||C[8]!==r?(n=()=>{t||i(r)},C[6]=t,C[7]=i,C[8]=r,C[9]=n):n=C[9];const A=n;let d;C[10]!==A?(d=Z=>{(Z.key==="Enter"||Z.key==="Space")&&(Z.preventDefault(),A())},C[10]=A,C[11]=d):d=C[11];const l=d,s=!o;let c;C[12]!==L||C[13]!==o||C[14]!==s?(c=B("relative rounded-t-lg border-t border-r border-l border-transparent px-4 py-2 text-sm font-medium transition-colors enabled:cursor-pointer","ox-violet-outset-focus enabled:hover:bg-gray-300 enabled:hover:text-gray-1200","disabled:ox-default-disabled",{"border-gray-400 text-gray-1200":o,"text-gray-1100":s},L),C[12]=L,C[13]=o,C[14]=s,C[15]=c):c=C[15];const v=o?"active":"inactive";let u;return C[16]!==V||C[17]!==t||C[18]!==e||C[19]!==A||C[20]!==l||C[21]!==o||C[22]!==c||C[23]!==v?(u=m.jsx("button",{"aria-selected":o,className:c,"data-ox-slot":"tabs-trigger",disabled:t,role:"tab",onClick:A,onKeyDown:l,...e,"data-ox-state":v,children:V}),C[16]=V,C[17]=t,C[18]=e,C[19]=A,C[20]=l,C[21]=o,C[22]=c,C[23]=v,C[24]=u):u=C[24],u},A5=_A2;A5.List=UA2;A5.Trigger=QA2;A5.Content=GA2;const qA2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("grid grid-cols-[1fr_auto_1fr] items-start gap-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("ol",{"aria-label":"Timeline",className:M,"data-ox-slot":"timeline",role:"list",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},YA2=H=>{const C=T.compilerRuntimeExports.c(51);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({align:i,children:V,className:L,color:a,description:e,icon:r,label:t,showSeparator:o,timestamp:n,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?"left":i,d=a===void 0?"purple":a,l=o===void 0?!1:o,s=V||e;let c;C[11]!==L?(c=B("col-span-3 grid grid-cols-subgrid",L),C[11]=L,C[12]=c):c=C[12];let v;C[13]!==A||C[14]!==d||C[15]!==s||C[16]!==t||C[17]!==n?(v=A==="left"&&m.jsxs("div",{className:"space-y-1 text-right",children:[m.jsx("h6",{className:B("text-sm leading-tight font-medium",d1[d].text),children:t}),s&&m.jsx(u2,{children:s}),n&&m.jsx("span",{className:"text-xs text-gray-1000",children:n})]}),C[13]=A,C[14]=d,C[15]=s,C[16]=t,C[17]=n,C[18]=v):v=C[18];let u;C[19]!==v?(u=m.jsx("div",{children:v}),C[19]=v,C[20]=u):u=C[20];const Z=d1[d],f=d1[d];let S;C[21]!==Z.background||C[22]!==f.border?(S=B("flex items-center justify-center rounded-lg",f2.md,Z.background,f.border),C[21]=Z.background,C[22]=f.border,C[23]=S):S=C[23];const p=d1[d];let g;C[24]!==p.text?(g=B("text-gray-1200",p.text),C[24]=p.text,C[25]=g):g=C[25];const h=r||"mdiCircle";let O;C[26]!==g||C[27]!==h?(O=m.jsx(a1,{className:g,path:h,size:R1.md}),C[26]=g,C[27]=h,C[28]=O):O=C[28];let x;C[29]!==O||C[30]!==S?(x=m.jsx("div",{className:S,children:O}),C[29]=O,C[30]=S,C[31]=x):x=C[31];let b;C[32]!==l?(b=l?m.jsx(J5,{className:"mx-auto",orientation:"vertical"}):null,C[32]=l,C[33]=b):b=C[33];let w;C[34]!==x||C[35]!==b?(w=m.jsxs("div",{className:"grid shrink-0 grid-rows-[auto_1fr] gap-4",children:[x,b]}),C[34]=x,C[35]=b,C[36]=w):w=C[36];let y;C[37]!==A||C[38]!==d||C[39]!==s||C[40]!==t||C[41]!==n?(y=A==="right"&&m.jsxs("div",{className:"space-y-1 text-left",children:[m.jsx("h6",{className:B("text-sm leading-tight font-medium",d1[d].text),children:t}),s&&m.jsx(u2,{children:s}),n&&m.jsx("span",{className:"text-xs text-gray-1000",children:n})]}),C[37]=A,C[38]=d,C[39]=s,C[40]=t,C[41]=n,C[42]=y):y=C[42];let k;C[43]!==y?(k=m.jsx("div",{children:y}),C[43]=y,C[44]=k):k=C[44];let R;return C[45]!==M||C[46]!==w||C[47]!==k||C[48]!==c||C[49]!==u?(R=m.jsxs("li",{className:c,"data-ox-slot":"timeline-item",role:"listitem",...M,children:[u,w,k]}),C[45]=M,C[46]=w,C[47]=k,C[48]=c,C[49]=u,C[50]=R):R=C[50],R},n7=qA2;n7.Item=YA2;const KA2=H=>{const C=T.compilerRuntimeExports.c(49),{index:V,onRemove:L,position:e,toast:M}=H,r=M.icon??F1[M.type].icon,t=M.color?d1[M.color]:F1[M.type],[i,a]=D.useState(!0);let o,n;C[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{const w=setTimeout(()=>a(!1),50);return()=>clearTimeout(w)},n=[],C[0]=o,C[1]=n):(o=C[0],n=C[1]),D.useEffect(o,n);const A=V*8,d=1-V*.05;let l;C[2]!==V||C[3]!==i||C[4]!==e||C[5]!==d||C[6]!==A||C[7]!==M.isRemoving?(l=()=>{const w=i?e==="top"?-16:16:0;return e==="top"?{top:`${A+w}px`,transform:`scale(${d})`,zIndex:30-V,opacity:M.isRemoving||i?0:1}:{top:`${-A+w}px`,transform:`scale(${d})`,zIndex:30-V,opacity:M.isRemoving||i?0:1}},C[2]=V,C[3]=i,C[4]=e,C[5]=d,C[6]=A,C[7]=M.isRemoving,C[8]=l):l=C[8];const s=l;if(M.customContent){let w;C[9]!==s?(w=s(),C[9]=s,C[10]=w):w=C[10];let y;C[11]!==L||C[12]!==M.id?(y=()=>L(M.id),C[11]=L,C[12]=M.id,C[13]=y):y=C[13];let k;return C[14]!==w||C[15]!==y||C[16]!==M.customContent?(k=m.jsx("div",{className:"ox-gray-border pointer-events-auto absolute w-full cursor-pointer rounded-lg bg-gray-200 transition-all duration-300 ease-out md:w-80","data-ox-slot":"toast-item",role:"status",style:w,onClick:y,children:M.customContent}),C[14]=w,C[15]=y,C[16]=M.customContent,C[17]=k):k=C[17],k}const c=M.description?`${M.id}-desc`:void 0,v=M.type==="error"||M.type==="warning"?"alert":"status";let u;C[18]!==s?(u=s(),C[18]=s,C[19]=u):u=C[19];let Z;C[20]!==L||C[21]!==M.id?(Z=()=>L(M.id),C[20]=L,C[21]=M.id,C[22]=Z):Z=C[22];let f;C[23]!==M.type?(f=m.jsxs("span",{className:"sr-only",children:[M.type," notification:"]}),C[23]=M.type,C[24]=f):f=C[24];let S;C[25]!==t.background?(S=B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",t.background),C[25]=t.background,C[26]=S):S=C[26];let p;C[27]!==r||C[28]!==t.text?(p=m.jsx(a1,{className:t.text,path:r,size:.7}),C[27]=r,C[28]=t.text,C[29]=p):p=C[29];let g;C[30]!==p||C[31]!==S?(g=m.jsx("div",{className:S,children:p}),C[30]=p,C[31]=S,C[32]=g):g=C[32];let h;C[33]!==M.title?(h=m.jsx("div",{className:"text-xs font-medium text-gray-1200",children:M.title}),C[33]=M.title,C[34]=h):h=C[34];let O;C[35]!==M.description||C[36]!==M.id?(O=M.description?m.jsx("p",{id:`${M.id}-desc`,className:"mt-1 text-xs",children:M.description}):null,C[35]=M.description,C[36]=M.id,C[37]=O):O=C[37];let x;C[38]!==h||C[39]!==O?(x=m.jsxs("div",{className:"flex-1",children:[h,O]}),C[38]=h,C[39]=O,C[40]=x):x=C[40];let b;return C[41]!==g||C[42]!==x||C[43]!==c||C[44]!==v||C[45]!==u||C[46]!==Z||C[47]!==f?(b=m.jsxs("div",{"aria-describedby":c,className:"ox-gray-border pointer-events-auto absolute flex w-full cursor-pointer items-center gap-3 rounded-lg bg-gray-200 p-4 transition-all duration-300 ease-out md:w-80","data-ox-slot":"toast-item",role:v,style:u,onClick:Z,children:[f,g,x]}),C[41]=g,C[42]=x,C[43]=c,C[44]=v,C[45]=u,C[46]=Z,C[47]=f,C[48]=b):b=C[48],b},XA2={left:"left-1/2 -translate-x-1/2 md:translate-none md:left-4",center:"left-1/2 -translate-x-1/2",right:"left-1/2 -translate-x-1/2 md:translate-none md:left-auto md:right-4"},JA2={top:"top-4",bottom:"bottom-24"},A7=H=>{const C=T.compilerRuntimeExports.c(13),{align:V,onRemove:L,position:e,toasts:M}=H,r=XA2[V],t=JA2[e];let i;C[0]!==r||C[1]!==t?(i=B("pointer-events-none fixed z-50 w-11/12 md:w-80",r,t),C[0]=r,C[1]=t,C[2]=i):i=C[2];let a;if(C[3]!==L||C[4]!==e||C[5]!==M){let n;C[7]!==L||C[8]!==e?(n=(A,d)=>m.jsx(KA2,{index:d,position:e,toast:A,onRemove:L},A.id),C[7]=L,C[8]=e,C[9]=n):n=C[9],a=M.map(n),C[3]=L,C[4]=e,C[5]=M,C[6]=a}else a=C[6];let o;return C[10]!==i||C[11]!==a?(o=k2.createPortal(m.jsx("div",{"aria-atomic":"false","aria-label":"Notifications","aria-live":"polite",className:i,"data-ox-slot":"toast-container",role:"region",children:a}),document.body),C[10]=i,C[11]=a,C[12]=o):o=C[12],o},l7=D.createContext(null),Cl2=H=>{const C=T.compilerRuntimeExports.c(15),{align:V,children:L,maxToasts:e,position:M}=H,r=V===void 0?"right":V,t=e===void 0?3:e,i=M===void 0?"top":M;let a;C[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],C[0]=a):a=C[0];const[o,n]=D.useState(a);let A;C[1]===Symbol.for("react.memo_cache_sentinel")?(A=p=>{n(g=>g.map(h=>h.id===p?{...h,isRemoving:!0}:h)),setTimeout(()=>{n(g=>T.reject(g,h=>h.id===p))},200)},C[1]=A):A=C[1];const d=A;let l;C[2]!==t?(l=(p,g,h,O)=>{const x=T.uniqueId(),b=h?.duration??5e3,w={id:x,title:p,type:g,duration:b,description:h?.description,icon:h?.icon,color:h?.color,customContent:O};return n(y=>T.take([w,...y],t)),b>0&&setTimeout(()=>{d(x)},b),x},C[2]=t,C[3]=l):l=C[3];const s=l;let c;C[4]===Symbol.for("react.memo_cache_sentinel")?(c=p=>{p?d(p):n([])},C[4]=c):c=C[4];const v=c;let u;C[5]!==s?(u=Object.assign((p,g)=>s(p,"default",g),{success:(p,g)=>s(p,"success",g),error:(p,g)=>s(p,"error",g),warning:(p,g)=>s(p,"warning",g),info:(p,g)=>s(p,"info",g),custom:(p,g)=>s("","default",{duration:g?.duration},p),dismiss:v}),C[5]=s,C[6]=u):u=C[6];const Z=u;let f;C[7]!==r||C[8]!==i||C[9]!==o?(f=m.jsx(A7,{align:r,position:i,toasts:o,onRemove:d}),C[7]=r,C[8]=i,C[9]=o,C[10]=f):f=C[10];let S;return C[11]!==L||C[12]!==f||C[13]!==Z?(S=m.jsxs(l7.Provider,{value:Z,children:[L,f]}),C[11]=L,C[12]=f,C[13]=Z,C[14]=S):S=C[14],S},Hl2=()=>{const H=D.useContext(l7);if(!H)throw new Error("useOxToast must be used within a ToastProvider");return H},d7=D.createContext(null),Vl2=()=>D.useContext(d7),Ll2={sm:`px-3 ${w1.sm} ${s1.sm}`,md:`px-4 ${w1.md} ${s1.md}`},el2=H=>{const C=T.compilerRuntimeExports.c(35);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,disabled:e,id:i,onPressedChange:r,pressed:t,size:a,value:o,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=D.useId(),A=Vl2(),l=`${i||n}-toggle`,s=A!==null,c=a||A?.size||"sm",v=e||A?.disabled||!1;let u,Z,f,S;if(C[10]!==v||C[11]!==c||C[12]!==L||C[13]!==A||C[14]!==s||C[15]!==r||C[16]!==t||C[17]!==l||C[18]!==o){let g;if(s&&o!==void 0){A.type==="single"?g=A.value===o:g=(A.value||[]).includes(o);let h;C[23]!==v||C[24]!==A||C[25]!==o?(h=()=>{!v&&A.onToggle&&A.onToggle(o)},C[23]=v,C[24]=A,C[25]=o,C[26]=h):h=C[26],u=h}else g=t||!1,u=()=>{!v&&r&&r(!g)};Z=l,f=g,S=B("inline-flex items-center gap-2 rounded-md border transition-colors duration-200","ox-gray-outset-focus enabled:cursor-pointer disabled:ox-default-disabled",Ll2[c],{"border-gray-400 bg-gray-300 text-gray-1200 enabled:hover:bg-gray-500":g,"border-gray-400 bg-gray-50 text-gray-1000 enabled:hover:bg-gray-300":!g},L),C[10]=v,C[11]=c,C[12]=L,C[13]=A,C[14]=s,C[15]=r,C[16]=t,C[17]=l,C[18]=o,C[19]=u,C[20]=Z,C[21]=f,C[22]=S}else u=C[19],Z=C[20],f=C[21],S=C[22];let p;return C[27]!==v||C[28]!==V||C[29]!==M||C[30]!==u||C[31]!==Z||C[32]!==f||C[33]!==S?(p=m.jsx("button",{id:Z,"aria-pressed":f,className:S,"data-ox-slot":"toggle",disabled:v,role:"button",type:"button",onClick:u,...M,children:V}),C[27]=v,C[28]=V,C[29]=M,C[30]=u,C[31]=Z,C[32]=f,C[33]=S,C[34]=p):p=C[34],p},Ml2=H=>{const C=T.compilerRuntimeExports.c(30);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,disabled:t,name:M,onValueChange:r,size:i,type:a,value:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=t===void 0?!1:t,A=i===void 0?"sm":i,d=a===void 0?"single":a;let l;C[10]!==r||C[11]!==d||C[12]!==o?(l=f=>{if(r)if(d==="single")r(o===f?"":f);else{const S=o||[],p=S.includes(f)?S.filter(g=>g!==f):[...S,f];r(p)}},C[10]=r,C[11]=d,C[12]=o,C[13]=l):l=C[13];const s=l;let c;C[14]!==n||C[15]!==s||C[16]!==M||C[17]!==A||C[18]!==d||C[19]!==o?(c={value:o,onToggle:s,name:M,size:A,disabled:n,type:d},C[14]=n,C[15]=s,C[16]=M,C[17]=A,C[18]=d,C[19]=o,C[20]=c):c=C[20];let v;C[21]!==L?(v=B("flex flex-wrap gap-2",L),C[21]=L,C[22]=v):v=C[22];let u;C[23]!==V||C[24]!==e||C[25]!==v?(u=m.jsx("div",{className:v,"data-ox-slot":"toggle-group",role:"group",...e,children:V}),C[23]=V,C[24]=e,C[25]=v,C[26]=u):u=C[26];let Z;return C[27]!==c||C[28]!==u?(Z=m.jsx(d7.Provider,{value:c,children:u}),C[27]=c,C[28]=u,C[29]=Z):Z=C[29],Z},s7=el2;s7.Group=Ml2;const rl2={default:"ox-gray-border text-gray-1200 bg-gray-200",error:B(...Object.values(T.pick(d1.rose,["background","border","text"]))),warning:B(...Object.values(T.pick(d1.amber,["background","border","text"]))),info:B(...Object.values(T.pick(d1.blue,["background","border","text"]))),success:B(...Object.values(T.pick(d1.green,["background","border","text"])))},m7=H=>{const C=T.compilerRuntimeExports.c(19),{align:V,children:L,className:e,content:M,disabled:r,hoverDelay:t,id:i,onOpenChange:a,open:o,position:n,trigger:A,variant:d}=H,l=V===void 0?"center":V,s=r===void 0?!1:r,c=t===void 0?500:t,v=n===void 0?"top":n,u=A===void 0?"hover":A,Z=d===void 0?"default":d;let f;C[0]!==L?(f=m.jsx(g1.Trigger,{asChild:!0,children:L}),C[0]=L,C[1]=f):f=C[1];const S=rl2[Z];let p;C[2]!==e||C[3]!==S?(p=B("max-w-xs rounded-md border px-2 py-1 text-xs break-words",S,e),C[2]=e,C[3]=S,C[4]=p):p=C[4];let g;C[5]!==M||C[6]!==p?(g=m.jsx(g1.Content,{className:"ox-tooltip-animate rounded-md backdrop-blur-sm",role:"tooltip",children:m.jsx("div",{className:p,"data-ox-slot":"tooltip-content",children:M})}),C[5]=M,C[6]=p,C[7]=g):g=C[7];let h;return C[8]!==l||C[9]!==s||C[10]!==c||C[11]!==i||C[12]!==a||C[13]!==o||C[14]!==v||C[15]!==g||C[16]!==f||C[17]!==u?(h=m.jsxs(g1,{id:i,align:l,animationDuration:100,disabled:s,hoverDelay:c,offset:8,open:o,position:v,trigger:u,useAriaControls:!1,onOpenChange:a,children:[f,g]}),C[8]=l,C[9]=s,C[10]=c,C[11]=i,C[12]=a,C[13]=o,C[14]=v,C[15]=g,C[16]=f,C[17]=u,C[18]=h):h=C[18],h};exports.COLOR_STYLES=d1;exports.MOBILE_BREAKPOINT=i0;exports.OxAccordion=J2;exports.OxAlert=a0;exports.OxAvatar=C5;exports.OxBadge=_2;exports.OxBreadcrumb=H5;exports.OxButton=x1;exports.OxCalendar=x0;exports.OxCard=V5;exports.OxCheckbox=t5;exports.OxDateInput=E2;exports.OxDescription=u2;exports.OxDescriptionList=G5;exports.OxDialog=e5;exports.OxDrawer=q1;exports.OxDropdown=B1;exports.OxError=_0;exports.OxFileUpload=i5;exports.OxFloating=g1;exports.OxFloatingContext=U5;exports.OxForm=t2;exports.OxHeading=G0;exports.OxIcon=a1;exports.OxJsonField=R0;exports.OxLabel=U0;exports.OxLegend=Jo2;exports.OxLink=lo2;exports.OxNotifications=P2;exports.OxNumberInput=g2;exports.OxOtpInput=VA2;exports.OxPagination=B2;exports.OxPopover=X5;exports.OxProgress=I0;exports.OxRadio=M7;exports.OxSelect=a2;exports.OxSeparator=J5;exports.OxSkeleton=h2;exports.OxSkeletonText=zo2;exports.OxSlider=Go2;exports.OxSpinner=b0;exports.OxStatusDisplay=Yo2;exports.OxStepper=H3;exports.OxSwitch=NA2;exports.OxTable=X1;exports.OxTabs=A5;exports.OxTextInput=i2;exports.OxTextarea=jA2;exports.OxTimeInput=n5;exports.OxTimeline=n7;exports.OxToast=A7;exports.OxToastProvider=Cl2;exports.OxToggle=s7;exports.OxTooltip=m7;exports.buildMailTo=Z7;exports.buildUrl=u7;exports.cn=B;exports.copyToClipboard=V4;exports.createId=t4;exports.formatBytes=a4;exports.formatCurrency=o4;exports.formatDate=n4;exports.formatNumber=A4;exports.formatTimestamp=I5;exports.generateRandomString=H0;exports.handleFormErrors=L0;exports.handleGraphQLFormErrors=i4;exports.hasDataSlot=X2;exports.parseGraphQLErrors=V0;exports.scrollToElement=l4;exports.useOxFloatingContext=j1;exports.useOxToast=Hl2;exports.validateEmail=Z4;exports.validatePhone=p4;exports.validateUrl=S4;
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=X(_,Q,G,U,Y+"."+Q,V);if(z)return z}return null}return c(E)}function k(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(k);if(P===null||t(P))return!0;var E=n(P);if(E){var $=E.call(P),W;if(E!==P.entries){for(;!(W=$.next()).done;)if(!k(W.value))return!1}else for(;!(W=$.next()).done;){var G=W.value;if(G&&!k(G[1]))return!1}}else return!1;return!0;default:return!1}}function R(P,E){return P==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function N(P){var E=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":R(E,P)?"symbol":E}function j(P){if(typeof P>"u"||P===null)return""+P;var E=N(P);if(E==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return E}function F(P){var E=j(P);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function I(P){return!P.constructor||!P.constructor.name?A:P.constructor.name}return d.checkPropTypes=e,d.resetWarningCache=e.resetWarningCache,d.PropTypes=d,d},b5}var y5,R3;function Lo2(){if(R3)return y5;R3=1;var H=Y5();function C(){}function V(){}return V.resetWarningCache=C,y5=function(){function L(r,t,i,a,o,n){if(n!==H){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}L.isRequired=L;function e(){return L}var M={array:L,bigint:L,bool:L,func:L,number:L,object:L,string:L,symbol:L,any:L,arrayOf:e,element:L,elementType:L,instanceOf:e,node:L,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:V,resetWarningCache:C};return M.PropTypes=M,M},y5}var E3;function eo2(){if(E3)return W2.exports;if(E3=1,process.env.NODE_ENV!=="production"){var H=T0(),C=!0;W2.exports=Vo2()(H.isElement,C)}else W2.exports=Lo2()();return W2.exports}var w5,F3;function Mo2(){return F3||(F3=1,w5=(function(H){var C={};function V(L){if(C[L])return C[L].exports;var e=C[L]={i:L,l:!1,exports:{}};return H[L].call(e.exports,e,e.exports,V),e.l=!0,e.exports}return V.m=H,V.c=C,V.d=function(L,e,M){V.o(L,e)||Object.defineProperty(L,e,{enumerable:!0,get:M})},V.r=function(L){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})},V.t=function(L,e){if(1&e&&(L=V(L)),8&e||4&e&&typeof L=="object"&&L&&L.__esModule)return L;var M=Object.create(null);if(V.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:L}),2&e&&typeof L!="string")for(var r in L)V.d(M,r,(function(t){return L[t]}).bind(null,r));return M},V.n=function(L){var e=L&&L.__esModule?function(){return L.default}:function(){return L};return V.d(e,"a",e),e},V.o=function(L,e){return Object.prototype.hasOwnProperty.call(L,e)},V.p="",V(V.s=2)})([function(H,C){H.exports=eo2()},function(H,C){H.exports=D},function(H,C,V){V.r(C);var L=V(1),e=V(0),M=function(){return(M=Object.assign||function(l){for(var s,c=1,v=arguments.length;c<v;c++)for(var u in s=arguments[c])Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l}).apply(this,arguments)},r=function(l,s){var c={};for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&s.indexOf(v)<0&&(c[v]=l[v]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var u=0;for(v=Object.getOwnPropertySymbols(l);u<v.length;u++)s.indexOf(v[u])<0&&Object.prototype.propertyIsEnumerable.call(l,v[u])&&(c[v[u]]=l[v[u]])}return c},t=0,i=L.forwardRef((function(l,s){var c=l.title,v=c===void 0?null:c,u=l.description,Z=u===void 0?null:u,f=l.size,S=f===void 0?null:f,p=l.color,g=p===void 0?"currentColor":p,h=l.horizontal,O=h===void 0?null:h,x=l.vertical,b=x===void 0?null:x,w=l.rotate,y=w===void 0?null:w,k=l.spin,R=k===void 0?null:k,N=l.style,j=N===void 0?{}:N,F=l.children,I=r(l,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);t++;var P,E=R!==null&&R,$=L.Children.map(F,(function(Y){var _=Y;E!==!0&&(E=(R===null?_.props.spin:R)===!0);var q=_.props.size;typeof S=="number"&&typeof _.props.size=="number"&&(q=_.props.size/S);var K={size:q,color:g===null?_.props.color:g,horizontal:O===null?_.props.horizontal:O,vertical:b===null?_.props.vertical:b,rotate:y===null?_.props.rotate:y,spin:R===null?_.props.spin:R,inStack:!0};return L.cloneElement(_,K)}));S!==null&&(j.width=typeof S=="string"?S:1.5*S+"rem");var W,G="stack_labelledby_"+t,U="stack_describedby_"+t;if(v)P=Z?G+" "+U:G;else if(W="presentation",Z)throw new Error("title attribute required when description is set");return L.createElement("svg",M({ref:s,viewBox:"0 0 24 24",style:j,role:W,"aria-labelledby":P},I),v&&L.createElement("title",{id:G},v),Z&&L.createElement("desc",{id:U},Z),E&&L.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),$)}));i.displayName="Stack",i.propTypes={size:e.oneOfType([e.number,e.string]),color:e.string,horizontal:e.bool,vertical:e.bool,rotate:e.number,spin:e.oneOfType([e.bool,e.number]),children:e.oneOfType([e.arrayOf(e.node),e.node]).isRequired,className:e.string,style:e.object},i.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var a=i;V.d(C,"Icon",(function(){return d})),V.d(C,"Stack",(function(){return a}));var o=function(){return(o=Object.assign||function(l){for(var s,c=1,v=arguments.length;c<v;c++)for(var u in s=arguments[c])Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l}).apply(this,arguments)},n=function(l,s){var c={};for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&s.indexOf(v)<0&&(c[v]=l[v]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var u=0;for(v=Object.getOwnPropertySymbols(l);u<v.length;u++)s.indexOf(v[u])<0&&Object.prototype.propertyIsEnumerable.call(l,v[u])&&(c[v[u]]=l[v[u]])}return c},A=0,d=L.forwardRef((function(l,s){var c=l.path,v=l.id,u=v===void 0?++A:v,Z=l.title,f=Z===void 0?null:Z,S=l.description,p=S===void 0?null:S,g=l.size,h=g===void 0?null:g,O=l.color,x=O===void 0?"currentColor":O,b=l.horizontal,w=b!==void 0&&b,y=l.vertical,k=y!==void 0&&y,R=l.rotate,N=R===void 0?0:R,j=l.spin,F=j!==void 0&&j,I=l.style,P=I===void 0?{}:I,E=l.inStack,$=E!==void 0&&E,W=n(l,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),G={},U=[];h!==null&&($?U.push("scale("+h+")"):(P.width=typeof h=="string"?h:1.5*h+"rem",P.height=P.width)),w&&U.push("scaleX(-1)"),k&&U.push("scaleY(-1)"),N!==0&&U.push("rotate("+N+"deg)"),x!==null&&(G.fill=x);var Y=L.createElement("path",o({d:c,style:G},$?W:{})),_=Y;U.length>0&&(P.transform=U.join(" "),P.transformOrigin="center",$&&(_=L.createElement("g",{style:P},Y,L.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var q,K=_,Q=F===!0||typeof F!="number"?2:F,X=!$&&(w||k);if(Q<0&&(X=!X),F&&(K=L.createElement("g",{style:{animation:"spin"+(X?"-inverse":"")+" linear "+Math.abs(Q)+"s infinite",transformOrigin:"center"}},_,!(w||k||N!==0)&&L.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),$)return K;var z,H1="icon_labelledby_"+u,M1="icon_describedby_"+u;if(f)q=p?H1+" "+M1:H1;else if(z="presentation",p)throw new Error("title attribute required when description is set");return L.createElement("svg",o({ref:s,viewBox:"0 0 24 24",style:P,role:z,"aria-labelledby":q},W),f&&L.createElement("title",{id:H1},f),p&&L.createElement("desc",{id:M1},p),!$&&F&&(X?L.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):L.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),K)}));d.displayName="Icon",d.propTypes={path:e.string.isRequired,size:e.oneOfType([e.number,e.string]),color:e.string,horizontal:e.bool,vertical:e.bool,rotate:e.number,spin:e.oneOfType([e.bool,e.number]),style:e.object,inStack:e.bool,className:e.string},d.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},C.default=d}])),w5}var ro2=Mo2();const to2=T.getDefaultExportFromCjs(ro2),a1=H=>{const C=T.compilerRuntimeExports.c(19);let V,L,e,M,r;C[0]!==H?({className:V,path:L,placeholder:M,size:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?.9:r;let a;C[6]!==L?(a=()=>{const s=Ka2;return L&&s[L]?s[L]:s.mdiHelpCircleOutline},C[6]=L,C[7]=a):a=C[7];const o=a,n=!t;let A;C[8]!==V||C[9]!==t||C[10]!==n?(A=B({"text-gray-1200":n,"text-transparent":t},V),C[8]=V,C[9]=t,C[10]=n,C[11]=A):A=C[11];let d;C[12]!==o?(d=o(),C[12]=o,C[13]=d):d=C[13];let l;return C[14]!==e||C[15]!==i||C[16]!==A||C[17]!==d?(l=m.jsx(to2,{"aria-hidden":"true",className:A,"data-ox-slot":"icon","data-testid":"icon",path:d,size:i,...e}),C[14]=e,C[15]=i,C[16]=A,C[17]=d,C[18]=l):l=C[18],l},q2=H=>{const C=T.compilerRuntimeExports.c(61),{data:V,level:L}=H,[e,M]=D.useState(L>2);let r;C[0]!==L?(r=" ".repeat(L),C[0]=L,C[1]=r):r=C[1];const t=r;if(V===null){let o;return C[2]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("span",{className:"text-gray-1000",children:"null"}),C[2]=o):o=C[2],o}if(V===void 0){let o;return C[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsx("span",{className:"text-gray-1000",children:"undefined"}),C[3]=o):o=C[3],o}if(typeof V=="string"){let o;return C[4]!==V?(o=m.jsxs("span",{className:d1.green.text,children:['"',V,'"']}),C[4]=V,C[5]=o):o=C[5],o}if(typeof V=="number"){let o;return C[6]!==V?(o=m.jsx("span",{className:d1.blue.text,children:V}),C[6]=V,C[7]=o):o=C[7],o}if(typeof V=="boolean"){let o;C[8]!==V?(o=V.toString(),C[8]=V,C[9]=o):o=C[9];let n;return C[10]!==o?(n=m.jsx("span",{className:d1.amber.text,children:o}),C[10]=o,C[11]=n):n=C[11],n}if(Array.isArray(V)){if(V.length===0){let u;return C[12]===Symbol.for("react.memo_cache_sentinel")?(u=m.jsx("span",{className:d1.gray.text,children:"[]"}),C[12]=u):u=C[12],u}const o=e?"collapsed":"expanded";let n;C[13]!==e?(n=()=>M(!e),C[13]=e,C[14]=n):n=C[14];let A;C[15]===Symbol.for("react.memo_cache_sentinel")?(A=m.jsx("span",{className:"text-gray-1200",children:"["}),C[15]=A):A=C[15];let d;C[16]!==e||C[17]!==V.length?(d=e?m.jsxs("span",{className:"ml-1 text-gray-900",children:[V.length," item",V.length!==1?"s":""]}):null,C[16]=e,C[17]=V.length,C[18]=d):d=C[18];let l;C[19]!==o||C[20]!==n||C[21]!==d?(l=m.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":o,onClick:n,children:[A,d]}),C[19]=o,C[20]=n,C[21]=d,C[22]=l):l=C[22];let s;C[23]!==e||C[24]!==V||C[25]!==t||C[26]!==L?(s=e?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"ml-4",children:V.map((u,Z)=>m.jsxs("div",{className:"block",children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx(q2,{data:u,level:L+1}),Z<V.length-1&&m.jsx("span",{className:"text-gray-1100",children:","})]},Z))}),m.jsxs("div",{children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx("span",{className:"text-gray-1200",children:"]"})]})]}),C[23]=e,C[24]=V,C[25]=t,C[26]=L,C[27]=s):s=C[27];let c;C[28]!==e?(c=e&&m.jsx("span",{className:"text-gray-1200",children:"]"}),C[28]=e,C[29]=c):c=C[29];let v;return C[30]!==l||C[31]!==s||C[32]!==c?(v=m.jsxs("div",{className:"inline","data-ox-slot":"json-array",children:[l,s,c]}),C[30]=l,C[31]=s,C[32]=c,C[33]=v):v=C[33],v}if(typeof V=="object"){let o;C[34]!==V?(o=Object.keys(V),C[34]=V,C[35]=o):o=C[35];const n=o;if(n.length===0){let f;return C[36]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx("span",{className:"text-gray-1100",children:"{}"}),C[36]=f):f=C[36],f}const A=e?"collapsed":"expanded";let d;C[37]!==e?(d=()=>M(!e),C[37]=e,C[38]=d):d=C[38];let l;C[39]===Symbol.for("react.memo_cache_sentinel")?(l=m.jsx("span",{className:"text-gray-1200",children:"{"}),C[39]=l):l=C[39];let s;C[40]!==e||C[41]!==n.length?(s=e?m.jsxs("span",{className:"ml-1 text-gray-1100",children:[n.length," key",n.length!==1?"s":""]}):null,C[40]=e,C[41]=n.length,C[42]=s):s=C[42];let c;C[43]!==A||C[44]!==d||C[45]!==s?(c=m.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":A,onClick:d,children:[l,s]}),C[43]=A,C[44]=d,C[45]=s,C[46]=c):c=C[46];let v;C[47]!==e||C[48]!==V||C[49]!==t||C[50]!==n||C[51]!==L?(v=e?null:m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"ml-4",children:n.map((f,S)=>m.jsxs("div",{className:"block",children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsxs("span",{className:"text-gray-1200",children:['"',f,'"']}),m.jsx("span",{className:"text-gray-1100",children:": "}),m.jsx(q2,{data:V[f],level:L+1}),S<n.length-1&&m.jsx("span",{className:"text-gray-1100",children:","})]},f))}),m.jsxs("div",{children:[m.jsx("span",{className:"text-gray-600",children:t}),m.jsx("span",{className:"text-gray-1200",children:"}"})]})]}),C[47]=e,C[48]=V,C[49]=t,C[50]=n,C[51]=L,C[52]=v):v=C[52];let u;C[53]!==e?(u=e&&m.jsx("span",{className:"text-gray-1200",children:"}"}),C[53]=e,C[54]=u):u=C[54];let Z;return C[55]!==c||C[56]!==v||C[57]!==u?(Z=m.jsxs("div",{className:"inline",children:[c,v,u]}),C[55]=c,C[56]=v,C[57]=u,C[58]=Z):Z=C[58],Z}const i=String(V);let a;return C[59]!==i?(a=m.jsx("span",{className:"text-gray-1100",children:i}),C[59]=i,C[60]=a):a=C[60],a},io2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e;C[0]!==H?({className:V,value:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const[M,r]=D.useState(!1);let t;C[4]!==e?(t=(()=>{if(e==null)return{parsedData:null,isValid:!0,error:null};if(typeof e=="object")return{parsedData:e,isValid:!0,error:null};if(typeof e=="string")try{return{parsedData:JSON.parse(e),isValid:!0,error:null}}catch(S){const p=S;return{parsedData:null,isValid:!1,error:p instanceof Error?p.message:"Invalid JSON"}}return{parsedData:e,isValid:!0,error:null}})(),C[4]=e,C[5]=t):t=C[5];const{error:i,isValid:a,parsedData:o}=t;let n;C[6]!==o||C[7]!==e?(n=async()=>{const f=typeof e=="string"?e:JSON.stringify(o,null,2);try{await navigator.clipboard.writeText(f),r(!0),setTimeout(()=>r(!1),2e3)}catch(S){console.error("Failed to copy:",S)}},C[6]=o,C[7]=e,C[8]=n):n=C[8];const A=n;let d;C[9]!==V?(d=B("ox-gray-border relative w-full overflow-auto rounded-lg bg-gray-50 p-4 font-mono text-sm",V),C[9]=V,C[10]=d):d=C[10];const l=a?M?"copied":"default":"error",s=M?"mdiCheck":"mdiContentCopy";let c;C[11]!==s?(c=m.jsx(x1.Icon,{path:s}),C[11]=s,C[12]=c):c=C[12];let v;C[13]!==A||C[14]!==c?(v=m.jsx(x1,{"aria-label":"Copy JSON to clipboard",className:"absolute top-1 right-1",size:"sm",variant:"ghost",onClick:A,children:c}),C[13]=A,C[14]=c,C[15]=v):v=C[15];let u;C[16]!==i||C[17]!==a||C[18]!==o||C[19]!==e?(u=m.jsx("div",{className:"pr-8 text-gray-1200",children:a?m.jsx(q2,{data:o,level:0}):m.jsxs("div",{className:"text-rose-400",children:[m.jsx("div",{className:"font-medium",children:"Invalid JSON:"}),m.jsx("div",{className:"mt-1 text-xs text-gray-900",children:i}),m.jsx("div",{className:"mt-2 text-gray-1100",children:m.jsx("pre",{className:"whitespace-pre-wrap",children:e})})]})}),C[16]=i,C[17]=a,C[18]=o,C[19]=e,C[20]=u):u=C[20];let Z;return C[21]!==L||C[22]!==d||C[23]!==l||C[24]!==v||C[25]!==u?(Z=m.jsxs("div",{className:d,"data-ox-slot":"json-field",...L,"data-ox-state":l,children:[v,u]}),C[21]=L,C[22]=d,C[23]=l,C[24]=v,C[25]=u,C[26]=Z):Z=C[26],Z},R0=io2;R0.Node=q2;const ao2={primary:"border border-violet-700 bg-gradient-to-br from-violet-700 from-20% to-rose-500",secondary:"ox-gray-border bg-transparent",ghost:"border border-transparent bg-transparent",link:"border border-transparent bg-transparent",danger:"border border-rose-700 bg-rose-700/80"},oo2={primary:"ox-violet-outset-focus",secondary:"ox-gray-outset-focus",ghost:"ox-gray-outset-focus",link:"ox-gray-outset-focus",danger:"ox-rose-outset-focus"},no2={primary:"hover:brightness-120",secondary:"hover:bg-gray-300",ghost:"hover:bg-gray-300",link:"underline-offset-4 decoration-violet-700 hover:underline",danger:"hover:bg-rose-700"},Ao2={sm:`px-1.5 min-w-8 ${s1.sm} ${w1.sm}`,md:`px-2 min-w-10 ${s1.md} ${w1.md}`},lo2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r,t,i;C[0]!==H?({children:V,className:L,disabled:e,href:r,size:t,variant:i,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=t===void 0?"sm":t,o=i===void 0?"link":i,n=Ao2[a],A=ao2[o],d=no2[o],l=!e,s=oo2[o],c=!e;let v;C[8]!==L||C[9]!==e||C[10]!==n||C[11]!==A||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c?(v=B("inline-flex items-center rounded-lg font-medium transition-colors",n,A,{[d]:l,[s]:c,"ox-default-disabled cursor-not-allowed":e},L),C[8]=L,C[9]=e,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v):v=C[16];const u=e?void 0:r,Z=e?-1:void 0,f=e?do2:void 0;let S;return C[17]!==V||C[18]!==e||C[19]!==M||C[20]!==u||C[21]!==Z||C[22]!==f||C[23]!==v?(S=m.jsx("a",{"aria-disabled":e,className:v,"data-ox-slot":"link",href:u,tabIndex:Z,onClick:f,...M,children:V}),C[17]=V,C[18]=e,C[19]=M,C[20]=u,C[21]=Z,C[22]=f,C[23]=v,C[24]=S):S=C[24],S};function do2(H){return H.preventDefault()}const E0=D.createContext(null),so2={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"},mo2=H=>{const C=T.compilerRuntimeExports.c(59);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,closeOnOutsideClick:t,isOpen:M,onClose:r,persistent:i,showCloseButton:a,size:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=t===void 0?!0:t,A=i===void 0?!1:i,d=a===void 0?!0:a,l=o===void 0?"sm":o,s=D.useId(),c=D.useId(),v=D.useRef(null),[u,Z]=D.useState(!1);let f;C[10]!==r?(f=q=>q?void 0:r?.(),C[10]=r,C[11]=f):f=C[11];let S;C[12]!==M||C[13]!==f?(S={value:M,onChange:f,defaultValue:!1,name:"OxDialog"},C[12]=M,C[13]=f,C[14]=S):S=C[14];const[p,g]=T.useControllableState(S),h=u&&p;let O;C[15]!==h?(O={containerRef:v,options:{enabled:h,restoreFocus:!0,trapFocus:!0,autoFocus:!0}},C[15]=h,C[16]=O):O=C[16],T.useFocus(O);let x;C[17]!==g?(x=()=>g(!1),C[17]=g,C[18]=x):x=C[18];let b;C[19]!==c||C[20]!==A||C[21]!==d||C[22]!==x||C[23]!==s?(b={onClose:x,titleId:s,bodyId:c,persistent:A,showCloseButton:d},C[19]=c,C[20]=A,C[21]=d,C[22]=x,C[23]=s,C[24]=b):b=C[24];const w=b;let y;C[25]!==p||C[26]!==u?(y=q=>{q.target===v.current&&!p&&u&&(Z(!1),v.current?.close())},C[25]=p,C[26]=u,C[27]=y):y=C[27];const k=y;let R;C[28]!==p||C[29]!==A||C[30]!==g?(R=()=>{A&&p?v.current?.showModal():A||g(!1)},C[28]=p,C[29]=A,C[30]=g,C[31]=R):R=C[31];const N=R;let j,F;C[32]!==p?(j=()=>{p&&Z(!0)},F=[p],C[32]=p,C[33]=j,C[34]=F):(j=C[33],F=C[34]),D.useEffect(j,F);let I,P;C[35]!==p||C[36]!==u?(I=()=>{const q=v.current;if(!(!q||!u))return p&&(document.body.classList.add("overflow-hidden"),q.showModal()),co2},P=[p,u],C[35]=p,C[36]=u,C[37]=I,C[38]=P):(I=C[37],P=C[38]),D.useEffect(I,P);let E,$;if(C[39]!==n||C[40]!==N||C[41]!==A||C[42]!==u?(E=()=>{const q=v.current;if(!q||!u)return;const K=z=>{z.key==="Escape"&&A&&(z.preventDefault(),z.stopPropagation())},Q=z=>{z.preventDefault(),N()},X=z=>{n&&z.target===q&&N()};return document.addEventListener("keydown",K),q.addEventListener("cancel",Q),q.addEventListener("click",X),q.addEventListener("close",N),()=>{document.removeEventListener("keydown",K),q.removeEventListener("cancel",Q),q.removeEventListener("click",X),q.removeEventListener("close",N)}},$=[u,n,N,A],C[39]=n,C[40]=N,C[41]=A,C[42]=u,C[43]=E,C[44]=$):(E=C[43],$=C[44]),D.useEffect(E,$),!u)return null;const W=so2[l];let G;C[45]!==L||C[46]!==W?(G=B("ox-gray-border fixed inset-0 m-auto h-fit w-full rounded-lg bg-gray-50","ox-dialog-animation ox-dialog-backdrop",W,L),C[45]=L,C[46]=W,C[47]=G):G=C[47];const U=p?"open":"closing";let Y;C[48]!==V||C[49]!==w?(Y=m.jsx(E0.Provider,{value:w,children:V}),C[48]=V,C[49]=w,C[50]=Y):Y=C[50];let _;return C[51]!==c||C[52]!==e||C[53]!==k||C[54]!==G||C[55]!==U||C[56]!==Y||C[57]!==s?(_=k2.createPortal(m.jsx("dialog",{"aria-describedby":c,"aria-labelledby":s,className:G,"data-ox-slot":"dialog",ref:v,role:"dialog",onAnimationEnd:k,...e,"data-ox-state":U,children:Y}),document.body),C[51]=c,C[52]=e,C[53]=k,C[54]=G,C[55]=U,C[56]=Y,C[57]=s,C[58]=_):_=C[58],_};function co2(){document.body.classList.remove("overflow-hidden")}const F0=()=>{const H=D.useContext(E0);if(!H)throw new Error("Dialog sub-components must be used within OxDialog");return H},vo2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{bodyId:M}=F0();let r;C[4]!==L?(r=B("p-4 text-sm text-gray-1200",L),C[4]=L,C[5]=r):r=C[5];let t;return C[6]!==M||C[7]!==V||C[8]!==e||C[9]!==r?(t=m.jsx("div",{id:M,className:r,"data-ox-slot":"dialog-body",...e,children:V}),C[6]=M,C[7]=V,C[8]=e,C[9]=r,C[10]=t):t=C[10],t},uo2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("mx-4 flex justify-end gap-3 border-t border-gray-400 py-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"dialog-footer",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},Zo2=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{onClose:M,persistent:r,showCloseButton:t,titleId:i}=F0(),a=t&&!r;let o;C[4]!==L?(o=B("mx-4 box-content flex h-8 items-center justify-between border-b border-gray-400 py-4 text-gray-1200",L),C[4]=L,C[5]=o):o=C[5];let n;C[6]!==V?(n=m.jsx("div",{className:"flex-1",children:V}),C[6]=V,C[7]=n):n=C[7];let A;C[8]!==M||C[9]!==a?(A=a?m.jsx(x1,{"aria-label":"Close Dialog",size:"sm",variant:"ghost",onClick:M,children:m.jsx(x1.Icon,{path:"mdiClose"})}):null,C[8]=M,C[9]=a,C[10]=A):A=C[10];let d;return C[11]!==e||C[12]!==o||C[13]!==n||C[14]!==A||C[15]!==i?(d=m.jsxs("div",{id:i,className:o,"data-ox-slot":"dialog-header",...e,children:[n,A]}),C[11]=e,C[12]=o,C[13]=n,C[14]=A,C[15]=i,C[16]=d):d=C[16],d},e5=mo2;e5.Body=vo2;e5.Footer=uo2;e5.Header=Zo2;const y2=D.createContext(null),M5=()=>{const H=D.useContext(y2);if(!H)throw new Error("useNotificationsContext must be used within a NotificationsContext.Provider");return H},D0=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({children:V,className:L,icon:M,img:r,message:t,timestamp:o,title:n,type:i,unread:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?"default":i,d=a===void 0?!1:a,{isMobile:l,onItemClick:s,setOpen:c}=M5(),v=F1[A];let u;C[11]!==M||C[12]!==r||C[13]!==l||C[14]!==t||C[15]!==s||C[16]!==c||C[17]!==o||C[18]!==n||C[19]!==A||C[20]!==d?(u=()=>{const O={id:crypto.randomUUID(),icon:M,img:r,message:t,read:!d,timestamp:o||new Date,title:n||"",type:A};s?.(O),l&&c(!1)},C[11]=M,C[12]=r,C[13]=l,C[14]=t,C[15]=s,C[16]=c,C[17]=o,C[18]=n,C[19]=A,C[20]=d,C[21]=u):u=C[21];const Z=u;let f;C[22]!==V||C[23]!==M||C[24]!==r||C[25]!==t||C[26]!==v||C[27]!==o||C[28]!==n||C[29]!==d?(f=V||m.jsxs(m.Fragment,{children:[m.jsx("div",{className:B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",v.background),"data-ox-slot":"notifications-icon",children:r?m.jsx(C5,{alt:"User avatar",fallback:"NA",size:"md",src:r}):m.jsx(a1,{className:v.text,path:M??v.icon,size:.75})}),m.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[n&&m.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:n}),t&&m.jsx("p",{className:"mb-1 text-xs leading-4",children:t}),o&&m.jsx("p",{className:"text-xs text-gray-1000",children:I5(o)})]}),d&&m.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),C[22]=V,C[23]=M,C[24]=r,C[25]=t,C[26]=v,C[27]=o,C[28]=n,C[29]=d,C[30]=f):f=C[30];const S=f;let p;C[31]!==L||C[32]!==d?(p=B("col-span-3 grid cursor-pointer grid-cols-subgrid items-start gap-3 px-3 py-3 text-left","ox-gray-inset-focus hover:bg-gray-400",{"bg-gray-300/80":d},L),C[31]=L,C[32]=d,C[33]=p):p=C[33];const g=d?"unread":"read";let h;return C[34]!==e||C[35]!==Z||C[36]!==S||C[37]!==p||C[38]!==g?(h=m.jsx("li",{className:"contents",children:m.jsx("button",{className:p,"data-ox-slot":"notifications-button",...e,"data-ox-state":g,onClick:Z,children:S})}),C[34]=e,C[35]=Z,C[36]=S,C[37]=p,C[38]=g,C[39]=h):h=C[39],h},D3=B("grid min-h-0 flex-1 auto-rows-min grid-cols-[auto_1fr_auto] overflow-y-auto",'[&_[data-ox-slot="notifications-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="notifications-icon"]]:justify-self-center','[&_[data-ox-slot="notifications-content"]]:[grid-column-start:var(--ox-menu-label-col)]','[&_[data-ox-slot="notifications-unread"]]:[grid-column-start:var(--ox-menu-shortcut-col)] [&_[data-ox-slot="notifications-unread"]]:justify-self-end'),Y2=H=>{const C=T.compilerRuntimeExports.c(52);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{emptyMessage:M,isMobile:r,items:t,onMarkAllRead:i,setOpen:a,unreadCount:o}=M5(),n=t.length>0,A=o>0;let d;C[4]!==r||C[5]!==i||C[6]!==a?(d=()=>{i?.(),r&&a(!1)},C[4]=r,C[5]=i,C[6]=a,C[7]=d):d=C[7];const l=d;let s;C[8]!==V||C[9]!==M||C[10]!==n||C[11]!==t?(s=V||m.jsx(m.Fragment,{children:n?t.map(So2):m.jsxs("li",{className:"col-span-3 px-3 py-8 text-center",role:"status",children:[m.jsx(a1,{className:"mx-auto mb-2 opacity-50",path:"mdiBellOffOutline",size:2}),m.jsx("p",{className:"text-sm opacity-50",children:M})]})}),C[8]=V,C[9]=M,C[10]=n,C[11]=t,C[12]=s):s=C[12];const c=s;if(r){let g;C[13]!==a?(g=()=>a(!1),C[13]=a,C[14]=g):g=C[14];let h;C[15]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx(x1.Icon,{path:"mdiClose"}),C[15]=h):h=C[15];let O;C[16]!==g?(O=m.jsx(x1,{"aria-label":"Close notifications",size:"md",variant:"ghost",onClick:g,children:h}),C[16]=g,C[17]=O):O=C[17];let x;C[18]===Symbol.for("react.memo_cache_sentinel")?(x=m.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),C[18]=x):x=C[18];let b;C[19]!==l||C[20]!==A||C[21]!==i?(b=A&&i&&m.jsx("button",{className:"cursor-pointer text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:l,children:"Mark all read"}),C[19]=l,C[20]=A,C[21]=i,C[22]=b):b=C[22];let w;C[23]!==b?(w=m.jsx("div",{className:"flex items-center gap-2",children:b}),C[23]=b,C[24]=w):w=C[24];let y;C[25]!==O||C[26]!==w?(y=m.jsxs("div",{className:"flex h-15 items-center justify-between border-b border-gray-400 px-4",children:[O,x,w]}),C[25]=O,C[26]=w,C[27]=y):y=C[27];let k;C[28]!==L?(k=B(D3,L),C[28]=L,C[29]=k):k=C[29];let R;C[30]!==e||C[31]!==c||C[32]!==k?(R=m.jsx("ul",{"aria-orientation":"vertical",className:k,"data-ox-slot":"notifications-body",...e,children:c}),C[30]=e,C[31]=c,C[32]=k,C[33]=R):R=C[33];let N;return C[34]!==R||C[35]!==y?(N=m.jsxs(q1.Content,{closeOnOutsideClick:!0,side:"right",children:[y,R]}),C[34]=R,C[35]=y,C[36]=N):N=C[36],N}let v;C[37]===Symbol.for("react.memo_cache_sentinel")?(v=m.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),C[37]=v):v=C[37];let u;C[38]!==A||C[39]!==i?(u=A&&i&&m.jsx("button",{className:"ox-gray-outset-focus cursor-pointer rounded-lg p-1 text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:i,children:"Mark all read"}),C[38]=A,C[39]=i,C[40]=u):u=C[40];let Z;C[41]!==u?(Z=m.jsx(B1.Header,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[v,u]})}),C[41]=u,C[42]=Z):Z=C[42];let f;C[43]!==L?(f=B("w-85",D3,L),C[43]=L,C[44]=f):f=C[44];let S;C[45]!==e||C[46]!==c||C[47]!==f?(S=m.jsx("ul",{"aria-orientation":"vertical",className:f,"data-ox-slot":"notifications-body",...e,children:c}),C[45]=e,C[46]=c,C[47]=f,C[48]=S):S=C[48];let p;return C[49]!==Z||C[50]!==S?(p=m.jsxs(B1.Content,{className:"p-0",children:[Z,S]}),C[49]=Z,C[50]=S,C[51]=p):p=C[51],p};function So2(H,C){return m.jsx(D0,{className:B({"border-t border-gray-400":C>0}),icon:H.icon,img:H.img,message:H.message,timestamp:H.timestamp,title:H.title,type:H.type,unread:!H.read},H.id)}const K2=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e,M,r;C[0]!==H?({children:V,className:L,customIcon:e,unreadCount:r,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const{disabled:t,isMobile:i,open:a,setOpen:o,unreadCount:n}=M5(),A=r??n;let d;C[6]!==A?(d=A>99?"99+":A.toString(),C[6]=A,C[7]=d):d=C[7];const l=d,s=A>0,c=e??"mdiBellOutline",v=`Notifications${s?` (${A} unread)`:""}`;let u;C[8]!==t||C[9]!==l||C[10]!==s?(u=s&&m.jsx("div",{className:B("absolute -top-2 -right-2",{"opacity-50":t}),children:m.jsx(_2,{className:"min-w-[1.25rem] justify-center px-1",color:"violet",size:"sm",children:l})}),C[8]=t,C[9]=l,C[10]=s,C[11]=u):u=C[11];const f=V||u;if(i){let O;C[12]!==L?(O=B("relative",L),C[12]=L,C[13]=O):O=C[13];const x=a?"open":"closed";let b;C[14]!==o?(b=()=>o(!0),C[14]=o,C[15]=b):b=C[15];let w;C[16]!==c?(w=m.jsx(x1.Icon,{path:c}),C[16]=c,C[17]=w):w=C[17];let y;return C[18]!==v||C[19]!==f||C[20]!==t||C[21]!==M||C[22]!==O||C[23]!==x||C[24]!==b||C[25]!==w?(y=m.jsxs(x1,{"aria-label":v,className:O,"data-ox-slot":"notifications-trigger",disabled:t,size:"md",variant:"ghost",...M,"data-ox-state":x,onClick:b,children:[w,f]}),C[18]=v,C[19]=f,C[20]=t,C[21]=M,C[22]=O,C[23]=x,C[24]=b,C[25]=w,C[26]=y):y=C[26],y}let S;C[27]!==L||C[28]!==a?(S=B("relative flex h-10 min-w-10 items-center justify-center rounded-lg border border-transparent bg-transparent px-2 text-sm","ox-gray-outset-focus enabled:cursor-pointer enabled:text-gray-1200 enabled:hover:bg-gray-300 disabled:ox-default-disabled",{"bg-gray-300":a},L),C[27]=L,C[28]=a,C[29]=S):S=C[29];const p=a?"open":"closed";let g;C[30]!==c?(g=m.jsx(a1,{path:c}),C[30]=c,C[31]=g):g=C[31];let h;return C[32]!==v||C[33]!==f||C[34]!==t||C[35]!==M||C[36]!==S||C[37]!==p||C[38]!==g?(h=m.jsxs(B1.Trigger,{"aria-label":v,className:S,"data-ox-slot":"notifications-trigger",disabled:t,hideIcon:!0,...M,"data-ox-state":p,children:[g,f]}),C[32]=v,C[33]=f,C[34]=t,C[35]=M,C[36]=S,C[37]=p,C[38]=g,C[39]=h):h=C[39],h},fo2=H=>{const C=T.compilerRuntimeExports.c(68);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,disabled:r,emptyMessage:t,items:i,onItemClick:e,onMarkAllRead:M,unreadCount:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?!1:r,n=t===void 0?"No notifications":t;let A;C[9]!==i?(A=i===void 0?[]:i,C[9]=i,C[10]=A):A=C[10];const d=A,l=a===void 0?0:a,[s,c]=D.useState(!1),[v,u]=D.useState(!1);let Z,f;C[11]===Symbol.for("react.memo_cache_sentinel")?(Z=()=>{const w=()=>{u(window.innerWidth<i0)};return w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}},f=[],C[11]=Z,C[12]=f):(Z=C[11],f=C[12]),D.useEffect(Z,f);let S;C[13]!==o||C[14]!==n||C[15]!==v||C[16]!==d||C[17]!==e||C[18]!==M||C[19]!==s||C[20]!==l?(S={disabled:o,emptyMessage:n,isMobile:v,items:d,open:s,setOpen:c,unreadCount:l,onItemClick:e,onMarkAllRead:M},C[13]=o,C[14]=n,C[15]=v,C[16]=d,C[17]=e,C[18]=M,C[19]=s,C[20]=l,C[21]=S):S=C[21];const p=S;if(V){let w;C[22]!==V?(w=D.Children.toArray(V).find(po2),C[22]=V,C[23]=w):w=C[23];const y=w;let k;C[24]!==V?(k=D.Children.toArray(V).find(ho2),C[24]=V,C[25]=k):k=C[25];const R=k;if(v){let I;C[26]!==R||C[27]!==s?(I=m.jsx(q1,{open:s,onOpenChange:c,children:R}),C[26]=R,C[27]=s,C[28]=I):I=C[28];let P;C[29]!==L||C[30]!==I||C[31]!==y?(P=m.jsxs("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"mobile",children:[y,I]}),C[29]=L,C[30]=I,C[31]=y,C[32]=P):P=C[32];let E;return C[33]!==p||C[34]!==P?(E=m.jsx(y2.Provider,{value:p,children:P}),C[33]=p,C[34]=P,C[35]=E):E=C[35],E}let N;C[36]!==R||C[37]!==o||C[38]!==s||C[39]!==y?(N=m.jsxs(B1,{align:"end",disabled:o,open:s,side:"bottom",onOpenChange:c,children:[y,R]}),C[36]=R,C[37]=o,C[38]=s,C[39]=y,C[40]=N):N=C[40];let j;C[41]!==L||C[42]!==N?(j=m.jsx("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"desktop",children:N}),C[41]=L,C[42]=N,C[43]=j):j=C[43];let F;return C[44]!==p||C[45]!==j?(F=m.jsx(y2.Provider,{value:p,children:j}),C[44]=p,C[45]=j,C[46]=F):F=C[46],F}if(v){let w;C[47]===Symbol.for("react.memo_cache_sentinel")?(w=m.jsx(K2,{}),C[47]=w):w=C[47];let y;C[48]===Symbol.for("react.memo_cache_sentinel")?(y=m.jsx(Y2,{}),C[48]=y):y=C[48];let k;C[49]!==s?(k=m.jsx(q1,{open:s,onOpenChange:c,children:y}),C[49]=s,C[50]=k):k=C[50];let R;C[51]!==L||C[52]!==k?(R=m.jsxs("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"mobile",children:[w,k]}),C[51]=L,C[52]=k,C[53]=R):R=C[53];let N;return C[54]!==p||C[55]!==R?(N=m.jsx(y2.Provider,{value:p,children:R}),C[54]=p,C[55]=R,C[56]=N):N=C[56],N}let g,h;C[57]===Symbol.for("react.memo_cache_sentinel")?(h=m.jsx(K2,{}),g=m.jsx(Y2,{}),C[57]=g,C[58]=h):(g=C[57],h=C[58]);let O;C[59]!==o||C[60]!==s?(O=m.jsxs(B1,{align:"end",disabled:o,open:s,side:"bottom",onOpenChange:c,children:[h,g]}),C[59]=o,C[60]=s,C[61]=O):O=C[61];let x;C[62]!==L||C[63]!==O?(x=m.jsx("div",{"data-ox-slot":"notifications",...L,"data-ox-state":"desktop",children:O}),C[62]=L,C[63]=O,C[64]=x):x=C[64];let b;return C[65]!==p||C[66]!==x?(b=m.jsx(y2.Provider,{value:p,children:x}),C[65]=p,C[66]=x,C[67]=b):b=C[67],b};function po2(H){return D.isValidElement(H)&&H.type===K2}function ho2(H){return D.isValidElement(H)&&H.type===Y2}const go2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M,r,t,i,a,o,n,A;C[0]!==H?({children:V,className:L,href:M,icon:r,img:t,message:i,timestamp:n,title:A,type:a,unread:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11]);const d=a===void 0?"default":a,l=o===void 0?!1:o,{isMobile:s,onItemClick:c,setOpen:v}=M5(),u=F1[d];let Z;C[12]!==r||C[13]!==t||C[14]!==s||C[15]!==i||C[16]!==c||C[17]!==v||C[18]!==n||C[19]!==A||C[20]!==d||C[21]!==l?(Z=()=>{const x={id:crypto.randomUUID(),icon:r,img:t,message:i,read:!l,timestamp:n||new Date,title:A||"",type:d};c?.(x),s&&v(!1)},C[12]=r,C[13]=t,C[14]=s,C[15]=i,C[16]=c,C[17]=v,C[18]=n,C[19]=A,C[20]=d,C[21]=l,C[22]=Z):Z=C[22];const f=Z;let S;C[23]!==V||C[24]!==r||C[25]!==t||C[26]!==i||C[27]!==u||C[28]!==n||C[29]!==A||C[30]!==l?(S=V||m.jsxs(m.Fragment,{children:[m.jsx("div",{className:B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",u.background),"data-ox-slot":"notifications-icon",children:t?m.jsx(C5,{alt:"User avatar",fallback:"NA",size:"md",src:t}):m.jsx(a1,{className:u.text,path:r??u.icon,size:.75})}),m.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[A&&m.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:A}),i&&m.jsx("p",{className:"mb-1 text-xs leading-4",children:i}),n&&m.jsx("p",{className:"text-xs text-gray-1000",children:I5(n)})]}),l&&m.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),C[23]=V,C[24]=r,C[25]=t,C[26]=i,C[27]=u,C[28]=n,C[29]=A,C[30]=l,C[31]=S):S=C[31];const p=S;let g;C[32]!==L||C[33]!==l?(g=B("col-span-3 grid cursor-pointer grid-cols-subgrid items-start gap-3 px-3 py-3 text-left","ox-gray-inset-focus hover:bg-gray-400",{"bg-gray-300/80":l},L),C[32]=L,C[33]=l,C[34]=g):g=C[34];const h=l?"unread":"read";let O;return C[35]!==e||C[36]!==f||C[37]!==M||C[38]!==p||C[39]!==g||C[40]!==h?(O=m.jsx("li",{className:"contents",children:m.jsx("a",{className:g,"data-ox-slot":"notifications-link",href:M,...e,"data-ox-state":h,onClick:f,children:p})}),C[35]=e,C[36]=f,C[37]=M,C[38]=p,C[39]=g,C[40]=h,C[41]=O):O=C[41],O},P2=fo2;P2.Body=Y2;P2.Button=D0;P2.Link=go2;P2.Trigger=K2;const Oo2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("flex justify-center",L),C[4]=L,C[5]=M):M=C[5];let r;C[6]!==V?(r=m.jsx("ul",{className:"flex items-center gap-1",children:V}),C[6]=V,C[7]=r):r=C[7];let t;return C[8]!==e||C[9]!==M||C[10]!==r?(t=m.jsx("nav",{"aria-label":"Pagination",className:M,"data-ox-slot":"pagination",role:"navigation",...e,children:r}),C[8]=e,C[9]=M,C[10]=r,C[11]=t):t=C[11],t},N0=["inline-flex items-center justify-center rounded-lg","transition-colors duration-150","border border-transparent bg-transparent"],K5=B(N0,"enabled:cursor-pointer enabled:text-gray-1200","enabled:hover:bg-gray-300","enabled:ox-gray-outset-focus disabled:ox-default-disabled"),T2={sm:`px-2 ${s1.sm}`,md:`px-2.5 ${s1.md}`},xo2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e;C[0]!==H?({className:V,size:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=e===void 0?"sm":e,r=T2[M],t=f2[M];let i;C[4]!==V||C[5]!==r||C[6]!==t?(i=B("flex items-center justify-center text-gray-900",r,t,V),C[4]=V,C[5]=r,C[6]=t,C[7]=i):i=C[7];let a;C[8]===Symbol.for("react.memo_cache_sentinel")?(a=m.jsx("span",{className:"sr-only",children:"More pages"}),C[8]=a):a=C[8];const o=R1[M];let n;C[9]!==o?(n=m.jsx(a1,{path:"mdiDotsHorizontal",size:o}),C[9]=o,C[10]=n):n=C[10];let A;return C[11]!==L||C[12]!==i||C[13]!==n?(A=m.jsx("li",{children:m.jsxs("span",{className:i,"data-ox-slot":"pagination-ellipsis",...L,children:[a,n]})}),C[11]=L,C[12]=i,C[13]=n,C[14]=A):A=C[14],A},bo2=H=>"href"in H,yo2=H=>{const C=T.compilerRuntimeExports.c(28);let V,L,e,M,r,t,i,a;C[0]!==H?({className:V,disabled:t,href:L,isActive:i,onClick:e,page:M,size:a,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?!1:i,A=a===void 0?"sm":a,d=T2[A],l=f2[A],s=!o;let c;C[9]!==V||C[10]!==o||C[11]!==n||C[12]!==d||C[13]!==l||C[14]!==s?(c=B(N0,d,l,{"ox-gray-outset-focus cursor-pointer text-gray-1200 hover:bg-gray-300":s,"ox-default-disabled":o,"bg-gray-300":n},V),C[9]=V,C[10]=o,C[11]=n,C[12]=d,C[13]=l,C[14]=s,C[15]=c):c=C[15];const v=c;let u;C[16]!==o||C[17]!==e?(u=h=>{if(o){h.preventDefault();return}e?.(h)},C[16]=o,C[17]=e,C[18]=u):u=C[18];const Z=u,f=n?"page":void 0,S=n?`Current page: ${M}`:`Go to page ${M}`,p=o?void 0:L;let g;return C[19]!==o||C[20]!==Z||C[21]!==v||C[22]!==M||C[23]!==r||C[24]!==S||C[25]!==p||C[26]!==f?(g=m.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:m.jsx("a",{"aria-current":f,"aria-disabled":o,"aria-label":S,className:v,"data-ox-slot":"pagination-link",href:p,onClick:Z,...r,children:M})}),C[19]=o,C[20]=Z,C[21]=v,C[22]=M,C[23]=r,C[24]=S,C[25]=p,C[26]=f,C[27]=g):g=C[27],g},wo2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t,i,a;C[0]!==H?({className:V,disabled:r,isActive:t,onClick:L,page:e,size:i,type:a,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?!1:r,n=t===void 0?!1:t,A=i===void 0?"sm":i,d=a===void 0?"button":a,l=T2[A],s=f2[A];let c;C[9]!==V||C[10]!==n||C[11]!==l||C[12]!==s?(c=B(K5,l,s,{"bg-gray-300 enabled:text-gray-1200":n},V),C[9]=V,C[10]=n,C[11]=l,C[12]=s,C[13]=c):c=C[13];const v=c;let u;C[14]!==L||C[15]!==e?(u=()=>{L?.(e)},C[14]=L,C[15]=e,C[16]=u):u=C[16];const Z=u,f=n?"page":void 0,S=n?`Current page: ${e}`:`Go to page ${e}`;let p;return C[17]!==v||C[18]!==o||C[19]!==Z||C[20]!==e||C[21]!==M||C[22]!==S||C[23]!==f||C[24]!==d?(p=m.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:m.jsx("button",{"aria-current":f,"aria-label":S,className:v,"data-ox-slot":"pagination-link",disabled:o,type:d,onClick:Z,...M,children:e})}),C[17]=v,C[18]=o,C[19]=Z,C[20]=e,C[21]=M,C[22]=S,C[23]=f,C[24]=d,C[25]=p):p=C[25],p},ko2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=bo2(H)?m.jsx(yo2,{...H}):m.jsx(wo2,{...H}),C[0]=H,C[1]=V):V=C[1],V},Po2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t;C[0]!==H?({className:V,disabled:M,onClick:e,short:r,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?!1:M,a=r===void 0?!1:r,o=t===void 0?"sm":t;let n;C[7]!==i||C[8]!==e?(n=()=>{i||e()},C[7]=i,C[8]=e,C[9]=n):n=C[9];const A=n,d=T2[o],l=w1[o],s=!a,c=f2[o],v=!a;let u;C[10]!==V||C[11]!==a||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c||C[16]!==v?(u=B(K5,d,{[l]:s,[c]:a,"gap-1":v},V),C[10]=V,C[11]=a,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):u=C[17];const Z=a?null:"Next",f=R1[o];let S;C[18]!==f?(S=m.jsx(a1,{path:"mdiChevronRight",size:f}),C[18]=f,C[19]=S):S=C[19];let p;return C[20]!==i||C[21]!==L||C[22]!==A||C[23]!==u||C[24]!==Z||C[25]!==S?(p=m.jsx("li",{children:m.jsxs("button",{"aria-label":"Go to next page",className:u,"data-ox-slot":"pagination-next",disabled:i,type:"button",onClick:A,...L,children:[Z,S]})}),C[20]=i,C[21]=L,C[22]=A,C[23]=u,C[24]=Z,C[25]=S,C[26]=p):p=C[26],p},To2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t;C[0]!==H?({className:V,disabled:M,onClick:e,short:r,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?!1:M,a=r===void 0?!1:r,o=t===void 0?"sm":t;let n;C[7]!==i||C[8]!==e?(n=()=>{i||e()},C[7]=i,C[8]=e,C[9]=n):n=C[9];const A=n,d=T2[o],l=w1[o],s=!a,c=f2[o],v=!a;let u;C[10]!==V||C[11]!==a||C[12]!==d||C[13]!==l||C[14]!==s||C[15]!==c||C[16]!==v?(u=B(K5,d,{[l]:s,[c]:a,"gap-1":v},V),C[10]=V,C[11]=a,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):u=C[17];const Z=R1[o];let f;C[18]!==Z?(f=m.jsx(a1,{path:"mdiChevronLeft",size:Z}),C[18]=Z,C[19]=f):f=C[19];const S=a?null:"Previous";let p;return C[20]!==i||C[21]!==L||C[22]!==A||C[23]!==u||C[24]!==f||C[25]!==S?(p=m.jsx("li",{children:m.jsxs("button",{"aria-label":"Go to previous page",className:u,"data-ox-slot":"pagination-previous",disabled:i,type:"button",onClick:A,...L,children:[f,S]})}),C[20]=i,C[21]=L,C[22]=A,C[23]=u,C[24]=f,C[25]=S,C[26]=p):p=C[26],p},B2=Oo2;B2.Ellipsis=xo2;B2.Item=ko2;B2.Next=Po2;B2.Previous=To2;const Bo2=H=>{const C=T.compilerRuntimeExports.c(20);let V,L,e,M,r,t,i,a;C[0]!==H?({align:r,children:V,defaultOpen:t,disabled:i,onOpenChange:e,open:M,side:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?"center":r,n=t===void 0?!1:t,A=i===void 0?!1:i,d=a===void 0?"bottom":a;let l;C[9]!==o||C[10]!==V||C[11]!==n||C[12]!==A||C[13]!==e||C[14]!==M||C[15]!==d?(l=m.jsx(g1,{align:o,animationDuration:100,ariaHaspopup:"dialog",defaultOpen:n,disabled:A,open:M,position:d,trigger:"click",onOpenChange:e,children:V}),C[9]=o,C[10]=V,C[11]=n,C[12]=A,C[13]=e,C[14]=M,C[15]=d,C[16]=l):l=C[16];let s;return C[17]!==L||C[18]!==l?(s=m.jsx("div",{className:"inline-block","data-ox-slot":"popover",...L,children:l}),C[17]=L,C[18]=l,C[19]=s):s=C[19],s},Ro2=H=>{const C=T.compilerRuntimeExports.c(21);let V,L,e,M;C[0]!==H?({children:V,className:L,showCloseButton:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!0:M,{open:t,setOpen:i}=j1();let a;C[5]!==L?(a=B("ox-gray-border relative max-w-sm min-w-[16rem] rounded-lg bg-gray-200 p-4 shadow-lg",L),C[5]=L,C[6]=a):a=C[6];const o=t?"open":"closing";let n;C[7]!==i||C[8]!==r?(n=r&&m.jsx("div",{className:"absolute top-2 right-2",children:m.jsx(x1,{"aria-label":"Close popover",size:"sm",variant:"ghost",onClick:()=>i(!1),children:m.jsx(x1.Icon,{path:"mdiClose"})})}),C[7]=i,C[8]=r,C[9]=n):n=C[9];let A;C[10]!==r?(A=B({"pr-8":r}),C[10]=r,C[11]=A):A=C[11];let d;C[12]!==V||C[13]!==A?(d=m.jsx("div",{className:A,children:V}),C[12]=V,C[13]=A,C[14]=d):d=C[14];let l;return C[15]!==e||C[16]!==a||C[17]!==o||C[18]!==n||C[19]!==d?(l=m.jsx(g1.Content,{className:"ox-popover-animate",children:m.jsxs("div",{className:a,"data-ox-slot":"popover-content","data-ox-state":o,...e,children:[n,d]})}),C[15]=e,C[16]=a,C[17]=o,C[18]=n,C[19]=d,C[20]=l):l=C[20],l},Eo2=Q5("OxPopoverTrigger","button"),Fo2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e,M;C[0]!==H?({asChild:M,children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!1:M;let t;C[5]!==e?(t={"data-ox-slot":"popover-trigger",type:"button",...e},C[5]=e,C[6]=t):t=C[6];const i=t;if(r){let o;return C[7]!==V||C[8]!==L||C[9]!==i?(o=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx(Eo2,{...i,className:L,children:V})}),C[7]=V,C[8]=L,C[9]=i,C[10]=o):o=C[10],o}let a;return C[11]!==V||C[12]!==L||C[13]!==i?(a=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx("button",{...i,className:L,children:V})}),C[11]=V,C[12]=L,C[13]=i,C[14]=a):a=C[14],a},X5=Bo2;X5.Content=Ro2;X5.Trigger=Fo2;const Do2={purple:"bg-purple-500/30",lime:"bg-lime-400/30",red:"bg-red-500/30",yellow:"bg-yellow-500/30",green:"bg-green-500/30",blue:"bg-blue-500/30",indigo:"bg-indigo-500/30",pink:"bg-pink-500/30",amber:"bg-amber-500/30",emerald:"bg-emerald-500/30",teal:"bg-teal-500/30",cyan:"bg-cyan-500/30",sky:"bg-sky-500/30",violet:"bg-violet-500/30",fuchsia:"bg-fuchsia-500/30",orange:"bg-orange-500/30",rose:"bg-rose-500/30",gray:"bg-gray-1100/30"},No2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t;C[0]!==H?({buffer:V,className:L,max:M,value:r,variant:t,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?100:M,a=r===void 0?0:r,o=t===void 0?"violet":t,n=Math.max(0,Math.min(a,i)),A=V?Math.max(0,Math.min(V,i)):0,d=d1[o];let l;C[7]!==L?(l=B("relative h-2 overflow-hidden rounded-full bg-gray-300",L),C[7]=L,C[8]=l):l=C[8];let s;C[9]!==V||C[10]!==A||C[11]!==i||C[12]!==o?(s=V!==void 0?m.jsx("div",{className:B("absolute inset-y-0 left-0 rounded-full transition-all duration-300",Do2[o]),style:{width:`${A/i*100}%`}}):null,C[9]=V,C[10]=A,C[11]=i,C[12]=o,C[13]=s):s=C[13];let c;C[14]!==d.backgroundSolid?(c=B("absolute inset-y-0 left-0 rounded-full transition-all duration-300",d.backgroundSolid),C[14]=d.backgroundSolid,C[15]=c):c=C[15];const v=`${n/i*100}%`;let u;C[16]!==v?(u={width:v},C[16]=v,C[17]=u):u=C[17];let Z;C[18]!==c||C[19]!==u?(Z=m.jsx("div",{className:c,style:u}),C[18]=c,C[19]=u,C[20]=Z):Z=C[20];let f;return C[21]!==e||C[22]!==l||C[23]!==s||C[24]!==Z?(f=m.jsxs("div",{className:l,"data-ox-slot":"progress",role:"progressbar",...e,children:[s,Z]}),C[21]=e,C[22]=l,C[23]=s,C[24]=Z,C[25]=f):f=C[25],f},Io2={sm:40,md:48},jo2=H=>{const C=T.compilerRuntimeExports.c(38);let V,L,e,M,r,t,i;C[0]!==H?({className:V,max:e,showPercentage:M,size:r,value:t,variant:i,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=e===void 0?100:e,o=M===void 0?!1:M,n=r===void 0?"sm":r,A=t===void 0?0:t,d=i===void 0?"violet":i,l=Math.max(0,Math.min(A,a));let s;C[8]!==a||C[9]!==l?(s=Math.round(l/a*100),C[8]=a,C[9]=l,C[10]=s):s=C[10];const c=s,v=Io2[n],u=d1[d],Z=(v-4)/2,f=2*Math.PI*Z,S=f-l/a*f;let p;C[11]!==V?(p=B("inline-flex items-center justify-center",V),C[11]=V,C[12]=p):p=C[12];let g;C[13]!==u.stroke?(g=B("transition-all duration-300 ease-in-out",u.stroke),C[13]=u.stroke,C[14]=g):g=C[14];const h=v/2,O=v/2;let x;C[15]!==f||C[16]!==S?(x={strokeDasharray:f,strokeDashoffset:S},C[15]=f,C[16]=S,C[17]=x):x=C[17];let b;C[18]!==Z||C[19]!==O||C[20]!==x||C[21]!==g||C[22]!==h?(b=m.jsx("circle",{className:g,cx:h,cy:O,fill:"none",r:Z,strokeLinecap:"round",strokeWidth:"4",style:x}),C[18]=Z,C[19]=O,C[20]=x,C[21]=g,C[22]=h,C[23]=b):b=C[23];let w;C[24]!==v||C[25]!==b?(w=m.jsx("svg",{className:"-rotate-90 transform",height:v,width:v,children:b}),C[24]=v,C[25]=b,C[26]=w):w=C[26];let y;C[27]!==c||C[28]!==o||C[29]!==n?(y=o&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsxs("span",{className:B("font-medium text-gray-1200",{"text-xxs":n==="sm","text-xs":n==="md"}),children:[c,"%"]})}),C[27]=c,C[28]=o,C[29]=n,C[30]=y):y=C[30];let k;C[31]!==w||C[32]!==y?(k=m.jsxs("div",{className:"relative",children:[w,y]}),C[31]=w,C[32]=y,C[33]=k):k=C[33];let R;return C[34]!==L||C[35]!==k||C[36]!==p?(R=m.jsx("div",{className:p,"data-ox-slot":"progress",...L,children:k}),C[34]=L,C[35]=k,C[36]=p,C[37]=R):R=C[37],R},I0=No2;I0.Circular=jo2;const J5=H=>{const C=T.compilerRuntimeExports.c(13);let V,L,e,M;C[0]!==H?({className:V,decorative:e,orientation:M,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=e===void 0?!0:e,t=M===void 0?"horizontal":M,i=r?void 0:t,a=t==="horizontal"?"h-0.25 w-full":"h-full w-0.25";let o;C[5]!==V||C[6]!==a?(o=B("shrink-0 bg-gray-400",a,V),C[5]=V,C[6]=a,C[7]=o):o=C[7];const n=r?"none":"separator";let A;return C[8]!==L||C[9]!==i||C[10]!==o||C[11]!==n?(A=m.jsx("div",{"aria-orientation":i,className:o,"data-ox-slot":"separator",role:n,...L}),C[8]=L,C[9]=i,C[10]=o,C[11]=n,C[12]=A):A=C[12],A},Wo2={rectangle:"rounded-lg",circle:"rounded-full"},h2=H=>{const C=T.compilerRuntimeExports.c(22);let V,L,e,M,r,t,i,a;C[0]!==H?({animate:M,className:V,color:r,fullWidth:t,height:e,shape:i,width:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=M===void 0?!0:M,n=r===void 0?"gray":r,A=t===void 0?!1:t,d=i===void 0?"rectangle":i,l=typeof e=="number"?`${e}px`:e,s=typeof a=="number"?`${a}px`:a;let c;C[9]!==l||C[10]!==s?(c={height:l,width:s},C[9]=l,C[10]=s,C[11]=c):c=C[11];const v=c,u=d1[n],Z=Wo2[d];let f;C[12]!==o||C[13]!==V||C[14]!==A||C[15]!==u.background||C[16]!==Z?(f=B("relative overflow-hidden",u.background,Z,{"animate-pulse":o,"w-full":A},V),C[12]=o,C[13]=V,C[14]=A,C[15]=u.background,C[16]=Z,C[17]=f):f=C[17];let S;return C[18]!==L||C[19]!==v||C[20]!==f?(S=m.jsx("div",{"aria-busy":"true","aria-label":"Loading...",className:f,"data-ox-slot":"skeleton",role:"status",style:v,...L}),C[18]=L,C[19]=v,C[20]=f,C[21]=S):S=C[21],S},zo2=H=>{const C=T.compilerRuntimeExports.c(27);let V,L,e,M,r,t,i,a;C[0]!==H?({animate:e,className:V,color:M,fullWidth:r,height:t,lines:i,width:a,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=e===void 0?!0:e,n=M===void 0?"gray":M,A=r===void 0?!1:r,d=t===void 0?20:t,l=i===void 0?1:i;let s;C[9]!==A||C[10]!==a?(s=S=>{if(!A){if(a!==void 0&&!Array.isArray(a))return typeof a=="number"?`${a}px`:a;if(Array.isArray(a)&&a.length>0){const p=a[S%a.length];return typeof p=="number"?`${p}px`:p}return"100px"}},C[9]=A,C[10]=a,C[11]=s):s=C[11];const c=s;let v;C[12]!==V?(v=B("flex flex-col space-y-2",V),C[12]=V,C[13]=v):v=C[13];let u;C[14]!==l?(u=Array.from({length:l}),C[14]=l,C[15]=u):u=C[15];let Z;C[16]!==o||C[17]!==n||C[18]!==A||C[19]!==c||C[20]!==d||C[21]!==u?(Z=u.map((S,p)=>m.jsx(h2,{animate:o,color:n,"data-ox-slot":"skeleton-text",fullWidth:A,height:d,width:c(p)},p)),C[16]=o,C[17]=n,C[18]=A,C[19]=c,C[20]=d,C[21]=u,C[22]=Z):Z=C[22];let f;return C[23]!==L||C[24]!==v||C[25]!==Z?(f=m.jsx("div",{className:v,...L,children:Z}),C[23]=L,C[24]=v,C[25]=Z,C[26]=f):f=C[26],f},$o2={sm:{track:"h-1",handle:"size-4",text:"text-xs"},md:{track:"h-2",handle:"size-5",text:"text-sm"}},N3=(H,C,V)=>{if(Array.isArray(H))return[Math.max(C,Math.min(V,H[0])),Math.max(C,Math.min(V,H[1]))];const L=Math.max(C,Math.min(V,H));return[L,L]},I3=(H,C,V)=>(H-C)/(V-C)*100,_o2=(H,C,V,L)=>{const e=C+H/100*(V-C),M=Math.round(e/L)*L;return Math.max(C,Math.min(V,M))},Go2=H=>{const C=T.compilerRuntimeExports.c(126);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c;C[0]!==H?({"aria-label":V,"aria-labelledby":L,className:e,defaultValue:a,disabled:o,max:n,min:A,onChange:t,onChangeCommitted:i,orientation:d,showValue:l,size:s,step:c,value:M,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15]);const v=a===void 0?0:a,u=o===void 0?!1:o,Z=n===void 0?100:n,f=A===void 0?0:A,S=d===void 0?"horizontal":d,p=l===void 0?!1:l,g=s===void 0?"md":s,h=c===void 0?1:c,O=D.useRef(null),x=D.useRef(!1),b=D.useRef(0),w=M!==void 0,y=Array.isArray(v)||Array.isArray(M),k=M||v;let R;C[16]!==Z||C[17]!==f||C[18]!==k?(R=N3(k,f,Z),C[16]=Z,C[17]=f,C[18]=k,C[19]=R):R=C[19];const[N,j]=D.useState(R);let F;C[20]!==M||C[21]!==N||C[22]!==w||C[23]!==Z||C[24]!==f?(F=w?N3(M,f,Z):N,C[20]=M,C[21]=N,C[22]=w,C[23]=Z,C[24]=f,C[25]=F):F=C[25];const I=F;let P;C[26]!==u||C[27]!==w||C[28]!==y||C[29]!==t?(P=m1=>{if(u)return;const n1=y?m1:m1[0];w||j(m1),t?.(n1)},C[26]=u,C[27]=w,C[28]=y,C[29]=t,C[30]=P):P=C[30];const E=P;let $;C[31]!==Z||C[32]!==f||C[33]!==S||C[34]!==h?($=m1=>{if(!O.current)return f;const n1=O.current.getBoundingClientRect(),T1=S==="horizontal"?(m1.clientX-n1.left)/n1.width*100:(n1.bottom-m1.clientY)/n1.height*100;return _o2(Math.max(0,Math.min(100,T1)),f,Z,h)},C[31]=Z,C[32]=f,C[33]=S,C[34]=h,C[35]=$):$=C[35];const W=$;let G;C[36]!==I||C[37]!==u||C[38]!==W||C[39]!==E||C[40]!==y?(G=(m1,n1)=>{if(u)return;m1.preventDefault(),x.current=!0,b.current=n1||0;const T1=W(m1);if(y&&n1!==void 0){const l1=[...I];l1[n1]=T1,n1===0&&l1[0]>l1[1]?l1[1]=l1[0]:n1===1&&l1[1]<l1[0]&&(l1[0]=l1[1]),E(l1)}else E([T1,T1])},C[36]=I,C[37]=u,C[38]=W,C[39]=E,C[40]=y,C[41]=G):G=C[41];const U=G;let Y;C[42]!==I||C[43]!==u||C[44]!==W||C[45]!==E||C[46]!==y?(Y=m1=>{if(u||x.current)return;const n1=W(m1);if(y){const[T1,l1]=I,N1=Math.abs(n1-T1),c7=Math.abs(n1-l1),v7=N1<=c7?0:1,r3=[...I];r3[v7]=n1,E(r3)}else E([n1,n1])},C[42]=I,C[43]=u,C[44]=W,C[45]=E,C[46]=y,C[47]=Y):Y=C[47];const _=Y;let q;C[48]!==I||C[49]!==u||C[50]!==E||C[51]!==y||C[52]!==Z||C[53]!==f||C[54]!==h?(q=(m1,n1)=>{if(u)return;let T1;C:switch(m1.key){case"ArrowRight":case"ArrowUp":{T1=h;break C}case"ArrowLeft":case"ArrowDown":{T1=-h;break C}case"PageUp":{T1=(Z-f)*.1;break C}case"PageDown":{T1=-(Z-f)*.1;break C}case"Home":{T1=f-I[n1];break C}case"End":{T1=Z-I[n1];break C}default:return}m1.preventDefault();const l1=[...I];l1[n1]=Math.max(f,Math.min(Z,I[n1]+T1)),y&&(n1===0&&l1[0]>l1[1]?l1[1]=l1[0]:n1===1&&l1[1]<l1[0]&&(l1[0]=l1[1])),E(l1)},C[48]=I,C[49]=u,C[50]=E,C[51]=y,C[52]=Z,C[53]=f,C[54]=h,C[55]=q):q=C[55];const K=q;let Q,X;C[56]!==I||C[57]!==W||C[58]!==E||C[59]!==y||C[60]!==i?(Q=()=>{const m1=T1=>{if(!x.current)return;const l1=W(T1);if(y){const N1=[...I];N1[b.current]=l1,b.current===0&&N1[0]>N1[1]?N1[1]=N1[0]:b.current===1&&N1[1]<N1[0]&&(N1[0]=N1[1]),E(N1)}else E([l1,l1])},n1=()=>{x.current&&(x.current=!1,i?.(y?I:I[0]))};return x.current&&(document.addEventListener("mousemove",m1),document.addEventListener("mouseup",n1)),()=>{document.removeEventListener("mousemove",m1),document.removeEventListener("mouseup",n1)}},X=[W,y,I,E,i],C[56]=I,C[57]=W,C[58]=E,C[59]=y,C[60]=i,C[61]=Q,C[62]=X):(Q=C[61],X=C[62]),D.useEffect(Q,X);const z=$o2[g],[H1,M1]=I,L1=I3(H1,f,Z),c1=I3(M1,f,Z);let S1;C[63]!==e?(S1=B("w-full py-3",e),C[63]=e,C[64]=S1):S1=C[64];let v1;C[65]!==u||C[66]!==z.track?(v1=B("relative w-full cursor-pointer rounded-full bg-gray-300",z.track,{"ox-default-disabled":u}),C[65]=u,C[66]=z.track,C[67]=v1):v1=C[67];const k1=`${y?L1:0}%`,E1=`${y?c1-L1:L1}%`;let D1;C[68]!==k1||C[69]!==E1?(D1=m.jsx("div",{className:"absolute h-full rounded-full bg-violet-700",style:{left:k1,width:E1}}),C[68]=k1,C[69]=E1,C[70]=D1):D1=C[70];const W1=y?`${V} minimum`:V,J1=String(H1);let V1;C[71]!==u||C[72]!==z.handle?(V1=B("ox-violet-outset-focus absolute top-1/2 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-violet-700 bg-gray-50 active:cursor-grabbing",z.handle,{"cursor-not-allowed":u}),C[71]=u,C[72]=z.handle,C[73]=V1):V1=C[73];const A1=`${L1}%`;let P1;C[74]!==A1?(P1={left:A1},C[74]=A1,C[75]=P1):P1=C[75];const C2=u?-1:0;let L2;C[76]!==K?(L2=m1=>K(m1,0),C[76]=K,C[77]=L2):L2=C[77];let o2;C[78]!==U?(o2=m1=>U(m1,0),C[78]=U,C[79]=o2):o2=C[79];let n2;C[80]!==L||C[81]!==Z||C[82]!==f||C[83]!==H1||C[84]!==S||C[85]!==W1||C[86]!==J1||C[87]!==V1||C[88]!==P1||C[89]!==C2||C[90]!==L2||C[91]!==o2?(n2=m.jsx("div",{"aria-label":W1,"aria-labelledby":L,"aria-orientation":S,"aria-valuemax":Z,"aria-valuemin":f,"aria-valuenow":H1,"aria-valuetext":J1,className:V1,role:"slider",style:P1,tabIndex:C2,onKeyDown:L2,onMouseDown:o2}),C[80]=L,C[81]=Z,C[82]=f,C[83]=H1,C[84]=S,C[85]=W1,C[86]=J1,C[87]=V1,C[88]=P1,C[89]=C2,C[90]=L2,C[91]=o2,C[92]=n2):n2=C[92];let A2;C[93]!==V||C[94]!==L||C[95]!==u||C[96]!==K||C[97]!==U||C[98]!==y||C[99]!==Z||C[100]!==c1||C[101]!==M1||C[102]!==f||C[103]!==S||C[104]!==z.handle?(A2=y?m.jsx("div",{"aria-label":y?`${V} maximum`:V,"aria-labelledby":L,"aria-orientation":S,"aria-valuemax":Z,"aria-valuemin":f,"aria-valuenow":M1,"aria-valuetext":String(M1),className:B("ox-violet-outset-focus absolute top-1/2 -translate-x-1/2 -translate-y-1/2 cursor-grab rounded-full border-2 border-violet-700 bg-gray-50 active:cursor-grabbing",z.handle,{"cursor-not-allowed":u}),role:"slider",style:{left:`${c1}%`},tabIndex:u?-1:0,onKeyDown:m1=>K(m1,1),onMouseDown:m1=>U(m1,1)}):null,C[93]=V,C[94]=L,C[95]=u,C[96]=K,C[97]=U,C[98]=y,C[99]=Z,C[100]=c1,C[101]=M1,C[102]=f,C[103]=S,C[104]=z.handle,C[105]=A2):A2=C[105];let l2;C[106]!==_||C[107]!==v1||C[108]!==D1||C[109]!==n2||C[110]!==A2?(l2=m.jsxs("div",{className:v1,ref:O,onClick:_,children:[D1,n2,A2]}),C[106]=_,C[107]=v1,C[108]=D1,C[109]=n2,C[110]=A2,C[111]=l2):l2=C[111];let d2;C[112]!==y||C[113]!==Z||C[114]!==M1||C[115]!==f||C[116]!==H1||C[117]!==p?(d2=p&&m.jsxs("div",{className:B("mt-2 flex justify-between text-xs text-gray-1000"),children:[m.jsx("span",{children:y?`${H1} - ${M1}`:H1}),m.jsxs("span",{children:[f," - ",Z]})]}),C[112]=y,C[113]=Z,C[114]=M1,C[115]=f,C[116]=H1,C[117]=p,C[118]=d2):d2=C[118];let s2;C[119]!==l2||C[120]!==d2?(s2=m.jsxs("div",{className:"relative py-3",children:[l2,d2]}),C[119]=l2,C[120]=d2,C[121]=s2):s2=C[121];let D2;return C[122]!==r||C[123]!==S1||C[124]!==s2?(D2=m.jsx("div",{className:S1,"data-ox-slot":"slider",...r,children:s2}),C[122]=r,C[123]=S1,C[124]=s2,C[125]=D2):D2=C[125],D2},Uo2={loading:{title:"Loading...",message:"Good things take time",icon:"mdiLoading",showAction:!1},empty:{title:"Nothing here",message:"It's so empty... like my soul",icon:"mdiPackageVariant",showAction:!1},offline:{title:"You're offline",message:"Did you forget to pay the internet bill?",icon:"mdiWifiOff",showAction:!0},success:{title:"Success!",message:"Everything went perfectly as planned",icon:"mdiCheckCircle",showAction:!1},warning:{title:"Heads up!",message:"Something needs your attention",icon:"mdiAlertCircle",showAction:!1},info:{title:"Just so you know",message:"Here's some helpful information",icon:"mdiInformationCircle",showAction:!1},401:{title:"Please log in",message:"You need to authenticate to access this page",showAction:!0},403:{title:"Access denied",message:"You don't have permission to view this content",showAction:!0},404:{title:"Page not found",message:"Nothing to see here... just... go away... now.",showAction:!0},408:{title:"Request timeout",message:"Taking too long? Try refreshing the page",showAction:!0},429:{title:"Slow down there!",message:"Too many requests. Take a coffee break",showAction:!0},500:{title:"Oops! We broke something",message:"Don't worry, it's not your fault... probably",showAction:!0},502:{title:"Bad gateway",message:"The server is having an existential crisis",showAction:!0},503:{title:"Taking a quick nap",message:"Service will be back after coffee break",showAction:!0},504:{title:"Server timeout",message:"Server is slower than a Windows 95 boot",showAction:!0}},Qo2={sm:{container:"max-w-sm space-y-4",spacing:"space-y-1",title:"text-lg",message:s1.sm,numberText:"text-3xl"},md:{container:"max-w-md space-y-6",spacing:"space-y-2",title:"text-xl",message:"text-base",numberText:"text-4xl"}},qo2=H=>H==="success"?F1.success:H==="warning"?F1.warning:H==="info"?F1.info:typeof H=="number"?F1.error:{text:"text-violet-700"},Yo2=H=>{const C=T.compilerRuntimeExports.c(76);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({action:V,children:L,className:e,inline:i,message:r,onBack:t,size:a,title:o,type:n,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?!1:i,d=a===void 0?"sm":a;if(L){let G;C[11]!==e?(G=B("min-h-screen w-full",e),C[11]=e,C[12]=G):G=C[12];let U;return C[13]!==L||C[14]!==G?(U=m.jsx("div",{className:G,children:L}),C[13]=L,C[14]=G,C[15]=U):U=C[15],U}const l=Uo2[n],s=o||l.title,c=r||l.message;let v;C[16]!==t?(v=()=>{t?t():window.history.back()},C[16]=t,C[17]=v):v=C[17];const u=v;let Z;C[18]!==V||C[19]!==l.showAction||C[20]!==u||C[21]!==d?(Z=()=>V!==void 0?V:l.showAction?m.jsx(x1,{size:d,variant:"secondary",onClick:u,children:"Back"}):null,C[18]=V,C[19]=l.showAction,C[20]=u,C[21]=d,C[22]=Z):Z=C[22];const f=Z,S=Qo2[d];let p,g,h,O,x,b,w,y;if(C[23]!==e||C[24]!==l.icon||C[25]!==M||C[26]!==A||C[27]!==d||C[28]!==S.container||C[29]!==S.numberText||C[30]!==n){const G=qo2(n);w=typeof n=="number"?"assertive":"polite";const U=!A;C[39]!==e||C[40]!==A||C[41]!==U?(y=B("flex w-full items-center justify-center",{"min-h-screen bg-gray-50":U,"h-full":A},e),C[39]=e,C[40]=A,C[41]=U,C[42]=y):y=C[42],p="status-display",g=typeof n=="number"?"alert":"status",h=M,C[43]!==S.container?(b=B("flex flex-col items-center text-center",S.container),C[43]=S.container,C[44]=b):b=C[44],O="flex items-center space-x-4",x=l.icon?m.jsx(a1,{className:B(G.text,{"animate-spin":n==="loading"}),path:l.icon,size:d==="md"?1.75:1.25}):typeof n=="number"?m.jsx("div",{className:B("bg-gradient-to-br from-violet-700 from-20% to-rose-500 bg-clip-text font-bold text-transparent",S.numberText),children:n}):null,C[23]=e,C[24]=l.icon,C[25]=M,C[26]=A,C[27]=d,C[28]=S.container,C[29]=S.numberText,C[30]=n,C[31]=p,C[32]=g,C[33]=h,C[34]=O,C[35]=x,C[36]=b,C[37]=w,C[38]=y}else p=C[31],g=C[32],h=C[33],O=C[34],x=C[35],b=C[36],w=C[37],y=C[38];let k;C[45]!==O||C[46]!==x?(k=m.jsx("div",{className:O,children:x}),C[45]=O,C[46]=x,C[47]=k):k=C[47];const R=S.spacing;let N;C[48]!==S.title?(N=B("font-bold text-gray-1200",S.title),C[48]=S.title,C[49]=N):N=C[49];let j;C[50]!==s||C[51]!==N?(j=m.jsx("h1",{id:"status-title","aria-describedby":"status-message",className:N,children:s}),C[50]=s,C[51]=N,C[52]=j):j=C[52];let F;C[53]!==S.message?(F=B("text-gray-1000",S.message),C[53]=S.message,C[54]=F):F=C[54];let I;C[55]!==c||C[56]!==F?(I=m.jsx("p",{id:"status-message",className:F,children:c}),C[55]=c,C[56]=F,C[57]=I):I=C[57];let P;C[58]!==S.spacing||C[59]!==j||C[60]!==I?(P=m.jsxs("div",{className:R,children:[j,I]}),C[58]=S.spacing,C[59]=j,C[60]=I,C[61]=P):P=C[61];let E;C[62]!==f?(E=f(),C[62]=f,C[63]=E):E=C[63];let $;C[64]!==k||C[65]!==P||C[66]!==E||C[67]!==b?($=m.jsxs("div",{className:b,children:[k,P,E]}),C[64]=k,C[65]=P,C[66]=E,C[67]=b,C[68]=$):$=C[68];let W;return C[69]!==p||C[70]!==g||C[71]!==h||C[72]!==$||C[73]!==w||C[74]!==y?(W=m.jsx("div",{"aria-live":w,className:y,"data-ox-slot":p,role:g,...h,children:$}),C[69]=p,C[70]=g,C[71]=h,C[72]=$,C[73]=w,C[74]=y,C[75]=W):W=C[75],W},j0=D.createContext(null),C3=()=>{const H=D.useContext(j0);if(!H)throw new Error("OxStepperItem must be used within OxStepper");return H},W0=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{orientation:M}=C3(),r=M==="vertical";let t;C[4]!==L||C[5]!==r?(t=B("mt-2 p-4",{"border-t border-gray-400":r},L),C[4]=L,C[5]=r,C[6]=t):t=C[6];let i;return C[7]!==V||C[8]!==e||C[9]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"stepper-actions",...e,children:V}),C[7]=V,C[8]=e,C[9]=t,C[10]=i):i=C[10],i},Ko2=(H,C,V)=>H==="error"?F1.error.icon:H==="warning"?F1.warning.icon:C||(V?F1.success.icon:null),z0=(H,C)=>H==="error"?F1.error:H==="warning"?F1.warning:d1[C],j3=(H,C)=>H==="error"||H==="warning"?C.text:"text-gray-1200",$0=H=>{const C=T.compilerRuntimeExports.c(18);let V,L,e,M;C[0]!==H?({className:V,state:e,stepIndex:M,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{color:r,currentStep:t,orientation:i}=C3(),a=t>M,o=e||(a?"completed":"current");let n;C[5]!==o||C[6]!==r?(n=z0(o,r),C[5]=o,C[6]=r,C[7]=n):n=C[7];const A=n,d=i==="horizontal",l=i==="vertical",s=!a;let c;C[8]!==V||C[9]!==a||C[10]!==A.border||C[11]!==d||C[12]!==l||C[13]!==s?(c=B("flex-1 border transition-colors duration-300",{"mx-4 mt-[19px]":d,"my-2 min-h-6":l,"border-gray-400":s,[A.border]:a},V),C[8]=V,C[9]=a,C[10]=A.border,C[11]=d,C[12]=l,C[13]=s,C[14]=c):c=C[14];let v;return C[15]!==L||C[16]!==c?(v=m.jsx("div",{className:c,"data-ox-slot":"stepper-connector",...L}),C[15]=L,C[16]=c,C[17]=v):v=C[17],v},u2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,disabled:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?!1:M;let t;C[5]!==L||C[6]!==r?(t=B("text-xs leading-relaxed text-pretty text-gray-1100",{"ox-default-disabled":r},L),C[5]=L,C[6]=r,C[7]=t):t=C[7];let i;return C[8]!==V||C[9]!==e||C[10]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"description",...e,children:V}),C[8]=V,C[9]=e,C[10]=t,C[11]=i):i=C[11],i},_0=H=>{const C=T.compilerRuntimeExports.c(14);let V,L,e,M;C[0]!==H?({children:V,className:L,icon:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?"mdiAlertCircleOutline":M;if(!V)return null;let t;C[5]!==L?(t=B("grid grid-cols-[auto_1fr] items-center gap-1 text-xs text-pretty text-rose-400",L),C[5]=L,C[6]=t):t=C[6];let i;C[7]!==r?(i=r?m.jsx(a1,{className:"shrink-0 text-current",path:r,size:R1.md}):null,C[7]=r,C[8]=i):i=C[8];let a;return C[9]!==V||C[10]!==e||C[11]!==t||C[12]!==i?(a=m.jsxs("div",{className:t,"data-ox-slot":"error",role:"alert",...e,children:[i,V]}),C[9]=V,C[10]=e,C[11]=t,C[12]=i,C[13]=a):a=C[13],a},Xo2={1:"text-2xl font-bold",2:"text-xl font-semibold",3:"text-lg font-semibold",4:"text-base font-semibold",5:"text-sm font-semibold",6:"text-sm font-medium",7:"text-sm"},G0=({as:H="h2",children:C,className:V,level:L,...e})=>{const M=L??(H!=="div"?parseInt(H.slice(1)):2),r=T.clamp(M,1,7),t={className:B("text-gray-1200",Xo2[r],V),"data-ox-slot":"heading",...e,...H==="div"&&{role:"heading","aria-level":M}};return D.createElement(H,t,C)},U0=H=>{const C=T.compilerRuntimeExports.c(19);let V,L,e,M,r,t;C[0]!==H?({children:V,className:L,disabled:r,htmlFor:M,required:t,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=r===void 0?!1:r,a=t===void 0?!1:t,o=!i;let n;C[7]!==L||C[8]!==i||C[9]!==o?(n=B("block text-sm font-medium",{"text-gray-1200":o,"ox-default-disabled":i},L),C[7]=L,C[8]=i,C[9]=o,C[10]=n):n=C[10];let A;C[11]!==a?(A=a&&m.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),C[11]=a,C[12]=A):A=C[12];let d;return C[13]!==V||C[14]!==e||C[15]!==M||C[16]!==n||C[17]!==A?(d=m.jsxs("label",{className:n,"data-ox-slot":"label",htmlFor:M,...e,children:[V,A]}),C[13]=V,C[14]=e,C[15]=M,C[16]=n,C[17]=A,C[18]=d):d=C[18],d},Jo2=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,required:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?!1:r,a=!t;let o;C[6]!==L||C[7]!==t||C[8]!==a?(o=B("block text-base font-semibold",{"text-gray-1200":a,"ox-default-disabled":t},L),C[6]=L,C[7]=t,C[8]=a,C[9]=o):o=C[9];let n;C[10]!==i?(n=i&&m.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),C[10]=i,C[11]=n):n=C[11];let A;return C[12]!==V||C[13]!==e||C[14]!==o||C[15]!==n?(A=m.jsxs("legend",{className:o,"data-ox-slot":"legend",...e,children:[V,n]}),C[12]=V,C[13]=e,C[14]=o,C[15]=n,C[16]=A):A=C[16],A},Cn2={completed:"check",error:"close",warning:"warning",current:"current step",upcoming:"upcoming step"},Q0=H=>{const C=T.compilerRuntimeExports.c(73);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,description:e,icon:r,state:t,stepIndex:i,title:a,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=i===void 0?0:i,{color:n,currentStep:A,onStepChange:d,orientation:l,totalSteps:s,type:c}=C3(),v=A===o,u=A>o,Z=t||(o<A?"completed":o===A?"current":"upcoming"),f=c==="non-linear"||u||v;let S;C[9]!==Z||C[10]!==r||C[11]!==u?(S=Ko2(Z,r,u),C[9]=Z,C[10]=r,C[11]=u,C[12]=S):S=C[12];const p=S;let g,h,O,x,b,w,y,k;if(C[13]!==Z||C[14]!==f||C[15]!==L||C[16]!==n||C[17]!==e||C[18]!==M||C[19]!==v||C[20]!==d||C[21]!==l||C[22]!==t||C[23]!==p||C[24]!==o||C[25]!==a||C[26]!==s){g=Symbol.for("react.early_return_sentinel");C:{const E=z0(Z,n);let $;C[35]!==f||C[36]!==d||C[37]!==o?($=()=>{f&&d&&d(o)},C[35]=f,C[36]=d,C[37]=o,C[38]=$):$=C[38];const W=$,G=()=>m.jsx("button",{"aria-current":v?"step":void 0,"aria-describedby":e?`step-${o}-desc`:void 0,"aria-label":`${a} - ${Cn2[Z]} (${o+1} of ${s})`,className:B("flex items-center justify-center rounded-lg transition-colors","enabled:cursor-pointer",Z==="error"?"ox-rose-outset-focus":"ox-violet-outset-focus",{"cursor-pointer":f,"opacity-50":Z==="upcoming"}),disabled:!f,type:"button",onClick:W,children:m.jsx("div",{className:B("flex size-10 flex-shrink-0 items-center justify-center rounded-lg border",E.border,E.background),children:p?m.jsx(a1,{className:E.text,path:p}):m.jsx("span",{className:B("text-base font-medium text-current"),children:o+1})})});if(l==="horizontal"){let Y;C[39]!==L?(Y=B("flex flex-col items-center text-center",L),C[39]=L,C[40]=Y):Y=C[40];let _;C[41]!==e||C[42]!==o?(_=e?m.jsx(u2,{id:`step-${o}-desc`,children:e}):null,C[41]=e,C[42]=o,C[43]=_):_=C[43],g=m.jsxs("div",{className:Y,"data-ox-slot":"stepper-item",...M,children:[G(),m.jsxs("div",{className:"mt-2",children:[m.jsx("h6",{className:B("text-sm font-medium",j3(Z,E)),children:a}),_]})]});break C}C[44]!==L?(b=B("flex gap-3",L),C[44]=L,C[45]=b):b=C[45],w="stepper-item",y=M;let U;C[46]!==t||C[47]!==o||C[48]!==s?(U=o<s-1?m.jsx($0,{state:t,stepIndex:o}):null,C[46]=t,C[47]=o,C[48]=s,C[49]=U):U=C[49],k=m.jsxs("div",{className:"flex flex-col items-center",children:[G(),U]}),x="flex-1",O="mb-4",h=B("text-sm font-medium",j3(Z,E))}C[13]=Z,C[14]=f,C[15]=L,C[16]=n,C[17]=e,C[18]=M,C[19]=v,C[20]=d,C[21]=l,C[22]=t,C[23]=p,C[24]=o,C[25]=a,C[26]=s,C[27]=g,C[28]=h,C[29]=O,C[30]=x,C[31]=b,C[32]=w,C[33]=y,C[34]=k}else g=C[27],h=C[28],O=C[29],x=C[30],b=C[31],w=C[32],y=C[33],k=C[34];if(g!==Symbol.for("react.early_return_sentinel"))return g;let R;C[50]!==h||C[51]!==a?(R=m.jsx("h6",{className:h,children:a}),C[50]=h,C[51]=a,C[52]=R):R=C[52];let N;C[53]!==e||C[54]!==o?(N=e?m.jsx(u2,{id:`step-${o}-desc`,children:e}):null,C[53]=e,C[54]=o,C[55]=N):N=C[55];let j;C[56]!==R||C[57]!==N||C[58]!==O?(j=m.jsxs("div",{className:O,children:[R,N]}),C[56]=R,C[57]=N,C[58]=O,C[59]=j):j=C[59];let F;C[60]!==V||C[61]!==v?(F=v&&V?m.jsx("div",{className:"ox-gray-border mb-4 rounded-lg bg-gray-50 p-4",children:V}):null,C[60]=V,C[61]=v,C[62]=F):F=C[62];let I;C[63]!==j||C[64]!==F||C[65]!==x?(I=m.jsxs("div",{className:x,children:[j,F]}),C[63]=j,C[64]=F,C[65]=x,C[66]=I):I=C[66];let P;return C[67]!==I||C[68]!==b||C[69]!==w||C[70]!==y||C[71]!==k?(P=m.jsxs("div",{className:b,"data-ox-slot":w,...y,children:[k,I]}),C[67]=I,C[68]=b,C[69]=w,C[70]=y,C[71]=k,C[72]=P):P=C[72],P},Hn2=H=>{const C=T.compilerRuntimeExports.c(46);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,color:r,currentStep:t,onStepChange:M,orientation:i,type:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=r===void 0?"violet":r,n=t===void 0?0:t,A=i===void 0?"vertical":i,d=a===void 0?"linear":a;let l,s,c,v,u,Z,f,S,p,g,h;if(C[9]!==V||C[10]!==L||C[11]!==o||C[12]!==n||C[13]!==e||C[14]!==M||C[15]!==A||C[16]!==d){const b=D.Children.toArray(V).filter(Vn2);let w;C[28]!==V?(w=D.Children.toArray(V).find(Ln2),C[28]=V,C[29]=w):w=C[29],s=w;const y=b.map(en2),k={color:o,currentStep:n,onStepChange:M,orientation:A,totalSteps:b.length,type:d};l=j0.Provider,Z=k,f="Step-by-step progress",S=b.length,p=n+1,C[30]!==L?(g=B("w-full",L),C[30]=L,C[31]=g):g=C[31],h="stepper",c="navigation",v=e,u=A==="horizontal"?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex w-full items-start",children:y.map((R,N)=>m.jsxs(D.Fragment,{children:[D.cloneElement(R,{className:B("min-w-0 flex-1",R.props.className)}),N<b.length-1?m.jsx($0,{state:b[N].props.state,stepIndex:N}):null]},N))}),b[n]?.props.children?m.jsx("div",{className:"ox-gray-border mt-6 rounded-lg bg-gray-50 p-4",children:b[n].props.children}):null]}):y,C[9]=V,C[10]=L,C[11]=o,C[12]=n,C[13]=e,C[14]=M,C[15]=A,C[16]=d,C[17]=l,C[18]=s,C[19]=c,C[20]=v,C[21]=u,C[22]=Z,C[23]=f,C[24]=S,C[25]=p,C[26]=g,C[27]=h}else l=C[17],s=C[18],c=C[19],v=C[20],u=C[21],Z=C[22],f=C[23],S=C[24],p=C[25],g=C[26],h=C[27];let O;C[32]!==s||C[33]!==c||C[34]!==v||C[35]!==u||C[36]!==f||C[37]!==S||C[38]!==p||C[39]!==g||C[40]!==h?(O=m.jsxs("div",{"aria-label":f,"aria-valuemax":S,"aria-valuenow":p,className:g,"data-ox-slot":h,role:c,...v,children:[u,s]}),C[32]=s,C[33]=c,C[34]=v,C[35]=u,C[36]=f,C[37]=S,C[38]=p,C[39]=g,C[40]=h,C[41]=O):O=C[41];let x;return C[42]!==l||C[43]!==Z||C[44]!==O?(x=m.jsx(l,{value:Z,children:O}),C[42]=l,C[43]=Z,C[44]=O,C[45]=x):x=C[45],x};function Vn2(H){return D.isValidElement(H)&&H.type===Q0}function Ln2(H){return D.isValidElement(H)&&H.type===W0}function en2(H,C){return D.cloneElement(H,{stepIndex:C,key:C})}const H3=Hn2;H3.Actions=W0;H3.Item=Q0;const q0=D.createContext(void 0),Mn2=H=>{const C=T.compilerRuntimeExports.c(50);let V,L,e,M,r,t,i,a,o,n,A,d;C[0]!==H?({allRowIds:r,children:V,className:L,hoverable:t,isLoading:i,onSelectionChange:M,selectable:a,selectedRows:o,skeletonColumns:n,skeletonRows:A,striped:d,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12]);let l;C[13]!==r?(l=r===void 0?[]:r,C[13]=r,C[14]=l):l=C[14];const s=l,c=t===void 0?!1:t,v=i===void 0?!1:i,u=a===void 0?!1:a;let Z;C[15]!==o?(Z=o===void 0?[]:o,C[15]=o,C[16]=Z):Z=C[16];const f=Z,S=n===void 0?3:n,p=A===void 0?5:A,g=d===void 0?!1:d,h=s.length>0&&f.length===s.length,O=f.length>0&&f.length<s.length,x=Math.max(1,Math.min(S,20)),b=Math.max(1,Math.min(p,50));let w;C[17]!==f?(w=P=>f.includes(P),C[17]=f,C[18]=w):w=C[18];let y;C[19]!==M||C[20]!==f?(y=P=>{if(!M)return;const E=f.includes(P);M(E?f.filter($=>$!==P):[...f,P])},C[19]=M,C[20]=f,C[21]=y):y=C[21];let k;C[22]!==s||C[23]!==h||C[24]!==M?(k=()=>{M&&M(h?[]:[...s])},C[22]=s,C[23]=h,C[24]=M,C[25]=k):k=C[25];let R;C[26]!==s||C[27]!==c||C[28]!==h||C[29]!==O||C[30]!==v||C[31]!==M||C[32]!==u||C[33]!==f||C[34]!==g||C[35]!==w||C[36]!==y||C[37]!==k||C[38]!==x||C[39]!==b?(R={allRowIds:s,hoverable:c,isLoading:v,selectable:u,selectedRows:f,skeletonColumns:x,skeletonRows:b,striped:g,onSelectionChange:M,isSelected:w,toggleSelection:y,toggleAll:k,isAllSelected:h,isIndeterminate:O},C[26]=s,C[27]=c,C[28]=h,C[29]=O,C[30]=v,C[31]=M,C[32]=u,C[33]=f,C[34]=g,C[35]=w,C[36]=y,C[37]=k,C[38]=x,C[39]=b,C[40]=R):R=C[40];const N=R;let j;C[41]!==L?(j=B("w-full table-auto sm:table-fixed",L),C[41]=L,C[42]=j):j=C[42];let F;C[43]!==V||C[44]!==e||C[45]!==j?(F=m.jsx("div",{className:"rounded-lg bg-gray-50",children:m.jsx("table",{className:j,"data-ox-slot":"table",...e,children:V})}),C[43]=V,C[44]=e,C[45]=j,C[46]=F):F=C[46];let I;return C[47]!==N||C[48]!==F?(I=m.jsx(q0.Provider,{value:N,children:F}),C[47]=N,C[48]=F,C[49]=I):I=C[49],I},r5=()=>D.useContext(q0),Y0=H=>{const C=T.compilerRuntimeExports.c(7),{columns:V}=H,L=r5();let e;C[0]!==L?.selectable?(e=L?.selectable?m.jsx("td",{className:"px-3 py-2",children:m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(h2,{height:21,shape:"circle",width:16})})}):null,C[0]=L?.selectable,C[1]=e):e=C[1];let M;C[2]!==V?(M=Array.from({length:V}).map(rn2),C[2]=V,C[3]=M):M=C[3];let r;return C[4]!==e||C[5]!==M?(r=m.jsxs("tr",{className:"border-b border-gray-400 last:border-b-0",children:[e,M]}),C[4]=e,C[5]=M,C[6]=r):r=C[6],r};function rn2(H,C){return m.jsx("td",{className:"px-3 py-2",children:m.jsx(h2,{fullWidth:!0,height:21})},C)}const tn2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=r5();let r;C[4]!==V||C[5]!==M?(r=M?.isLoading?Array.from({length:M.skeletonRows}).map((i,a)=>m.jsx(Y0,{columns:M.skeletonColumns},a)):V,C[4]=V,C[5]=M,C[6]=r):r=C[6];let t;return C[7]!==L||C[8]!==e||C[9]!==r?(t=m.jsx("tbody",{className:L,"data-ox-slot":"table-body",...e,children:r}),C[7]=L,C[8]=e,C[9]=r,C[10]=t):t=C[10],t},in2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("px-3 py-2 text-sm text-gray-1200",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("td",{className:M,"data-ox-slot":"table-cell",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},an2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("mb-4 flex items-center justify-between gap-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"table-controls",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},on2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("border-t border-gray-400 bg-gray-100 font-semibold",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("tfoot",{className:M,"data-ox-slot":"table-footer",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},K0=D.createContext(void 0),nn2=()=>D.useContext(K0),An2={sm:"size-4.5",md:"size-5.5"},ln2=H=>{const C=T.compilerRuntimeExports.c(58);let V,L,e,M,r,t,i,a,o,n,A,d,l,s;C[0]!==H?({checked:V,className:L,defaultChecked:e,disabled:n,error:A,id:a,indeterminate:d,name:r,onChange:t,onCheckedChange:i,required:l,size:o,value:s,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14]);const c=n===void 0?!1:n,v=A===void 0?!1:A,u=d===void 0?!1:d,Z=l===void 0?!1:l,f=D.useId(),S=nn2(),p=D.useRef(null),h=`${a||f}-checkbox`,O=o||S?.size||"sm",x=c||S?.disabled||!1,b=r||S?.name,w=V!==void 0||S&&s!==void 0;let y;if(S&&s!==void 0){let X;C[15]!==S.value||C[16]!==s?(X=S.value?.includes(s)||!1,C[15]=S.value,C[16]=s,C[17]=X):X=C[17],y=X}else y=V??void 0;let k,R;C[18]!==u?(k=()=>{p.current&&(p.current.indeterminate=u)},R=[u],C[18]=u,C[19]=k,C[20]=R):(k=C[19],R=C[20]),D.useEffect(k,R);const N=u?"mixed":y===!0?"true":"false";let j;C[21]!==S||C[22]!==t||C[23]!==i||C[24]!==s?(j=X=>{const z=X.target.checked;if(S&&s!==void 0){const H1=S.value,M1=z?[...H1,s]:H1.filter(L1=>L1!==s);S.onChange?.(M1)}else t?.(X),i?.(z)},C[21]=S,C[22]=t,C[23]=i,C[24]=s,C[25]=j):j=C[25];const F=j,I=u?"mdiMinus":"mdiCheck";let P;C[26]!==y||C[27]!==e||C[28]!==w?(P=w?{checked:y}:{defaultChecked:e},C[26]=y,C[27]=e,C[28]=w,C[29]=P):P=C[29];const E=An2[O],$=!v;let W;C[30]!==L||C[31]!==v||C[32]!==$||C[33]!==E?(W=B("peer cursor-pointer appearance-none rounded-sm bg-gray-50",E,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":v,"ox-gray-border":$},L),C[30]=L,C[31]=v,C[32]=$,C[33]=E,C[34]=W):W=C[34];const G=x?"disabled":u?"indeterminate":y?"checked":"unchecked";let U;C[35]!==x||C[36]!==b||C[37]!==N||C[38]!==h||C[39]!==M||C[40]!==v||C[41]!==F||C[42]!==Z||C[43]!==W||C[44]!==G||C[45]!==P||C[46]!==s?(U=m.jsx("input",{id:h,"aria-checked":N,"aria-invalid":v,"aria-required":Z,"data-ox-slot":"checkbox",ref:p,...P,className:W,disabled:x,name:b,required:Z,type:"checkbox",value:s,onChange:F,...M,"data-ox-state":G}),C[35]=x,C[36]=b,C[37]=N,C[38]=h,C[39]=M,C[40]=v,C[41]=F,C[42]=Z,C[43]=W,C[44]=G,C[45]=P,C[46]=s,C[47]=U):U=C[47];const Y=!u;let _;C[48]!==u||C[49]!==Y?(_=B("pointer-events-none absolute inset-0 m-auto text-gray-1200",{"opacity-80":u,"opacity-0 peer-checked:opacity-80":Y}),C[48]=u,C[49]=Y,C[50]=_):_=C[50];const q=R1[O];let K;C[51]!==I||C[52]!==_||C[53]!==q?(K=m.jsx(a1,{className:_,path:I,size:q}),C[51]=I,C[52]=_,C[53]=q,C[54]=K):K=C[54];let Q;return C[55]!==U||C[56]!==K?(Q=m.jsxs("div",{className:"relative inline-flex shrink-0",children:[U,K]}),C[55]=U,C[56]=K,C[57]=Q):Q=C[57],Q},dn2=H=>{const C=T.compilerRuntimeExports.c(26);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,disabled:t,name:M,onChange:r,size:i,value:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?"sm":i;let A;C[9]!==a?(A=a===void 0?[]:a,C[9]=a,C[10]=A):A=C[10];const d=A;let l;C[11]!==o||C[12]!==M||C[13]!==r||C[14]!==n||C[15]!==d?(l={value:d,onChange:r,name:M,size:n,disabled:o},C[11]=o,C[12]=M,C[13]=r,C[14]=n,C[15]=d,C[16]=l):l=C[16];let s;C[17]!==L?(s=B("space-y-2",L),C[17]=L,C[18]=s):s=C[18];let c;C[19]!==V||C[20]!==e||C[21]!==s?(c=m.jsx("div",{className:s,"data-ox-slot":"checkbox-group",role:"group",...e,children:V}),C[19]=V,C[20]=e,C[21]=s,C[22]=c):c=C[22];let v;return C[23]!==l||C[24]!==c?(v=m.jsx(K0.Provider,{value:l,children:c}),C[23]=l,C[24]=c,C[25]=v):v=C[25],v},t5=ln2;t5.Group=dn2;const X0=D.createContext(null),W3=H=>{const C={B:1,KB:1024,MB:1048576,GB:1073741824},V=H.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!V)throw new Error(`Invalid size format: ${H}. Use format like "5MB", "1.5GB", etc.`);const[,L,e]=V;return parseFloat(L)*C[e.toUpperCase()]},sn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),mn2=(H,C)=>C.some(V=>V.includes("/")?V.endsWith("/*")?H.type.startsWith(V.slice(0,-1)):H.type===V:H.name.toLowerCase().endsWith(`.${V.toLowerCase()}`)),cn2=H=>{const C=T.compilerRuntimeExports.c(68);let V,L,e,M,r,t,i,a,o,n,A;C[0]!==H?({accept:o,children:V,className:L,disabled:n,maxFiles:M,maxSize:r,minSize:t,multiple:A,onError:i,onFileSelect:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11]);let d;C[12]!==o?(d=o===void 0?[]:o,C[12]=o,C[13]=d):d=C[13];const l=d,s=n===void 0?!1:n,c=A===void 0?!1:A;let v;C[14]===Symbol.for("react.memo_cache_sentinel")?(v=[],C[14]=v):v=C[14];const[u,Z]=D.useState(v),[f,S]=D.useState(!1),[p,g]=D.useState();let h;C[15]!==l||C[16]!==M||C[17]!==r||C[18]!==t||C[19]!==c?(h=Q=>{if(!c&&Q.length>1)return"Only single file selection is allowed";if(M&&Q.length>M)return`Maximum ${M} file${M===1?"":"s"} allowed`;if(Q.length===0)return null;if(l.length>0&&Q.filter(z=>!mn2(z,l)).length>0)return`Invalid file type. Accepted formats: ${l.join(", ")}`;if(r){const X=W3(r);if(Q.filter(H1=>H1.size>X).length>0)return`File size must not exceed ${r}`}if(t){const X=W3(t);if(Q.filter(H1=>H1.size<X).length>0)return`File size must be at least ${t}`}return null},C[15]=l,C[16]=M,C[17]=r,C[18]=t,C[19]=c,C[20]=h):h=C[20];const O=h;let x;C[21]!==i||C[22]!==a||C[23]!==O?(x=Q=>{const X=O(Q);if(X){g(X),i?.(X);return}g(void 0),Z(Q),a?.(Q)},C[21]=i,C[22]=a,C[23]=O,C[24]=x):x=C[24];const b=x;let w;C[25]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{Z([]),g(void 0)},C[25]=w):w=C[25];const y=w;let k;C[26]!==l||C[27]!==s||C[28]!==p||C[29]!==u||C[30]!==f||C[31]!==M||C[32]!==r||C[33]!==t||C[34]!==c||C[35]!==i||C[36]!==a||C[37]!==b||C[38]!==O?(k={accept:l,clearFiles:y,disabled:s,error:p,files:u,isDragActive:f,maxFiles:M,maxSize:r,minSize:t,multiple:c,onError:i,onFileSelect:a,selectFiles:b,validateFiles:O},C[26]=l,C[27]=s,C[28]=p,C[29]=u,C[30]=f,C[31]=M,C[32]=r,C[33]=t,C[34]=c,C[35]=i,C[36]=a,C[37]=b,C[38]=O,C[39]=k):k=C[39];const R=k;let N;C[40]!==s?(N=Q=>{Q.preventDefault(),Q.stopPropagation(),s||S(!0)},C[40]=s,C[41]=N):N=C[41];const j=N;let F;C[42]!==s?(F=Q=>{Q.preventDefault(),Q.stopPropagation(),!s&&!Q.currentTarget.contains(Q.relatedTarget)&&S(!1)},C[42]=s,C[43]=F):F=C[43];const I=F,P=vn2;let E;C[44]!==s||C[45]!==b?(E=Q=>{if(Q.preventDefault(),Q.stopPropagation(),s)return;S(!1);const X=Array.from(Q.dataTransfer.files);b(X)},C[44]=s,C[45]=b,C[46]=E):E=C[46];const $=E;let W;C[47]!==L?(W=B("relative",L),C[47]=L,C[48]=W):W=C[48];const G=f?"drag-active":"idle";let U;C[49]!==l?(U=l.length>0?sn2(l):void 0,C[49]=l,C[50]=U):U=C[50];let Y;C[51]===Symbol.for("react.memo_cache_sentinel")?(Y={display:"none"},C[51]=Y):Y=C[51];let _;C[52]!==s||C[53]!==c||C[54]!==U?(_=m.jsx("input",{accept:U,className:"hidden","data-ox-slot":"file-upload-input",disabled:s,multiple:c,style:Y,type:"file"}),C[52]=s,C[53]=c,C[54]=U,C[55]=_):_=C[55];let q;C[56]!==V||C[57]!==e||C[58]!==j||C[59]!==I||C[60]!==$||C[61]!==W||C[62]!==G||C[63]!==_?(q=m.jsxs("div",{className:W,"data-ox-slot":"file-upload",...e,"data-ox-state":G,onDragEnter:j,onDragLeave:I,onDragOver:P,onDrop:$,children:[V,_]}),C[56]=V,C[57]=e,C[58]=j,C[59]=I,C[60]=$,C[61]=W,C[62]=G,C[63]=_,C[64]=q):q=C[64];let K;return C[65]!==R||C[66]!==q?(K=m.jsx(X0.Provider,{value:R,children:q}),C[65]=R,C[66]=q,C[67]=K):K=C[67],K};function vn2(H){H.preventDefault(),H.stopPropagation()}const V3=()=>{const H=D.useContext(X0);if(!H)throw new Error("useFileUploadContext must be used within a FileUploadContext.Provider");return H},un2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),Zn2=H=>{const C=T.compilerRuntimeExports.c(40);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useRef(null),{accept:r,disabled:t,error:i,isDragActive:a,multiple:o,selectFiles:n}=V3();let A;C[4]!==t?(A=()=>{!t&&M.current&&M.current.click()},C[4]=t,C[5]=A):A=C[5];const d=A;let l;C[6]!==n?(l=w=>{const y=Array.from(w.target.files||[]);y.length>0&&n(y),w.target.value=""},C[6]=n,C[7]=l):l=C[7];const s=l,c=!a&&!i,v=!i&&!t;let u;C[8]!==L||C[9]!==t||C[10]!==i||C[11]!==a||C[12]!==c||C[13]!==v?(u=B("rounded-lg border-2 border-dashed p-6 transition-all duration-200",{"border-gray-400 bg-gray-50":c,"border-violet-500 bg-gray-50":a,"border-rose-500 bg-gray-50":i,"cursor-pointer hover:border-violet-500 focus:border-violet-500 focus:outline-none":v,"ox-default-disabled":t},L),C[8]=L,C[9]=t,C[10]=i,C[11]=a,C[12]=c,C[13]=v,C[14]=u):u=C[14];const Z=t?-1:0,f=i?"error":a?"drag-active":t?"disabled":"idle";let S;C[15]!==t||C[16]!==d?(S=w=>{(w.key==="Enter"||w.key===" ")&&!t&&(w.preventDefault(),d())},C[15]=t,C[16]=d,C[17]=S):S=C[17];let p;C[18]!==i?(p=i&&m.jsx("div",{className:"mt-2 text-center text-sm text-rose-500",children:i}),C[18]=i,C[19]=p):p=C[19];let g;C[20]!==V||C[21]!==e||C[22]!==d||C[23]!==u||C[24]!==Z||C[25]!==f||C[26]!==S||C[27]!==p?(g=m.jsxs("div",{className:u,"data-ox-slot":"file-upload-area",role:"button",tabIndex:Z,...e,"data-ox-state":f,onClick:d,onKeyDown:S,children:[V,p]}),C[20]=V,C[21]=e,C[22]=d,C[23]=u,C[24]=Z,C[25]=f,C[26]=S,C[27]=p,C[28]=g):g=C[28];let h;C[29]!==r?(h=r.length>0?un2(r):void 0,C[29]=r,C[30]=h):h=C[30];let O;C[31]===Symbol.for("react.memo_cache_sentinel")?(O={display:"none"},C[31]=O):O=C[31];let x;C[32]!==t||C[33]!==s||C[34]!==o||C[35]!==h?(x=m.jsx("input",{accept:h,className:"hidden","data-ox-slot":"file-upload-area-input",disabled:t,multiple:o,ref:M,style:O,type:"file",onChange:s}),C[32]=t,C[33]=s,C[34]=o,C[35]=h,C[36]=x):x=C[36];let b;return C[37]!==g||C[38]!==x?(b=m.jsxs(m.Fragment,{children:[g,x]}),C[37]=g,C[38]=x,C[39]=b):b=C[39],b},Sn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),fn2=H=>{const C=T.compilerRuntimeExports.c(31);let V,L,e,M,r;C[0]!==H?({children:V,className:L,size:M,variant:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?"sm":M,i=r===void 0?"primary":r,a=D.useRef(null),{accept:o,disabled:n,multiple:A,selectFiles:d}=V3();let l;C[6]!==n?(l=()=>{!n&&a.current&&a.current.click()},C[6]=n,C[7]=l):l=C[7];const s=l;let c;C[8]!==d?(c=h=>{const O=Array.from(h.target.files||[]);O.length>0&&d(O),h.target.value=""},C[8]=d,C[9]=c):c=C[9];const v=c;let u;C[10]!==L?(u=B("cursor-pointer",L),C[10]=L,C[11]=u):u=C[11];let Z;C[12]!==V||C[13]!==n||C[14]!==e||C[15]!==s||C[16]!==t||C[17]!==u||C[18]!==i?(Z=m.jsx(x1,{className:u,"data-ox-slot":"file-upload-button",disabled:n,size:t,type:"button",variant:i,...e,onClick:s,children:V}),C[12]=V,C[13]=n,C[14]=e,C[15]=s,C[16]=t,C[17]=u,C[18]=i,C[19]=Z):Z=C[19];let f;C[20]!==o?(f=o.length>0?Sn2(o):void 0,C[20]=o,C[21]=f):f=C[21];let S;C[22]===Symbol.for("react.memo_cache_sentinel")?(S={display:"none"},C[22]=S):S=C[22];let p;C[23]!==n||C[24]!==v||C[25]!==A||C[26]!==f?(p=m.jsx("input",{accept:f,className:"hidden","data-ox-slot":"file-upload-button-input",disabled:n,multiple:A,ref:a,style:S,type:"file",onChange:v}),C[23]=n,C[24]=v,C[25]=A,C[26]=f,C[27]=p):p=C[27];let g;return C[28]!==Z||C[29]!==p?(g=m.jsxs(m.Fragment,{children:[Z,p]}),C[28]=Z,C[29]=p,C[30]=g):g=C[30],g},pn2=H=>H.map(C=>C.includes("/")?C:`.${C}`).join(","),hn2=H=>{const C=T.compilerRuntimeExports.c(52);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useRef(null),[r,t]=D.useState(!1),{accept:i,disabled:a,isDragActive:o,multiple:n,selectFiles:A}=V3();let d;C[4]!==a?(d=()=>{!a&&M.current&&M.current.click()},C[4]=a,C[5]=d):d=C[5];const l=d;let s;C[6]!==A?(s=E=>{const $=Array.from(E.target.files||[]);$.length>0&&A($),E.target.value=""},C[6]=A,C[7]=s):s=C[7];const c=s,v=(r||o)&&!a;let u;C[8]!==L||C[9]!==a?(u=B("ox-backdrop-blur-parent group relative w-fit cursor-pointer overflow-hidden rounded-lg","ox-violet-outset-focus",{"cursor-not-allowed opacity-50":a},L),C[8]=L,C[9]=a,C[10]=u):u=C[10];const Z=a?-1:0,f=o?"drag-active":r?"hovered":a?"disabled":"idle";let S;C[11]!==a||C[12]!==l?(S=E=>{(E.key==="Enter"||E.key===" ")&&!a&&(E.preventDefault(),l())},C[11]=a,C[12]=l,C[13]=S):S=C[13];let p,g;C[14]===Symbol.for("react.memo_cache_sentinel")?(p=()=>t(!0),g=()=>t(!1),C[14]=p,C[15]=g):(p=C[14],g=C[15]);const h=!v;let O;C[16]!==o||C[17]!==v||C[18]!==h?(O=B("absolute inset-0 flex w-full items-center justify-center transition-all duration-200","bg-gray-50/50 backdrop-blur-[2px]",{"pointer-events-none opacity-0":h,"opacity-100":v,"bg-violet-700/60":o}),C[16]=o,C[17]=v,C[18]=h,C[19]=O):O=C[19];const x=!v;let b;C[20]!==o||C[21]!==v||C[22]!==x?(b=B("flex flex-col items-center gap-2 text-white transition-transform duration-200",{"scale-90":x,"scale-100":v,"scale-110":o}),C[20]=o,C[21]=v,C[22]=x,C[23]=b):b=C[23];const w=o?"mdiCloudUpload":"mdiUpload";let y;C[24]!==w?(y=m.jsx(a1,{className:"drop-shadow-sm",path:w,size:1.5}),C[24]=w,C[25]=y):y=C[25];let k;C[26]!==b||C[27]!==y?(k=m.jsx("div",{className:b,children:y}),C[26]=b,C[27]=y,C[28]=k):k=C[28];let R;C[29]!==O||C[30]!==k?(R=m.jsx("div",{className:O,"data-ox-slot":"file-upload-overlay-backdrop",children:k}),C[29]=O,C[30]=k,C[31]=R):R=C[31];let N;C[32]!==V||C[33]!==e||C[34]!==l||C[35]!==R||C[36]!==u||C[37]!==Z||C[38]!==f||C[39]!==S?(N=m.jsxs("div",{className:u,"data-ox-slot":"file-upload-overlay",role:"button",tabIndex:Z,...e,"data-ox-state":f,onClick:l,onKeyDown:S,onMouseEnter:p,onMouseLeave:g,children:[V,R]}),C[32]=V,C[33]=e,C[34]=l,C[35]=R,C[36]=u,C[37]=Z,C[38]=f,C[39]=S,C[40]=N):N=C[40];let j;C[41]!==i?(j=i.length>0?pn2(i):void 0,C[41]=i,C[42]=j):j=C[42];let F;C[43]===Symbol.for("react.memo_cache_sentinel")?(F={display:"none"},C[43]=F):F=C[43];let I;C[44]!==a||C[45]!==c||C[46]!==n||C[47]!==j?(I=m.jsx("input",{accept:j,className:"hidden","data-ox-slot":"file-upload-overlay-input",disabled:a,multiple:n,ref:M,style:F,type:"file",onChange:c}),C[44]=a,C[45]=c,C[46]=n,C[47]=j,C[48]=I):I=C[48];let P;return C[49]!==N||C[50]!==I?(P=m.jsxs(m.Fragment,{children:[N,I]}),C[49]=N,C[50]=I,C[51]=P):P=C[51],P},i5=cn2;i5.Area=Zn2;i5.Button=fn2;i5.Overlay=hn2;const gn2=H=>{const C=T.compilerRuntimeExports.c(14);let V,L,e,M,r;C[0]!==H?({children:V,className:L,fullWidth:M,noValidate:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,i=r===void 0?!0:r;let a;C[6]!==L||C[7]!==t?(a=B({"w-full":t},L),C[6]=L,C[7]=t,C[8]=a):a=C[8];let o;return C[9]!==V||C[10]!==e||C[11]!==i||C[12]!==a?(o=m.jsx("form",{className:a,"data-ox-slot":"form",noValidate:i,...e,children:V}),C[9]=V,C[10]=e,C[11]=i,C[12]=a,C[13]=o):o=C[13],o},On2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(u2,{...H}),C[0]=H,C[1]=V):V=C[1],V},xn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(_0,{...H}),C[0]=H,C[1]=V):V=C[1],V},bn2=B("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-1",'input[data-ox-slot="checkbox"]:[grid-column-start:1]','input[data-ox-slot="checkbox"]:[grid-row-start:1]','input[data-ox-slot="radio"]:[grid-column-start:1]','input[data-ox-slot="radio"]:[grid-row-start:1]','button[data-ox-slot="switch"]:[grid-column-start:1]','button[data-ox-slot="switch"]:[grid-row-start:1]',"*:data-[ox-slot=label]:[grid-column-start:2]","*:data-[ox-slot=label]:[grid-row-start:1]","*:data-[ox-slot=description]:[grid-column-start:2]","*:data-[ox-slot=description]:[grid-row-start:2]","*:data-[ox-slot=error]:[grid-column-start:2]","*:data-[ox-slot=error]:[grid-row-start:3]"),yn2=H=>{const C=T.compilerRuntimeExports.c(13);let V,L,e,M;C[0]!==H?({children:V,className:L,orientation:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M===void 0?"vertical":M,t=r==="vertical",i=r==="horizontal";let a;C[5]!==L||C[6]!==t||C[7]!==i?(a=B({"space-y-1":t,[bn2]:i},L),C[5]=L,C[6]=t,C[7]=i,C[8]=a):a=C[8];let o;return C[9]!==V||C[10]!==e||C[11]!==a?(o=m.jsx("div",{className:a,"data-ox-slot":"form-field",...e,children:V}),C[9]=V,C[10]=e,C[11]=a,C[12]=o):o=C[12],o},wn2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,layout:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=M==="grid";let t;C[5]!==L||C[6]!==r?(t=B("space-y-6",{"md:>*:data-[ox-slot=heading]:[grid-column:1] md:>*:data-[ox-slot=description]:[grid-column:1] md:>div:[grid-column:2] md:grid md:grid-cols-[1fr_2fr] md:gap-x-8 md:gap-y-3":r},L),C[5]=L,C[6]=r,C[7]=t):t=C[7];let i;return C[8]!==V||C[9]!==e||C[10]!==t?(i=m.jsx("div",{className:t,"data-ox-slot":"form-group",...e,children:V}),C[8]=V,C[9]=e,C[10]=t,C[11]=i):i=C[11],i},kn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(G0,{...H}),C[0]=H,C[1]=V):V=C[1],V},Pn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(U0,{...H}),C[0]=H,C[1]=V):V=C[1],V},t2=gn2;t2.Group=wn2;t2.Field=yn2;t2.Label=Pn2;t2.Description=On2;t2.Error=xn2;t2.GroupTitle=kn2;const R2=D.createContext(null),Y1=()=>{const H=D.useContext(R2);if(!H)throw new Error("useBaseInputContext must be used within a BaseInput component");return H},K1=H=>{const C=T.compilerRuntimeExports.c(18);let V,L,e,M;C[0]!==H?({children:V,className:L,path:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{disabled:r,size:t}=Y1(),i=s1[t],a=!M;let o;C[5]!==L||C[6]!==i||C[7]!==a?(o=B("enabled:cursor-pointer","disabled:ox-default-disabled",{[i]:a},L),C[5]=L,C[6]=i,C[7]=a,C[8]=o):o=C[8];let n;C[9]!==V||C[10]!==M||C[11]!==t?(n=M?m.jsx(a1,{path:M,size:R1[t]}):V,C[9]=V,C[10]=M,C[11]=t,C[12]=n):n=C[12];let A;return C[13]!==r||C[14]!==e||C[15]!==o||C[16]!==n?(A=m.jsx("button",{className:o,"data-ox-slot":"input-button",disabled:r,tabIndex:-1,type:"button",...e,children:n}),C[13]=r,C[14]=e,C[15]=o,C[16]=n,C[17]=A):A=C[17],A},Tn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},a5=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{error:M,showValidation:r,size:t,validationMessage:i}=Y1(),a=w1[t],o=!M;let n;C[4]!==L||C[5]!==M||C[6]!==a||C[7]!==o?(n=B("flex w-full items-center gap-1.5 rounded-lg bg-gray-50 p-1.5","ox-violet-outset-within-focus",a,{"ox-gray-border":o,"ox-rose-border":M},L),C[4]=L,C[5]=M,C[6]=a,C[7]=o,C[8]=n):n=C[8];let A;C[9]!==V||C[10]!==e||C[11]!==n?(A=m.jsx("div",{className:n,"data-ox-slot":"input-container",...e,children:V}),C[9]=V,C[10]=e,C[11]=n,C[12]=A):A=C[12];let d;return C[13]!==r||C[14]!==A||C[15]!==i?(d=m.jsx(m7,{content:i,open:r,position:"bottom",trigger:"click",variant:"error",children:A}),C[13]=r,C[14]=A,C[15]=i,C[16]=d):d=C[16],d},J0=D.createContext(null),C7=()=>{const H=D.useContext(J0);if(!H)throw new Error("useDateContext must be used within a DateInput component");return H},Bn2=()=>{const H=T.compilerRuntimeExports.c(10),{day:C,month:V,setValue:L,year:e}=C7(),{setOpen:M}=j1();let r;H[0]!==C||H[1]!==V||H[2]!==e?(r=C&&V&&e&&e.length===4?`${e}-${V.padStart(2,"0")}-${C.padStart(2,"0")}`:void 0,H[0]=C,H[1]=V,H[2]=e,H[3]=r):r=H[3];const t=r;let i;H[4]!==M||H[5]!==L?(i=n=>{const[A,d,l]=n.split("-");L({day:l,month:d,year:A}),M(!1)},H[4]=M,H[5]=L,H[6]=i):i=H[6];const a=i;let o;return H[7]!==t||H[8]!==a?(o=m.jsx(x0,{value:t,onChange:a}),H[7]=t,H[8]=a,H[9]=o):o=H[9],o},Rn2=H=>{const C=T.compilerRuntimeExports.c(21),{defaultValue:V,onChange:L,value:e}=H,M=V??"";let r;C[0]!==L?(r=g=>L?.(g??""),C[0]=L,C[1]=r):r=C[1];let t;C[2]!==M||C[3]!==r||C[4]!==e?(t={value:e,defaultValue:M,onChange:r},C[2]=M,C[3]=r,C[4]=e,C[5]=t):t=C[5];const[i,a]=T.useControllableState(t),o=En2,n=Fn2;let A;C[6]!==i?(A=o(i),C[6]=i,C[7]=A):A=C[7];const{day:d,month:l,year:s}=A;let c;C[8]!==d||C[9]!==l||C[10]!==a||C[11]!==s?(c=g=>{const h=g.day??d,O=g.month??l,x=g.year??s,b=n(h,O,x);a(b)},C[8]=d,C[9]=l,C[10]=a,C[11]=s,C[12]=c):c=C[12];const v=c;let u;C[13]===Symbol.for("react.memo_cache_sentinel")?(u=(g,h,O)=>{if(!g||!h||!O||O.length<4)return!1;const x=n(g,h,O),b=M8(x,"yyyy-MM-dd",new Date);return m0(b)},C[13]=u):u=C[13];const Z=u,f=Dn2,S=Nn2;let p;return C[14]!==i||C[15]!==d||C[16]!==l||C[17]!==a||C[18]!==v||C[19]!==s?(p={day:d,month:l,year:s,setValue:v,dateValue:i,setDateValue:a,isValidCompleteDate:Z,getMaxDayForMonth:f,autoCompleteYear:S},C[14]=i,C[15]=d,C[16]=l,C[17]=a,C[18]=v,C[19]=s,C[20]=p):p=C[20],p};function En2(H){if(!H)return{day:"",month:"",year:""};const[C,V,L]=H.split("-");return{day:L===void 0?"":L,month:V===void 0?"":V,year:C===void 0?"":C}}function Fn2(H,C,V){if(!H&&!C&&!V)return"";const L=H?H.padStart(2,"0"):"",e=C?C.padStart(2,"0"):"";return`${V?V.padStart(4,"0"):""}-${e}-${L}`}function Dn2(H,C){if(!H)return 31;const V=parseInt(H,10);if(V<1||V>12)return 31;const L=C&&C.length===4?parseInt(C,10):new Date().getFullYear(),e=new Date(L,V-1,1);return i6(e)}function Nn2(H){return H.length===2?parseInt(H,10)<50?`20${H}`:`19${H}`:H}const In2=H=>{const C=T.compilerRuntimeExports.c(59);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c,v,u,Z;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultOpen:M,defaultValue:o,disabled:n,error:A,onChange:t,onOpenChange:i,open:a,pickOnly:d,readOnly:l,required:s,showValidation:c,showValidationTooltip:v,size:u,value:Z,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u,C[18]=Z):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15],v=C[16],u=C[17],Z=C[18]);const f=o===void 0?"":o,S=n===void 0?!1:n,p=A===void 0?!1:A,g=d===void 0?!1:d,h=l===void 0?!1:l,O=s===void 0?!1:s,x=c===void 0?!1:c,b=v===void 0?!1:v,w=u===void 0?"sm":u,y=h||g;let k;C[19]!==f||C[20]!==t||C[21]!==Z?(k={value:Z,defaultValue:f,onChange:t},C[19]=f,C[20]=t,C[21]=Z,C[22]=k):k=C[22];const{autoCompleteYear:R,day:N,getMaxDayForMonth:j,isValidCompleteDate:F,month:I,setValue:P,year:E}=Rn2(k),[$,W]=D.useState(""),[G,U]=D.useState(x),Y=e||$;let _;C[23]!==S||C[24]!==p||C[25]!==O||C[26]!==G||C[27]!==b||C[28]!==w||C[29]!==Y?(_={disabled:S,error:p,showValidation:G,showValidationTooltip:b,required:O,size:w,validationMessage:Y,setShowValidation:U,setValidationMessage:W},C[23]=S,C[24]=p,C[25]=O,C[26]=G,C[27]=b,C[28]=w,C[29]=Y,C[30]=_):_=C[30];let q;C[31]!==R||C[32]!==N||C[33]!==y||C[34]!==j||C[35]!==F||C[36]!==I||C[37]!==g||C[38]!==P||C[39]!==E?(q={day:N,month:I,year:E,setValue:P,isValidCompleteDate:F,getMaxDayForMonth:j,autoCompleteYear:R,readOnly:y,pickOnly:g},C[31]=R,C[32]=N,C[33]=y,C[34]=j,C[35]=F,C[36]=I,C[37]=g,C[38]=P,C[39]=E,C[40]=q):q=C[40];let K;C[41]!==L?(K=B("w-fit",L),C[41]=L,C[42]=K):K=C[42];let Q;C[43]===Symbol.for("react.memo_cache_sentinel")?(Q=m.jsx(g1.Content,{className:"ox-date-input-animate",children:m.jsx(Bn2,{})}),C[43]=Q):Q=C[43];let X;C[44]!==V||C[45]!==M||C[46]!==i||C[47]!==a?(X=m.jsxs(g1,{align:"center",animationDuration:200,defaultOpen:M,offset:16,open:a,position:"bottom",trigger:"click",onOpenChange:i,children:[V,Q]}),C[44]=V,C[45]=M,C[46]=i,C[47]=a,C[48]=X):X=C[48];let z;C[49]!==r||C[50]!==K||C[51]!==X?(z=m.jsx(a5,{className:K,"data-ox-slot":"input-date-container",...r,children:X}),C[49]=r,C[50]=K,C[51]=X,C[52]=z):z=C[52];let H1;C[53]!==q||C[54]!==z?(H1=m.jsx(J0.Provider,{value:q,children:z}),C[53]=q,C[54]=z,C[55]=H1):H1=C[55];let M1;return C[56]!==_||C[57]!==H1?(M1=m.jsx(R2.Provider,{value:_,children:H1}),C[56]=_,C[57]=H1,C[58]=M1):M1=C[58],M1},o5=H=>{const C=T.compilerRuntimeExports.c(16);let V,L,e,M;C[0]!==H?({children:V,className:L,path:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{disabled:r,size:t}=Y1();let i;C[5]!==L||C[6]!==r?(i=B("enabled:cursor-pointer",{"ox-default-disabled":r},L),C[5]=L,C[6]=r,C[7]=i):i=C[7];let a;C[8]!==V||C[9]!==M||C[10]!==t?(a=M?m.jsx(a1,{path:M,size:R1[t]}):V,C[8]=V,C[9]=M,C[10]=t,C[11]=a):a=C[11];let o;return C[12]!==e||C[13]!==i||C[14]!==a?(o=m.jsx("span",{className:i,"data-ox-slot":"input-icon",tabIndex:-1,...e,children:a}),C[12]=e,C[13]=i,C[14]=a,C[15]=o):o=C[15],o},jn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},r2=H=>{const C=T.compilerRuntimeExports.c(23);let V,L,e;C[0]!==H?({className:V,id:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=D.useId(),{customValidationMessage:r,disabled:t,error:i,required:a,setShowValidation:o,setValidationMessage:n,showValidationTooltip:A,size:d}=Y1();let l;C[4]!==r||C[5]!==o||C[6]!==n||C[7]!==A?(l=S=>{S.preventDefault(),A&&(n(r||S.currentTarget.validationMessage),o(!0))},C[4]=r,C[5]=o,C[6]=n,C[7]=A,C[8]=l):l=C[8];const s=l,c=e||M,v=s1[d];let u;C[9]!==V||C[10]!==v?(u=B("w-full min-w-10 appearance-none bg-transparent outline-none enabled:text-gray-1200","placeholder:text-gray-900 disabled:ox-default-disabled",v,V),C[9]=V,C[10]=v,C[11]=u):u=C[11];let Z;C[12]!==o?(Z=()=>o(!1),C[12]=o,C[13]=Z):Z=C[13];let f;return C[14]!==t||C[15]!==L||C[16]!==i||C[17]!==s||C[18]!==c||C[19]!==a||C[20]!==u||C[21]!==Z?(f=m.jsx("input",{id:c,"aria-invalid":i,"aria-required":a,className:u,disabled:t,required:a,onInput:Z,onInvalid:s,...L}),C[14]=t,C[15]=L,C[16]=i,C[17]=s,C[18]=c,C[19]=a,C[20]=u,C[21]=Z,C[22]=f):f=C[22],f},Wn2=()=>{const H=T.compilerRuntimeExports.c(95),{disabled:C,setValidationMessage:V,size:L}=Y1(),{autoCompleteYear:e,day:M,getMaxDayForMonth:r,isValidCompleteDate:t,month:i,pickOnly:a,readOnly:o,setValue:n,year:A}=C7(),{setOpen:d}=j1(),l=D.useRef(null),s=D.useRef(null),c=D.useRef(null);let v;H[0]!==M||H[1]!==r||H[2]!==i||H[3]!==n||H[4]!==A?(v=V1=>{const A1=r(i,A),P1=M?parseInt(M,10):V1===1?0:A1+1,C2=V1===1?P1>=A1?1:P1+1:P1<=1?A1:P1-1;n({day:String(C2)})},H[0]=M,H[1]=r,H[2]=i,H[3]=n,H[4]=A,H[5]=v):v=H[5];const u=v;let Z;H[6]!==M||H[7]!==r||H[8]!==i||H[9]!==n||H[10]!==A?(Z=V1=>{const A1=i?parseInt(i,10):V1===1?0:13,P1=V1===1?A1>=12?1:A1+1:A1<=1?12:A1-1,C2=r(String(P1),A);(M?parseInt(M,10):0)>C2?n({day:String(C2),month:String(P1)}):n({month:String(P1)})},H[6]=M,H[7]=r,H[8]=i,H[9]=n,H[10]=A,H[11]=Z):Z=H[11];const f=Z;let S;H[12]!==r||H[13]!==i||H[14]!==n||H[15]!==A?(S=V1=>{const A1=V1.target.value,P1=r(i,A);(A1===""||/^\d{1,2}$/.test(A1)&&parseInt(A1,10)<=P1)&&n({day:A1})},H[12]=r,H[13]=i,H[14]=n,H[15]=A,H[16]=S):S=H[16];const p=S;let g;H[17]!==n?(g=V1=>{const A1=V1.target.value;(A1===""||/^\d{1,2}$/.test(A1)&&parseInt(A1,10)<=12)&&n({month:A1})},H[17]=n,H[18]=g):g=H[18];const h=g;let O;H[19]!==n?(O=V1=>{const A1=V1.target.value;(A1===""||/^\d{1,4}$/.test(A1)&&parseInt(A1,10)<=2100)&&n({year:A1})},H[19]=n,H[20]=O):O=H[20];const x=O;let b;H[21]!==u?(b=V1=>{V1.key==="ArrowUp"?(V1.preventDefault(),u(1)):V1.key==="ArrowDown"?(V1.preventDefault(),u(-1)):(V1.key==="Tab"&&!V1.shiftKey||V1.key==="Enter"||V1.key==="-")&&(V1.preventDefault(),s.current?.focus())},H[21]=u,H[22]=b):b=H[22];const w=b;let y;H[23]!==f||H[24]!==i?(y=V1=>{V1.key==="ArrowUp"?(V1.preventDefault(),f(1)):V1.key==="ArrowDown"?(V1.preventDefault(),f(-1)):V1.key==="Tab"&&V1.shiftKey?(V1.preventDefault(),l.current?.focus()):V1.key==="Tab"&&!V1.shiftKey||V1.key==="Enter"||V1.key==="-"?(V1.preventDefault(),c.current?.focus()):V1.key==="Backspace"&&i===""&&l.current?.focus()},H[23]=f,H[24]=i,H[25]=y):y=H[25];const k=y;let R;H[26]!==A?(R=V1=>{V1.key==="Tab"&&V1.shiftKey?(V1.preventDefault(),s.current?.focus()):V1.key==="Backspace"&&A===""&&s.current?.focus()},H[26]=A,H[27]=R):R=H[27];const N=R;let j;H[28]!==M||H[29]!==t||H[30]!==i||H[31]!==V||H[32]!==A?(j=()=>{M&&i&&A?t(M,i,A)?V(""):V("Invalid date"):V("")},H[28]=M,H[29]=t,H[30]=i,H[31]=V,H[32]=A,H[33]=j):j=H[33];const F=j;let I;H[34]!==F?(I=()=>{F()},H[34]=F,H[35]=I):I=H[35];const P=I;let E;H[36]!==F?(E=()=>{F()},H[36]=F,H[37]=E):E=H[37];const $=E;let W;H[38]!==e||H[39]!==n||H[40]!==F||H[41]!==A?(W=()=>{if(A.length===2){const V1=e(A);n({year:V1})}F()},H[38]=e,H[39]=n,H[40]=F,H[41]=A,H[42]=W):W=H[42];const G=W;let U;H[43]!==a||H[44]!==d?(U=()=>{a&&d(!0)},H[43]=a,H[44]=d,H[45]=U):U=H[45];const Y=U,_=a&&!C;let q;H[46]!==_?(q=B("flex items-center bg-transparent",{"cursor-pointer":_}),H[46]=_,H[47]=q):q=H[47];let K;H[48]!==a?(K=B("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[48]=a,H[49]=K):K=H[49];let Q;H[50]!==M||H[51]!==P||H[52]!==p||H[53]!==w||H[54]!==o||H[55]!==K?(Q=m.jsx(r2,{"aria-label":"Day",autoComplete:"off",className:K,inputMode:"numeric",max:"31",min:"0",pattern:"[0-9]*",placeholder:"dd",readOnly:o,ref:l,type:"number",value:M,onBlur:P,onChange:p,onKeyDown:w}),H[50]=M,H[51]=P,H[52]=p,H[53]=w,H[54]=o,H[55]=K,H[56]=Q):Q=H[56];const X=s1[L],z=!C;let H1;H[57]!==C||H[58]!==X||H[59]!==z?(H1=B(X,{"text-gray-1000":z,"ox-default-disabled":C}),H[57]=C,H[58]=X,H[59]=z,H[60]=H1):H1=H[60];let M1;H[61]!==H1?(M1=m.jsx("span",{className:H1,children:"-"}),H[61]=H1,H[62]=M1):M1=H[62];let L1;H[63]!==a?(L1=B("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[63]=a,H[64]=L1):L1=H[64];let c1;H[65]!==$||H[66]!==h||H[67]!==k||H[68]!==i||H[69]!==o||H[70]!==L1?(c1=m.jsx(r2,{"aria-label":"Month",autoComplete:"off",className:L1,inputMode:"numeric",max:"12",min:"0",pattern:"[0-9]*",placeholder:"mm",readOnly:o,ref:s,type:"number",value:i,onBlur:$,onChange:h,onKeyDown:k}),H[65]=$,H[66]=h,H[67]=k,H[68]=i,H[69]=o,H[70]=L1,H[71]=c1):c1=H[71];const S1=s1[L],v1=!C;let k1;H[72]!==C||H[73]!==S1||H[74]!==v1?(k1=B(S1,{"text-gray-1000":v1,"ox-default-disabled":C}),H[72]=C,H[73]=S1,H[74]=v1,H[75]=k1):k1=H[75];let E1;H[76]!==k1?(E1=m.jsx("span",{className:k1,children:"-"}),H[76]=k1,H[77]=E1):E1=H[77];let D1;H[78]!==a?(D1=B("w-10 min-w-10 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":a}),H[78]=a,H[79]=D1):D1=H[79];let W1;H[80]!==G||H[81]!==x||H[82]!==N||H[83]!==o||H[84]!==D1||H[85]!==A?(W1=m.jsx(r2,{"aria-label":"Year",autoComplete:"off",className:D1,inputMode:"numeric",max:"2100",min:"0",pattern:"[0-9]*",placeholder:"yyyy",readOnly:o,ref:c,type:"number",value:A,onBlur:G,onChange:x,onKeyDown:N}),H[80]=G,H[81]=x,H[82]=N,H[83]=o,H[84]=D1,H[85]=A,H[86]=W1):W1=H[86];let J1;return H[87]!==Y||H[88]!==q||H[89]!==Q||H[90]!==M1||H[91]!==c1||H[92]!==E1||H[93]!==W1?(J1=m.jsxs("div",{className:q,"data-ox-slot":"input-date",onClick:Y,children:[Q,M1,c1,E1,W1]}),H[87]=Y,H[88]=q,H[89]=Q,H[90]=M1,H[91]=c1,H[92]=E1,H[93]=W1,H[94]=J1):J1=H[94],J1},zn2=H=>{const C=T.compilerRuntimeExports.c(6);let V,L;C[0]!==H?({children:V,...L}=H,C[0]=H,C[1]=V,C[2]=L):(V=C[1],L=C[2]);let e;return C[3]!==V||C[4]!==L?(e=m.jsx(g1.Trigger,{asChild:!0,children:m.jsx(K1,{...L,path:"mdiCalendar",children:V})}),C[3]=V,C[4]=L,C[5]=e):e=C[5],e},E2=Wn2;E2.Container=In2;E2.Icon=jn2;E2.Button=Tn2;E2.PickerButton=zn2;const $n2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},H7=D.createContext(null),_n2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M,r,t,i,a,o,n,A,d,l,s,c,v,u;C[0]!==H?({children:V,defaultValue:L,disabled:o,error:n,locale:A,max:M,maximumFractionDigits:r,min:t,minimumFractionDigits:i,onChange:a,required:d,showValidationTooltip:l,size:s,steps:c,useGrouping:v,value:u,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s,C[15]=c,C[16]=v,C[17]=u):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14],c=C[15],v=C[16],u=C[17]);const Z=o===void 0?!1:o,f=n===void 0?!1:n,S=A===void 0?"en-US":A,p=d===void 0?!1:d,g=l===void 0?!1:l,h=s===void 0?"sm":s,O=c===void 0?1:c,x=v===void 0?!0:v,b=D.useId(),w=new Intl.NumberFormat(S,{useGrouping:x!==!1,minimumFractionDigits:i,maximumFractionDigits:r});let y;C[18]!==L||C[19]!==a||C[20]!==u?(y={value:u,onChange:a,defaultValue:L,name:"OxNumberInput"},C[18]=L,C[19]=a,C[20]=u,C[21]=y):y=C[21];const[k,R]=T.useControllableState(y),[N,j]=D.useState(k!==void 0?w.format(k):""),[F,I]=D.useState(""),[P,E]=D.useState(!1),$=Gn2;let W;C[22]!==M||C[23]!==t?(W=z=>T.clamp(z,t??-1/0,M??1/0),C[22]=M,C[23]=t,C[24]=W):W=C[24];const G=W,U=z=>{let H1=$(N);H1===void 0&&(H1=k!==void 0?k:0);const M1=G(H1),L1=G(M1+z);R(L1),j(w.format(L1))};let Y;C[25]!==U||C[26]!==O?(Y=()=>U(O),C[25]=U,C[26]=O,C[27]=Y):Y=C[27];const _=Y;let q;C[28]!==U||C[29]!==O?(q=()=>U(-O),C[28]=U,C[29]=O,C[30]=q):q=C[30];const K=q;let Q;C[31]!==Z||C[32]!==f||C[33]!==p||C[34]!==P||C[35]!==g||C[36]!==h||C[37]!==F?(Q={disabled:Z,error:f,showValidation:P,showValidationTooltip:g,required:p,size:h,validationMessage:F,setShowValidation:E,setValidationMessage:I},C[31]=Z,C[32]=f,C[33]=p,C[34]=P,C[35]=g,C[36]=h,C[37]=F,C[38]=Q):Q=C[38];let X;return C[39]!==V||C[40]!==e?(X=m.jsx(a5,{"data-ox-slot":"input-number-container",...e,children:V}),C[39]=V,C[40]=e,C[41]=X):X=C[41],m.jsx(R2.Provider,{value:Q,children:m.jsx(H7.Provider,{value:{clampValue:G,displayValue:N,formatter:w,handleDecrement:K,handleIncrement:_,inputId:b,internalValue:k,max:M,min:t,parse:$,setDisplayValue:j,setInternalValue:R,steps:O},children:X})})};function Gn2(H){if(!H.trim())return;const C=H.replace(/[^\d.-]/g,""),V=parseFloat(C);return!isNaN(V)&&isFinite(V)?V:void 0}const L3=()=>{const H=D.useContext(H7);if(!H)throw new Error("useNumberContext must be used within a Number component");return H},Un2=()=>{const H=T.compilerRuntimeExports.c(6),{size:C}=Y1(),{handleDecrement:V,inputId:L}=L3(),e=R1[C];let M;H[0]!==e?(M=m.jsx(a1,{path:"mdiMinus",size:e}),H[0]=e,H[1]=M):M=H[1];let r;return H[2]!==V||H[3]!==L||H[4]!==M?(r=m.jsx(K1,{"aria-controls":L,"aria-label":"Decrease value","data-ox-slot":"input-number-decrement",onClick:V,children:M}),H[2]=V,H[3]=L,H[4]=M,H[5]=r):r=H[5],r},Qn2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},qn2=()=>{const H=T.compilerRuntimeExports.c(6),{size:C}=Y1(),{handleIncrement:V,inputId:L}=L3(),e=R1[C];let M;H[0]!==e?(M=m.jsx(a1,{path:"mdiPlus",size:e}),H[0]=e,H[1]=M):M=H[1];let r;return H[2]!==V||H[3]!==L||H[4]!==M?(r=m.jsx(K1,{"aria-controls":L,"aria-label":"Increase value","data-slot":"input-number-increment",onClick:V,children:M}),H[2]=V,H[3]=L,H[4]=M,H[5]=r):r=H[5],r},Yn2=H=>{const C=T.compilerRuntimeExports.c(42);let V,L,e,M;C[0]!==H?({"aria-label":V,"aria-labelledby":L,className:e,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{clampValue:r,displayValue:t,formatter:i,handleDecrement:a,handleIncrement:o,inputId:n,internalValue:A,max:d,min:l,parse:s,setDisplayValue:c,setInternalValue:v}=L3(),[u,Z]=D.useState(!1);let f;C[5]!==c?(f=N=>{c(N.target.value)},C[5]=c,C[6]=f):f=C[6];const S=f,p=Kn2;let g;C[7]!==r||C[8]!==t||C[9]!==i||C[10]!==s||C[11]!==c||C[12]!==v?(g=()=>{const N=s(t);if(N!==void 0){const j=r(N);v(j),c(i.format(j))}else v(void 0),c("")},C[7]=r,C[8]=t,C[9]=i,C[10]=s,C[11]=c,C[12]=v,C[13]=g):g=C[13];const h=g;let O;C[14]!==i||C[15]!==s||C[16]!==c||C[17]!==v?(O=N=>{const j=N.clipboardData.getData("text"),F=s(j);F!==void 0&&(N.preventDefault(),c(i.format(F)),v(F))},C[14]=i,C[15]=s,C[16]=c,C[17]=v,C[18]=O):O=C[18];const x=O;let b;C[19]!==h||C[20]!==a||C[21]!==o||C[22]!==u?(b={onArrowDown:a,onArrowUp:o,onEnter:h,enabled:u,allowRepeat:!0},C[19]=h,C[20]=a,C[21]=o,C[22]=u,C[23]=b):b=C[23],T.useKeyboard(b);let w;C[24]!==e?(w=B("text-center",e),C[24]=e,C[25]=w):w=C[25];let y;C[26]!==h?(y=()=>{Z(!1),h()},C[26]=h,C[27]=y):y=C[27];let k;C[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>Z(!0),C[28]=k):k=C[28];let R;return C[29]!==V||C[30]!==L||C[31]!==t||C[32]!==M||C[33]!==S||C[34]!==x||C[35]!==n||C[36]!==A||C[37]!==d||C[38]!==l||C[39]!==w||C[40]!==y?(R=m.jsx(r2,{id:n,"aria-label":V,"aria-labelledby":L,"aria-valuemax":d,"aria-valuemin":l,"aria-valuenow":A,autoComplete:"off",className:w,"data-ox-slot":"input-number",inputMode:"decimal",role:"spinbutton",type:"text",value:t,onBeforeInput:p,onBlur:y,onChange:S,onFocus:k,onPaste:x,...M}),C[29]=V,C[30]=L,C[31]=t,C[32]=M,C[33]=S,C[34]=x,C[35]=n,C[36]=A,C[37]=d,C[38]=l,C[39]=w,C[40]=y,C[41]=R):R=C[41],R};function Kn2(H){const C=H.nativeEvent,V=H.target,L=V.value.slice(0,V.selectionStart??void 0)+(C.data??"")+V.value.slice(V.selectionEnd??void 0);!/^-?[\d.,]*$/.test(L)&&L!==""&&H.preventDefault()}const g2=Yn2;g2.Button=$n2;g2.Container=_n2;g2.DecrementButton=Un2;g2.Icon=Qn2;g2.IncrementButton=qn2;const Xn2={sm:"size-8 text-sm",md:"size-9 text-sm"},Jn2={sm:"gap-1",md:"gap-2"},CA2=H=>{switch(H){case"numeric":return{inputMode:"numeric",pattern:"[0-9]*"};case"alphanumeric":return{inputMode:"text",pattern:"[A-Z0-9]*"};case"text":default:return{inputMode:"text"}}},HA2=(H,C)=>{switch(C){case"numeric":return H.replace(/[^0-9]/g,"");case"alphanumeric":return H.replace(/[^A-Z0-9]/gi,"").toUpperCase();default:return H}},VA2=H=>{const C=T.compilerRuntimeExports.c(25),{className:V,disabled:L,error:e,length:M,onComplete:r,onValueChange:t,placeholder:i,size:a,type:o}=H,n=L===void 0?!1:L,A=e===void 0?!1:e,d=M===void 0?6:M,l=i===void 0?"":i,s=a===void 0?"md":a,c=o===void 0?"numeric":o,v=D.useId();let u;C[0]!==d?(u=()=>new Array(d).fill(""),C[0]=d,C[1]=u):u=C[1];const[Z,f]=D.useState(u);let S;C[2]===Symbol.for("react.memo_cache_sentinel")?(S=[],C[2]=S):S=C[2];const p=D.useRef(S);let g;C[3]!==c?(g=CA2(c),C[3]=c,C[4]=g):g=C[4];const h=g;let O,x;C[5]!==d?(O=()=>{p.current=p.current.slice(0,d)},x=[d],C[5]=d,C[6]=O,C[7]=x):(O=C[6],x=C[7]),D.useEffect(O,x);let b;C[8]===Symbol.for("react.memo_cache_sentinel")?(b=k=>k2.flushSync(()=>{f(k)}),C[8]=b):b=C[8];const w=b;let y;if(C[9]!==v||C[10]!==V||C[11]!==Z||C[12]!==n||C[13]!==A||C[14]!==d||C[15]!==r||C[16]!==t||C[17]!==l||C[18]!==s||C[19]!==c||C[20]!==h){const k=(I,P)=>{const E=HA2(P,c),$=[...Z];$[I]=E[0]||"";const W=$[I]&&I<d-1?I+1:void 0;w($),W!==void 0&&p.current[W]?.focus();const G=$.filter(LA2),U=G.join("");t?.(U),G.length===d&&r?.(U)},R=(I,P)=>{const E=[...Z];if(P.key==="Backspace"){if(Z[I]){E[I]="",w(E);const $=E.filter(eA2);t?.($.join(""))}else if(I>0){E[I-1]="",w(E),p.current[I-1]?.focus();const $=E.filter(MA2);t?.($.join(""))}}P.key==="ArrowLeft"&&I>0&&p.current[I-1]?.focus(),P.key==="ArrowRight"&&I<d-1&&p.current[I+1]?.focus()},N=I=>{p.current[I]?.select()},j=Jn2[s];let F;C[22]!==V||C[23]!==j?(F=B("inline-flex",j,V),C[22]=V,C[23]=j,C[24]=F):F=C[24],y=m.jsx("div",{className:F,"data-ox-slot":"otp-input",children:Array.from({length:d},(I,P)=>{const E=P===0||Z.slice(0,P).every(rA2),$=n||!E;return m.jsx("input",{id:`${v}-digit-${P}`,"aria-label":`Digit ${P+1} of ${d}`,autoComplete:"one-time-code",className:B("rounded-lg border bg-gray-50 text-center font-mono transition-all duration-200","ox-violet-outset-focus",Xn2[s],{"ox-gray-border":!A,"ox-rose-border":A,"ox-default-disabled":n}),"data-ox-slot":"otp-digit",disabled:$,maxLength:1,placeholder:l,ref:W=>{p.current[P]=W},type:"text",value:Z[P],onChange:W=>k(P,W.target.value),onFocus:()=>N(P),onKeyDown:W=>R(P,W),onPaste:tA2,...h},P)})}),C[9]=v,C[10]=V,C[11]=Z,C[12]=n,C[13]=A,C[14]=d,C[15]=r,C[16]=t,C[17]=l,C[18]=s,C[19]=c,C[20]=h,C[21]=y}else y=C[21];return y};function LA2(H){return H!==""}function eA2(H){return H!==""}function MA2(H){return H!==""}function rA2(H){return H!==""}function tA2(H){return H.preventDefault()}const iA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},V7=D.createContext(null),e3=()=>{const H=D.useContext(V7);if(!H)throw new Error("useTextContext must be used within a Text component");return H},aA2=()=>{const H=T.compilerRuntimeExports.c(5),{handleClear:C,internalValue:V}=e3(),L=!V;let e;H[0]!==L?(e=B("",{invisible:L}),H[0]=L,H[1]=e):e=H[1];let M;return H[2]!==C||H[3]!==e?(M=m.jsx(K1,{"aria-label":"Clear input",className:e,"data-ox-slot":"input-text-clear",path:"mdiClose",onClick:C}),H[2]=C,H[3]=e,H[4]=M):M=H[4],M},oA2=H=>{const C=T.compilerRuntimeExports.c(53);let V,L,e,M,r,t,i,a,o,n,A,d,l,s;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultValue:M,disabled:i,error:a,onChange:t,required:o,showValidation:n,showValidationTooltip:A,size:d,type:l,value:s,...r}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l,C[14]=s):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13],s=C[14]);const c=i===void 0?!1:i,v=a===void 0?!1:a,u=o===void 0?!1:o,Z=n===void 0?!1:n,f=A===void 0?!1:A,S=d===void 0?"sm":d,p=l===void 0?"text":l,g=D.useRef(null);let h;C[15]!==t?(h=z=>{t?.(z??"")},C[15]=t,C[16]=h):h=C[16];let O;C[17]!==M||C[18]!==h||C[19]!==s?(O={value:s,onChange:h,defaultValue:M,name:"OxTextInput"},C[17]=M,C[18]=h,C[19]=s,C[20]=O):O=C[20];const[x,b]=T.useControllableState(O),w=x??"";let y;C[21]!==b?(y=z=>b(z),C[21]=b,C[22]=y):y=C[22];const k=y,[R,N]=D.useState(p),[j,F]=D.useState(""),[I,P]=D.useState(Z);let E;C[23]!==k?(E=()=>{k(""),g.current?.focus()},C[23]=k,C[24]=E):E=C[24];const $=E;let W;C[25]!==R?(W=()=>{R==="password"?N("text"):R==="text"&&N("password")},C[25]=R,C[26]=W):W=C[26];const G=W,U=e||j;let Y;C[27]!==c||C[28]!==v||C[29]!==u||C[30]!==I||C[31]!==f||C[32]!==S||C[33]!==U?(Y={disabled:c,error:v,showValidation:I,showValidationTooltip:f,required:u,size:S,validationMessage:U,setShowValidation:P,setValidationMessage:F},C[27]=c,C[28]=v,C[29]=u,C[30]=I,C[31]=f,C[32]=S,C[33]=U,C[34]=Y):Y=C[34];let _;C[35]!==R||C[36]!==$||C[37]!==G||C[38]!==w||C[39]!==k?(_={handleClear:$,handleTypeToggle:G,inputRef:g,internalValue:w,setInternalValue:k,type:R},C[35]=R,C[36]=$,C[37]=G,C[38]=w,C[39]=k,C[40]=_):_=C[40];let q;C[41]!==L?(q=B("[&_[data-ox-slot='input-text']:only-child]:px-2",L),C[41]=L,C[42]=q):q=C[42];let K;C[43]!==V||C[44]!==r||C[45]!==q?(K=m.jsx(a5,{className:q,"data-ox-slot":"input-text-container",...r,children:V}),C[43]=V,C[44]=r,C[45]=q,C[46]=K):K=C[46];let Q;C[47]!==_||C[48]!==K?(Q=m.jsx(V7.Provider,{value:_,children:K}),C[47]=_,C[48]=K,C[49]=Q):Q=C[49];let X;return C[50]!==Y||C[51]!==Q?(X=m.jsx(R2.Provider,{value:Y,children:Q}),C[50]=Y,C[51]=Q,C[52]=X):X=C[52],X},nA2=H=>{const C=T.compilerRuntimeExports.c(16);let V,L,e,M,r,t;C[0]!==H?({className:V,currentLength:M,disabled:r,maxLength:e,size:t,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const i=M===void 0?0:M,a=r===void 0?!1:r,n=s1[t===void 0?"sm":t];let A;C[7]!==V||C[8]!==a||C[9]!==n?(A=B("mt-1 text-right text-gray-1000 tabular-nums",n,{"ox-default-disabled":a},V),C[7]=V,C[8]=a,C[9]=n,C[10]=A):A=C[10];let d;return C[11]!==i||C[12]!==L||C[13]!==e||C[14]!==A?(d=m.jsxs("div",{className:A,"data-ox-slot":"input-counter",...L,children:[i,"/",e]}),C[11]=i,C[12]=L,C[13]=e,C[14]=A,C[15]=d):d=C[15],d},AA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(nA2,{...H}),C[0]=H,C[1]=V):V=C[1],V},lA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},dA2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r,t,i;C[0]!==H?({autoComplete:V,className:L,id:M,maxLength:r,placeholder:t,spellCheck:i,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=i===void 0?!1:i,{disabled:o,error:n,required:A}=Y1(),{inputRef:d,internalValue:l,setInternalValue:s,type:c}=e3();let v;C[8]!==s?(v=f=>{s(f.target.value)},C[8]=s,C[9]=v):v=C[9];const u=v;let Z;return C[10]!==V||C[11]!==L||C[12]!==o||C[13]!==e||C[14]!==n||C[15]!==u||C[16]!==M||C[17]!==d||C[18]!==l||C[19]!==r||C[20]!==t||C[21]!==A||C[22]!==a||C[23]!==c?(Z=m.jsx(r2,{id:M,"aria-invalid":n,"aria-required":A,autoComplete:V,className:L,"data-ox-slot":"input-text",disabled:o,maxLength:r,placeholder:t,ref:d,required:A,spellCheck:a,type:c,value:l,onChange:u,...e}),C[10]=V,C[11]=L,C[12]=o,C[13]=e,C[14]=n,C[15]=u,C[16]=M,C[17]=d,C[18]=l,C[19]=r,C[20]=t,C[21]=A,C[22]=a,C[23]=c,C[24]=Z):Z=C[24],Z},sA2=()=>{const H=T.compilerRuntimeExports.c(4),{handleTypeToggle:C,type:V}=e3(),L=V==="text",e=L?"Hide password":"Show password",M=L?"mdiEyeOff":"mdiEye";let r;return H[0]!==C||H[1]!==e||H[2]!==M?(r=m.jsx(K1,{"aria-label":e,"data-ox-slot":"input-text-toggle",path:M,onClick:C}),H[0]=C,H[1]=e,H[2]=M,H[3]=r):r=H[3],r},i2=dA2;i2.Button=iA2;i2.ClearButton=aA2;i2.Container=oA2;i2.Counter=AA2;i2.Icon=lA2;i2.VisibilityButton=sA2;const mA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(K1,{...H}),C[0]=H,C[1]=V):V=C[1],V},L7=D.createContext(null),cA2=H=>{const C=T.compilerRuntimeExports.c(21),{defaultValue:V,onChange:L,value:e}=H,M=V??"";let r;C[0]!==L?(r=f=>L?.(f??""),C[0]=L,C[1]=r):r=C[1];let t;C[2]!==M||C[3]!==r||C[4]!==e?(t={value:e,defaultValue:M,onChange:r},C[2]=M,C[3]=r,C[4]=e,C[5]=t):t=C[5];const[i,a]=T.useControllableState(t),o=vA2,n=uA2;let A;C[6]!==i?(A=o(i),C[6]=i,C[7]=A):A=C[7];const{hours:d,minutes:l}=A;let s;C[8]!==l||C[9]!==a?(s=f=>{const S=n(f,l);a(S)},C[8]=l,C[9]=a,C[10]=s):s=C[10];const c=s;let v;C[11]!==d||C[12]!==a?(v=f=>{const S=n(d,f);a(S)},C[11]=d,C[12]=a,C[13]=v):v=C[13];const u=v;let Z;return C[14]!==d||C[15]!==l||C[16]!==c||C[17]!==u||C[18]!==a||C[19]!==i?(Z={hours:d,minutes:l,setHours:c,setMinutes:u,timeValue:i,setTimeValue:a},C[14]=d,C[15]=l,C[16]=c,C[17]=u,C[18]=a,C[19]=i,C[20]=Z):Z=C[20],Z};function vA2(H){if(!H)return{hours:"",minutes:""};const[C,V]=H.split(":");return{hours:C===void 0?"":C,minutes:V===void 0?"":V}}function uA2(H,C){if(!H&&!C)return"";const V=H?H.padStart(2,"0"):"",L=C?C.padStart(2,"0"):"";return`${V}:${L}`}const ZA2=H=>{const C=T.compilerRuntimeExports.c(43);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({children:V,className:L,customValidationMessage:e,defaultValue:t,disabled:i,error:a,onChange:r,required:o,showValidation:n,showValidationTooltip:A,size:d,value:l,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=t===void 0?"":t,c=i===void 0?!1:i,v=a===void 0?!1:a,u=o===void 0?!1:o,Z=n===void 0?!1:n,f=A===void 0?!1:A,S=d===void 0?"sm":d;let p;C[14]!==s||C[15]!==r||C[16]!==l?(p={value:l,defaultValue:s,onChange:r},C[14]=s,C[15]=r,C[16]=l,C[17]=p):p=C[17];const{hours:g,minutes:h,setHours:O,setMinutes:x}=cA2(p),[b,w]=D.useState(""),[y,k]=D.useState(Z),R=e||b;let N;C[18]!==c||C[19]!==v||C[20]!==u||C[21]!==y||C[22]!==f||C[23]!==S||C[24]!==R?(N={disabled:c,error:v,showValidation:y,showValidationTooltip:f,required:u,size:S,validationMessage:R,setShowValidation:k,setValidationMessage:w},C[18]=c,C[19]=v,C[20]=u,C[21]=y,C[22]=f,C[23]=S,C[24]=R,C[25]=N):N=C[25];let j;C[26]!==g||C[27]!==h||C[28]!==O||C[29]!==x?(j={hours:g,minutes:h,setHours:O,setMinutes:x},C[26]=g,C[27]=h,C[28]=O,C[29]=x,C[30]=j):j=C[30];let F;C[31]!==L?(F=B("w-fit [&_[data-ox-slot='input-time']:only-child]:px-2",L),C[31]=L,C[32]=F):F=C[32];let I;C[33]!==V||C[34]!==M||C[35]!==F?(I=m.jsx(a5,{className:F,"data-ox-slot":"input-time-container",...M,children:V}),C[33]=V,C[34]=M,C[35]=F,C[36]=I):I=C[36];let P;C[37]!==j||C[38]!==I?(P=m.jsx(L7.Provider,{value:j,children:I}),C[37]=j,C[38]=I,C[39]=P):P=C[39];let E;return C[40]!==N||C[41]!==P?(E=m.jsx(R2.Provider,{value:N,children:P}),C[40]=N,C[41]=P,C[42]=E):E=C[42],E},SA2=H=>{const C=T.compilerRuntimeExports.c(2);let V;return C[0]!==H?(V=m.jsx(o5,{...H}),C[0]=H,C[1]=V):V=C[1],V},fA2=()=>{const H=D.useContext(L7);if(!H)throw new Error("useTimeContext must be used within a TimeInput component");return H},pA2=()=>{const H=T.compilerRuntimeExports.c(26),{hours:C,minutes:V,setHours:L,setMinutes:e}=fA2(),{disabled:M,size:r}=Y1(),t=D.useRef(null),i=D.useRef(null);let a;H[0]!==L?(a=x=>{const b=x.target.value;(b===""||/^\d{1,2}$/.test(b)&&parseInt(b,10)<=23)&&L(b)},H[0]=L,H[1]=a):a=H[1];const o=a;let n;H[2]!==e?(n=x=>{const b=x.target.value;(b===""||/^\d{1,2}$/.test(b)&&parseInt(b,10)<=59)&&e(b)},H[2]=e,H[3]=n):n=H[3];const A=n;let d;H[4]===Symbol.for("react.memo_cache_sentinel")?(d=x=>{(x.key==="Tab"||x.key==="Enter"||x.key===":")&&(x.preventDefault(),i.current?.focus())},H[4]=d):d=H[4];const l=d;let s;H[5]!==V?(s=x=>{x.key==="Backspace"&&V===""&&t.current?.focus()},H[5]=V,H[6]=s):s=H[6];const c=s;let v;H[7]===Symbol.for("react.memo_cache_sentinel")?(v=B("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),H[7]=v):v=H[7];let u;H[8]!==o||H[9]!==C?(u=m.jsx(r2,{autoComplete:"off",className:v,max:"23",min:"0",placeholder:"hh",ref:t,type:"number",value:C,onChange:o,onKeyDown:l}),H[8]=o,H[9]=C,H[10]=u):u=H[10];const Z=s1[r],f=!M;let S;H[11]!==M||H[12]!==Z||H[13]!==f?(S=B(Z,{"text-gray-1000":f,"ox-default-disabled":M}),H[11]=M,H[12]=Z,H[13]=f,H[14]=S):S=H[14];let p;H[15]!==S?(p=m.jsx("span",{className:S,children:":"}),H[15]=S,H[16]=p):p=H[16];let g;H[17]===Symbol.for("react.memo_cache_sentinel")?(g=B("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),H[17]=g):g=H[17];let h;H[18]!==A||H[19]!==c||H[20]!==V?(h=m.jsx(r2,{autoComplete:"off",className:g,max:"59",min:"0",placeholder:"mm",ref:i,type:"number",value:V,onChange:A,onKeyDown:c}),H[18]=A,H[19]=c,H[20]=V,H[21]=h):h=H[21];let O;return H[22]!==h||H[23]!==u||H[24]!==p?(O=m.jsxs("div",{className:"flex items-center gap-1 bg-transparent px-2","data-ox-slot":"input-time",children:[u,p,h]}),H[22]=h,H[23]=u,H[24]=p,H[25]=O):O=H[25],O},n5=pA2;n5.Container=ZA2;n5.Icon=SA2;n5.Button=mA2;const e7=D.createContext(void 0),hA2=()=>{const H=D.useContext(e7);if(!H)throw new Error("OxRadio must be used within OxRadioGroup");return H},gA2={sm:"size-4.5",md:"size-5.5"},OA2=H=>{const C=T.compilerRuntimeExports.c(47);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({checked:V,className:L,defaultChecked:e,disabled:n,error:A,id:a,name:r,onChange:t,onCheckedChange:i,required:d,size:o,value:l,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=n===void 0?!1:n,c=A===void 0?!1:A,v=d===void 0?!1:d,u=D.useId(),Z=hA2(),f=D.useRef(null),p=`${a||u}-radio`,g=o||Z.size,h=s||Z.disabled,O=r||Z?.name,x=V!==void 0||Z&&l!==void 0&&Z.value!==void 0;let b;Z&&l!==void 0&&Z.value!==void 0?b=Z.value===l:b=V;let w;C[14]!==Z||C[15]!==t||C[16]!==i||C[17]!==l?(w=W=>{const G=W.target.checked;Z&&l!==void 0&&Z.onChange?.(l),t?.(W),i?.(G)},C[14]=Z,C[15]=t,C[16]=i,C[17]=l,C[18]=w):w=C[18];const y=w;let k;C[19]!==b||C[20]!==e||C[21]!==x?(k=x?{checked:b}:{defaultChecked:e},C[19]=b,C[20]=e,C[21]=x,C[22]=k):k=C[22];const R=gA2[g],N=!c;let j;C[23]!==L||C[24]!==c||C[25]!==R||C[26]!==N?(j=B("peer cursor-pointer appearance-none rounded-full bg-gray-50",R,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":c,"ox-gray-border":N},L),C[23]=L,C[24]=c,C[25]=R,C[26]=N,C[27]=j):j=C[27];const F=b?"checked":"unchecked";let I;C[28]!==h||C[29]!==O||C[30]!==M||C[31]!==c||C[32]!==y||C[33]!==p||C[34]!==v||C[35]!==k||C[36]!==j||C[37]!==F||C[38]!==l?(I=m.jsx("input",{id:p,"aria-invalid":c,"aria-required":v,"data-ox-slot":"radio",ref:f,...k,className:j,disabled:h,name:O,required:v,type:"radio",value:l,onChange:y,...M,"data-ox-state":F}),C[28]=h,C[29]=O,C[30]=M,C[31]=c,C[32]=y,C[33]=p,C[34]=v,C[35]=k,C[36]=j,C[37]=F,C[38]=l,C[39]=I):I=C[39];let P;C[40]!==h?(P=B("pointer-events-none absolute inset-0 m-auto size-2 rounded-full bg-gray-1200 opacity-0 peer-checked:opacity-100",{"bg-gray-800 opacity-50":h}),C[40]=h,C[41]=P):P=C[41];let E;C[42]!==P?(E=m.jsx("div",{className:P}),C[42]=P,C[43]=E):E=C[43];let $;return C[44]!==I||C[45]!==E?($=m.jsxs("div",{className:"relative inline-flex shrink-0",children:[I,E]}),C[44]=I,C[45]=E,C[46]=$):$=C[46],$},xA2=H=>{const C=T.compilerRuntimeExports.c(24);let V,L,e,M,r,t,i,a;C[0]!==H?({children:V,className:L,disabled:t,name:M,onChange:r,size:i,value:a,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8]);const o=t===void 0?!1:t,n=i===void 0?"sm":i;let A;C[9]!==o||C[10]!==M||C[11]!==r||C[12]!==n||C[13]!==a?(A={value:a,onChange:r,name:M,size:n,disabled:o},C[9]=o,C[10]=M,C[11]=r,C[12]=n,C[13]=a,C[14]=A):A=C[14];let d;C[15]!==L?(d=B("contents space-y-2",L),C[15]=L,C[16]=d):d=C[16];let l;C[17]!==V||C[18]!==e||C[19]!==d?(l=m.jsx("div",{className:d,"data-ox-slot":"radio-group",role:"radiogroup",...e,children:V}),C[17]=V,C[18]=e,C[19]=d,C[20]=l):l=C[20];let s;return C[21]!==A||C[22]!==l?(s=m.jsx(e7.Provider,{value:A,children:l}),C[21]=A,C[22]=l,C[23]=s):s=C[23],s},M7=OA2;M7.Group=xA2;const r7=D.createContext(void 0),M3=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("overflow-hidden text-ellipsis",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("span",{className:M,"data-ox-slot":"select-label",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},F2=()=>{const H=D.useContext(r7);if(!H)throw new Error("Select components must be used within an OxSelect");return H},bA2={sm:`px-2 ${s1.sm} ${w1.sm}`,md:`px-2.5 ${s1.md} ${w1.md}`},t7=H=>{const C=T.compilerRuntimeExports.c(44);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,value:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,{multiple:i,onSelect:a,selectedValue:o,size:n}=F2(),{setOpen:A}=j1();let d;if(C[6]!==V){const w=D.Children.toArray(V).find(yA2);d=w&&D.isValidElement(w)?w.props.children:V,C[6]=V,C[7]=d}else d=C[7];const l=d;let s;C[8]!==l||C[9]!==i||C[10]!==a||C[11]!==A||C[12]!==r?(s=()=>{a({value:r,label:l}),i||A(!1)},C[8]=l,C[9]=i,C[10]=a,C[11]=A,C[12]=r,C[13]=s):s=C[13];const c=s;let v;C[14]!==c||C[15]!==A?(v=w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),c()),w.key==="Escape"&&A(!1)},C[14]=c,C[15]=A,C[16]=v):v=C[16];const u=v;let Z,f,S,p,g;C[17]!==L||C[18]!==o||C[19]!==n||C[20]!==r?(Z=o.includes(r),p="contents",g="none",f=Z,S=B("group col-span-3 grid grid-cols-subgrid items-center rounded-sm text-left text-gray-1200",bA2[n],"ox-violet-inset-focus enabled:cursor-pointer enabled:hover:bg-gray-400","disabled:ox-default-disabled",{"bg-gray-400":Z},L),C[17]=L,C[18]=o,C[19]=n,C[20]=r,C[21]=Z,C[22]=f,C[23]=S,C[24]=p,C[25]=g):(Z=C[21],f=C[22],S=C[23],p=C[24],g=C[25]);const h=t?-1:0;let O;C[26]!==t||C[27]!==Z||C[28]!==n?(O=Z&&!t?m.jsx(a1,{className:"justify-self-center text-violet-700","data-ox-slot":"select-check-icon",path:"mdiCheck",size:R1[n]}):null,C[26]=t,C[27]=Z,C[28]=n,C[29]=O):O=C[29];let x;C[30]!==V||C[31]!==t||C[32]!==e||C[33]!==c||C[34]!==u||C[35]!==O||C[36]!==f||C[37]!==S||C[38]!==h?(x=m.jsxs("button",{"aria-selected":f,className:S,"data-ox-slot":"select-option",disabled:t,role:"option",tabIndex:h,type:"button",onClick:c,onKeyDown:u,...e,children:[V,O]}),C[30]=V,C[31]=t,C[32]=e,C[33]=c,C[34]=u,C[35]=O,C[36]=f,C[37]=S,C[38]=h,C[39]=x):x=C[39];let b;return C[40]!==x||C[41]!==p||C[42]!==g?(b=m.jsx("li",{className:p,role:g,children:x}),C[40]=x,C[41]=p,C[42]=g,C[43]=b):b=C[43],b};function yA2(H){return D.isValidElement(H)&&(H.type===M3||X2(H,"select-label"))}const wA2=H=>{const C=new Map,V=L=>{if(!D.isValidElement(L))return;if(L.type===t7){const{children:r,value:t}=L.props,i=D.Children.toArray(r).find(o=>D.isValidElement(o)&&(o.type===M3||X2(o,"select-label"))),a=i&&D.isValidElement(i)?i.props.children:r;C.set(t,a);return}const e=L.props,{children:M}=e;M&&D.Children.forEach(M,V)};return H.forEach(V),C},i7=H=>{const C=T.compilerRuntimeExports.c(17);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{buttonRef:M,multiple:r,selectId:t}=F2(),{contentRef:i,open:a}=j1();let o,n;C[4]!==M||C[5]!==i||C[6]!==a?(o=()=>{if(a&&M.current&&i.current){const s=M.current.offsetWidth;i.current.style.minWidth=`${s}px`}},n=[a,M,i],C[4]=M,C[5]=i,C[6]=a,C[7]=o,C[8]=n):(o=C[7],n=C[8]),D.useLayoutEffect(o,n);const A=`${t}-listbox`;let d;C[9]!==L?(d=B("grid max-h-72 grid-cols-[auto_1fr_auto] gap-y-0.5 overflow-hidden overflow-y-auto",'[&_[data-ox-slot="select-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="select-icon"]]:justify-self-center','[&_[data-ox-slot="select-label"]]:[grid-column-start:var(--ox-menu-label-col)]','[&_[data-ox-slot="select-check-icon"]]:[grid-column-start:var(--ox-menu-shortcut-col)] [&_[data-ox-slot="select-check-icon"]]:justify-self-end',L),C[9]=L,C[10]=d):d=C[10];let l;return C[11]!==V||C[12]!==e||C[13]!==r||C[14]!==A||C[15]!==d?(l=m.jsx(g1.Content,{className:"ox-gray-border ox-select-animate rounded-lg bg-gray-200 p-1",portal:!1,children:m.jsx("ul",{id:A,"aria-multiselectable":r,className:d,"data-ox-slot":"select-listbox",role:"listbox",...e,children:V})}),C[11]=V,C[12]=e,C[13]=r,C[14]=A,C[15]=d,C[16]=l):l=C[16],l},z3=H=>H==null?[]:Array.isArray(H)?H:[H],kA2=H=>{const C=T.compilerRuntimeExports.c(63),{children:V,className:L,defaultOpen:e,defaultValue:M,disabled:r,error:t,id:i,isLoading:a,multiple:o,onChange:n,onOpenChange:A,open:d,required:l,size:s,value:c}=H,v=M===void 0?null:M,u=r===void 0?!1:r,Z=t===void 0?!1:t,f=a===void 0?!1:a,S=o===void 0?!1:o,p=l===void 0?!1:l,g=s===void 0?"sm":s,h=D.useId(),O=D.useRef(null),{checkOverflow:x,handleResize:b,overflowAmount:w}=T.useOverflowDetection();let y;if(C[0]!==V){C:{const L1=D.Children.toArray(V).find(PA2);if(!L1||!D.isValidElement(L1)){let S1;C[2]===Symbol.for("react.memo_cache_sentinel")?(S1=new Map,C[2]=S1):S1=C[2],y=S1;break C}const c1=D.Children.toArray(L1.props.children||[]);y=wA2(c1)}C[0]=V,C[1]=y}else y=C[1];const k=y;let R;C[3]!==c?(R=c!==void 0?new Set(z3(c)):void 0,C[3]=c,C[4]=R):R=C[4];let N;C[5]!==v?(N=new Set(z3(v)),C[5]=v,C[6]=N):N=C[6];let j;C[7]!==S||C[8]!==n?(j=L1=>{if(!L1)return;const c1=S?Array.from(L1):L1.size>0?Array.from(L1)[0]:null;n?.(c1)},C[7]=S,C[8]=n,C[9]=j):j=C[9];let F;C[10]!==N||C[11]!==j||C[12]!==R?(F={value:R,defaultValue:N,onChange:j,name:"OxSelect"},C[10]=N,C[11]=j,C[12]=R,C[13]=F):F=C[13];const[I,P]=T.useControllableState(F);let E;C[14]!==k||C[15]!==I?(E=Array.from(I??new Set).map(L1=>({value:L1,label:k.get(L1)??L1})),C[14]=k,C[15]=I,C[16]=E):E=C[16];const $=E;let W;C[17]!==x?(W=()=>{x()},C[17]=x,C[18]=W):W=C[18];let G;if(C[19]!==x||C[20]!==I?(G=[I,x],C[19]=x,C[20]=I,C[21]=G):G=C[21],D.useLayoutEffect(W,G),f){let L1;C[22]!==L?(L1=B("flex w-full flex-col",L),C[22]=L,C[23]=L1):L1=C[23];const c1=w1[g],S1=!Z;let v1;C[24]!==Z||C[25]!==c1||C[26]!==S1?(v1=B("rounded-lg",c1,{"ox-rose-border":Z,"ox-gray-border":S1}),C[24]=Z,C[25]=c1,C[26]=S1,C[27]=v1):v1=C[27];let k1;C[28]!==v1?(k1=m.jsx(h2,{className:v1,fullWidth:!0}),C[28]=v1,C[29]=k1):k1=C[29];let E1;return C[30]!==L1||C[31]!==k1?(E1=m.jsx("div",{className:L1,children:k1}),C[30]=L1,C[31]=k1,C[32]=E1):E1=C[32],E1}const Y=`${i||h}-select`;let _;C[33]!==S||C[34]!==P?(_=L1=>{const{value:c1}=L1;P(S1=>{const v1=new Set(S1);return S?v1.has(c1)?v1.delete(c1):v1.add(c1):(v1.clear(),v1.add(c1)),v1})},C[33]=S,C[34]=P,C[35]=_):_=C[35];const q=_;let K;C[36]!==I?(K=Array.from(I??new Set),C[36]=I,C[37]=K):K=C[37];let Q;C[38]!==Z||C[39]!==b||C[40]!==S||C[41]!==q||C[42]!==w||C[43]!==p||C[44]!==Y||C[45]!==$||C[46]!==g||C[47]!==K?(Q={selectedValue:K,onSelect:q,multiple:S,size:g,error:Z,selectedOptions:$,required:p,handleResize:b,overflowAmount:w,selectId:Y,buttonRef:O},C[38]=Z,C[39]=b,C[40]=S,C[41]=q,C[42]=w,C[43]=p,C[44]=Y,C[45]=$,C[46]=g,C[47]=K,C[48]=Q):Q=C[48];let X;C[49]!==L?(X=B("flex w-full flex-col",L),C[49]=L,C[50]=X):X=C[50];let z;C[51]!==V||C[52]!==e||C[53]!==u||C[54]!==A||C[55]!==d?(z=m.jsx(g1,{align:"start",animationDuration:100,ariaHaspopup:"listbox",defaultOpen:e,disabled:u,open:d,position:"bottom",trigger:"click",onOpenChange:A,children:V}),C[51]=V,C[52]=e,C[53]=u,C[54]=A,C[55]=d,C[56]=z):z=C[56];let H1;C[57]!==X||C[58]!==z?(H1=m.jsx("div",{className:X,children:z}),C[57]=X,C[58]=z,C[59]=H1):H1=C[59];let M1;return C[60]!==Q||C[61]!==H1?(M1=m.jsx(r7.Provider,{value:Q,children:H1}),C[60]=Q,C[61]=H1,C[62]=M1):M1=C[62],M1};function PA2(H){return D.isValidElement(H)&&(H.type===i7||X2(H,"select-content"))}const TA2=H=>{const C=T.compilerRuntimeExports.c(11);let V,L,e;C[0]!==H?({className:V,path:e,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const{size:M}=F2();let r;C[4]!==V?(r=B("mr-2 shrink-0 text-current",V),C[4]=V,C[5]=r):r=C[5];const t=R1[M];let i;return C[6]!==L||C[7]!==e||C[8]!==r||C[9]!==t?(i=m.jsx(a1,{className:r,"data-ox-slot":"select-icon",path:e,size:t,...L}),C[6]=L,C[7]=e,C[8]=r,C[9]=t,C[10]=i):i=C[10],i},BA2=H=>{const C=T.compilerRuntimeExports.c(15);let V,L,e,M;C[0]!==H?({children:V,className:L,label:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{size:r}=F2(),t=s1[r];let i;C[5]!==L||C[6]!==t?(i=B("col-span-full px-2 py-1 font-semibold text-gray-1000",t,L),C[5]=L,C[6]=t,C[7]=i):i=C[7];let a;C[8]!==e||C[9]!==M||C[10]!==i?(a=m.jsx("div",{className:i,"data-ox-slot":"select-option-group",...e,children:M}),C[8]=e,C[9]=M,C[10]=i,C[11]=a):a=C[11];let o;return C[12]!==V||C[13]!==a?(o=m.jsxs("div",{className:"contents [&_[data-ox-slot=select-option]]:pl-4",children:[a,V]}),C[12]=V,C[13]=a,C[14]=o):o=C[14],o},RA2={sm:`px-1.25 ${s1.sm} ${w1.sm}`,md:`px-1.75 ${s1.md} ${w1.md}`},EA2=H=>{const C=T.compilerRuntimeExports.c(46);let V,L,e,M,r,t,i;C[0]!==H?({badgeColor:M,className:V,disabled:e,displayAsBadges:r,placeholder:t,size:i,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7]);const a=M===void 0?"purple":M,o=r===void 0?!1:r,n=t===void 0?"Select an option":t,A=i===void 0?"sm":i,{buttonRef:d,error:l,handleResize:s,multiple:c,overflowAmount:v,required:u,selectId:Z,selectedOptions:f,size:S}=F2(),{disabled:p,open:g}=j1(),h=A||S,O=v>0,x=e??p,b=`${Z}-listbox`;let w;C[8]!==n||C[9]!==f?(w=f.length>0?`Selected: ${f.map(FA2).join(", ")}`:n,C[8]=n,C[9]=f,C[10]=w):w=C[10];const y=RA2[h],k=!l;let R;C[11]!==V||C[12]!==l||C[13]!==g||C[14]!==y||C[15]!==k?(R=B("relative flex w-full items-center gap-x-2 rounded-lg bg-gray-50 ps-3 pe-9 text-start enabled:cursor-pointer enabled:text-gray-1200","ox-violet-outset-focus disabled:ox-default-disabled",y,{"ox-rose-border":l,"ox-gray-border":k,"default-active-border":g},V),C[11]=V,C[12]=l,C[13]=g,C[14]=y,C[15]=k,C[16]=R):R=C[16];const N=g?"open":"closed";let j;C[17]!==a||C[18]!==o||C[19]!==s||C[20]!==x||C[21]!==h||C[22]!==c||C[23]!==v||C[24]!==n||C[25]!==f||C[26]!==O?(j=f.length>0?m.jsxs("div",{className:B("flex w-full items-center overflow-hidden","[&_[data-ox-slot=select-icon]]:hidden",{"opacity-50":x&&o}),children:[m.jsx("div",{className:B("overflow-hidden text-ellipsis whitespace-nowrap",{"flex gap-1":o&&c}),ref:s,children:o&&c?f.map($=>m.jsx(_2,{color:a,"data-ox-state":"selected",size:h,children:$.label},String($.value))):f.map(($,W,G)=>{const U=G.length-v,Y=W===U-1;return m.jsxs("span",{"data-ox-state":"selected",children:[$.label,W<G.length-1&&!Y&&", "]},String($.value))})}),O&&c?m.jsxs(_2,{className:"ml-1",color:a,size:h,children:["+",v]}):null]}):m.jsx("span",{className:"w-full overflow-hidden text-ellipsis whitespace-nowrap",children:n}),C[17]=a,C[18]=o,C[19]=s,C[20]=x,C[21]=h,C[22]=c,C[23]=v,C[24]=n,C[25]=f,C[26]=O,C[27]=j):j=C[27];let F;C[28]!==g?(F=B("text-current transition-transform duration-300 ease-in-out",{"rotate-180":g}),C[28]=g,C[29]=F):F=C[29];const I=R1[h];let P;C[30]!==F||C[31]!==I?(P=m.jsx("div",{className:"absolute end-3 top-1/2 -translate-y-1/2",children:m.jsx(a1,{className:F,path:"mdiChevronDown",size:I})}),C[30]=F,C[31]=I,C[32]=P):P=C[32];let E;return C[33]!==d||C[34]!==L||C[35]!==l||C[36]!==x||C[37]!==u||C[38]!==Z||C[39]!==N||C[40]!==j||C[41]!==P||C[42]!==b||C[43]!==w||C[44]!==R?(E=m.jsx(g1.Trigger,{asChild:!0,children:m.jsxs("button",{id:Z,"aria-controls":b,"aria-disabled":x,"aria-invalid":l,"aria-label":w,"aria-required":u,className:R,"data-ox-slot":"select-trigger",disabled:x,ref:d,role:"combobox",type:"button",...L,"data-ox-state":N,children:[j,P]})}),C[33]=d,C[34]=L,C[35]=l,C[36]=x,C[37]=u,C[38]=Z,C[39]=N,C[40]=j,C[41]=P,C[42]=b,C[43]=w,C[44]=R,C[45]=E):E=C[45],E};function FA2(H){return H.label}const a2=kA2;a2.Content=i7;a2.Icon=TA2;a2.Label=M3;a2.Option=t7;a2.OptionGroup=BA2;a2.Trigger=EA2;const DA2={sm:{container:"h-4.5 w-9",thumb:"size-3.75",translate:"translate-x-4.25"},md:{container:"h-5.5 w-11",thumb:"size-4.75",translate:"translate-x-5.25"}},NA2=H=>{const C=T.compilerRuntimeExports.c(37);let V,L,e,M,r,t,i,a,o;C[0]!==H?({checked:r,className:V,disabled:t,error:i,id:M,onChange:e,required:a,size:o,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=r===void 0?!1:r,A=t===void 0?!1:t,d=i===void 0?!1:i,l=a===void 0?!1:a,s=o===void 0?"sm":o,c=D.useId(),u=`${M||c}-switch`,Z=DA2[s];let f;C[10]!==n||C[11]!==e?(f=()=>{e?.(!n)},C[10]=n,C[11]=e,C[12]=f):f=C[12];const S=f,p=!n,g=!d;let h;C[13]!==n||C[14]!==V||C[15]!==d||C[16]!==Z.container||C[17]!==p||C[18]!==g?(h=B("ox-violet-outset-focus relative inline-flex shrink-0 items-center rounded-full border-2 transition-colors duration-200 ease-in-out","enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",Z.container,{"bg-violet-700":n,"bg-gray-400":p,"ox-rose-border":d,"border-transparent":g},V),C[13]=n,C[14]=V,C[15]=d,C[16]=Z.container,C[17]=p,C[18]=g,C[19]=h):h=C[19];const O=n?"checked":"unchecked";let x;C[20]!==n||C[21]!==Z.thumb||C[22]!==Z.translate?(x=B("inline-block transform rounded-full bg-gray-1200 shadow-sm","transition-transform duration-200 ease-in-out",Z.thumb,{[Z.translate]:n}),C[20]=n,C[21]=Z.thumb,C[22]=Z.translate,C[23]=x):x=C[23];let b;C[24]!==x?(b=m.jsx("span",{className:x}),C[24]=x,C[25]=b):b=C[25];let w;return C[26]!==n||C[27]!==A||C[28]!==L||C[29]!==d||C[30]!==S||C[31]!==l||C[32]!==u||C[33]!==O||C[34]!==b||C[35]!==h?(w=m.jsx("button",{id:u,"aria-checked":n,"aria-invalid":d,"aria-required":l,className:h,"data-ox-slot":"switch",disabled:A,role:"switch",type:"button",onClick:S,...L,"data-ox-state":O,children:b}),C[26]=n,C[27]=A,C[28]=L,C[29]=d,C[30]=S,C[31]=l,C[32]=u,C[33]=O,C[34]=b,C[35]=h,C[36]=w):w=C[36],w},IA2={sm:`${s1.sm} min-${w1.sm}`,md:`${s1.md} min-${w1.md}`},jA2=H=>{const C=T.compilerRuntimeExports.c(41);let V,L,e,M,r,t,i,a,o,n,A,d,l;C[0]!==H?({className:V,disabled:t,error:i,id:r,name:e,onChange:M,placeholder:a,required:o,rows:n,showMaxLength:A,size:d,value:l,...L}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n,C[11]=A,C[12]=d,C[13]=l):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10],A=C[11],d=C[12],l=C[13]);const s=t===void 0?!1:t,c=i===void 0?!1:i,v=a===void 0?"Enter text...":a,u=o===void 0?!1:o,Z=n===void 0?3:n,f=A===void 0?!1:A,S=d===void 0?"sm":d,p=D.useId(),[g,h]=D.useState(0),x=`${r||p}-textarea`,b=L.maxLength,w=l!==void 0,y=w?typeof l=="string"?l.length:0:g;let k;C[14]!==w||C[15]!==M?(k=$=>{w||h($.target.value.length),M?.($)},C[14]=w,C[15]=M,C[16]=k):k=C[16];const R=k,N=IA2[S],j=!c;let F;C[17]!==V||C[18]!==c||C[19]!==j||C[20]!==N?(F=B("flex w-full resize-y rounded-lg bg-gray-50 px-2 py-2 enabled:text-gray-1200","ox-violet-outset-focus placeholder:text-gray-900 disabled:ox-default-disabled",N,{"ox-rose-border":c,"ox-gray-border":j},V),C[17]=V,C[18]=c,C[19]=j,C[20]=N,C[21]=F):F=C[21];let I;C[22]!==s||C[23]!==L||C[24]!==c||C[25]!==R||C[26]!==e||C[27]!==v||C[28]!==u||C[29]!==Z||C[30]!==F||C[31]!==x||C[32]!==l?(I=m.jsx("textarea",{id:x,"aria-invalid":c,"aria-required":u,className:F,"data-ox-slot":"textarea",disabled:s,name:e,placeholder:v,required:u,rows:Z,value:l,onChange:R,...L}),C[22]=s,C[23]=L,C[24]=c,C[25]=R,C[26]=e,C[27]=v,C[28]=u,C[29]=Z,C[30]=F,C[31]=x,C[32]=l,C[33]=I):I=C[33];let P;C[34]!==y||C[35]!==b||C[36]!==f?(P=f&&typeof b=="number"?m.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-gray-1000",children:[y,"/",b]}):null,C[34]=y,C[35]=b,C[36]=f,C[37]=P):P=C[37];let E;return C[38]!==I||C[39]!==P?(E=m.jsxs("div",{className:"flex w-full flex-col",children:[I,P]}),C[38]=I,C[39]=P,C[40]=E):E=C[40],E},WA2=H=>{const C=T.compilerRuntimeExports.c(20);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);const M=r5();let r;C[4]!==V||C[5]!==M?.selectable?(r=M?.selectable&&(V==null||typeof V=="string"&&V.trim()===""),C[4]=V,C[5]=M?.selectable,C[6]=r):r=C[6];const t=r;let i;C[7]!==M?(i=()=>{M?.toggleAll()},C[7]=M,C[8]=i):i=C[8];const a=i;let o;C[9]!==L?(o=B("border-b border-gray-400 bg-gray-100 px-3 py-2 text-left text-sm font-semibold text-gray-1200",L),C[9]=L,C[10]=o):o=C[10];let n;C[11]!==V||C[12]!==M||C[13]!==a||C[14]!==t?(n=t?m.jsxs("div",{className:"flex items-center justify-center",children:[m.jsx("span",{className:"sr-only",children:"Select all rows"}),m.jsx(t5,{"aria-label":"Select all rows",checked:M.isAllSelected,indeterminate:M.isIndeterminate,onCheckedChange:a})]}):V,C[11]=V,C[12]=M,C[13]=a,C[14]=t,C[15]=n):n=C[15];let A;return C[16]!==e||C[17]!==o||C[18]!==n?(A=m.jsx("th",{className:o,"data-ox-slot":"table-head",...e,children:n}),C[16]=e,C[17]=o,C[18]=n,C[19]=A):A=C[19],A},zA2=H=>{const C=T.compilerRuntimeExports.c(8);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;return C[4]!==V||C[5]!==L||C[6]!==e?(M=m.jsx("thead",{className:L,"data-ox-slot":"table-header",...e,children:V}),C[4]=V,C[5]=L,C[6]=e,C[7]=M):M=C[7],M},$A2=H=>{const C=T.compilerRuntimeExports.c(21);let V,L,e,M;C[0]!==H?({children:V,className:L,rowId:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const r=r5();let t;C[5]!==r||C[6]!==M?(t=()=>{M&&r?.selectable&&r.toggleSelection(M)},C[5]=r,C[6]=M,C[7]=t):t=C[7];const i=t;let a;if(C[8]!==L||C[9]!==r||C[10]!==M){const A=M&&r?.isSelected(M);a=B("border-b border-gray-400 last:border-b-0","in-[tfoot]:hover:bg-transparent in-[thead]:hover:bg-transparent",{"bg-gray-300":r?.selectable&&A,"in-[tbody]:even:bg-gray-100":r?.striped&&!A,"in-[tbody]:hover:bg-gray-300":r?.hoverable&&!A},L),C[8]=L,C[9]=r,C[10]=M,C[11]=a}else a=C[11];let o;C[12]!==r||C[13]!==i||C[14]!==M?(o=r?.selectable&&M?m.jsx("td",{className:"px-3 py-2",children:m.jsx("div",{className:"flex items-center justify-center",children:m.jsx(t5,{"aria-label":`Select row ${M}`,checked:r.isSelected(M),onCheckedChange:i})})}):null,C[12]=r,C[13]=i,C[14]=M,C[15]=o):o=C[15];let n;return C[16]!==V||C[17]!==e||C[18]!==a||C[19]!==o?(n=m.jsxs("tr",{className:a,"data-ox-slot":"table-row",...e,children:[o,V]}),C[16]=V,C[17]=e,C[18]=a,C[19]=o,C[20]=n):n=C[20],n},X1=Mn2;X1.Body=tn2;X1.Cell=in2;X1.Controls=an2;X1.Footer=on2;X1.Head=WA2;X1.Header=zA2;X1.Row=$A2;X1.SkeletonRow=Y0;const a7=D.createContext(null),_A2=H=>{const C=T.compilerRuntimeExports.c(22);let V,L,e,M,r,t;C[0]!==H?({children:V,className:L,defaultValue:e,onValueChange:r,value:t,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6]);const[i,a]=D.useState(e||""),o=t!==void 0,n=o?t:i;let A;C[7]!==o||C[8]!==r?(A=Z=>{o||a(Z),r?.(Z)},C[7]=o,C[8]=r,C[9]=A):A=C[9];const d=A;let l;C[10]!==n||C[11]!==d?(l={value:n,onValueChange:d},C[10]=n,C[11]=d,C[12]=l):l=C[12];const s=l;let c;C[13]!==L?(c=B("w-full",L),C[13]=L,C[14]=c):c=C[14];let v;C[15]!==V||C[16]!==M||C[17]!==c?(v=m.jsx("div",{className:c,"data-ox-slot":"tabs",...M,children:V}),C[15]=V,C[16]=M,C[17]=c,C[18]=v):v=C[18];let u;return C[19]!==s||C[20]!==v?(u=m.jsx(a7.Provider,{value:s,children:v}),C[19]=s,C[20]=v,C[21]=u):u=C[21],u},o7=()=>{const H=D.useContext(a7);if(!H)throw new Error("Tabs components must be used within OxTabs");return H},GA2=H=>{const C=T.compilerRuntimeExports.c(12);let V,L,e,M;C[0]!==H?({children:V,className:L,value:M,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M):(V=C[1],L=C[2],e=C[3],M=C[4]);const{value:r}=o7();if(!(r===M))return null;const i=`tab-${M}`;let a;C[5]!==L?(a=B("pt-4 text-gray-1200",L),C[5]=L,C[6]=a):a=C[6];let o;return C[7]!==V||C[8]!==e||C[9]!==i||C[10]!==a?(o=m.jsx("div",{"aria-labelledby":i,className:a,"data-ox-slot":"tabs-content",role:"tabpanel",...e,children:V}),C[7]=V,C[8]=e,C[9]=i,C[10]=a,C[11]=o):o=C[11],o},UA2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("flex border-b border-gray-400",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("div",{className:M,"data-ox-slot":"tabs-list",role:"tablist",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},QA2=H=>{const C=T.compilerRuntimeExports.c(25);let V,L,e,M,r;C[0]!==H?({children:V,className:L,disabled:M,value:r,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5]);const t=M===void 0?!1:M,{onValueChange:i,value:a}=o7(),o=a===r;let n;C[6]!==t||C[7]!==i||C[8]!==r?(n=()=>{t||i(r)},C[6]=t,C[7]=i,C[8]=r,C[9]=n):n=C[9];const A=n;let d;C[10]!==A?(d=Z=>{(Z.key==="Enter"||Z.key==="Space")&&(Z.preventDefault(),A())},C[10]=A,C[11]=d):d=C[11];const l=d,s=!o;let c;C[12]!==L||C[13]!==o||C[14]!==s?(c=B("relative rounded-t-lg border-t border-r border-l border-transparent px-4 py-2 text-sm font-medium transition-colors enabled:cursor-pointer","ox-violet-outset-focus enabled:hover:bg-gray-300 enabled:hover:text-gray-1200","disabled:ox-default-disabled",{"border-gray-400 text-gray-1200":o,"text-gray-1100":s},L),C[12]=L,C[13]=o,C[14]=s,C[15]=c):c=C[15];const v=o?"active":"inactive";let u;return C[16]!==V||C[17]!==t||C[18]!==e||C[19]!==A||C[20]!==l||C[21]!==o||C[22]!==c||C[23]!==v?(u=m.jsx("button",{"aria-selected":o,className:c,"data-ox-slot":"tabs-trigger",disabled:t,role:"tab",onClick:A,onKeyDown:l,...e,"data-ox-state":v,children:V}),C[16]=V,C[17]=t,C[18]=e,C[19]=A,C[20]=l,C[21]=o,C[22]=c,C[23]=v,C[24]=u):u=C[24],u},A5=_A2;A5.List=UA2;A5.Trigger=QA2;A5.Content=GA2;const qA2=H=>{const C=T.compilerRuntimeExports.c(10);let V,L,e;C[0]!==H?({children:V,className:L,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e):(V=C[1],L=C[2],e=C[3]);let M;C[4]!==L?(M=B("grid grid-cols-[1fr_auto_1fr] items-start gap-4",L),C[4]=L,C[5]=M):M=C[5];let r;return C[6]!==V||C[7]!==e||C[8]!==M?(r=m.jsx("ol",{"aria-label":"Timeline",className:M,"data-ox-slot":"timeline",role:"list",...e,children:V}),C[6]=V,C[7]=e,C[8]=M,C[9]=r):r=C[9],r},YA2=H=>{const C=T.compilerRuntimeExports.c(51);let V,L,e,M,r,t,i,a,o,n;C[0]!==H?({align:i,children:V,className:L,color:a,description:e,icon:r,label:t,showSeparator:o,timestamp:n,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o,C[10]=n):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9],n=C[10]);const A=i===void 0?"left":i,d=a===void 0?"purple":a,l=o===void 0?!1:o,s=V||e;let c;C[11]!==L?(c=B("col-span-3 grid grid-cols-subgrid",L),C[11]=L,C[12]=c):c=C[12];let v;C[13]!==A||C[14]!==d||C[15]!==s||C[16]!==t||C[17]!==n?(v=A==="left"&&m.jsxs("div",{className:"space-y-1 text-right",children:[m.jsx("h6",{className:B("text-sm leading-tight font-medium",d1[d].text),children:t}),s&&m.jsx(u2,{children:s}),n&&m.jsx("span",{className:"text-xs text-gray-1000",children:n})]}),C[13]=A,C[14]=d,C[15]=s,C[16]=t,C[17]=n,C[18]=v):v=C[18];let u;C[19]!==v?(u=m.jsx("div",{children:v}),C[19]=v,C[20]=u):u=C[20];const Z=d1[d],f=d1[d];let S;C[21]!==Z.background||C[22]!==f.border?(S=B("flex items-center justify-center rounded-lg",f2.md,Z.background,f.border),C[21]=Z.background,C[22]=f.border,C[23]=S):S=C[23];const p=d1[d];let g;C[24]!==p.text?(g=B("text-gray-1200",p.text),C[24]=p.text,C[25]=g):g=C[25];const h=r||"mdiCircle";let O;C[26]!==g||C[27]!==h?(O=m.jsx(a1,{className:g,path:h,size:R1.md}),C[26]=g,C[27]=h,C[28]=O):O=C[28];let x;C[29]!==O||C[30]!==S?(x=m.jsx("div",{className:S,children:O}),C[29]=O,C[30]=S,C[31]=x):x=C[31];let b;C[32]!==l?(b=l?m.jsx(J5,{className:"mx-auto",orientation:"vertical"}):null,C[32]=l,C[33]=b):b=C[33];let w;C[34]!==x||C[35]!==b?(w=m.jsxs("div",{className:"grid shrink-0 grid-rows-[auto_1fr] gap-4",children:[x,b]}),C[34]=x,C[35]=b,C[36]=w):w=C[36];let y;C[37]!==A||C[38]!==d||C[39]!==s||C[40]!==t||C[41]!==n?(y=A==="right"&&m.jsxs("div",{className:"space-y-1 text-left",children:[m.jsx("h6",{className:B("text-sm leading-tight font-medium",d1[d].text),children:t}),s&&m.jsx(u2,{children:s}),n&&m.jsx("span",{className:"text-xs text-gray-1000",children:n})]}),C[37]=A,C[38]=d,C[39]=s,C[40]=t,C[41]=n,C[42]=y):y=C[42];let k;C[43]!==y?(k=m.jsx("div",{children:y}),C[43]=y,C[44]=k):k=C[44];let R;return C[45]!==M||C[46]!==w||C[47]!==k||C[48]!==c||C[49]!==u?(R=m.jsxs("li",{className:c,"data-ox-slot":"timeline-item",role:"listitem",...M,children:[u,w,k]}),C[45]=M,C[46]=w,C[47]=k,C[48]=c,C[49]=u,C[50]=R):R=C[50],R},n7=qA2;n7.Item=YA2;const KA2=H=>{const C=T.compilerRuntimeExports.c(49),{index:V,onRemove:L,position:e,toast:M}=H,r=M.icon??F1[M.type].icon,t=M.color?d1[M.color]:F1[M.type],[i,a]=D.useState(!0);let o,n;C[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{const w=setTimeout(()=>a(!1),50);return()=>clearTimeout(w)},n=[],C[0]=o,C[1]=n):(o=C[0],n=C[1]),D.useEffect(o,n);const A=V*8,d=1-V*.05;let l;C[2]!==V||C[3]!==i||C[4]!==e||C[5]!==d||C[6]!==A||C[7]!==M.isRemoving?(l=()=>{const w=i?e==="top"?-16:16:0;return e==="top"?{top:`${A+w}px`,transform:`scale(${d})`,zIndex:30-V,opacity:M.isRemoving||i?0:1}:{top:`${-A+w}px`,transform:`scale(${d})`,zIndex:30-V,opacity:M.isRemoving||i?0:1}},C[2]=V,C[3]=i,C[4]=e,C[5]=d,C[6]=A,C[7]=M.isRemoving,C[8]=l):l=C[8];const s=l;if(M.customContent){let w;C[9]!==s?(w=s(),C[9]=s,C[10]=w):w=C[10];let y;C[11]!==L||C[12]!==M.id?(y=()=>L(M.id),C[11]=L,C[12]=M.id,C[13]=y):y=C[13];let k;return C[14]!==w||C[15]!==y||C[16]!==M.customContent?(k=m.jsx("div",{className:"ox-gray-border pointer-events-auto absolute w-full cursor-pointer rounded-lg bg-gray-200 transition-all duration-300 ease-out md:w-80","data-ox-slot":"toast-item",role:"status",style:w,onClick:y,children:M.customContent}),C[14]=w,C[15]=y,C[16]=M.customContent,C[17]=k):k=C[17],k}const c=M.description?`${M.id}-desc`:void 0,v=M.type==="error"||M.type==="warning"?"alert":"status";let u;C[18]!==s?(u=s(),C[18]=s,C[19]=u):u=C[19];let Z;C[20]!==L||C[21]!==M.id?(Z=()=>L(M.id),C[20]=L,C[21]=M.id,C[22]=Z):Z=C[22];let f;C[23]!==M.type?(f=m.jsxs("span",{className:"sr-only",children:[M.type," notification:"]}),C[23]=M.type,C[24]=f):f=C[24];let S;C[25]!==t.background?(S=B("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",t.background),C[25]=t.background,C[26]=S):S=C[26];let p;C[27]!==r||C[28]!==t.text?(p=m.jsx(a1,{className:t.text,path:r,size:.7}),C[27]=r,C[28]=t.text,C[29]=p):p=C[29];let g;C[30]!==p||C[31]!==S?(g=m.jsx("div",{className:S,children:p}),C[30]=p,C[31]=S,C[32]=g):g=C[32];let h;C[33]!==M.title?(h=m.jsx("div",{className:"text-xs font-medium text-gray-1200",children:M.title}),C[33]=M.title,C[34]=h):h=C[34];let O;C[35]!==M.description||C[36]!==M.id?(O=M.description?m.jsx("p",{id:`${M.id}-desc`,className:"mt-1 text-xs",children:M.description}):null,C[35]=M.description,C[36]=M.id,C[37]=O):O=C[37];let x;C[38]!==h||C[39]!==O?(x=m.jsxs("div",{className:"flex-1",children:[h,O]}),C[38]=h,C[39]=O,C[40]=x):x=C[40];let b;return C[41]!==g||C[42]!==x||C[43]!==c||C[44]!==v||C[45]!==u||C[46]!==Z||C[47]!==f?(b=m.jsxs("div",{"aria-describedby":c,className:"ox-gray-border pointer-events-auto absolute flex w-full cursor-pointer items-center gap-3 rounded-lg bg-gray-200 p-4 transition-all duration-300 ease-out md:w-80","data-ox-slot":"toast-item",role:v,style:u,onClick:Z,children:[f,g,x]}),C[41]=g,C[42]=x,C[43]=c,C[44]=v,C[45]=u,C[46]=Z,C[47]=f,C[48]=b):b=C[48],b},XA2={left:"left-1/2 -translate-x-1/2 md:translate-none md:left-4",center:"left-1/2 -translate-x-1/2",right:"left-1/2 -translate-x-1/2 md:translate-none md:left-auto md:right-4"},JA2={top:"top-4",bottom:"bottom-24"},A7=H=>{const C=T.compilerRuntimeExports.c(13),{align:V,onRemove:L,position:e,toasts:M}=H,r=XA2[V],t=JA2[e];let i;C[0]!==r||C[1]!==t?(i=B("pointer-events-none fixed z-50 w-11/12 md:w-80",r,t),C[0]=r,C[1]=t,C[2]=i):i=C[2];let a;if(C[3]!==L||C[4]!==e||C[5]!==M){let n;C[7]!==L||C[8]!==e?(n=(A,d)=>m.jsx(KA2,{index:d,position:e,toast:A,onRemove:L},A.id),C[7]=L,C[8]=e,C[9]=n):n=C[9],a=M.map(n),C[3]=L,C[4]=e,C[5]=M,C[6]=a}else a=C[6];let o;return C[10]!==i||C[11]!==a?(o=k2.createPortal(m.jsx("div",{"aria-atomic":"false","aria-label":"Notifications","aria-live":"polite",className:i,"data-ox-slot":"toast-container",role:"region",children:a}),document.body),C[10]=i,C[11]=a,C[12]=o):o=C[12],o},l7=D.createContext(null),Cl2=H=>{const C=T.compilerRuntimeExports.c(15),{align:V,children:L,maxToasts:e,position:M}=H,r=V===void 0?"right":V,t=e===void 0?3:e,i=M===void 0?"top":M;let a;C[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],C[0]=a):a=C[0];const[o,n]=D.useState(a);let A;C[1]===Symbol.for("react.memo_cache_sentinel")?(A=p=>{n(g=>g.map(h=>h.id===p?{...h,isRemoving:!0}:h)),setTimeout(()=>{n(g=>T.reject(g,h=>h.id===p))},200)},C[1]=A):A=C[1];const d=A;let l;C[2]!==t?(l=(p,g,h,O)=>{const x=T.uniqueId(),b=h?.duration??5e3,w={id:x,title:p,type:g,duration:b,description:h?.description,icon:h?.icon,color:h?.color,customContent:O};return n(y=>T.take([w,...y],t)),b>0&&setTimeout(()=>{d(x)},b),x},C[2]=t,C[3]=l):l=C[3];const s=l;let c;C[4]===Symbol.for("react.memo_cache_sentinel")?(c=p=>{p?d(p):n([])},C[4]=c):c=C[4];const v=c;let u;C[5]!==s?(u=Object.assign((p,g)=>s(p,"default",g),{success:(p,g)=>s(p,"success",g),error:(p,g)=>s(p,"error",g),warning:(p,g)=>s(p,"warning",g),info:(p,g)=>s(p,"info",g),custom:(p,g)=>s("","default",{duration:g?.duration},p),dismiss:v}),C[5]=s,C[6]=u):u=C[6];const Z=u;let f;C[7]!==r||C[8]!==i||C[9]!==o?(f=m.jsx(A7,{align:r,position:i,toasts:o,onRemove:d}),C[7]=r,C[8]=i,C[9]=o,C[10]=f):f=C[10];let S;return C[11]!==L||C[12]!==f||C[13]!==Z?(S=m.jsxs(l7.Provider,{value:Z,children:[L,f]}),C[11]=L,C[12]=f,C[13]=Z,C[14]=S):S=C[14],S},Hl2=()=>{const H=D.useContext(l7);if(!H)throw new Error("useOxToast must be used within a ToastProvider");return H},d7=D.createContext(null),Vl2=()=>D.useContext(d7),Ll2={sm:`px-3 ${w1.sm} ${s1.sm}`,md:`px-4 ${w1.md} ${s1.md}`},el2=H=>{const C=T.compilerRuntimeExports.c(35);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,disabled:e,id:i,onPressedChange:r,pressed:t,size:a,value:o,...M}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=D.useId(),A=Vl2(),l=`${i||n}-toggle`,s=A!==null,c=a||A?.size||"sm",v=e||A?.disabled||!1;let u,Z,f,S;if(C[10]!==v||C[11]!==c||C[12]!==L||C[13]!==A||C[14]!==s||C[15]!==r||C[16]!==t||C[17]!==l||C[18]!==o){let g;if(s&&o!==void 0){A.type==="single"?g=A.value===o:g=(A.value||[]).includes(o);let h;C[23]!==v||C[24]!==A||C[25]!==o?(h=()=>{!v&&A.onToggle&&A.onToggle(o)},C[23]=v,C[24]=A,C[25]=o,C[26]=h):h=C[26],u=h}else g=t||!1,u=()=>{!v&&r&&r(!g)};Z=l,f=g,S=B("inline-flex items-center gap-2 rounded-md border transition-colors duration-200","ox-gray-outset-focus enabled:cursor-pointer disabled:ox-default-disabled",Ll2[c],{"border-gray-400 bg-gray-300 text-gray-1200 enabled:hover:bg-gray-500":g,"border-gray-400 bg-gray-50 text-gray-1000 enabled:hover:bg-gray-300":!g},L),C[10]=v,C[11]=c,C[12]=L,C[13]=A,C[14]=s,C[15]=r,C[16]=t,C[17]=l,C[18]=o,C[19]=u,C[20]=Z,C[21]=f,C[22]=S}else u=C[19],Z=C[20],f=C[21],S=C[22];let p;return C[27]!==v||C[28]!==V||C[29]!==M||C[30]!==u||C[31]!==Z||C[32]!==f||C[33]!==S?(p=m.jsx("button",{id:Z,"aria-pressed":f,className:S,"data-ox-slot":"toggle",disabled:v,role:"button",type:"button",onClick:u,...M,children:V}),C[27]=v,C[28]=V,C[29]=M,C[30]=u,C[31]=Z,C[32]=f,C[33]=S,C[34]=p):p=C[34],p},Ml2=H=>{const C=T.compilerRuntimeExports.c(30);let V,L,e,M,r,t,i,a,o;C[0]!==H?({children:V,className:L,disabled:t,name:M,onValueChange:r,size:i,type:a,value:o,...e}=H,C[0]=H,C[1]=V,C[2]=L,C[3]=e,C[4]=M,C[5]=r,C[6]=t,C[7]=i,C[8]=a,C[9]=o):(V=C[1],L=C[2],e=C[3],M=C[4],r=C[5],t=C[6],i=C[7],a=C[8],o=C[9]);const n=t===void 0?!1:t,A=i===void 0?"sm":i,d=a===void 0?"single":a;let l;C[10]!==r||C[11]!==d||C[12]!==o?(l=f=>{if(r)if(d==="single")r(o===f?"":f);else{const S=o||[],p=S.includes(f)?S.filter(g=>g!==f):[...S,f];r(p)}},C[10]=r,C[11]=d,C[12]=o,C[13]=l):l=C[13];const s=l;let c;C[14]!==n||C[15]!==s||C[16]!==M||C[17]!==A||C[18]!==d||C[19]!==o?(c={value:o,onToggle:s,name:M,size:A,disabled:n,type:d},C[14]=n,C[15]=s,C[16]=M,C[17]=A,C[18]=d,C[19]=o,C[20]=c):c=C[20];let v;C[21]!==L?(v=B("flex flex-wrap gap-2",L),C[21]=L,C[22]=v):v=C[22];let u;C[23]!==V||C[24]!==e||C[25]!==v?(u=m.jsx("div",{className:v,"data-ox-slot":"toggle-group",role:"group",...e,children:V}),C[23]=V,C[24]=e,C[25]=v,C[26]=u):u=C[26];let Z;return C[27]!==c||C[28]!==u?(Z=m.jsx(d7.Provider,{value:c,children:u}),C[27]=c,C[28]=u,C[29]=Z):Z=C[29],Z},s7=el2;s7.Group=Ml2;const rl2={default:"ox-gray-border text-gray-1200 bg-gray-200",error:B(...Object.values(T.pick(d1.rose,["background","border","text"]))),warning:B(...Object.values(T.pick(d1.amber,["background","border","text"]))),info:B(...Object.values(T.pick(d1.blue,["background","border","text"]))),success:B(...Object.values(T.pick(d1.green,["background","border","text"])))},m7=H=>{const C=T.compilerRuntimeExports.c(19),{align:V,children:L,className:e,content:M,disabled:r,hoverDelay:t,id:i,onOpenChange:a,open:o,position:n,trigger:A,variant:d}=H,l=V===void 0?"center":V,s=r===void 0?!1:r,c=t===void 0?500:t,v=n===void 0?"top":n,u=A===void 0?"hover":A,Z=d===void 0?"default":d;let f;C[0]!==L?(f=m.jsx(g1.Trigger,{asChild:!0,children:L}),C[0]=L,C[1]=f):f=C[1];const S=rl2[Z];let p;C[2]!==e||C[3]!==S?(p=B("max-w-xs rounded-md border px-2 py-1 text-xs break-words",S,e),C[2]=e,C[3]=S,C[4]=p):p=C[4];let g;C[5]!==M||C[6]!==p?(g=m.jsx(g1.Content,{className:"ox-tooltip-animate rounded-md backdrop-blur-sm",role:"tooltip",children:m.jsx("div",{className:p,"data-ox-slot":"tooltip-content",children:M})}),C[5]=M,C[6]=p,C[7]=g):g=C[7];let h;return C[8]!==l||C[9]!==s||C[10]!==c||C[11]!==i||C[12]!==a||C[13]!==o||C[14]!==v||C[15]!==g||C[16]!==f||C[17]!==u?(h=m.jsxs(g1,{id:i,align:l,animationDuration:100,disabled:s,hoverDelay:c,offset:8,open:o,position:v,trigger:u,useAriaControls:!1,onOpenChange:a,children:[f,g]}),C[8]=l,C[9]=s,C[10]=c,C[11]=i,C[12]=a,C[13]=o,C[14]=v,C[15]=g,C[16]=f,C[17]=u,C[18]=h):h=C[18],h};exports.COLOR_STYLES=d1;exports.MOBILE_BREAKPOINT=i0;exports.OxAccordion=J2;exports.OxAlert=a0;exports.OxAvatar=C5;exports.OxBadge=_2;exports.OxBreadcrumb=H5;exports.OxButton=x1;exports.OxCalendar=x0;exports.OxCard=V5;exports.OxCheckbox=t5;exports.OxDateInput=E2;exports.OxDescription=u2;exports.OxDescriptionList=G5;exports.OxDialog=e5;exports.OxDrawer=q1;exports.OxDropdown=B1;exports.OxError=_0;exports.OxFileUpload=i5;exports.OxFloating=g1;exports.OxFloatingContext=U5;exports.OxForm=t2;exports.OxHeading=G0;exports.OxIcon=a1;exports.OxJsonField=R0;exports.OxLabel=U0;exports.OxLegend=Jo2;exports.OxLink=lo2;exports.OxNotifications=P2;exports.OxNumberInput=g2;exports.OxOtpInput=VA2;exports.OxPagination=B2;exports.OxPopover=X5;exports.OxProgress=I0;exports.OxRadio=M7;exports.OxSelect=a2;exports.OxSeparator=J5;exports.OxSkeleton=h2;exports.OxSkeletonText=zo2;exports.OxSlider=Go2;exports.OxSpinner=b0;exports.OxStatusDisplay=Yo2;exports.OxStepper=H3;exports.OxSwitch=NA2;exports.OxTable=X1;exports.OxTabs=A5;exports.OxTextInput=i2;exports.OxTextarea=jA2;exports.OxTimeInput=n5;exports.OxTimeline=n7;exports.OxToast=A7;exports.OxToastProvider=Cl2;exports.OxToggle=s7;exports.OxTooltip=m7;exports.buildMailTo=Z7;exports.buildUrl=u7;exports.cn=B;exports.copyToClipboard=V4;exports.createId=t4;exports.formatBytes=a4;exports.formatCurrency=o4;exports.formatDate=n4;exports.formatNumber=A4;exports.formatTimestamp=I5;exports.generateRandomString=H0;exports.handleFormErrors=L0;exports.handleGraphQLFormErrors=i4;exports.hasDataSlot=X2;exports.parseGraphQLErrors=V0;exports.scrollToElement=l4;exports.useOxFloatingContext=j1;exports.useOxToast=Hl2;exports.validateEmail=Z4;exports.validatePhone=p4;exports.validateUrl=S4;
@@ -19755,7 +19755,7 @@ const l7 = f1(void 0), l3 = (H) => {
19755
19755
  let O;
19756
19756
  C[26] !== i || C[27] !== u || C[28] !== n ? (O = u && !i ? /* @__PURE__ */ S(n1, { className: "justify-self-center text-violet-700", "data-ox-slot": "select-check-icon", path: "mdiCheck", size: E1[n] }) : null, C[26] = i, C[27] = u, C[28] = n, C[29] = O) : O = C[29];
19757
19757
  let b;
19758
- C[30] !== V || C[31] !== i || C[32] !== M || C[33] !== m || C[34] !== v || C[35] !== O || C[36] !== f || C[37] !== Z || C[38] !== p ? (b = /* @__PURE__ */ j("button", { "aria-selected": f, className: Z, "data-ox-slot": "select-option", disabled: i, role: "option", tabIndex: p, onClick: m, onKeyDown: v, ...M, children: [
19758
+ C[30] !== V || C[31] !== i || C[32] !== M || C[33] !== m || C[34] !== v || C[35] !== O || C[36] !== f || C[37] !== Z || C[38] !== p ? (b = /* @__PURE__ */ j("button", { "aria-selected": f, className: Z, "data-ox-slot": "select-option", disabled: i, role: "option", tabIndex: p, type: "button", onClick: m, onKeyDown: v, ...M, children: [
19759
19759
  V,
19760
19760
  O
19761
19761
  ] }), C[30] = V, C[31] = i, C[32] = M, C[33] = m, C[34] = v, C[35] = O, C[36] = f, C[37] = Z, C[38] = p, C[39] = b) : b = C[39];
@@ -19849,7 +19849,7 @@ const zA2 = (H) => {
19849
19849
  x = C[1];
19850
19850
  const k = x;
19851
19851
  let T;
19852
- C[3] !== m ? (T = m ? new Set(C0(m)) : void 0, C[3] = m, C[4] = T) : T = C[4];
19852
+ C[3] !== m ? (T = m !== void 0 ? new Set(C0(m)) : void 0, C[3] = m, C[4] = T) : T = C[4];
19853
19853
  let D;
19854
19854
  C[5] !== c ? (D = new Set(C0(c)), C[5] = c, C[6] = D) : D = C[6];
19855
19855
  let I;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../chunks/ui-BohXdfTx.js"),b=require("../chunks/query-CIsrxNi-.js"),O=require("react/jsx-runtime"),R=require("../chunks/useAuth-DxoDe3YA.js"),m=require("../chunks/hooks-UiKjBucd.js"),j=require("@apollo/client"),g=require("react");function L({adminRole:t="ADMIN",children:e,getCurrentUserQuery:a=b.DEFAULT_GET_CURRENT_USER,options:i={},pollInterval:f=300*1e3}){const{data:u,error:o,loading:d,refetch:s}=m.useQuery(a,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",pollInterval:f,...i}),r=!!u?.me,l=u?.me?.role===t;return O.jsx(R.OxAuthContext.Provider,{value:{user:u?.me||null,loading:d,error:o??null,isLoggedIn:r,isAdmin:l,refreshUser:s},children:e})}const U=j.gql`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../chunks/ui-D5_nwdB5.js"),b=require("../chunks/query-CIsrxNi-.js"),O=require("react/jsx-runtime"),R=require("../chunks/useAuth-DxoDe3YA.js"),m=require("../chunks/hooks-UiKjBucd.js"),j=require("@apollo/client"),g=require("react");function L({adminRole:t="ADMIN",children:e,getCurrentUserQuery:a=b.DEFAULT_GET_CURRENT_USER,options:i={},pollInterval:f=300*1e3}){const{data:u,error:o,loading:d,refetch:s}=m.useQuery(a,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",pollInterval:f,...i}),r=!!u?.me,l=u?.me?.role===t;return O.jsx(R.OxAuthContext.Provider,{value:{user:u?.me||null,loading:d,error:o??null,isLoggedIn:r,isAdmin:l,refreshUser:s},children:e})}const U=j.gql`
2
2
  query getFeatures {
3
3
  features
4
4
  }
@@ -1,4 +1,4 @@
1
- import { a0 as F, p as U } from "../chunks/ui-D6kNTsYs.js";
1
+ import { a0 as F, p as U } from "../chunks/ui-EIFtXB52.js";
2
2
  import { D as k } from "../chunks/query-D2S9cFBP.js";
3
3
  import { jsx as g, jsxs as N } from "react/jsx-runtime";
4
4
  import { O as R } from "../chunks/useAuth-BFgXzu6Q.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../chunks/ui-BohXdfTx.js"),x=require("react/jsx-runtime"),g=require("../chunks/hooks-UiKjBucd.js"),N=require("react"),G=a=>{const e=g.compilerRuntimeExports.c(28);let t,s,l,o,n,i,r;e[0]!==a?({brand:t,children:s,className:l,hasSidebar:i,navClassName:n,toggleSidebar:r,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=i===void 0?!1:i;let d;e[8]!==l?(d=b.cn("sticky top-0 z-10 max-h-15 min-h-15 bg-gray-100",l),e[8]=l,e[9]=d):d=e[9];let u;e[10]!==n?(u=b.cn("mx-auto flex max-w-10xl items-center justify-between px-4 py-2.5",n),e[10]=n,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==r?(m=c?x.jsx(b.OxButton,{"aria-label":"Open menu","data-ox-slot":"header-toggle",size:"md",variant:"ghost",onClick:r,children:x.jsx(b.OxButton.Icon,{path:"mdiMenu"})}):null,e[12]=c,e[13]=r,e[14]=m):m=e[14];let f;e[15]!==t?(f=t?x.jsx("div",{children:t}):null,e[15]=t,e[16]=f):f=e[16];let p;e[17]!==m||e[18]!==f?(p=x.jsxs("div",{className:"flex items-center gap-[17px]",children:[m,f]}),e[17]=m,e[18]=f,e[19]=p):p=e[19];let h;e[20]!==s||e[21]!==u||e[22]!==p?(h=x.jsxs("nav",{className:u,children:[p,s]}),e[20]=s,e[21]=u,e[22]=p,e[23]=h):h=e[23];let v;return e[24]!==o||e[25]!==d||e[26]!==h?(v=x.jsx("header",{className:d,"data-ox-slot":"header",...o,children:h}),e[24]=o,e[25]=d,e[26]=h,e[27]=v):v=e[27],v},k="group ox-gray-inset-focus items-center rounded-lg text-sm transition-colors text-left col-span-2 grid grid-cols-subgrid",I="size-10 justify-center",L="h-10 w-full px-2",B="bg-gray-300 text-gray-1200",W="h-15",T=N.createContext(void 0),Y=a=>{const e=g.compilerRuntimeExports.c(24);let t,s,l,o,n,i,r;e[0]!==a?({children:t,className:s,desktopCollapsed:n,hasHeader:i,mobileCollapsed:r,onClose:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=n===void 0?!1:n,d=i===void 0?!1:i,u=r===void 0?!0:r,[m,f]=N.useState(window.innerWidth<b.MOBILE_BREAKPOINT),p=m?u:c;let h;e[8]!==p||e[9]!==m?(h={collapsed:p,isMobile:m},e[8]=p,e[9]=m,e[10]=h):h=e[10];const v=h;let O,S;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{const w=()=>{f(window.innerWidth<b.MOBILE_BREAKPOINT)};return w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}},S=[],e[11]=O,e[12]=S):(O=e[11],S=e[12]),N.useEffect(O,S);let y;e[13]!==t||e[14]!==s||e[15]!==l||e[16]!==p||e[17]!==d||e[18]!==m||e[19]!==o?(y=m?x.jsx(b.OxDrawer,{open:!p,onOpenChange:w=>!w&&o?.(),children:x.jsx(b.OxDrawer.Content,{closeOnOutsideClick:o!==void 0,side:"left",children:x.jsxs("nav",{"aria-label":"Mobile navigation",className:b.cn("flex h-screen w-full flex-col bg-gray-100",s),"data-ox-slot":"sidebar",role:"navigation",...l,children:[o?x.jsx("div",{className:b.cn("flex h-15 items-center gap-[17px] px-4",W),children:x.jsx(b.OxButton,{"aria-label":"Close sidebar",size:"md",variant:"ghost",onClick:o,children:x.jsx(b.OxButton.Icon,{path:"mdiClose"})})}):null,t]})})}):x.jsx("nav",{"aria-label":"Desktop navigation",className:b.cn("sticky box-content flex flex-col overflow-y-auto bg-gray-100",{"top-0 h-screen":!d,"viewport-minus-header top-15":d,'max-w-18 min-w-18 [&_[data-ox-slot="sidebar-label"]]:hidden':p,"max-w-64 min-w-64":!p},s),"data-ox-slot":"sidebar",role:"navigation",...l,children:t}),e[13]=t,e[14]=s,e[15]=l,e[16]=p,e[17]=d,e[18]=m,e[19]=o,e[20]=y):y=e[20];let P;return e[21]!==v||e[22]!==y?(P=x.jsx(T.Provider,{value:v,children:y}),e[21]=v,e[22]=y,e[23]=P):P=e[23],P},$=()=>{const a=N.useContext(T);if(!a)throw new Error("useSidebar must be used within a SidebarProvider");return a},q=a=>{const e=g.compilerRuntimeExports.c(12);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{collapsed:o,isMobile:n}=$(),i=o&&!n,r=!o||n;let c;e[4]!==s||e[5]!==i||e[6]!==r?(c=b.cn("grid flex-1 content-start gap-y-1 overflow-y-auto p-4",{"grid-cols-1 place-items-center":i,"grid-cols-[auto_1fr]":r},'[&_[data-ox-slot="sidebar-link"]]:col-span-2 [&_[data-ox-slot="sidebar-link"]]:grid [&_[data-ox-slot="sidebar-link"]]:grid-cols-subgrid','[&_[data-ox-slot="sidebar-button"]]:col-span-2 [&_[data-ox-slot="sidebar-button"]]:grid [&_[data-ox-slot="sidebar-button"]]:grid-cols-subgrid','[&_[data-ox-slot="sidebar-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="sidebar-icon"]]:justify-self-center','[&_[data-ox-slot="sidebar-label"]]:[grid-column-start:var(--ox-menu-label-col)]',s),e[4]=s,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==t||e[9]!==l||e[10]!==c?(d=x.jsx("div",{className:c,"data-ox-slot":"sidebar-body",...l,children:t}),e[8]=t,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},F=a=>{const e=g.compilerRuntimeExports.c(18);let t,s,l,o,n;e[0]!==a?({active:o,children:t,className:s,disabled:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const i=o===void 0?!1:o,r=n===void 0?!1:n,{collapsed:c}=$(),d=!c,u=i&&!r;let m;e[6]!==s||e[7]!==c||e[8]!==r||e[9]!==d||e[10]!==u?(m=b.cn("enabled:cursor-pointer enabled:text-gray-1000 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200",k,{[I]:c,[L]:d,[B]:u,"disabled:ox-default-disabled":r},s),e[6]=s,e[7]=c,e[8]=r,e[9]=d,e[10]=u,e[11]=m):m=e[11];const f=i?"active":"inactive";let p;return e[12]!==t||e[13]!==r||e[14]!==l||e[15]!==m||e[16]!==f?(p=x.jsx("button",{className:m,"data-ox-slot":"sidebar-button",disabled:r,type:"button",...l,"data-ox-state":f,children:t}),e[12]=t,e[13]=r,e[14]=l,e[15]=m,e[16]=f,e[17]=p):p=e[17],p},K=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("p-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-footer",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},V=a=>{const e=g.compilerRuntimeExports.c(17);let t,s,l,o;e[0]!==a?({children:t,className:s,headline:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const{collapsed:n,isMobile:i}=$();let r;e[5]!==s?(r=b.cn("contents",s),e[5]=s,e[6]=r):r=e[6];const c=n&&!i;let d;e[7]!==c?(d=b.cn("col-span-full mt-4 mb-2 block cursor-default text-xs text-gray-1000",{invisible:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==o||e[10]!==d?(u=x.jsx("h3",{className:d,children:o}),e[9]=o,e[10]=d,e[11]=u):u=e[11];let m;return e[12]!==t||e[13]!==l||e[14]!==r||e[15]!==u?(m=x.jsxs("div",{className:r,"data-ox-slot":"sidebar-group",...l,children:[u,t]}),e[12]=t,e[13]=l,e[14]=r,e[15]=u,e[16]=m):m=e[16],m},J=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex h-15 items-center px-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},Q=a=>{const e=g.compilerRuntimeExports.c(11);let t,s,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const o=l===void 0?.8:l,{collapsed:n}=$(),i=!n;let r;e[4]!==t||e[5]!==i?(r=b.cn("shrink-0 text-current",{"mr-2":i},t),e[4]=t,e[5]=i,e[6]=r):r=e[6];let c;return e[7]!==s||e[8]!==o||e[9]!==r?(c=x.jsx(b.OxIcon,{className:r,"data-ox-slot":"sidebar-icon",size:o,...s}),e[7]=s,e[8]=o,e[9]=r,e[10]=c):c=e[10],c},U=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("overflow-hidden text-ellipsis",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("span",{className:o,"data-ox-slot":"sidebar-label",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},X=a=>{const e=g.compilerRuntimeExports.c(22);let t,s,l,o,n,i;e[0]!==a?({active:n,children:t,className:s,disabled:i,href:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=n===void 0?!1:n,c=i===void 0?!1:i,{collapsed:d}=$(),u=r?"page":void 0,m=!d,f=r&&!c,p=!r&&!c;let h;e[7]!==s||e[8]!==d||e[9]!==c||e[10]!==m||e[11]!==f||e[12]!==p?(h=b.cn(k,{[I]:d,[L]:m,[B]:f,"cursor-pointer text-gray-1000 hover:bg-gray-300 hover:text-gray-1200":p,"ox-default-disabled":c},s),e[7]=s,e[8]=d,e[9]=c,e[10]=m,e[11]=f,e[12]=p,e[13]=h):h=e[13];const v=c?void 0:o,O=c?Z:void 0,S=r?"active":"inactive";let y;return e[14]!==t||e[15]!==l||e[16]!==S||e[17]!==u||e[18]!==h||e[19]!==v||e[20]!==O?(y=x.jsx("a",{"aria-current":u,className:h,"data-ox-slot":"sidebar-link",href:v,role:"link",onClick:O,...l,"data-ox-state":S,children:t}),e[14]=t,e[15]=l,e[16]=S,e[17]=u,e[18]=h,e[19]=v,e[20]=O,e[21]=y):y=e[21],y};function Z(a){return a.preventDefault()}const E=Y;E.Body=q;E.Button=F;E.Footer=K;E.Group=V;E.Header=J;E.Icon=Q;E.Label=U;E.Link=X;const ee=a=>{const e=g.compilerRuntimeExports.c(22);let t,s,l,o,n,i,r;e[0]!==a?({children:t,className:s,color:i,icon:o,subtitle:n,title:r,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=i===void 0?"purple":i,d=r||n||o,u=b.COLOR_STYLES[c],m=d?"main-headline":void 0;let f;e[8]!==s?(f=b.cn("w-full p-6",s),e[8]=s,e[9]=f):f=e[9];let p;e[10]!==d||e[11]!==o||e[12]!==u||e[13]!==n||e[14]!==r?(p=d?x.jsx("div",{className:"mb-8 border-b border-gray-400 pb-6",children:x.jsxs("div",{className:"flex items-center gap-4",children:[o?x.jsx("div",{className:b.cn("rounded-lg border p-3",u.border,u.background),children:x.jsx(b.OxIcon,{className:u.text,path:o,size:1.41})}):null,x.jsxs("div",{children:[r?x.jsx("h2",{id:"main-headline",className:"text-xl font-semibold text-gray-1200","data-ox-slot":"main-headline",children:r}):null,n&&x.jsx("p",{className:"mt-1 text-sm",children:n})]})]})}):null,e[10]=d,e[11]=o,e[12]=u,e[13]=n,e[14]=r,e[15]=p):p=e[15];let h;return e[16]!==t||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p?(h=x.jsxs("main",{"aria-labelledby":m,className:f,"data-ox-slot":"main-content",...l,children:[p,t]}),e[16]=t,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=h):h=e[21],h},te=a=>{const e=g.compilerRuntimeExports.c(11);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isMobile:o}=R(),n=o?"grid-cols-1":"grid-cols-[auto_1fr]";let i;e[4]!==s||e[5]!==n?(i=b.cn("mx-auto grid min-h-screen max-w-16xl bg-transparent",n,s),e[4]=s,e[5]=n,e[6]=i):i=e[6];let r;return e[7]!==t||e[8]!==l||e[9]!==i?(r=x.jsx("div",{className:i,"data-ox-slot":"app-layout",...l,children:t}),e[7]=t,e[8]=l,e[9]=i,e[10]=r):r=e[10],r},se=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-col overflow-y-auto",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("main",{className:o,"data-ox-slot":"main-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},le=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-1 overflow-y-auto px-6 py-6",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"main-content-body",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},oe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-shrink-0 border-b border-gray-400 bg-gray-100 px-6 py-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"main-content-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ne=Object.assign(se,{Header:oe,Body:le}),z=N.createContext(void 0);function R(){const a=N.useContext(z);if(!a)throw new Error("useOxSidebar must be used within a SidebarProvider");return a}const ae=256,re=a=>{const e=g.compilerRuntimeExports.c(21);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isMobile:o,mobileOpen:n,toggleSidebar:i}=R();if(o){let u;e[4]!==s?(u=b.cn("flex h-full flex-col bg-gray-150",s),e[4]=s,e[5]=u):u=e[5];let m;e[6]!==t||e[7]!==l||e[8]!==u?(m=x.jsx(b.OxDrawer.Content,{closeOnOutsideClick:!0,side:"left",children:x.jsx("aside",{className:u,"data-ox-slot":"sidebar",...l,children:t})}),e[6]=t,e[7]=l,e[8]=u,e[9]=m):m=e[9];let f;return e[10]!==n||e[11]!==m||e[12]!==i?(f=x.jsx(b.OxDrawer,{open:n,onOpenChange:i,children:m}),e[10]=n,e[11]=m,e[12]=i,e[13]=f):f=e[13],f}let r;e[14]!==s?(r=b.cn("sticky top-0 flex h-screen flex-col overflow-y-auto bg-gray-150",s),e[14]=s,e[15]=r):r=e[15];let c;e[16]===Symbol.for("react.memo_cache_sentinel")?(c={width:ae},e[16]=c):c=e[16];let d;return e[17]!==t||e[18]!==l||e[19]!==r?(d=x.jsx("aside",{className:r,"data-ox-slot":"sidebar",style:c,...l,children:t}),e[17]=t,e[18]=l,e[19]=r,e[20]=d):d=e[20],d},ie=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-1 overflow-y-auto p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ce=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex shrink-0 flex-col p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-footer",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},de=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-wrap items-center gap-2",'[&_[data-ox-slot="sidebar-group-content"]]:w-full',s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},xe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("mr-1.5 inline-flex size-6 shrink-0 items-center justify-center rounded-md","enabled:cursor-pointer enabled:text-gray-900 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200","ox-gray-outset-focus disabled:ox-default-disabled",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("button",{className:o,"data-ox-slot":"sidebar-group-action",type:"button",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ue=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn(s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},me=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-1 items-center pl-2 text-xs font-medium text-gray-900",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group-label",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},be=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex shrink-0 flex-col p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},fe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-col items-stretch gap-1",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("ul",{className:o,"data-ox-slot":"sidebar-menu",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},pe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-transparent","enabled:cursor-pointer enabled:bg-transparent enabled:text-gray-1200 enabled:hover:bg-gray-300","ox-gray-outset-focus disabled:ox-default-disabled",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("button",{className:o,"data-ox-slot":"sidebar-menu-action",type:"button",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},he=a=>{const e=g.compilerRuntimeExports.c(5),{children:t,className:s}=a;let l;e[0]!==s?(l=b.cn("ml-auto",s),e[0]=s,e[1]=l):l=e[1];let o;return e[2]!==t||e[3]!==l?(o=x.jsx(b.OxBadge,{className:l,"data-ox-slot":"sidebar-menu-badge",size:"sm",children:t}),e[2]=t,e[3]=l,e[4]=o):o=e[4],o},A=N.createContext(void 0),_=()=>{const a=N.useContext(A);if(!a)throw new Error("useMenuItemContext must be used within MenuItemProvider");return a},D=a=>{const e=g.compilerRuntimeExports.c(6),{className:t,path:s,placeholder:l}=a;let o;e[0]!==t?(o=b.cn("shrink-0",t),e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==l||e[4]!==o?(n=x.jsx(b.OxIcon,{className:o,"data-ox-slot":"sidebar-menu-icon",path:s,placeholder:l,size:.8}),e[2]=s,e[3]=l,e[4]=o,e[5]=n):n=e[5],n},ge=a=>"href"in a,H="flex h-9 flex-1 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm ox-gray-outset-focus",ve=a=>{const e=g.compilerRuntimeExports.c(23);let t,s,l,o,n,i;e[0]!==a?({children:t,className:s,disabled:i,href:l,onClick:o,...n}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=i===void 0?!1:i,{hasSub:c,toggleOpen:d}=_(),u=!r;let m;e[7]!==s||e[8]!==r||e[9]!==u?(m=b.cn(H,{"cursor-pointer text-gray-1200 hover:bg-gray-300":u,"ox-default-disabled":r},s),e[7]=s,e[8]=r,e[9]=u,e[10]=m):m=e[10];const f=m;let p;e[11]!==r||e[12]!==c||e[13]!==o||e[14]!==d?(p=y=>{if(r){y.preventDefault();return}if(c){y.preventDefault(),d();return}o?.(y)},e[11]=r,e[12]=c,e[13]=o,e[14]=d,e[15]=p):p=e[15];const h=p,v=r?"true":void 0,O=r?void 0:l;let S;return e[16]!==t||e[17]!==h||e[18]!==f||e[19]!==n||e[20]!==v||e[21]!==O?(S=x.jsx("a",{"aria-disabled":v,className:f,"data-ox-slot":"sidebar-menu-button",href:O,onClick:h,...n,children:t}),e[16]=t,e[17]=h,e[18]=f,e[19]=n,e[20]=v,e[21]=O,e[22]=S):S=e[22],S},Oe=a=>{const e=g.compilerRuntimeExports.c(24);let t,s,l,o,n,i;e[0]!==a?({children:t,className:s,disabled:n,onClick:l,type:i,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=n===void 0?!1:n,c=i===void 0?"button":i,{hasSub:d,isOpen:u,toggleOpen:m}=_();let f;e[7]!==s?(f=b.cn(H,"enabled:cursor-pointer enabled:text-gray-1200 enabled:hover:bg-gray-300","disabled:ox-default-disabled",s),e[7]=s,e[8]=f):f=e[8];const p=f;let h;e[9]!==d||e[10]!==l||e[11]!==m?(h=y=>{if(d){m();return}l?.(y)},e[9]=d,e[10]=l,e[11]=m,e[12]=h):h=e[12];const v=h;let O;e[13]!==d||e[14]!==u?(O=d?x.jsx(D,{className:b.cn("ml-auto transition-transform duration-200",{"rotate-180":u}),path:"mdiChevronDown"}):null,e[13]=d,e[14]=u,e[15]=O):O=e[15];let S;return e[16]!==p||e[17]!==t||e[18]!==r||e[19]!==v||e[20]!==o||e[21]!==O||e[22]!==c?(S=x.jsxs("button",{className:p,"data-ox-slot":"sidebar-menu-button",disabled:r,type:c,onClick:v,...o,children:[t,O]}),e[16]=p,e[17]=t,e[18]=r,e[19]=v,e[20]=o,e[21]=O,e[22]=c,e[23]=S):S=e[23],S},Se=a=>{const e=g.compilerRuntimeExports.c(2);let t;return e[0]!==a?(t=ge(a)?x.jsx(ve,{...a}):x.jsx(Oe,{...a}),e[0]=a,e[1]=t):t=e[1],t};function ye(a){const e=g.compilerRuntimeExports.c(7),{children:t,defaultOpen:s,hasSub:l}=a,o=s===void 0?!1:s,n=l===void 0?!1:l,[i,r]=N.useState(o);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(Ne),e[0]=c):c=e[0];const d=c;let u;e[1]!==n||e[2]!==i?(u={hasSub:n,isOpen:i,setIsOpen:r,toggleOpen:d},e[1]=n,e[2]=i,e[3]=u):u=e[3];let m;return e[4]!==t||e[5]!==u?(m=x.jsx(A.Provider,{value:u,children:t}),e[4]=t,e[5]=u,e[6]=m):m=e[6],m}function Ne(a){return!a}const je=a=>{const e=g.compilerRuntimeExports.c(16);let t,s,l,o,n;e[0]!==a?({children:t,className:s,defaultOpen:o,hasSub:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const i=o===void 0?!1:o,r=n===void 0?!1:n;let c;e[6]!==s?(c=b.cn("group flex flex-wrap items-center gap-x-2",s),e[6]=s,e[7]=c):c=e[7];let d;e[8]!==t||e[9]!==l||e[10]!==c?(d=x.jsx("li",{className:c,"data-ox-slot":"sidebar-menu-item",...l,children:t}),e[8]=t,e[9]=l,e[10]=c,e[11]=d):d=e[11];let u;return e[12]!==i||e[13]!==r||e[14]!==d?(u=x.jsx(ye,{defaultOpen:i,hasSub:r,children:d}),e[12]=i,e[13]=r,e[14]=d,e[15]=u):u=e[15],u},Ee=a=>{const e=g.compilerRuntimeExports.c(2),{className:t}=a;let s;return e[0]!==t?(s=x.jsx(b.OxSkeleton,{className:t,"data-ox-slot":"sidebar-menu-skeleton",fullWidth:!0,height:36}),e[0]=t,e[1]=s):s=e[1],s},Ce=a=>{const e=g.compilerRuntimeExports.c(13);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isOpen:o}=_(),n=o?"open":"closed";let i;e[4]!==s?(i=b.cn("ml-4.5 flex flex-col gap-1 border-l border-gray-400 py-0.5 pl-2.5",s),e[4]=s,e[5]=i):i=e[5];let r;e[6]!==t||e[7]!==l||e[8]!==i?(r=x.jsx("ul",{className:i,"data-ox-slot":"sidebar-menu-sub",...l,children:t}),e[6]=t,e[7]=l,e[8]=i,e[9]=r):r=e[9];let c;return e[10]!==n||e[11]!==r?(c=x.jsx("div",{className:"ox-sidebar-submenu w-content grid w-full","data-ox-slot":"sidebar-menu-sub-wrapper","data-ox-state":n,children:r}),e[10]=n,e[11]=r,e[12]=c):c=e[12],c},we=a=>{const e=g.compilerRuntimeExports.c(16);let t,s,l,o;e[0]!==a?({children:t,className:s,href:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let n;e[5]!==s?(n=b.cn("flex h-8 flex-1 cursor-pointer items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm text-gray-1200 hover:bg-gray-300","ox-gray-outset-focus",s),e[5]=s,e[6]=n):n=e[6];const i=n;if(o){const c=l;let d;return e[7]!==i||e[8]!==t||e[9]!==o||e[10]!==c?(d=x.jsx("a",{className:i,"data-ox-slot":"sidebar-menu-sub-button",href:o,...c,children:t}),e[7]=i,e[8]=t,e[9]=o,e[10]=c,e[11]=d):d=e[11],d}let r;return e[12]!==i||e[13]!==t||e[14]!==l?(r=x.jsx("button",{className:i,"data-ox-slot":"sidebar-menu-sub-button",type:"button",...l,children:t}),e[12]=i,e[13]=t,e[14]=l,e[15]=r):r=e[15],r},$e=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex items-center gap-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("li",{className:o,"data-ox-slot":"sidebar-menu-sub-item",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},Pe=a=>{const e=g.compilerRuntimeExports.c(6);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;return e[3]!==t||e[4]!==s?(l=x.jsx(b.OxSeparator,{className:t,"data-ox-slot":"sidebar-separator",...s}),e[3]=t,e[4]=s,e[5]=l):l=e[5],l},Re=a=>{const e=g.compilerRuntimeExports.c(12),{className:t,onClick:s}=a,{isMobile:l,toggleSidebar:o}=R();let n;e[0]!==l||e[1]!==s||e[2]!==o?(n=()=>{l?o():s&&s()},e[0]=l,e[1]=s,e[2]=o,e[3]=n):n=e[3];const i=n,r=l||s;let c;e[4]!==t||e[5]!==r?(c=b.cn("inline-flex size-8 items-center justify-center rounded-lg","border border-transparent bg-transparent text-gray-1200",{"ox-gray-outset-focus cursor-pointer hover:bg-gray-300":r},t),e[4]=t,e[5]=r,e[6]=c):c=e[6];const d=!r;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx(b.OxIcon,{path:"mdiDockLeft",size:.8}),e[7]=u):u=e[7];let m;return e[8]!==i||e[9]!==c||e[10]!==d?(m=x.jsx("button",{"aria-label":"Toggle sidebar",className:c,"data-ox-slot":"sidebar-trigger",disabled:d,type:"button",onClick:i,children:u}),e[8]=i,e[9]=c,e[10]=d,e[11]=m):m=e[11],m};function Me(a){const e=g.compilerRuntimeExports.c(11),{children:t}=a,[s,l]=N.useState(!1),[o,n]=N.useState(!1);let i,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const O=()=>{n(window.innerWidth<b.MOBILE_BREAKPOINT)};return O(),window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},r=[],e[0]=i,e[1]=r):(i=e[0],r=e[1]),N.useEffect(i,r);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{l(!0)},e[2]=c):c=e[2];const d=c;let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{l(!1)},e[3]=u):u=e[3];const m=u;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{l(_e)},e[4]=f):f=e[4];const p=f;let h;e[5]!==o||e[6]!==s?(h={closeSidebar:m,isMobile:o,mobileOpen:s,openSidebar:d,toggleSidebar:p},e[5]=o,e[6]=s,e[7]=h):h=e[7];let v;return e[8]!==t||e[9]!==h?(v=x.jsx(z.Provider,{value:h,children:t}),e[8]=t,e[9]=h,e[10]=v):v=e[10],v}function _e(a){return!a}const C=re,j=fe,M=de;C.Header=be;C.Content=ie;C.Footer=ce;C.Separator=Pe;C.Trigger=Re;j.Item=je;j.Button=Se;j.Icon=D;j.Badge=he;j.Action=pe;j.Skeleton=Ee;j.Sub=Ce;j.SubItem=$e;j.SubButton=we;M.Label=me;M.Action=xe;M.Content=ue;exports.OxAppLayout=te;exports.OxLegacyHeader=G;exports.OxLegacyMainContent=ee;exports.OxLegacySidebar=E;exports.OxMainContent=ne;exports.OxSidebar=C;exports.OxSidebarGroup=M;exports.OxSidebarMenu=j;exports.OxSidebarProvider=Me;exports.useOxSidebar=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../chunks/ui-D5_nwdB5.js"),x=require("react/jsx-runtime"),g=require("../chunks/hooks-UiKjBucd.js"),N=require("react"),G=a=>{const e=g.compilerRuntimeExports.c(28);let t,s,l,o,n,i,r;e[0]!==a?({brand:t,children:s,className:l,hasSidebar:i,navClassName:n,toggleSidebar:r,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=i===void 0?!1:i;let d;e[8]!==l?(d=b.cn("sticky top-0 z-10 max-h-15 min-h-15 bg-gray-100",l),e[8]=l,e[9]=d):d=e[9];let u;e[10]!==n?(u=b.cn("mx-auto flex max-w-10xl items-center justify-between px-4 py-2.5",n),e[10]=n,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==r?(m=c?x.jsx(b.OxButton,{"aria-label":"Open menu","data-ox-slot":"header-toggle",size:"md",variant:"ghost",onClick:r,children:x.jsx(b.OxButton.Icon,{path:"mdiMenu"})}):null,e[12]=c,e[13]=r,e[14]=m):m=e[14];let f;e[15]!==t?(f=t?x.jsx("div",{children:t}):null,e[15]=t,e[16]=f):f=e[16];let p;e[17]!==m||e[18]!==f?(p=x.jsxs("div",{className:"flex items-center gap-[17px]",children:[m,f]}),e[17]=m,e[18]=f,e[19]=p):p=e[19];let h;e[20]!==s||e[21]!==u||e[22]!==p?(h=x.jsxs("nav",{className:u,children:[p,s]}),e[20]=s,e[21]=u,e[22]=p,e[23]=h):h=e[23];let v;return e[24]!==o||e[25]!==d||e[26]!==h?(v=x.jsx("header",{className:d,"data-ox-slot":"header",...o,children:h}),e[24]=o,e[25]=d,e[26]=h,e[27]=v):v=e[27],v},k="group ox-gray-inset-focus items-center rounded-lg text-sm transition-colors text-left col-span-2 grid grid-cols-subgrid",I="size-10 justify-center",L="h-10 w-full px-2",B="bg-gray-300 text-gray-1200",W="h-15",T=N.createContext(void 0),Y=a=>{const e=g.compilerRuntimeExports.c(24);let t,s,l,o,n,i,r;e[0]!==a?({children:t,className:s,desktopCollapsed:n,hasHeader:i,mobileCollapsed:r,onClose:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=n===void 0?!1:n,d=i===void 0?!1:i,u=r===void 0?!0:r,[m,f]=N.useState(window.innerWidth<b.MOBILE_BREAKPOINT),p=m?u:c;let h;e[8]!==p||e[9]!==m?(h={collapsed:p,isMobile:m},e[8]=p,e[9]=m,e[10]=h):h=e[10];const v=h;let O,S;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{const w=()=>{f(window.innerWidth<b.MOBILE_BREAKPOINT)};return w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)}},S=[],e[11]=O,e[12]=S):(O=e[11],S=e[12]),N.useEffect(O,S);let y;e[13]!==t||e[14]!==s||e[15]!==l||e[16]!==p||e[17]!==d||e[18]!==m||e[19]!==o?(y=m?x.jsx(b.OxDrawer,{open:!p,onOpenChange:w=>!w&&o?.(),children:x.jsx(b.OxDrawer.Content,{closeOnOutsideClick:o!==void 0,side:"left",children:x.jsxs("nav",{"aria-label":"Mobile navigation",className:b.cn("flex h-screen w-full flex-col bg-gray-100",s),"data-ox-slot":"sidebar",role:"navigation",...l,children:[o?x.jsx("div",{className:b.cn("flex h-15 items-center gap-[17px] px-4",W),children:x.jsx(b.OxButton,{"aria-label":"Close sidebar",size:"md",variant:"ghost",onClick:o,children:x.jsx(b.OxButton.Icon,{path:"mdiClose"})})}):null,t]})})}):x.jsx("nav",{"aria-label":"Desktop navigation",className:b.cn("sticky box-content flex flex-col overflow-y-auto bg-gray-100",{"top-0 h-screen":!d,"viewport-minus-header top-15":d,'max-w-18 min-w-18 [&_[data-ox-slot="sidebar-label"]]:hidden':p,"max-w-64 min-w-64":!p},s),"data-ox-slot":"sidebar",role:"navigation",...l,children:t}),e[13]=t,e[14]=s,e[15]=l,e[16]=p,e[17]=d,e[18]=m,e[19]=o,e[20]=y):y=e[20];let P;return e[21]!==v||e[22]!==y?(P=x.jsx(T.Provider,{value:v,children:y}),e[21]=v,e[22]=y,e[23]=P):P=e[23],P},$=()=>{const a=N.useContext(T);if(!a)throw new Error("useSidebar must be used within a SidebarProvider");return a},q=a=>{const e=g.compilerRuntimeExports.c(12);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{collapsed:o,isMobile:n}=$(),i=o&&!n,r=!o||n;let c;e[4]!==s||e[5]!==i||e[6]!==r?(c=b.cn("grid flex-1 content-start gap-y-1 overflow-y-auto p-4",{"grid-cols-1 place-items-center":i,"grid-cols-[auto_1fr]":r},'[&_[data-ox-slot="sidebar-link"]]:col-span-2 [&_[data-ox-slot="sidebar-link"]]:grid [&_[data-ox-slot="sidebar-link"]]:grid-cols-subgrid','[&_[data-ox-slot="sidebar-button"]]:col-span-2 [&_[data-ox-slot="sidebar-button"]]:grid [&_[data-ox-slot="sidebar-button"]]:grid-cols-subgrid','[&_[data-ox-slot="sidebar-icon"]]:[grid-column-start:var(--ox-menu-icon-col)] [&_[data-ox-slot="sidebar-icon"]]:justify-self-center','[&_[data-ox-slot="sidebar-label"]]:[grid-column-start:var(--ox-menu-label-col)]',s),e[4]=s,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==t||e[9]!==l||e[10]!==c?(d=x.jsx("div",{className:c,"data-ox-slot":"sidebar-body",...l,children:t}),e[8]=t,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},F=a=>{const e=g.compilerRuntimeExports.c(18);let t,s,l,o,n;e[0]!==a?({active:o,children:t,className:s,disabled:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const i=o===void 0?!1:o,r=n===void 0?!1:n,{collapsed:c}=$(),d=!c,u=i&&!r;let m;e[6]!==s||e[7]!==c||e[8]!==r||e[9]!==d||e[10]!==u?(m=b.cn("enabled:cursor-pointer enabled:text-gray-1000 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200",k,{[I]:c,[L]:d,[B]:u,"disabled:ox-default-disabled":r},s),e[6]=s,e[7]=c,e[8]=r,e[9]=d,e[10]=u,e[11]=m):m=e[11];const f=i?"active":"inactive";let p;return e[12]!==t||e[13]!==r||e[14]!==l||e[15]!==m||e[16]!==f?(p=x.jsx("button",{className:m,"data-ox-slot":"sidebar-button",disabled:r,type:"button",...l,"data-ox-state":f,children:t}),e[12]=t,e[13]=r,e[14]=l,e[15]=m,e[16]=f,e[17]=p):p=e[17],p},K=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("p-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-footer",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},V=a=>{const e=g.compilerRuntimeExports.c(17);let t,s,l,o;e[0]!==a?({children:t,className:s,headline:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);const{collapsed:n,isMobile:i}=$();let r;e[5]!==s?(r=b.cn("contents",s),e[5]=s,e[6]=r):r=e[6];const c=n&&!i;let d;e[7]!==c?(d=b.cn("col-span-full mt-4 mb-2 block cursor-default text-xs text-gray-1000",{invisible:c}),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==o||e[10]!==d?(u=x.jsx("h3",{className:d,children:o}),e[9]=o,e[10]=d,e[11]=u):u=e[11];let m;return e[12]!==t||e[13]!==l||e[14]!==r||e[15]!==u?(m=x.jsxs("div",{className:r,"data-ox-slot":"sidebar-group",...l,children:[u,t]}),e[12]=t,e[13]=l,e[14]=r,e[15]=u,e[16]=m):m=e[16],m},J=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex h-15 items-center px-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},Q=a=>{const e=g.compilerRuntimeExports.c(11);let t,s,l;e[0]!==a?({className:t,size:l,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const o=l===void 0?.8:l,{collapsed:n}=$(),i=!n;let r;e[4]!==t||e[5]!==i?(r=b.cn("shrink-0 text-current",{"mr-2":i},t),e[4]=t,e[5]=i,e[6]=r):r=e[6];let c;return e[7]!==s||e[8]!==o||e[9]!==r?(c=x.jsx(b.OxIcon,{className:r,"data-ox-slot":"sidebar-icon",size:o,...s}),e[7]=s,e[8]=o,e[9]=r,e[10]=c):c=e[10],c},U=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("overflow-hidden text-ellipsis",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("span",{className:o,"data-ox-slot":"sidebar-label",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},X=a=>{const e=g.compilerRuntimeExports.c(22);let t,s,l,o,n,i;e[0]!==a?({active:n,children:t,className:s,disabled:i,href:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=n===void 0?!1:n,c=i===void 0?!1:i,{collapsed:d}=$(),u=r?"page":void 0,m=!d,f=r&&!c,p=!r&&!c;let h;e[7]!==s||e[8]!==d||e[9]!==c||e[10]!==m||e[11]!==f||e[12]!==p?(h=b.cn(k,{[I]:d,[L]:m,[B]:f,"cursor-pointer text-gray-1000 hover:bg-gray-300 hover:text-gray-1200":p,"ox-default-disabled":c},s),e[7]=s,e[8]=d,e[9]=c,e[10]=m,e[11]=f,e[12]=p,e[13]=h):h=e[13];const v=c?void 0:o,O=c?Z:void 0,S=r?"active":"inactive";let y;return e[14]!==t||e[15]!==l||e[16]!==S||e[17]!==u||e[18]!==h||e[19]!==v||e[20]!==O?(y=x.jsx("a",{"aria-current":u,className:h,"data-ox-slot":"sidebar-link",href:v,role:"link",onClick:O,...l,"data-ox-state":S,children:t}),e[14]=t,e[15]=l,e[16]=S,e[17]=u,e[18]=h,e[19]=v,e[20]=O,e[21]=y):y=e[21],y};function Z(a){return a.preventDefault()}const E=Y;E.Body=q;E.Button=F;E.Footer=K;E.Group=V;E.Header=J;E.Icon=Q;E.Label=U;E.Link=X;const ee=a=>{const e=g.compilerRuntimeExports.c(22);let t,s,l,o,n,i,r;e[0]!==a?({children:t,className:s,color:i,icon:o,subtitle:n,title:r,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i,e[7]=r):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6],r=e[7]);const c=i===void 0?"purple":i,d=r||n||o,u=b.COLOR_STYLES[c],m=d?"main-headline":void 0;let f;e[8]!==s?(f=b.cn("w-full p-6",s),e[8]=s,e[9]=f):f=e[9];let p;e[10]!==d||e[11]!==o||e[12]!==u||e[13]!==n||e[14]!==r?(p=d?x.jsx("div",{className:"mb-8 border-b border-gray-400 pb-6",children:x.jsxs("div",{className:"flex items-center gap-4",children:[o?x.jsx("div",{className:b.cn("rounded-lg border p-3",u.border,u.background),children:x.jsx(b.OxIcon,{className:u.text,path:o,size:1.41})}):null,x.jsxs("div",{children:[r?x.jsx("h2",{id:"main-headline",className:"text-xl font-semibold text-gray-1200","data-ox-slot":"main-headline",children:r}):null,n&&x.jsx("p",{className:"mt-1 text-sm",children:n})]})]})}):null,e[10]=d,e[11]=o,e[12]=u,e[13]=n,e[14]=r,e[15]=p):p=e[15];let h;return e[16]!==t||e[17]!==l||e[18]!==m||e[19]!==f||e[20]!==p?(h=x.jsxs("main",{"aria-labelledby":m,className:f,"data-ox-slot":"main-content",...l,children:[p,t]}),e[16]=t,e[17]=l,e[18]=m,e[19]=f,e[20]=p,e[21]=h):h=e[21],h},te=a=>{const e=g.compilerRuntimeExports.c(11);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isMobile:o}=R(),n=o?"grid-cols-1":"grid-cols-[auto_1fr]";let i;e[4]!==s||e[5]!==n?(i=b.cn("mx-auto grid min-h-screen max-w-16xl bg-transparent",n,s),e[4]=s,e[5]=n,e[6]=i):i=e[6];let r;return e[7]!==t||e[8]!==l||e[9]!==i?(r=x.jsx("div",{className:i,"data-ox-slot":"app-layout",...l,children:t}),e[7]=t,e[8]=l,e[9]=i,e[10]=r):r=e[10],r},se=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-col overflow-y-auto",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("main",{className:o,"data-ox-slot":"main-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},le=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-1 overflow-y-auto px-6 py-6",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"main-content-body",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},oe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-shrink-0 border-b border-gray-400 bg-gray-100 px-6 py-4",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"main-content-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ne=Object.assign(se,{Header:oe,Body:le}),z=N.createContext(void 0);function R(){const a=N.useContext(z);if(!a)throw new Error("useOxSidebar must be used within a SidebarProvider");return a}const ae=256,re=a=>{const e=g.compilerRuntimeExports.c(21);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isMobile:o,mobileOpen:n,toggleSidebar:i}=R();if(o){let u;e[4]!==s?(u=b.cn("flex h-full flex-col bg-gray-150",s),e[4]=s,e[5]=u):u=e[5];let m;e[6]!==t||e[7]!==l||e[8]!==u?(m=x.jsx(b.OxDrawer.Content,{closeOnOutsideClick:!0,side:"left",children:x.jsx("aside",{className:u,"data-ox-slot":"sidebar",...l,children:t})}),e[6]=t,e[7]=l,e[8]=u,e[9]=m):m=e[9];let f;return e[10]!==n||e[11]!==m||e[12]!==i?(f=x.jsx(b.OxDrawer,{open:n,onOpenChange:i,children:m}),e[10]=n,e[11]=m,e[12]=i,e[13]=f):f=e[13],f}let r;e[14]!==s?(r=b.cn("sticky top-0 flex h-screen flex-col overflow-y-auto bg-gray-150",s),e[14]=s,e[15]=r):r=e[15];let c;e[16]===Symbol.for("react.memo_cache_sentinel")?(c={width:ae},e[16]=c):c=e[16];let d;return e[17]!==t||e[18]!==l||e[19]!==r?(d=x.jsx("aside",{className:r,"data-ox-slot":"sidebar",style:c,...l,children:t}),e[17]=t,e[18]=l,e[19]=r,e[20]=d):d=e[20],d},ie=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex-1 overflow-y-auto p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ce=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex shrink-0 flex-col p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-footer",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},de=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-wrap items-center gap-2",'[&_[data-ox-slot="sidebar-group-content"]]:w-full',s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},xe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("mr-1.5 inline-flex size-6 shrink-0 items-center justify-center rounded-md","enabled:cursor-pointer enabled:text-gray-900 enabled:hover:bg-gray-300 enabled:hover:text-gray-1200","ox-gray-outset-focus disabled:ox-default-disabled",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("button",{className:o,"data-ox-slot":"sidebar-group-action",type:"button",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},ue=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn(s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group-content",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},me=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-1 items-center pl-2 text-xs font-medium text-gray-900",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-group-label",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},be=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex shrink-0 flex-col p-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("div",{className:o,"data-ox-slot":"sidebar-header",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},fe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex flex-col items-stretch gap-1",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("ul",{className:o,"data-ox-slot":"sidebar-menu",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},pe=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-transparent","enabled:cursor-pointer enabled:bg-transparent enabled:text-gray-1200 enabled:hover:bg-gray-300","ox-gray-outset-focus disabled:ox-default-disabled",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("button",{className:o,"data-ox-slot":"sidebar-menu-action",type:"button",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},he=a=>{const e=g.compilerRuntimeExports.c(5),{children:t,className:s}=a;let l;e[0]!==s?(l=b.cn("ml-auto",s),e[0]=s,e[1]=l):l=e[1];let o;return e[2]!==t||e[3]!==l?(o=x.jsx(b.OxBadge,{className:l,"data-ox-slot":"sidebar-menu-badge",size:"sm",children:t}),e[2]=t,e[3]=l,e[4]=o):o=e[4],o},A=N.createContext(void 0),_=()=>{const a=N.useContext(A);if(!a)throw new Error("useMenuItemContext must be used within MenuItemProvider");return a},D=a=>{const e=g.compilerRuntimeExports.c(6),{className:t,path:s,placeholder:l}=a;let o;e[0]!==t?(o=b.cn("shrink-0",t),e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==l||e[4]!==o?(n=x.jsx(b.OxIcon,{className:o,"data-ox-slot":"sidebar-menu-icon",path:s,placeholder:l,size:.8}),e[2]=s,e[3]=l,e[4]=o,e[5]=n):n=e[5],n},ge=a=>"href"in a,H="flex h-9 flex-1 items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm ox-gray-outset-focus",ve=a=>{const e=g.compilerRuntimeExports.c(23);let t,s,l,o,n,i;e[0]!==a?({children:t,className:s,disabled:i,href:l,onClick:o,...n}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=i===void 0?!1:i,{hasSub:c,toggleOpen:d}=_(),u=!r;let m;e[7]!==s||e[8]!==r||e[9]!==u?(m=b.cn(H,{"cursor-pointer text-gray-1200 hover:bg-gray-300":u,"ox-default-disabled":r},s),e[7]=s,e[8]=r,e[9]=u,e[10]=m):m=e[10];const f=m;let p;e[11]!==r||e[12]!==c||e[13]!==o||e[14]!==d?(p=y=>{if(r){y.preventDefault();return}if(c){y.preventDefault(),d();return}o?.(y)},e[11]=r,e[12]=c,e[13]=o,e[14]=d,e[15]=p):p=e[15];const h=p,v=r?"true":void 0,O=r?void 0:l;let S;return e[16]!==t||e[17]!==h||e[18]!==f||e[19]!==n||e[20]!==v||e[21]!==O?(S=x.jsx("a",{"aria-disabled":v,className:f,"data-ox-slot":"sidebar-menu-button",href:O,onClick:h,...n,children:t}),e[16]=t,e[17]=h,e[18]=f,e[19]=n,e[20]=v,e[21]=O,e[22]=S):S=e[22],S},Oe=a=>{const e=g.compilerRuntimeExports.c(24);let t,s,l,o,n,i;e[0]!==a?({children:t,className:s,disabled:n,onClick:l,type:i,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n,e[6]=i):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5],i=e[6]);const r=n===void 0?!1:n,c=i===void 0?"button":i,{hasSub:d,isOpen:u,toggleOpen:m}=_();let f;e[7]!==s?(f=b.cn(H,"enabled:cursor-pointer enabled:text-gray-1200 enabled:hover:bg-gray-300","disabled:ox-default-disabled",s),e[7]=s,e[8]=f):f=e[8];const p=f;let h;e[9]!==d||e[10]!==l||e[11]!==m?(h=y=>{if(d){m();return}l?.(y)},e[9]=d,e[10]=l,e[11]=m,e[12]=h):h=e[12];const v=h;let O;e[13]!==d||e[14]!==u?(O=d?x.jsx(D,{className:b.cn("ml-auto transition-transform duration-200",{"rotate-180":u}),path:"mdiChevronDown"}):null,e[13]=d,e[14]=u,e[15]=O):O=e[15];let S;return e[16]!==p||e[17]!==t||e[18]!==r||e[19]!==v||e[20]!==o||e[21]!==O||e[22]!==c?(S=x.jsxs("button",{className:p,"data-ox-slot":"sidebar-menu-button",disabled:r,type:c,onClick:v,...o,children:[t,O]}),e[16]=p,e[17]=t,e[18]=r,e[19]=v,e[20]=o,e[21]=O,e[22]=c,e[23]=S):S=e[23],S},Se=a=>{const e=g.compilerRuntimeExports.c(2);let t;return e[0]!==a?(t=ge(a)?x.jsx(ve,{...a}):x.jsx(Oe,{...a}),e[0]=a,e[1]=t):t=e[1],t};function ye(a){const e=g.compilerRuntimeExports.c(7),{children:t,defaultOpen:s,hasSub:l}=a,o=s===void 0?!1:s,n=l===void 0?!1:l,[i,r]=N.useState(o);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>r(Ne),e[0]=c):c=e[0];const d=c;let u;e[1]!==n||e[2]!==i?(u={hasSub:n,isOpen:i,setIsOpen:r,toggleOpen:d},e[1]=n,e[2]=i,e[3]=u):u=e[3];let m;return e[4]!==t||e[5]!==u?(m=x.jsx(A.Provider,{value:u,children:t}),e[4]=t,e[5]=u,e[6]=m):m=e[6],m}function Ne(a){return!a}const je=a=>{const e=g.compilerRuntimeExports.c(16);let t,s,l,o,n;e[0]!==a?({children:t,className:s,defaultOpen:o,hasSub:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o,e[5]=n):(t=e[1],s=e[2],l=e[3],o=e[4],n=e[5]);const i=o===void 0?!1:o,r=n===void 0?!1:n;let c;e[6]!==s?(c=b.cn("group flex flex-wrap items-center gap-x-2",s),e[6]=s,e[7]=c):c=e[7];let d;e[8]!==t||e[9]!==l||e[10]!==c?(d=x.jsx("li",{className:c,"data-ox-slot":"sidebar-menu-item",...l,children:t}),e[8]=t,e[9]=l,e[10]=c,e[11]=d):d=e[11];let u;return e[12]!==i||e[13]!==r||e[14]!==d?(u=x.jsx(ye,{defaultOpen:i,hasSub:r,children:d}),e[12]=i,e[13]=r,e[14]=d,e[15]=u):u=e[15],u},Ee=a=>{const e=g.compilerRuntimeExports.c(2),{className:t}=a;let s;return e[0]!==t?(s=x.jsx(b.OxSkeleton,{className:t,"data-ox-slot":"sidebar-menu-skeleton",fullWidth:!0,height:36}),e[0]=t,e[1]=s):s=e[1],s},Ce=a=>{const e=g.compilerRuntimeExports.c(13);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);const{isOpen:o}=_(),n=o?"open":"closed";let i;e[4]!==s?(i=b.cn("ml-4.5 flex flex-col gap-1 border-l border-gray-400 py-0.5 pl-2.5",s),e[4]=s,e[5]=i):i=e[5];let r;e[6]!==t||e[7]!==l||e[8]!==i?(r=x.jsx("ul",{className:i,"data-ox-slot":"sidebar-menu-sub",...l,children:t}),e[6]=t,e[7]=l,e[8]=i,e[9]=r):r=e[9];let c;return e[10]!==n||e[11]!==r?(c=x.jsx("div",{className:"ox-sidebar-submenu w-content grid w-full","data-ox-slot":"sidebar-menu-sub-wrapper","data-ox-state":n,children:r}),e[10]=n,e[11]=r,e[12]=c):c=e[12],c},we=a=>{const e=g.compilerRuntimeExports.c(16);let t,s,l,o;e[0]!==a?({children:t,className:s,href:o,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let n;e[5]!==s?(n=b.cn("flex h-8 flex-1 cursor-pointer items-center gap-2 rounded-lg border border-transparent bg-transparent px-2 text-left text-sm text-gray-1200 hover:bg-gray-300","ox-gray-outset-focus",s),e[5]=s,e[6]=n):n=e[6];const i=n;if(o){const c=l;let d;return e[7]!==i||e[8]!==t||e[9]!==o||e[10]!==c?(d=x.jsx("a",{className:i,"data-ox-slot":"sidebar-menu-sub-button",href:o,...c,children:t}),e[7]=i,e[8]=t,e[9]=o,e[10]=c,e[11]=d):d=e[11],d}let r;return e[12]!==i||e[13]!==t||e[14]!==l?(r=x.jsx("button",{className:i,"data-ox-slot":"sidebar-menu-sub-button",type:"button",...l,children:t}),e[12]=i,e[13]=t,e[14]=l,e[15]=r):r=e[15],r},$e=a=>{const e=g.compilerRuntimeExports.c(10);let t,s,l;e[0]!==a?({children:t,className:s,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=l):(t=e[1],s=e[2],l=e[3]);let o;e[4]!==s?(o=b.cn("flex items-center gap-2",s),e[4]=s,e[5]=o):o=e[5];let n;return e[6]!==t||e[7]!==l||e[8]!==o?(n=x.jsx("li",{className:o,"data-ox-slot":"sidebar-menu-sub-item",...l,children:t}),e[6]=t,e[7]=l,e[8]=o,e[9]=n):n=e[9],n},Pe=a=>{const e=g.compilerRuntimeExports.c(6);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;return e[3]!==t||e[4]!==s?(l=x.jsx(b.OxSeparator,{className:t,"data-ox-slot":"sidebar-separator",...s}),e[3]=t,e[4]=s,e[5]=l):l=e[5],l},Re=a=>{const e=g.compilerRuntimeExports.c(12),{className:t,onClick:s}=a,{isMobile:l,toggleSidebar:o}=R();let n;e[0]!==l||e[1]!==s||e[2]!==o?(n=()=>{l?o():s&&s()},e[0]=l,e[1]=s,e[2]=o,e[3]=n):n=e[3];const i=n,r=l||s;let c;e[4]!==t||e[5]!==r?(c=b.cn("inline-flex size-8 items-center justify-center rounded-lg","border border-transparent bg-transparent text-gray-1200",{"ox-gray-outset-focus cursor-pointer hover:bg-gray-300":r},t),e[4]=t,e[5]=r,e[6]=c):c=e[6];const d=!r;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx(b.OxIcon,{path:"mdiDockLeft",size:.8}),e[7]=u):u=e[7];let m;return e[8]!==i||e[9]!==c||e[10]!==d?(m=x.jsx("button",{"aria-label":"Toggle sidebar",className:c,"data-ox-slot":"sidebar-trigger",disabled:d,type:"button",onClick:i,children:u}),e[8]=i,e[9]=c,e[10]=d,e[11]=m):m=e[11],m};function Me(a){const e=g.compilerRuntimeExports.c(11),{children:t}=a,[s,l]=N.useState(!1),[o,n]=N.useState(!1);let i,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const O=()=>{n(window.innerWidth<b.MOBILE_BREAKPOINT)};return O(),window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},r=[],e[0]=i,e[1]=r):(i=e[0],r=e[1]),N.useEffect(i,r);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{l(!0)},e[2]=c):c=e[2];const d=c;let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{l(!1)},e[3]=u):u=e[3];const m=u;let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{l(_e)},e[4]=f):f=e[4];const p=f;let h;e[5]!==o||e[6]!==s?(h={closeSidebar:m,isMobile:o,mobileOpen:s,openSidebar:d,toggleSidebar:p},e[5]=o,e[6]=s,e[7]=h):h=e[7];let v;return e[8]!==t||e[9]!==h?(v=x.jsx(z.Provider,{value:h,children:t}),e[8]=t,e[9]=h,e[10]=v):v=e[10],v}function _e(a){return!a}const C=re,j=fe,M=de;C.Header=be;C.Content=ie;C.Footer=ce;C.Separator=Pe;C.Trigger=Re;j.Item=je;j.Button=Se;j.Icon=D;j.Badge=he;j.Action=pe;j.Skeleton=Ee;j.Sub=Ce;j.SubItem=$e;j.SubButton=we;M.Label=me;M.Action=xe;M.Content=ue;exports.OxAppLayout=te;exports.OxLegacyHeader=G;exports.OxLegacyMainContent=ee;exports.OxLegacySidebar=E;exports.OxMainContent=ne;exports.OxSidebar=C;exports.OxSidebarGroup=M;exports.OxSidebarMenu=j;exports.OxSidebarProvider=Me;exports.useOxSidebar=R;
@@ -1,4 +1,4 @@
1
- import { a0 as p, e as M, a2 as B, i as I, m as L, a3 as Q, c as U, w as X, v as Z } from "../chunks/ui-D6kNTsYs.js";
1
+ import { a0 as p, e as M, a2 as B, i as I, m as L, a3 as Q, c as U, w as X, v as Z } from "../chunks/ui-EIFtXB52.js";
2
2
  import { jsx as b, jsxs as C } from "react/jsx-runtime";
3
3
  import { d as g } from "../chunks/hooks-CUNBk2tZ.js";
4
4
  import { createContext as z, useState as E, useEffect as j, useContext as T } from "react";
package/dist/onyx.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./chunks/ui-BohXdfTx.js");exports.OxAccordion=x.OxAccordion;exports.OxAlert=x.OxAlert;exports.OxAvatar=x.OxAvatar;exports.OxBadge=x.OxBadge;exports.OxBreadcrumb=x.OxBreadcrumb;exports.OxButton=x.OxButton;exports.OxCalendar=x.OxCalendar;exports.OxCard=x.OxCard;exports.OxCheckbox=x.OxCheckbox;exports.OxDateInput=x.OxDateInput;exports.OxDescription=x.OxDescription;exports.OxDescriptionList=x.OxDescriptionList;exports.OxDialog=x.OxDialog;exports.OxDrawer=x.OxDrawer;exports.OxDropdown=x.OxDropdown;exports.OxError=x.OxError;exports.OxFileUpload=x.OxFileUpload;exports.OxFloating=x.OxFloating;exports.OxFloatingContext=x.OxFloatingContext;exports.OxForm=x.OxForm;exports.OxHeading=x.OxHeading;exports.OxIcon=x.OxIcon;exports.OxJsonField=x.OxJsonField;exports.OxLabel=x.OxLabel;exports.OxLegend=x.OxLegend;exports.OxLink=x.OxLink;exports.OxNotifications=x.OxNotifications;exports.OxNumberInput=x.OxNumberInput;exports.OxOtpInput=x.OxOtpInput;exports.OxPagination=x.OxPagination;exports.OxPopover=x.OxPopover;exports.OxProgress=x.OxProgress;exports.OxRadio=x.OxRadio;exports.OxSelect=x.OxSelect;exports.OxSeparator=x.OxSeparator;exports.OxSkeleton=x.OxSkeleton;exports.OxSkeletonText=x.OxSkeletonText;exports.OxSlider=x.OxSlider;exports.OxSpinner=x.OxSpinner;exports.OxStatusDisplay=x.OxStatusDisplay;exports.OxStepper=x.OxStepper;exports.OxSwitch=x.OxSwitch;exports.OxTable=x.OxTable;exports.OxTabs=x.OxTabs;exports.OxTextInput=x.OxTextInput;exports.OxTextarea=x.OxTextarea;exports.OxTimeInput=x.OxTimeInput;exports.OxTimeline=x.OxTimeline;exports.OxToast=x.OxToast;exports.OxToastProvider=x.OxToastProvider;exports.OxToggle=x.OxToggle;exports.OxTooltip=x.OxTooltip;exports.useOxFloatingContext=x.useOxFloatingContext;exports.useOxToast=x.useOxToast;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./chunks/ui-D5_nwdB5.js");exports.OxAccordion=x.OxAccordion;exports.OxAlert=x.OxAlert;exports.OxAvatar=x.OxAvatar;exports.OxBadge=x.OxBadge;exports.OxBreadcrumb=x.OxBreadcrumb;exports.OxButton=x.OxButton;exports.OxCalendar=x.OxCalendar;exports.OxCard=x.OxCard;exports.OxCheckbox=x.OxCheckbox;exports.OxDateInput=x.OxDateInput;exports.OxDescription=x.OxDescription;exports.OxDescriptionList=x.OxDescriptionList;exports.OxDialog=x.OxDialog;exports.OxDrawer=x.OxDrawer;exports.OxDropdown=x.OxDropdown;exports.OxError=x.OxError;exports.OxFileUpload=x.OxFileUpload;exports.OxFloating=x.OxFloating;exports.OxFloatingContext=x.OxFloatingContext;exports.OxForm=x.OxForm;exports.OxHeading=x.OxHeading;exports.OxIcon=x.OxIcon;exports.OxJsonField=x.OxJsonField;exports.OxLabel=x.OxLabel;exports.OxLegend=x.OxLegend;exports.OxLink=x.OxLink;exports.OxNotifications=x.OxNotifications;exports.OxNumberInput=x.OxNumberInput;exports.OxOtpInput=x.OxOtpInput;exports.OxPagination=x.OxPagination;exports.OxPopover=x.OxPopover;exports.OxProgress=x.OxProgress;exports.OxRadio=x.OxRadio;exports.OxSelect=x.OxSelect;exports.OxSeparator=x.OxSeparator;exports.OxSkeleton=x.OxSkeleton;exports.OxSkeletonText=x.OxSkeletonText;exports.OxSlider=x.OxSlider;exports.OxSpinner=x.OxSpinner;exports.OxStatusDisplay=x.OxStatusDisplay;exports.OxStepper=x.OxStepper;exports.OxSwitch=x.OxSwitch;exports.OxTable=x.OxTable;exports.OxTabs=x.OxTabs;exports.OxTextInput=x.OxTextInput;exports.OxTextarea=x.OxTextarea;exports.OxTimeInput=x.OxTimeInput;exports.OxTimeline=x.OxTimeline;exports.OxToast=x.OxToast;exports.OxToastProvider=x.OxToastProvider;exports.OxToggle=x.OxToggle;exports.OxTooltip=x.OxTooltip;exports.useOxFloatingContext=x.useOxFloatingContext;exports.useOxToast=x.useOxToast;
package/dist/onyx.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { O as x, a as O, b as e, c as t, d as o, e as r, f as i, g as n, K as l, N as p, X as d, h as T, p as g, i as u, j as c, Y as S, L as D, k as b, l as m, M as F, Z as I, m as C, n as k, _ as L, $ as P, o as v, q as w, P as A, Q as B, r as f, s as h, t as N, T as y, U as E, v as H, w as J, x as R, y as U, z as j, A as q, B as z, V as G, C as K, D as M, R as Q, W as V, S as W, E as X, H as Y, F as Z, I as _, J as $, u as aa, G as sa } from "./chunks/ui-D6kNTsYs.js";
1
+ import { O as x, a as O, b as e, c as t, d as o, e as r, f as i, g as n, K as l, N as p, X as d, h as T, p as g, i as u, j as c, Y as S, L as D, k as b, l as m, M as F, Z as I, m as C, n as k, _ as L, $ as P, o as v, q as w, P as A, Q as B, r as f, s as h, t as N, T as y, U as E, v as H, w as J, x as R, y as U, z as j, A as q, B as z, V as G, C as K, D as M, R as Q, W as V, S as W, E as X, H as Y, F as Z, I as _, J as $, u as aa, G as sa } from "./chunks/ui-EIFtXB52.js";
2
2
  export {
3
3
  x as OxAccordion,
4
4
  O as OxAlert,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../chunks/ui-BohXdfTx.js"),s=require("react/jsx-runtime"),H=require("../chunks/hooks-UiKjBucd.js"),X=require("@apollo/client");require("react");const Y=require("../chunks/query-CIsrxNi-.js"),Z=X.gql`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../chunks/ui-D5_nwdB5.js"),s=require("react/jsx-runtime"),H=require("../chunks/hooks-UiKjBucd.js"),X=require("@apollo/client");require("react");const Y=require("../chunks/query-CIsrxNi-.js"),Z=X.gql`
2
2
  mutation Login($input: LoginInput!) {
3
3
  login(input: $input) {
4
4
  success
@@ -1,4 +1,4 @@
1
- import { a0 as Z, R as r, M as H, Y as ee, e as te, a1 as se, _ as K } from "../chunks/ui-D6kNTsYs.js";
1
+ import { a0 as Z, R as r, M as H, Y as ee, e as te, a1 as se, _ as K } from "../chunks/ui-EIFtXB52.js";
2
2
  import { jsx as s, jsxs as o } from "react/jsx-runtime";
3
3
  import { d as ie, q as ae } from "../chunks/hooks-CUNBk2tZ.js";
4
4
  import { gql as re } from "@apollo/client";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/ui-BohXdfTx.js");const d=require("../chunks/useAuth-DxoDe3YA.js"),a=require("../chunks/hooks-UiKjBucd.js"),g=u=>{const{children:i,onAuthenticated:n,onLoading:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?r:s?o:i},h=u=>{const{children:i,onLoading:n,onUnauthenticated:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?o:s?i:r},O=u=>{const{children:i,onLoading:n,onUnauthorized:t,roles:o}=u,r=n===void 0?null:n,s=t===void 0?null:t,e=o===void 0?["admin"]:o,{loading:l,user:c}=d.useOxAuth();return l?r:!c||a.isEmpty(e)||!e.includes(c.role)?s:i};exports.OxGuestRoute=g;exports.OxProtectedRoute=h;exports.OxRoleRoute=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../chunks/ui-D5_nwdB5.js");const d=require("../chunks/useAuth-DxoDe3YA.js"),a=require("../chunks/hooks-UiKjBucd.js"),g=u=>{const{children:i,onAuthenticated:n,onLoading:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?r:s?o:i},h=u=>{const{children:i,onLoading:n,onUnauthenticated:t}=u,o=n===void 0?null:n,r=t===void 0?null:t,{isLoggedIn:s,loading:e}=d.useOxAuth();return e?o:s?i:r},O=u=>{const{children:i,onLoading:n,onUnauthorized:t,roles:o}=u,r=n===void 0?null:n,s=t===void 0?null:t,e=o===void 0?["admin"]:o,{loading:l,user:c}=d.useOxAuth();return l?r:!c||a.isEmpty(e)||!e.includes(c.role)?s:i};exports.OxGuestRoute=g;exports.OxProtectedRoute=h;exports.OxRoleRoute=O;
@@ -1,4 +1,4 @@
1
- import "../chunks/ui-D6kNTsYs.js";
1
+ import "../chunks/ui-EIFtXB52.js";
2
2
  import { u as s } from "../chunks/useAuth-BFgXzu6Q.js";
3
3
  import { v as a } from "../chunks/hooks-CUNBk2tZ.js";
4
4
  const v = (e) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/ui-BohXdfTx.js");exports.buildMailTo=r.buildMailTo;exports.buildUrl=r.buildUrl;exports.cn=r.cn;exports.copyToClipboard=r.copyToClipboard;exports.createId=r.createId;exports.formatBytes=r.formatBytes;exports.formatCurrency=r.formatCurrency;exports.formatDate=r.formatDate;exports.formatNumber=r.formatNumber;exports.formatTimestamp=r.formatTimestamp;exports.generateRandomString=r.generateRandomString;exports.handleFormErrors=r.handleFormErrors;exports.handleGraphQLFormErrors=r.handleGraphQLFormErrors;exports.hasDataSlot=r.hasDataSlot;exports.parseGraphQLErrors=r.parseGraphQLErrors;exports.scrollToElement=r.scrollToElement;exports.validateEmail=r.validateEmail;exports.validatePhone=r.validatePhone;exports.validateUrl=r.validateUrl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/ui-D5_nwdB5.js");exports.buildMailTo=r.buildMailTo;exports.buildUrl=r.buildUrl;exports.cn=r.cn;exports.copyToClipboard=r.copyToClipboard;exports.createId=r.createId;exports.formatBytes=r.formatBytes;exports.formatCurrency=r.formatCurrency;exports.formatDate=r.formatDate;exports.formatNumber=r.formatNumber;exports.formatTimestamp=r.formatTimestamp;exports.generateRandomString=r.generateRandomString;exports.handleFormErrors=r.handleFormErrors;exports.handleGraphQLFormErrors=r.handleGraphQLFormErrors;exports.hasDataSlot=r.hasDataSlot;exports.parseGraphQLErrors=r.parseGraphQLErrors;exports.scrollToElement=r.scrollToElement;exports.validateEmail=r.validateEmail;exports.validatePhone=r.validatePhone;exports.validateUrl=r.validateUrl;
@@ -1,4 +1,4 @@
1
- import { a5 as s, a4 as e, a0 as o, a6 as t, a7 as l, ab as m, ac as d, ad as i, ae as n, af as f, a8 as h, a9 as p, a1 as c, ag as b, aa as E, ah as u, ai as T, ak as g, aj as v } from "../chunks/ui-D6kNTsYs.js";
1
+ import { a5 as s, a4 as e, a0 as o, a6 as t, a7 as l, ab as m, ac as d, ad as i, ae as n, af as f, a8 as h, a9 as p, a1 as c, ag as b, aa as E, ah as u, ai as T, ak as g, aj as v } from "../chunks/ui-EIFtXB52.js";
2
2
  export {
3
3
  s as buildMailTo,
4
4
  e as buildUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxickon/onyx",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "main": "./dist/onyx.umd.js",
6
6
  "module": "./dist/onyx.es.js",