@noxickon/onyx 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{ui-DaFpw1V6.js → ui-C-FlF6Nz.js} +2 -2
- package/dist/chunks/{ui-Dfv80f9y.js → ui-DtOB5MIE.js} +1 -1
- package/dist/contexts/contexts.cjs.js +1 -1
- package/dist/contexts/contexts.es.js +1 -1
- package/dist/layouts/layouts.cjs.js +1 -1
- package/dist/layouts/layouts.es.js +1 -1
- package/dist/onyx.cjs.js +1 -1
- package/dist/onyx.es.js +1 -1
- package/dist/pages/pages.cjs.js +1 -1
- package/dist/pages/pages.es.js +1 -1
- package/dist/routes/routes.cjs.js +1 -1
- package/dist/routes/routes.es.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/utils/utils.cjs.js +1 -1
- package/dist/utils/utils.es.js +1 -1
- package/package.json +7 -7
|
@@ -17,4 +17,4 @@ object-assign
|
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
19
|
*/var Or,Io;function Id(){if(Io)return Or;Io=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function s(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var i=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(i.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Or=s()?Object.assign:function(n,a){for(var l,i=o(n),c,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var u in l)e.call(l,u)&&(i[u]=l[u]);if(t){c=t(l);for(var f=0;f<c.length;f++)r.call(l,c[f])&&(i[c[f]]=l[c[f]])}}return i},Or}var jr,$o;function eo(){if($o)return jr;$o=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jr=t,jr}var Sr,Lo;function Ys(){return Lo||(Lo=1,Sr=Function.call.bind(Object.prototype.hasOwnProperty)),Sr}var Tr,_o;function $d(){if(_o)return Tr;_o=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=eo(),r={},o=Ys();t=function(n){var a="Warning: "+n;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(n,a,l,i,c){if(process.env.NODE_ENV!=="production"){for(var d in n)if(o(n,d)){var u;try{if(typeof n[d]!="function"){var f=Error((i||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=n[d](a,d,i,l,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((i||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in r)){r[u.message]=!0;var x=c?c():"";t("Failed "+l+" type: "+u.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Tr=s,Tr}var Pr,Vo;function Ld(){if(Vo)return Pr;Vo=1;var t=Bs(),e=Id(),r=eo(),o=Ys(),s=$d(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(l){var i="Warning: "+l;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}});function a(){return null}return Pr=function(l,i){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(R){var $=R&&(c&&R[c]||R[d]);if(typeof $=="function")return $}var f="<<anonymous>>",x={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:y(),arrayOf:v,element:k(),elementType:w(),instanceOf:C,node:j(),objectOf:E,oneOf:N,oneOfType:O,shape:T,exact:P};function m(R,$){return R===$?R!==0||1/R===1/$:R!==R&&$!==$}function h(R,$){this.message=R,this.data=$&&typeof $=="object"?$:{},this.stack=""}h.prototype=Error.prototype;function g(R){if(process.env.NODE_ENV!=="production")var $={},Y=0;function H(G,Q,q,Z,K,U,X){if(Z=Z||f,U=U||q,X!==r){if(i){var B=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 B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=Z+":"+q;!$[te]&&Y<3&&(n("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+Z+"`. 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."),$[te]=!0,Y++)}}return Q[q]==null?G?Q[q]===null?new h("The "+K+" `"+U+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new h("The "+K+" `"+U+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:R(Q,q,Z,K,U)}var W=H.bind(null,!1);return W.isRequired=H.bind(null,!0),W}function b(R){function $(Y,H,W,G,Q,q){var Z=Y[H],K=V(Z);if(K!==R){var U=F(Z);return new h("Invalid "+G+" `"+Q+"` of type "+("`"+U+"` supplied to `"+W+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return g($)}function y(){return g(a)}function v(R){function $(Y,H,W,G,Q){if(typeof R!="function")return new h("Property `"+Q+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var q=Y[H];if(!Array.isArray(q)){var Z=V(q);return new h("Invalid "+G+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+W+"`, expected an array."))}for(var K=0;K<q.length;K++){var U=R(q,K,W,G,Q+"["+K+"]",r);if(U instanceof Error)return U}return null}return g($)}function k(){function R($,Y,H,W,G){var Q=$[Y];if(!l(Q)){var q=V(Q);return new h("Invalid "+W+" `"+G+"` of type "+("`"+q+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return g(R)}function w(){function R($,Y,H,W,G){var Q=$[Y];if(!t.isValidElementType(Q)){var q=V(Q);return new h("Invalid "+W+" `"+G+"` of type "+("`"+q+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return g(R)}function C(R){function $(Y,H,W,G,Q){if(!(Y[H]instanceof R)){var q=R.name||f,Z=z(Y[H]);return new h("Invalid "+G+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+W+"`, expected ")+("instance of `"+q+"`."))}return null}return g($)}function N(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("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])."):n("Invalid argument supplied to oneOf, expected an array.")),a;function $(Y,H,W,G,Q){for(var q=Y[H],Z=0;Z<R.length;Z++)if(m(q,R[Z]))return null;var K=JSON.stringify(R,function(X,B){var te=F(B);return te==="symbol"?String(B):B});return new h("Invalid "+G+" `"+Q+"` of value `"+String(q)+"` "+("supplied to `"+W+"`, expected one of "+K+"."))}return g($)}function E(R){function $(Y,H,W,G,Q){if(typeof R!="function")return new h("Property `"+Q+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var q=Y[H],Z=V(q);if(Z!=="object")return new h("Invalid "+G+" `"+Q+"` of type "+("`"+Z+"` supplied to `"+W+"`, expected an object."));for(var K in q)if(o(q,K)){var U=R(q,K,W,G,Q+"."+K,r);if(U instanceof Error)return U}return null}return g($)}function O(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<R.length;$++){var Y=R[$];if(typeof Y!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(Y)+" at index "+$+"."),a}function H(W,G,Q,q,Z){for(var K=[],U=0;U<R.length;U++){var X=R[U],B=X(W,G,Q,q,Z,r);if(B==null)return null;B.data&&o(B.data,"expectedType")&&K.push(B.data.expectedType)}var te=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new h("Invalid "+q+" `"+Z+"` supplied to "+("`"+Q+"`"+te+"."))}return g(H)}function j(){function R($,Y,H,W,G){return M($[Y])?null:new h("Invalid "+W+" `"+G+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return g(R)}function S(R,$,Y,H,W){return new h((R||"React class")+": "+$+" type `"+Y+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function T(R){function $(Y,H,W,G,Q){var q=Y[H],Z=V(q);if(Z!=="object")return new h("Invalid "+G+" `"+Q+"` of type `"+Z+"` "+("supplied to `"+W+"`, expected `object`."));for(var K in R){var U=R[K];if(typeof U!="function")return S(W,G,Q,K,F(U));var X=U(q,K,W,G,Q+"."+K,r);if(X)return X}return null}return g($)}function P(R){function $(Y,H,W,G,Q){var q=Y[H],Z=V(q);if(Z!=="object")return new h("Invalid "+G+" `"+Q+"` of type `"+Z+"` "+("supplied to `"+W+"`, expected `object`."));var K=e({},Y[H],R);for(var U in K){var X=R[U];if(o(R,U)&&typeof X!="function")return S(W,G,Q,U,F(X));if(!X)return new h("Invalid "+G+" `"+Q+"` key `"+U+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(Y[H],null," ")+`
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(R),null," "));var B=X(q,U,W,G,Q+"."+U,r);if(B)return B}return null}return g($)}function M(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(M);if(R===null||l(R))return!0;var $=u(R);if($){var Y=$.call(R),H;if($!==R.entries){for(;!(H=Y.next()).done;)if(!M(H.value))return!1}else for(;!(H=Y.next()).done;){var W=H.value;if(W&&!M(W[1]))return!1}}else return!1;return!0;default:return!1}}function I(R,$){return R==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function V(R){var $=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":I($,R)?"symbol":$}function F(R){if(typeof R>"u"||R===null)return""+R;var $=V(R);if($==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return $}function L(R){var $=F(R);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function z(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},Pr}var Mr,zo;function _d(){if(zo)return Mr;zo=1;var t=eo();function e(){}function r(){}return r.resetWarningCache=e,Mr=function(){function o(a,l,i,c,d,u){if(u!==t){var f=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 f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var n={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:e};return n.PropTypes=n,n},Mr}var Fo;function Vd(){if(Fo)return Bt.exports;if(Fo=1,process.env.NODE_ENV!=="production"){var t=Bs(),e=!0;Bt.exports=Ld()(t.isElement,e)}else Bt.exports=_d()();return Bt.exports}var Rr,Ho;function zd(){return Ho||(Ho=1,Rr=(function(t){var e={};function r(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=e,r.d=function(o,s,n){r.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:n})},r.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},r.t=function(o,s){if(1&s&&(o=r(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var a in o)r.d(n,a,(function(l){return o[l]}).bind(null,a));return n},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=2)})([function(t,e){t.exports=Vd()},function(t,e){t.exports=_},function(t,e,r){r.r(e);var o=r(1),s=r(0),n=function(){return(n=Object.assign||function(m){for(var h,g=1,b=arguments.length;g<b;g++)for(var y in h=arguments[g])Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y]);return m}).apply(this,arguments)},a=function(m,h){var g={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&h.indexOf(b)<0&&(g[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var y=0;for(b=Object.getOwnPropertySymbols(m);y<b.length;y++)h.indexOf(b[y])<0&&Object.prototype.propertyIsEnumerable.call(m,b[y])&&(g[b[y]]=m[b[y]])}return g},l=0,i=o.forwardRef((function(m,h){var g=m.title,b=g===void 0?null:g,y=m.description,v=y===void 0?null:y,k=m.size,w=k===void 0?null:k,C=m.color,N=C===void 0?"currentColor":C,E=m.horizontal,O=E===void 0?null:E,j=m.vertical,S=j===void 0?null:j,T=m.rotate,P=T===void 0?null:T,M=m.spin,I=M===void 0?null:M,V=m.style,F=V===void 0?{}:V,L=m.children,z=a(m,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);l++;var R,$=I!==null&&I,Y=o.Children.map(L,(function(Q){var q=Q;$!==!0&&($=(I===null?q.props.spin:I)===!0);var Z=q.props.size;typeof w=="number"&&typeof q.props.size=="number"&&(Z=q.props.size/w);var K={size:Z,color:N===null?q.props.color:N,horizontal:O===null?q.props.horizontal:O,vertical:S===null?q.props.vertical:S,rotate:P===null?q.props.rotate:P,spin:I===null?q.props.spin:I,inStack:!0};return o.cloneElement(q,K)}));w!==null&&(F.width=typeof w=="string"?w:1.5*w+"rem");var H,W="stack_labelledby_"+l,G="stack_describedby_"+l;if(b)R=v?W+" "+G:W;else if(H="presentation",v)throw new Error("title attribute required when description is set");return o.createElement("svg",n({ref:h,viewBox:"0 0 24 24",style:F,role:H,"aria-labelledby":R},z),b&&o.createElement("title",{id:W},b),v&&o.createElement("desc",{id:G},v),$&&o.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),Y)}));i.displayName="Stack",i.propTypes={size:s.oneOfType([s.number,s.string]),color:s.string,horizontal:s.bool,vertical:s.bool,rotate:s.number,spin:s.oneOfType([s.bool,s.number]),children:s.oneOfType([s.arrayOf(s.node),s.node]).isRequired,className:s.string,style:s.object},i.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var c=i;r.d(e,"Icon",(function(){return x})),r.d(e,"Stack",(function(){return c}));var d=function(){return(d=Object.assign||function(m){for(var h,g=1,b=arguments.length;g<b;g++)for(var y in h=arguments[g])Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y]);return m}).apply(this,arguments)},u=function(m,h){var g={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&h.indexOf(b)<0&&(g[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var y=0;for(b=Object.getOwnPropertySymbols(m);y<b.length;y++)h.indexOf(b[y])<0&&Object.prototype.propertyIsEnumerable.call(m,b[y])&&(g[b[y]]=m[b[y]])}return g},f=0,x=o.forwardRef((function(m,h){var g=m.path,b=m.id,y=b===void 0?++f:b,v=m.title,k=v===void 0?null:v,w=m.description,C=w===void 0?null:w,N=m.size,E=N===void 0?null:N,O=m.color,j=O===void 0?"currentColor":O,S=m.horizontal,T=S!==void 0&&S,P=m.vertical,M=P!==void 0&&P,I=m.rotate,V=I===void 0?0:I,F=m.spin,L=F!==void 0&&F,z=m.style,R=z===void 0?{}:z,$=m.inStack,Y=$!==void 0&&$,H=u(m,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),W={},G=[];E!==null&&(Y?G.push("scale("+E+")"):(R.width=typeof E=="string"?E:1.5*E+"rem",R.height=R.width)),T&&G.push("scaleX(-1)"),M&&G.push("scaleY(-1)"),V!==0&&G.push("rotate("+V+"deg)"),j!==null&&(W.fill=j);var Q=o.createElement("path",d({d:g,style:W},Y?H:{})),q=Q;G.length>0&&(R.transform=G.join(" "),R.transformOrigin="center",Y&&(q=o.createElement("g",{style:R},Q,o.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var Z,K=q,U=L===!0||typeof L!="number"?2:L,X=!Y&&(T||M);if(U<0&&(X=!X),L&&(K=o.createElement("g",{style:{animation:"spin"+(X?"-inverse":"")+" linear "+Math.abs(U)+"s infinite",transformOrigin:"center"}},q,!(T||M||V!==0)&&o.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),Y)return K;var B,te="icon_labelledby_"+y,ne="icon_describedby_"+y;if(k)Z=C?te+" "+ne:te;else if(B="presentation",C)throw new Error("title attribute required when description is set");return o.createElement("svg",d({ref:h,viewBox:"0 0 24 24",style:R,role:B,"aria-labelledby":Z},H),k&&o.createElement("title",{id:te},k),C&&o.createElement("desc",{id:ne},C),!Y&&L&&(X?o.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):o.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),K)}));x.displayName="Icon",x.propTypes={path:s.string.isRequired,size:s.oneOfType([s.number,s.string]),color:s.string,horizontal:s.bool,vertical:s.bool,rotate:s.number,spin:s.oneOfType([s.bool,s.number]),style:s.object,inStack:s.bool,className:s.string},x.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},e.default=x}])),Rr}var Fd=zd();const Hd=D.getDefaultExportFromCjs(Fd),ce=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n,a;e[0]!==t?({className:r,path:o,placeholder:n,size:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?.9:a,c=o??Wa,d=!l;let u;e[6]!==r||e[7]!==l||e[8]!==d?(u=A({"text-gray-1200":d,"text-transparent":l},r),e[6]=r,e[7]=l,e[8]=d,e[9]=u):u=e[9];let f;return e[10]!==c||e[11]!==s||e[12]!==i||e[13]!==u?(f=p.jsx(Hd,{"aria-hidden":"true",className:u,"data-ox-slot":"icon","data-testid":"icon",path:c,size:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=u,e[14]=f):f=e[14],f},Qt=t=>{const e=D.compilerRuntimeExports.c(61),{data:r,level:o}=t,[s,n]=_.useState(o>2);let a;e[0]!==o?(a=" ".repeat(o),e[0]=o,e[1]=a):a=e[1];const l=a;if(r===null){let d;return e[2]===Symbol.for("react.memo_cache_sentinel")?(d=p.jsx("span",{className:"text-gray-1000",children:"null"}),e[2]=d):d=e[2],d}if(r===void 0){let d;return e[3]===Symbol.for("react.memo_cache_sentinel")?(d=p.jsx("span",{className:"text-gray-1000",children:"undefined"}),e[3]=d):d=e[3],d}if(typeof r=="string"){let d;return e[4]!==r?(d=p.jsxs("span",{className:pe.green.text,children:['"',r,'"']}),e[4]=r,e[5]=d):d=e[5],d}if(typeof r=="number"){let d;return e[6]!==r?(d=p.jsx("span",{className:pe.blue.text,children:r}),e[6]=r,e[7]=d):d=e[7],d}if(typeof r=="boolean"){let d;e[8]!==r?(d=r.toString(),e[8]=r,e[9]=d):d=e[9];let u;return e[10]!==d?(u=p.jsx("span",{className:pe.amber.text,children:d}),e[10]=d,e[11]=u):u=e[11],u}if(Array.isArray(r)){if(r.length===0){let y;return e[12]===Symbol.for("react.memo_cache_sentinel")?(y=p.jsx("span",{className:pe.gray.text,children:"[]"}),e[12]=y):y=e[12],y}const d=s?"collapsed":"expanded";let u;e[13]!==s?(u=()=>n(!s),e[13]=s,e[14]=u):u=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=p.jsx("span",{className:"text-gray-1200",children:"["}),e[15]=f):f=e[15];let x;e[16]!==s||e[17]!==r.length?(x=s?p.jsxs("span",{className:"ml-1 text-gray-900",children:[r.length," item",r.length!==1?"s":""]}):null,e[16]=s,e[17]=r.length,e[18]=x):x=e[18];let m;e[19]!==d||e[20]!==u||e[21]!==x?(m=p.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":d,onClick:u,children:[f,x]}),e[19]=d,e[20]=u,e[21]=x,e[22]=m):m=e[22];let h;e[23]!==s||e[24]!==r||e[25]!==l||e[26]!==o?(h=s?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ml-4",children:r.map((y,v)=>p.jsxs("div",{className:"block",children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx(Qt,{data:y,level:o+1}),v<r.length-1&&p.jsx("span",{className:"text-gray-1100",children:","})]},v))}),p.jsxs("div",{children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx("span",{className:"text-gray-1200",children:"]"})]})]}),e[23]=s,e[24]=r,e[25]=l,e[26]=o,e[27]=h):h=e[27];let g;e[28]!==s?(g=s&&p.jsx("span",{className:"text-gray-1200",children:"]"}),e[28]=s,e[29]=g):g=e[29];let b;return e[30]!==m||e[31]!==h||e[32]!==g?(b=p.jsxs("div",{className:"inline","data-ox-slot":"json-array",children:[m,h,g]}),e[30]=m,e[31]=h,e[32]=g,e[33]=b):b=e[33],b}if(typeof r=="object"){let d;e[34]!==r?(d=Object.keys(r),e[34]=r,e[35]=d):d=e[35];const u=d;if(u.length===0){let k;return e[36]===Symbol.for("react.memo_cache_sentinel")?(k=p.jsx("span",{className:"text-gray-1100",children:"{}"}),e[36]=k):k=e[36],k}const f=s?"collapsed":"expanded";let x;e[37]!==s?(x=()=>n(!s),e[37]=s,e[38]=x):x=e[38];let m;e[39]===Symbol.for("react.memo_cache_sentinel")?(m=p.jsx("span",{className:"text-gray-1200",children:"{"}),e[39]=m):m=e[39];let h;e[40]!==s||e[41]!==u.length?(h=s?p.jsxs("span",{className:"ml-1 text-gray-1100",children:[u.length," key",u.length!==1?"s":""]}):null,e[40]=s,e[41]=u.length,e[42]=h):h=e[42];let g;e[43]!==f||e[44]!==x||e[45]!==h?(g=p.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":f,onClick:x,children:[m,h]}),e[43]=f,e[44]=x,e[45]=h,e[46]=g):g=e[46];let b;e[47]!==s||e[48]!==r||e[49]!==l||e[50]!==u||e[51]!==o?(b=s?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ml-4",children:u.map((k,w)=>p.jsxs("div",{className:"block",children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsxs("span",{className:"text-gray-1200",children:['"',k,'"']}),p.jsx("span",{className:"text-gray-1100",children:": "}),p.jsx(Qt,{data:r[k],level:o+1}),w<u.length-1&&p.jsx("span",{className:"text-gray-1100",children:","})]},k))}),p.jsxs("div",{children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx("span",{className:"text-gray-1200",children:"}"})]})]}),e[47]=s,e[48]=r,e[49]=l,e[50]=u,e[51]=o,e[52]=b):b=e[52];let y;e[53]!==s?(y=s&&p.jsx("span",{className:"text-gray-1200",children:"}"}),e[53]=s,e[54]=y):y=e[54];let v;return e[55]!==g||e[56]!==b||e[57]!==y?(v=p.jsxs("div",{className:"inline",children:[g,b,y]}),e[55]=g,e[56]=b,e[57]=y,e[58]=v):v=e[58],v}const i=String(r);let c;return e[59]!==i?(c=p.jsx("span",{className:"text-gray-1100",children:i}),e[59]=i,e[60]=c):c=e[60],c},Bd=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s;e[0]!==t?({className:r,value:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const[n,a]=_.useState(!1);let l;e[4]!==s?(l=(()=>{if(s==null)return{parsedData:null,isValid:!0,error:null};if(typeof s=="object")return{parsedData:s,isValid:!0,error:null};if(typeof s=="string")try{return{parsedData:JSON.parse(s),isValid:!0,error:null}}catch(w){const C=w;return{parsedData:null,isValid:!1,error:C instanceof Error?C.message:"Invalid JSON"}}return{parsedData:s,isValid:!0,error:null}})(),e[4]=s,e[5]=l):l=e[5];const{error:i,isValid:c,parsedData:d}=l;let u;e[6]!==d||e[7]!==s?(u=async()=>{const k=typeof s=="string"?s:JSON.stringify(d,null,2);try{await navigator.clipboard.writeText(k),a(!0),setTimeout(()=>a(!1),2e3)}catch(w){console.error("Failed to copy:",w)}},e[6]=d,e[7]=s,e[8]=u):u=e[8];const f=u;let x;e[9]!==r?(x=A("ox-gray-border relative w-full overflow-auto rounded-lg bg-gray-50 p-4 font-mono text-sm",r),e[9]=r,e[10]=x):x=e[10];const m=c?n?"copied":"default":"error",h=n?Br:Ga;let g;e[11]!==h?(g=p.jsx(je.Icon,{path:h}),e[11]=h,e[12]=g):g=e[12];let b;e[13]!==f||e[14]!==g?(b=p.jsx(je,{"aria-label":"Copy JSON to clipboard",className:"absolute top-1 right-1",size:"sm",variant:"ghost",onClick:f,children:g}),e[13]=f,e[14]=g,e[15]=b):b=e[15];let y;e[16]!==i||e[17]!==c||e[18]!==d||e[19]!==s?(y=p.jsx("div",{className:"pr-8 text-gray-1200",children:c?p.jsx(Qt,{data:d,level:0}):p.jsxs("div",{className:"text-rose-400",children:[p.jsx("div",{className:"font-medium",children:"Invalid JSON:"}),p.jsx("div",{className:"mt-1 text-xs text-gray-900",children:i}),p.jsx("div",{className:"mt-2 text-gray-1100",children:p.jsx("pre",{className:"whitespace-pre-wrap",children:s})})]})}),e[16]=i,e[17]=c,e[18]=d,e[19]=s,e[20]=y):y=e[20];let v;return e[21]!==o||e[22]!==x||e[23]!==m||e[24]!==b||e[25]!==y?(v=p.jsxs("div",{className:x,"data-ox-slot":"json-field",...o,"data-ox-state":m,children:[b,y]}),e[21]=o,e[22]=x,e[23]=m,e[24]=b,e[25]=y,e[26]=v):v=e[26],v},qs=Bd;qs.Node=Qt;const Yd={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"},qd={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"},Wd={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"},Gd={sm:`px-1.5 min-w-8 ${he.sm} ${Pe.sm}`,md:`px-2 min-w-10 ${he.md} ${Pe.md}`},Ud=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a,l,i;e[0]!==t?({children:r,className:o,disabled:s,href:a,size:l,variant:i,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=l===void 0?"sm":l,d=i===void 0?"link":i,u=Gd[c],f=Yd[d],x=Wd[d],m=!s,h=qd[d],g=!s;let b;e[8]!==o||e[9]!==s||e[10]!==u||e[11]!==f||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g?(b=A("inline-flex items-center rounded-lg font-medium transition-colors",u,f,{[x]:m,[h]:g,"ox-default-disabled cursor-not-allowed":s},o),e[8]=o,e[9]=s,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b):b=e[16];const y=s?void 0:a,v=s?-1:void 0,k=s?Zd:void 0;let w;return e[17]!==r||e[18]!==s||e[19]!==n||e[20]!==y||e[21]!==v||e[22]!==k||e[23]!==b?(w=p.jsx("a",{"aria-disabled":s,className:b,"data-ox-slot":"link",href:y,tabIndex:v,onClick:k,...n,children:r}),e[17]=r,e[18]=s,e[19]=n,e[20]=y,e[21]=v,e[22]=k,e[23]=b,e[24]=w):w=e[24],w};function Zd(t){return t.preventDefault()}const Ws=_.createContext(null),Qd={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"},Kd=t=>{const e=D.compilerRuntimeExports.c(59);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,closeOnOutsideClick:l,isOpen:n,onClose:a,persistent:i,showCloseButton:c,size:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=l===void 0?!0:l,f=i===void 0?!1:i,x=c===void 0?!0:c,m=d===void 0?"sm":d,h=_.useId(),g=_.useId(),b=_.useRef(null),[y,v]=_.useState(!1);let k;e[10]!==a?(k=Z=>Z?void 0:a?.(),e[10]=a,e[11]=k):k=e[11];let w;e[12]!==n||e[13]!==k?(w={value:n,onChange:k,defaultValue:!1,name:"OxDialog"},e[12]=n,e[13]=k,e[14]=w):w=e[14];const[C,N]=D.useControllableState(w),E=y&&C;let O;e[15]!==E?(O={containerRef:b,options:{enabled:E,restoreFocus:!0,trapFocus:!0,autoFocus:!0}},e[15]=E,e[16]=O):O=e[16],D.useFocus(O);let j;e[17]!==N?(j=()=>N(!1),e[17]=N,e[18]=j):j=e[18];let S;e[19]!==g||e[20]!==f||e[21]!==x||e[22]!==j||e[23]!==h?(S={onClose:j,titleId:h,bodyId:g,persistent:f,showCloseButton:x},e[19]=g,e[20]=f,e[21]=x,e[22]=j,e[23]=h,e[24]=S):S=e[24];const T=S;let P;e[25]!==C||e[26]!==y?(P=Z=>{Z.target===b.current&&!C&&y&&(v(!1),b.current?.close())},e[25]=C,e[26]=y,e[27]=P):P=e[27];const M=P;let I;e[28]!==C||e[29]!==f||e[30]!==N?(I=()=>{f&&C?b.current?.showModal():f||N(!1)},e[28]=C,e[29]=f,e[30]=N,e[31]=I):I=e[31];const V=I;let F,L;e[32]!==C?(F=()=>{C&&v(!0)},L=[C],e[32]=C,e[33]=F,e[34]=L):(F=e[33],L=e[34]),_.useEffect(F,L);let z,R;e[35]!==C||e[36]!==y?(z=()=>{const Z=b.current;if(!(!Z||!y))return C&&(document.body.classList.add("overflow-hidden"),Z.showModal()),Xd},R=[C,y],e[35]=C,e[36]=y,e[37]=z,e[38]=R):(z=e[37],R=e[38]),_.useEffect(z,R);let $,Y;if(e[39]!==u||e[40]!==V||e[41]!==f||e[42]!==y?($=()=>{const Z=b.current;if(!Z||!y)return;const K=B=>{B.key==="Escape"&&f&&(B.preventDefault(),B.stopPropagation())},U=B=>{B.preventDefault(),V()},X=B=>{u&&B.target===Z&&V()};return document.addEventListener("keydown",K),Z.addEventListener("cancel",U),Z.addEventListener("click",X),Z.addEventListener("close",V),()=>{document.removeEventListener("keydown",K),Z.removeEventListener("cancel",U),Z.removeEventListener("click",X),Z.removeEventListener("close",V)}},Y=[y,u,V,f],e[39]=u,e[40]=V,e[41]=f,e[42]=y,e[43]=$,e[44]=Y):($=e[43],Y=e[44]),_.useEffect($,Y),!y)return null;const H=Qd[m];let W;e[45]!==o||e[46]!==H?(W=A("ox-gray-border fixed inset-0 m-auto h-fit w-full rounded-lg bg-gray-50","ox-dialog-animation ox-dialog-backdrop",H,o),e[45]=o,e[46]=H,e[47]=W):W=e[47];const G=C?"open":"closing";let Q;e[48]!==r||e[49]!==T?(Q=p.jsx(Ws.Provider,{value:T,children:r}),e[48]=r,e[49]=T,e[50]=Q):Q=e[50];let q;return e[51]!==g||e[52]!==s||e[53]!==M||e[54]!==W||e[55]!==G||e[56]!==Q||e[57]!==h?(q=Mt.createPortal(p.jsx("dialog",{"aria-describedby":g,"aria-labelledby":h,className:W,"data-ox-slot":"dialog",ref:b,role:"dialog",onAnimationEnd:M,...s,"data-ox-state":G,children:Q}),document.body),e[51]=g,e[52]=s,e[53]=M,e[54]=W,e[55]=G,e[56]=Q,e[57]=h,e[58]=q):q=e[58],q};function Xd(){document.body.classList.remove("overflow-hidden")}const Gs=()=>{const t=_.useContext(Ws);if(!t)throw new Error("Dialog sub-components must be used within OxDialog");return t},Jd=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{bodyId:n}=Gs();let a;e[4]!==o?(a=A("p-4 text-sm text-gray-1200",o),e[4]=o,e[5]=a):a=e[5];let l;return e[6]!==n||e[7]!==r||e[8]!==s||e[9]!==a?(l=p.jsx("div",{id:n,className:a,"data-ox-slot":"dialog-body",...s,children:r}),e[6]=n,e[7]=r,e[8]=s,e[9]=a,e[10]=l):l=e[10],l},e1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("mx-4 flex justify-end gap-3 border-t border-gray-400 py-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"dialog-footer",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},t1=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{onClose:n,persistent:a,showCloseButton:l,titleId:i}=Gs(),c=l&&!a;let d;e[4]!==o?(d=A("mx-4 box-content flex h-8 items-center justify-between border-b border-gray-400 py-4 text-gray-1200",o),e[4]=o,e[5]=d):d=e[5];let u;e[6]!==r?(u=p.jsx("div",{className:"flex-1",children:r}),e[6]=r,e[7]=u):u=e[7];let f;e[8]!==n||e[9]!==c?(f=c?p.jsx(je,{"aria-label":"Close Dialog",size:"sm",variant:"ghost",onClick:n,children:p.jsx(je.Icon,{path:Rt})}):null,e[8]=n,e[9]=c,e[10]=f):f=e[10];let x;return e[11]!==s||e[12]!==d||e[13]!==u||e[14]!==f||e[15]!==i?(x=p.jsxs("div",{id:i,className:d,"data-ox-slot":"dialog-header",...s,children:[u,f]}),e[11]=s,e[12]=d,e[13]=u,e[14]=f,e[15]=i,e[16]=x):x=e[16],x},ar=Kd;ar.Body=Jd;ar.Footer=e1;ar.Header=t1;const Tt=_.createContext(null),lr=()=>{const t=_.useContext(Tt);if(!t)throw new Error("useNotificationsContext must be used within a NotificationsContext.Provider");return t},Us=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({children:r,className:o,icon:n,img:a,message:l,timestamp:d,title:u,type:i,unread:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?"default":i,x=c===void 0?!1:c,{isMobile:m,onItemClick:h,setOpen:g}=lr(),b=Le[f];let y;e[11]!==n||e[12]!==a||e[13]!==m||e[14]!==l||e[15]!==h||e[16]!==g||e[17]!==d||e[18]!==u||e[19]!==f||e[20]!==x?(y=()=>{const O={id:crypto.randomUUID(),icon:n,img:a,message:l,read:!x,timestamp:d||new Date,title:u||"",type:f};h?.(O),m&&g(!1)},e[11]=n,e[12]=a,e[13]=m,e[14]=l,e[15]=h,e[16]=g,e[17]=d,e[18]=u,e[19]=f,e[20]=x,e[21]=y):y=e[21];const v=y;let k;e[22]!==r||e[23]!==n||e[24]!==a||e[25]!==l||e[26]!==b||e[27]!==d||e[28]!==u||e[29]!==x?(k=r||p.jsxs(p.Fragment,{children:[p.jsx("div",{className:A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",b.background),"data-ox-slot":"notifications-icon",children:a?p.jsx(rr,{alt:"User avatar",fallback:"NA",size:"md",src:a}):p.jsx(ce,{className:b.text,path:n??b.icon,size:.75})}),p.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[u&&p.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:u}),l&&p.jsx("p",{className:"mb-1 text-xs leading-4",children:l}),d&&p.jsx("p",{className:"text-xs text-gray-1000",children:Hr(d)})]}),x&&p.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),e[22]=r,e[23]=n,e[24]=a,e[25]=l,e[26]=b,e[27]=d,e[28]=u,e[29]=x,e[30]=k):k=e[30];const w=k;let C;e[31]!==o||e[32]!==x?(C=A("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":x},o),e[31]=o,e[32]=x,e[33]=C):C=e[33];const N=x?"unread":"read";let E;return e[34]!==s||e[35]!==v||e[36]!==w||e[37]!==C||e[38]!==N?(E=p.jsx("li",{className:"contents",children:p.jsx("button",{className:C,"data-ox-slot":"notifications-button",...s,"data-ox-state":N,onClick:v,children:w})}),e[34]=s,e[35]=v,e[36]=w,e[37]=C,e[38]=N,e[39]=E):E=e[39],E},Bo=A("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'),Kt=t=>{const e=D.compilerRuntimeExports.c(52);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{emptyMessage:n,isMobile:a,items:l,onMarkAllRead:i,setOpen:c,unreadCount:d}=lr(),u=l.length>0,f=d>0;let x;e[4]!==a||e[5]!==i||e[6]!==c?(x=()=>{i?.(),a&&c(!1)},e[4]=a,e[5]=i,e[6]=c,e[7]=x):x=e[7];const m=x;let h;e[8]!==r||e[9]!==n||e[10]!==u||e[11]!==l?(h=r||p.jsx(p.Fragment,{children:u?l.map(r1):p.jsxs("li",{className:"col-span-3 px-3 py-8 text-center",role:"status",children:[p.jsx(ce,{className:"mx-auto mb-2 opacity-50",path:za,size:2}),p.jsx("p",{className:"text-sm opacity-50",children:n})]})}),e[8]=r,e[9]=n,e[10]=u,e[11]=l,e[12]=h):h=e[12];const g=h;if(a){let N;e[13]!==c?(N=()=>c(!1),e[13]=c,e[14]=N):N=e[14];let E;e[15]===Symbol.for("react.memo_cache_sentinel")?(E=p.jsx(je.Icon,{path:Rt}),e[15]=E):E=e[15];let O;e[16]!==N?(O=p.jsx(je,{"aria-label":"Close notifications",size:"md",variant:"ghost",onClick:N,children:E}),e[16]=N,e[17]=O):O=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=p.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),e[18]=j):j=e[18];let S;e[19]!==m||e[20]!==f||e[21]!==i?(S=f&&i&&p.jsx("button",{className:"cursor-pointer text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:m,children:"Mark all read"}),e[19]=m,e[20]=f,e[21]=i,e[22]=S):S=e[22];let T;e[23]!==S?(T=p.jsx("div",{className:"flex items-center gap-2",children:S}),e[23]=S,e[24]=T):T=e[24];let P;e[25]!==O||e[26]!==T?(P=p.jsxs("div",{className:"flex h-15 items-center justify-between border-b border-gray-400 px-4",children:[O,j,T]}),e[25]=O,e[26]=T,e[27]=P):P=e[27];let M;e[28]!==o?(M=A(Bo,o),e[28]=o,e[29]=M):M=e[29];let I;e[30]!==s||e[31]!==g||e[32]!==M?(I=p.jsx("ul",{"aria-orientation":"vertical",className:M,"data-ox-slot":"notifications-body",...s,children:g}),e[30]=s,e[31]=g,e[32]=M,e[33]=I):I=e[33];let V;return e[34]!==I||e[35]!==P?(V=p.jsxs(Ze.Content,{closeOnOutsideClick:!0,side:"right",children:[P,I]}),e[34]=I,e[35]=P,e[36]=V):V=e[36],V}let b;e[37]===Symbol.for("react.memo_cache_sentinel")?(b=p.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),e[37]=b):b=e[37];let y;e[38]!==f||e[39]!==i?(y=f&&i&&p.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"}),e[38]=f,e[39]=i,e[40]=y):y=e[40];let v;e[41]!==y?(v=p.jsx(Ae.Header,{children:p.jsxs("div",{className:"flex items-center justify-between",children:[b,y]})}),e[41]=y,e[42]=v):v=e[42];let k;e[43]!==o?(k=A("w-85",Bo,o),e[43]=o,e[44]=k):k=e[44];let w;e[45]!==s||e[46]!==g||e[47]!==k?(w=p.jsx("ul",{"aria-orientation":"vertical",className:k,"data-ox-slot":"notifications-body",...s,children:g}),e[45]=s,e[46]=g,e[47]=k,e[48]=w):w=e[48];let C;return e[49]!==v||e[50]!==w?(C=p.jsxs(Ae.Content,{className:"p-0",children:[v,w]}),e[49]=v,e[50]=w,e[51]=C):C=e[51],C};function r1(t,e){return p.jsx(Us,{className:A({"border-t border-gray-400":e>0}),icon:t.icon,img:t.img,message:t.message,timestamp:t.timestamp,title:t.title,type:t.type,unread:!t.read},t.id)}const Xt=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s,n,a;e[0]!==t?({children:r,className:o,customIcon:s,unreadCount:a,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const{disabled:l,isMobile:i,open:c,setOpen:d,unreadCount:u}=lr(),f=a??u;let x;e[6]!==f?(x=f>99?"99+":f.toString(),e[6]=f,e[7]=x):x=e[7];const m=x,h=f>0,g=s??ms,b=`Notifications${h?` (${f} unread)`:""}`;let y;e[8]!==l||e[9]!==m||e[10]!==h?(y=h&&p.jsx("div",{className:A("absolute -top-2 -right-2",{"opacity-50":l}),children:p.jsx(Wt,{className:"min-w-[1.25rem] justify-center px-1",color:"violet",size:"sm",children:m})}),e[8]=l,e[9]=m,e[10]=h,e[11]=y):y=e[11];const k=r||y;if(i){let O;e[12]!==o?(O=A("relative",o),e[12]=o,e[13]=O):O=e[13];const j=c?"open":"closed";let S;e[14]!==d?(S=()=>d(!0),e[14]=d,e[15]=S):S=e[15];let T;e[16]!==g?(T=p.jsx(je.Icon,{path:g}),e[16]=g,e[17]=T):T=e[17];let P;return e[18]!==b||e[19]!==k||e[20]!==l||e[21]!==n||e[22]!==O||e[23]!==j||e[24]!==S||e[25]!==T?(P=p.jsxs(je,{"aria-label":b,className:O,"data-ox-slot":"notifications-trigger",disabled:l,size:"md",variant:"ghost",...n,"data-ox-state":j,onClick:S,children:[T,k]}),e[18]=b,e[19]=k,e[20]=l,e[21]=n,e[22]=O,e[23]=j,e[24]=S,e[25]=T,e[26]=P):P=e[26],P}let w;e[27]!==o||e[28]!==c?(w=A("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":c},o),e[27]=o,e[28]=c,e[29]=w):w=e[29];const C=c?"open":"closed";let N;e[30]!==g?(N=p.jsx(ce,{path:g}),e[30]=g,e[31]=N):N=e[31];let E;return e[32]!==b||e[33]!==k||e[34]!==l||e[35]!==n||e[36]!==w||e[37]!==C||e[38]!==N?(E=p.jsxs(Ae.Trigger,{"aria-label":b,className:w,"data-ox-slot":"notifications-trigger",disabled:l,hideIcon:!0,...n,"data-ox-state":C,children:[N,k]}),e[32]=b,e[33]=k,e[34]=l,e[35]=n,e[36]=w,e[37]=C,e[38]=N,e[39]=E):E=e[39],E},o1=t=>{const e=D.compilerRuntimeExports.c(68);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,disabled:a,emptyMessage:l,items:i,onItemClick:s,onMarkAllRead:n,unreadCount:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?!1:a,u=l===void 0?"No notifications":l;let f;e[9]!==i?(f=i===void 0?[]:i,e[9]=i,e[10]=f):f=e[10];const x=f,m=c===void 0?0:c,[h,g]=_.useState(!1),[b,y]=_.useState(!1);let v,k;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{const T=()=>{y(window.innerWidth<bs)};return T(),window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},k=[],e[11]=v,e[12]=k):(v=e[11],k=e[12]),_.useEffect(v,k);let w;e[13]!==d||e[14]!==u||e[15]!==b||e[16]!==x||e[17]!==s||e[18]!==n||e[19]!==h||e[20]!==m?(w={disabled:d,emptyMessage:u,isMobile:b,items:x,open:h,setOpen:g,unreadCount:m,onItemClick:s,onMarkAllRead:n},e[13]=d,e[14]=u,e[15]=b,e[16]=x,e[17]=s,e[18]=n,e[19]=h,e[20]=m,e[21]=w):w=e[21];const C=w;if(r){let T;e[22]!==r?(T=_.Children.toArray(r).find(s1),e[22]=r,e[23]=T):T=e[23];const P=T;let M;e[24]!==r?(M=_.Children.toArray(r).find(n1),e[24]=r,e[25]=M):M=e[25];const I=M;if(b){let z;e[26]!==I||e[27]!==h?(z=p.jsx(Ze,{open:h,onOpenChange:g,children:I}),e[26]=I,e[27]=h,e[28]=z):z=e[28];let R;e[29]!==o||e[30]!==z||e[31]!==P?(R=p.jsxs("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"mobile",children:[P,z]}),e[29]=o,e[30]=z,e[31]=P,e[32]=R):R=e[32];let $;return e[33]!==C||e[34]!==R?($=p.jsx(Tt.Provider,{value:C,children:R}),e[33]=C,e[34]=R,e[35]=$):$=e[35],$}let V;e[36]!==I||e[37]!==d||e[38]!==h||e[39]!==P?(V=p.jsxs(Ae,{align:"end",disabled:d,open:h,side:"bottom",onOpenChange:g,children:[P,I]}),e[36]=I,e[37]=d,e[38]=h,e[39]=P,e[40]=V):V=e[40];let F;e[41]!==o||e[42]!==V?(F=p.jsx("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"desktop",children:V}),e[41]=o,e[42]=V,e[43]=F):F=e[43];let L;return e[44]!==C||e[45]!==F?(L=p.jsx(Tt.Provider,{value:C,children:F}),e[44]=C,e[45]=F,e[46]=L):L=e[46],L}if(b){let T;e[47]===Symbol.for("react.memo_cache_sentinel")?(T=p.jsx(Xt,{}),e[47]=T):T=e[47];let P;e[48]===Symbol.for("react.memo_cache_sentinel")?(P=p.jsx(Kt,{}),e[48]=P):P=e[48];let M;e[49]!==h?(M=p.jsx(Ze,{open:h,onOpenChange:g,children:P}),e[49]=h,e[50]=M):M=e[50];let I;e[51]!==o||e[52]!==M?(I=p.jsxs("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"mobile",children:[T,M]}),e[51]=o,e[52]=M,e[53]=I):I=e[53];let V;return e[54]!==C||e[55]!==I?(V=p.jsx(Tt.Provider,{value:C,children:I}),e[54]=C,e[55]=I,e[56]=V):V=e[56],V}let N,E;e[57]===Symbol.for("react.memo_cache_sentinel")?(E=p.jsx(Xt,{}),N=p.jsx(Kt,{}),e[57]=N,e[58]=E):(N=e[57],E=e[58]);let O;e[59]!==d||e[60]!==h?(O=p.jsxs(Ae,{align:"end",disabled:d,open:h,side:"bottom",onOpenChange:g,children:[E,N]}),e[59]=d,e[60]=h,e[61]=O):O=e[61];let j;e[62]!==o||e[63]!==O?(j=p.jsx("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"desktop",children:O}),e[62]=o,e[63]=O,e[64]=j):j=e[64];let S;return e[65]!==C||e[66]!==j?(S=p.jsx(Tt.Provider,{value:C,children:j}),e[65]=C,e[66]=j,e[67]=S):S=e[67],S};function s1(t){return _.isValidElement(t)&&t.type===Xt}function n1(t){return _.isValidElement(t)&&t.type===Kt}const a1=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n,a,l,i,c,d,u,f;e[0]!==t?({children:r,className:o,href:n,icon:a,img:l,message:i,timestamp:u,title:f,type:c,unread:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11]);const x=c===void 0?"default":c,m=d===void 0?!1:d,{isMobile:h,onItemClick:g,setOpen:b}=lr(),y=Le[x];let v;e[12]!==a||e[13]!==l||e[14]!==h||e[15]!==i||e[16]!==g||e[17]!==b||e[18]!==u||e[19]!==f||e[20]!==x||e[21]!==m?(v=()=>{const j={id:crypto.randomUUID(),icon:a,img:l,message:i,read:!m,timestamp:u||new Date,title:f||"",type:x};g?.(j),h&&b(!1)},e[12]=a,e[13]=l,e[14]=h,e[15]=i,e[16]=g,e[17]=b,e[18]=u,e[19]=f,e[20]=x,e[21]=m,e[22]=v):v=e[22];const k=v;let w;e[23]!==r||e[24]!==a||e[25]!==l||e[26]!==i||e[27]!==y||e[28]!==u||e[29]!==f||e[30]!==m?(w=r||p.jsxs(p.Fragment,{children:[p.jsx("div",{className:A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",y.background),"data-ox-slot":"notifications-icon",children:l?p.jsx(rr,{alt:"User avatar",fallback:"NA",size:"md",src:l}):p.jsx(ce,{className:y.text,path:a??y.icon,size:.75})}),p.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[f&&p.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:f}),i&&p.jsx("p",{className:"mb-1 text-xs leading-4",children:i}),u&&p.jsx("p",{className:"text-xs text-gray-1000",children:Hr(u)})]}),m&&p.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),e[23]=r,e[24]=a,e[25]=l,e[26]=i,e[27]=y,e[28]=u,e[29]=f,e[30]=m,e[31]=w):w=e[31];const C=w;let N;e[32]!==o||e[33]!==m?(N=A("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":m},o),e[32]=o,e[33]=m,e[34]=N):N=e[34];const E=m?"unread":"read";let O;return e[35]!==s||e[36]!==k||e[37]!==n||e[38]!==C||e[39]!==N||e[40]!==E?(O=p.jsx("li",{className:"contents",children:p.jsx("a",{className:N,"data-ox-slot":"notifications-link",href:n,...s,"data-ox-state":E,onClick:k,children:C})}),e[35]=s,e[36]=k,e[37]=n,e[38]=C,e[39]=N,e[40]=E,e[41]=O):O=e[41],O},Dt=o1;Dt.Body=Kt;Dt.Button=Us;Dt.Link=a1;Dt.Trigger=Xt;const l1=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("flex justify-center",o),e[4]=o,e[5]=n):n=e[5];let a;e[6]!==r?(a=p.jsx("ul",{className:"flex items-center gap-1",children:r}),e[6]=r,e[7]=a):a=e[7];let l;return e[8]!==s||e[9]!==n||e[10]!==a?(l=p.jsx("nav",{"aria-label":"Pagination",className:n,"data-ox-slot":"pagination",role:"navigation",...s,children:a}),e[8]=s,e[9]=n,e[10]=a,e[11]=l):l=e[11],l},Zs=["inline-flex items-center justify-center rounded-lg","transition-colors duration-150","border border-transparent bg-transparent"],to=A(Zs,"enabled:cursor-pointer enabled:text-gray-1200","enabled:hover:bg-gray-300","enabled:ox-gray-outset-focus disabled:ox-default-disabled"),At={sm:`px-2 ${he.sm}`,md:`px-2.5 ${he.md}`},i1=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s;e[0]!==t?({className:r,size:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=s===void 0?"sm":s,a=At[n],l=kt[n];let i;e[4]!==r||e[5]!==a||e[6]!==l?(i=A("flex items-center justify-center text-gray-900",a,l,r),e[4]=r,e[5]=a,e[6]=l,e[7]=i):i=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=p.jsx("span",{className:"sr-only",children:"More pages"}),e[8]=c):c=e[8];const d=Ie[n];let u;e[9]!==d?(u=p.jsx(ce,{path:Za,size:d}),e[9]=d,e[10]=u):u=e[10];let f;return e[11]!==o||e[12]!==i||e[13]!==u?(f=p.jsx("li",{children:p.jsxs("span",{className:i,"data-ox-slot":"pagination-ellipsis",...o,children:[c,u]})}),e[11]=o,e[12]=i,e[13]=u,e[14]=f):f=e[14],f},c1=t=>"href"in t,d1=t=>{const e=D.compilerRuntimeExports.c(28);let r,o,s,n,a,l,i,c;e[0]!==t?({className:r,disabled:l,href:o,isActive:i,onClick:s,page:n,size:c,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?!1:i,f=c===void 0?"sm":c,x=At[f],m=kt[f],h=!d;let g;e[9]!==r||e[10]!==d||e[11]!==u||e[12]!==x||e[13]!==m||e[14]!==h?(g=A(Zs,x,m,{"ox-gray-outset-focus cursor-pointer text-gray-1200 hover:bg-gray-300":h,"ox-default-disabled":d,"bg-gray-300":u},r),e[9]=r,e[10]=d,e[11]=u,e[12]=x,e[13]=m,e[14]=h,e[15]=g):g=e[15];const b=g;let y;e[16]!==d||e[17]!==s?(y=E=>{if(d){E.preventDefault();return}s?.(E)},e[16]=d,e[17]=s,e[18]=y):y=e[18];const v=y,k=u?"page":void 0,w=u?`Current page: ${n}`:`Go to page ${n}`,C=d?void 0:o;let N;return e[19]!==d||e[20]!==v||e[21]!==b||e[22]!==n||e[23]!==a||e[24]!==w||e[25]!==C||e[26]!==k?(N=p.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:p.jsx("a",{"aria-current":k,"aria-disabled":d,"aria-label":w,className:b,"data-ox-slot":"pagination-link",href:C,onClick:v,...a,children:n})}),e[19]=d,e[20]=v,e[21]=b,e[22]=n,e[23]=a,e[24]=w,e[25]=C,e[26]=k,e[27]=N):N=e[27],N},u1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l,i,c;e[0]!==t?({className:r,disabled:a,isActive:l,onClick:o,page:s,size:i,type:c,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?!1:a,u=l===void 0?!1:l,f=i===void 0?"sm":i,x=c===void 0?"button":c,m=At[f],h=kt[f];let g;e[9]!==r||e[10]!==u||e[11]!==m||e[12]!==h?(g=A(to,m,h,{"bg-gray-300 enabled:text-gray-1200":u},r),e[9]=r,e[10]=u,e[11]=m,e[12]=h,e[13]=g):g=e[13];const b=g;let y;e[14]!==o||e[15]!==s?(y=()=>{o?.(s)},e[14]=o,e[15]=s,e[16]=y):y=e[16];const v=y,k=u?"page":void 0,w=u?`Current page: ${s}`:`Go to page ${s}`;let C;return e[17]!==b||e[18]!==d||e[19]!==v||e[20]!==s||e[21]!==n||e[22]!==w||e[23]!==k||e[24]!==x?(C=p.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:p.jsx("button",{"aria-current":k,"aria-label":w,className:b,"data-ox-slot":"pagination-link",disabled:d,type:x,onClick:v,...n,children:s})}),e[17]=b,e[18]=d,e[19]=v,e[20]=s,e[21]=n,e[22]=w,e[23]=k,e[24]=x,e[25]=C):C=e[25],C},f1=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=c1(t)?p.jsx(d1,{...t}):p.jsx(u1,{...t}),e[0]=t,e[1]=r):r=e[1],r},m1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l;e[0]!==t?({className:r,disabled:n,onClick:s,short:a,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?!1:n,c=a===void 0?!1:a,d=l===void 0?"sm":l;let u;e[7]!==i||e[8]!==s?(u=()=>{i||s()},e[7]=i,e[8]=s,e[9]=u):u=e[9];const f=u,x=At[d],m=Pe[d],h=!c,g=kt[d],b=!c;let y;e[10]!==r||e[11]!==c||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==b?(y=A(to,x,{[m]:h,[g]:c,"gap-1":b},r),e[10]=r,e[11]=c,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):y=e[17];const v=c?null:"Next",k=Ie[d];let w;e[18]!==k?(w=p.jsx(ce,{path:Yr,size:k}),e[18]=k,e[19]=w):w=e[19];let C;return e[20]!==i||e[21]!==o||e[22]!==f||e[23]!==y||e[24]!==v||e[25]!==w?(C=p.jsx("li",{children:p.jsxs("button",{"aria-label":"Go to next page",className:y,"data-ox-slot":"pagination-next",disabled:i,type:"button",onClick:f,...o,children:[v,w]})}),e[20]=i,e[21]=o,e[22]=f,e[23]=y,e[24]=v,e[25]=w,e[26]=C):C=e[26],C},p1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l;e[0]!==t?({className:r,disabled:n,onClick:s,short:a,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?!1:n,c=a===void 0?!1:a,d=l===void 0?"sm":l;let u;e[7]!==i||e[8]!==s?(u=()=>{i||s()},e[7]=i,e[8]=s,e[9]=u):u=e[9];const f=u,x=At[d],m=Pe[d],h=!c,g=kt[d],b=!c;let y;e[10]!==r||e[11]!==c||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==b?(y=A(to,x,{[m]:h,[g]:c,"gap-1":b},r),e[10]=r,e[11]=c,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):y=e[17];const v=Ie[d];let k;e[18]!==v?(k=p.jsx(ce,{path:ps,size:v}),e[18]=v,e[19]=k):k=e[19];const w=c?null:"Previous";let C;return e[20]!==i||e[21]!==o||e[22]!==f||e[23]!==y||e[24]!==k||e[25]!==w?(C=p.jsx("li",{children:p.jsxs("button",{"aria-label":"Go to previous page",className:y,"data-ox-slot":"pagination-previous",disabled:i,type:"button",onClick:f,...o,children:[k,w]})}),e[20]=i,e[21]=o,e[22]=f,e[23]=y,e[24]=k,e[25]=w,e[26]=C):C=e[26],C},It=l1;It.Ellipsis=i1;It.Item=f1;It.Next=m1;It.Previous=p1;const h1=t=>{const e=D.compilerRuntimeExports.c(20);let r,o,s,n,a,l,i,c;e[0]!==t?({align:a,children:r,defaultOpen:l,disabled:i,onOpenChange:s,open:n,side:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?"center":a,u=l===void 0?!1:l,f=i===void 0?!1:i,x=c===void 0?"bottom":c;let m;e[9]!==d||e[10]!==r||e[11]!==u||e[12]!==f||e[13]!==s||e[14]!==n||e[15]!==x?(m=p.jsx(Ne,{align:d,animationDuration:100,ariaHaspopup:"dialog",defaultOpen:u,disabled:f,open:n,position:x,trigger:"click",onOpenChange:s,children:r}),e[9]=d,e[10]=r,e[11]=u,e[12]=f,e[13]=s,e[14]=n,e[15]=x,e[16]=m):m=e[16];let h;return e[17]!==o||e[18]!==m?(h=p.jsx("div",{className:"inline-block","data-ox-slot":"popover",...o,children:m}),e[17]=o,e[18]=m,e[19]=h):h=e[19],h},x1=t=>{const e=D.compilerRuntimeExports.c(21);let r,o,s,n;e[0]!==t?({children:r,className:o,showCloseButton:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!0:n,{open:l,setOpen:i}=Fe();let c;e[5]!==o?(c=A("ox-gray-border relative max-w-sm min-w-[16rem] rounded-lg bg-gray-200 p-4 shadow-lg",o),e[5]=o,e[6]=c):c=e[6];const d=l?"open":"closing";let u;e[7]!==i||e[8]!==a?(u=a&&p.jsx("div",{className:"absolute top-2 right-2",children:p.jsx(je,{"aria-label":"Close popover",size:"sm",variant:"ghost",onClick:()=>i(!1),children:p.jsx(je.Icon,{path:Rt})})}),e[7]=i,e[8]=a,e[9]=u):u=e[9];let f;e[10]!==a?(f=A({"pr-8":a}),e[10]=a,e[11]=f):f=e[11];let x;e[12]!==r||e[13]!==f?(x=p.jsx("div",{className:f,children:r}),e[12]=r,e[13]=f,e[14]=x):x=e[14];let m;return e[15]!==s||e[16]!==c||e[17]!==d||e[18]!==u||e[19]!==x?(m=p.jsx(Ne.Content,{className:"ox-popover-animate",children:p.jsxs("div",{className:c,"data-ox-slot":"popover-content","data-ox-state":d,...s,children:[u,x]})}),e[15]=s,e[16]=c,e[17]=d,e[18]=u,e[19]=x,e[20]=m):m=e[20],m},g1=Xr("OxPopoverTrigger","button"),b1=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n;e[0]!==t?({asChild:n,children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!1:n;let l;e[5]!==s?(l={"data-ox-slot":"popover-trigger",type:"button",...s},e[5]=s,e[6]=l):l=e[6];const i=l;if(a){let d;return e[7]!==r||e[8]!==o||e[9]!==i?(d=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx(g1,{...i,className:o,children:r})}),e[7]=r,e[8]=o,e[9]=i,e[10]=d):d=e[10],d}let c;return e[11]!==r||e[12]!==o||e[13]!==i?(c=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx("button",{...i,className:o,children:r})}),e[11]=r,e[12]=o,e[13]=i,e[14]=c):c=e[14],c},ro=h1;ro.Content=x1;ro.Trigger=b1;const y1={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"},v1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l;e[0]!==t?({buffer:r,className:o,max:n,value:a,variant:l,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?100:n,c=a===void 0?0:a,d=l===void 0?"violet":l,u=Math.max(0,Math.min(c,i)),f=r?Math.max(0,Math.min(r,i)):0,x=pe[d];let m;e[7]!==o?(m=A("relative h-2 overflow-hidden rounded-full bg-gray-300",o),e[7]=o,e[8]=m):m=e[8];let h;e[9]!==r||e[10]!==f||e[11]!==i||e[12]!==d?(h=r!==void 0?p.jsx("div",{className:A("absolute inset-y-0 left-0 rounded-full transition-all duration-300",y1[d]),style:{width:`${f/i*100}%`}}):null,e[9]=r,e[10]=f,e[11]=i,e[12]=d,e[13]=h):h=e[13];let g;e[14]!==x.backgroundSolid?(g=A("absolute inset-y-0 left-0 rounded-full transition-all duration-300",x.backgroundSolid),e[14]=x.backgroundSolid,e[15]=g):g=e[15];const b=`${u/i*100}%`;let y;e[16]!==b?(y={width:b},e[16]=b,e[17]=y):y=e[17];let v;e[18]!==g||e[19]!==y?(v=p.jsx("div",{className:g,style:y}),e[18]=g,e[19]=y,e[20]=v):v=e[20];let k;return e[21]!==s||e[22]!==m||e[23]!==h||e[24]!==v?(k=p.jsxs("div",{className:m,"data-ox-slot":"progress",role:"progressbar",...s,children:[h,v]}),e[21]=s,e[22]=m,e[23]=h,e[24]=v,e[25]=k):k=e[25],k},w1={sm:40,md:48},k1=t=>{const e=D.compilerRuntimeExports.c(38);let r,o,s,n,a,l,i;e[0]!==t?({className:r,max:s,showPercentage:n,size:a,value:l,variant:i,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=s===void 0?100:s,d=n===void 0?!1:n,u=a===void 0?"sm":a,f=l===void 0?0:l,x=i===void 0?"violet":i,m=Math.max(0,Math.min(f,c));let h;e[8]!==c||e[9]!==m?(h=Math.round(m/c*100),e[8]=c,e[9]=m,e[10]=h):h=e[10];const g=h,b=w1[u],y=pe[x],v=(b-4)/2,k=2*Math.PI*v,w=k-m/c*k;let C;e[11]!==r?(C=A("inline-flex items-center justify-center",r),e[11]=r,e[12]=C):C=e[12];let N;e[13]!==y.stroke?(N=A("transition-all duration-300 ease-in-out",y.stroke),e[13]=y.stroke,e[14]=N):N=e[14];const E=b/2,O=b/2;let j;e[15]!==k||e[16]!==w?(j={strokeDasharray:k,strokeDashoffset:w},e[15]=k,e[16]=w,e[17]=j):j=e[17];let S;e[18]!==v||e[19]!==O||e[20]!==j||e[21]!==N||e[22]!==E?(S=p.jsx("circle",{className:N,cx:E,cy:O,fill:"none",r:v,strokeLinecap:"round",strokeWidth:"4",style:j}),e[18]=v,e[19]=O,e[20]=j,e[21]=N,e[22]=E,e[23]=S):S=e[23];let T;e[24]!==b||e[25]!==S?(T=p.jsx("svg",{className:"-rotate-90 transform",height:b,width:b,children:S}),e[24]=b,e[25]=S,e[26]=T):T=e[26];let P;e[27]!==g||e[28]!==d||e[29]!==u?(P=d&&p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:p.jsxs("span",{className:A("font-medium text-gray-1200",{"text-xxs":u==="sm","text-xs":u==="md"}),children:[g,"%"]})}),e[27]=g,e[28]=d,e[29]=u,e[30]=P):P=e[30];let M;e[31]!==T||e[32]!==P?(M=p.jsxs("div",{className:"relative",children:[T,P]}),e[31]=T,e[32]=P,e[33]=M):M=e[33];let I;return e[34]!==o||e[35]!==M||e[36]!==C?(I=p.jsx("div",{className:C,"data-ox-slot":"progress",...o,children:M}),e[34]=o,e[35]=M,e[36]=C,e[37]=I):I=e[37],I},Qs=v1;Qs.Circular=k1;const oo=t=>{const e=D.compilerRuntimeExports.c(13);let r,o,s,n;e[0]!==t?({className:r,decorative:s,orientation:n,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=s===void 0?!0:s,l=n===void 0?"horizontal":n,i=a?void 0:l,c=l==="horizontal"?"h-0.25 w-full":"h-full w-0.25";let d;e[5]!==r||e[6]!==c?(d=A("shrink-0 bg-gray-400",c,r),e[5]=r,e[6]=c,e[7]=d):d=e[7];const u=a?"none":"separator";let f;return e[8]!==o||e[9]!==i||e[10]!==d||e[11]!==u?(f=p.jsx("div",{"aria-orientation":i,className:d,"data-ox-slot":"separator",role:u,...o}),e[8]=o,e[9]=i,e[10]=d,e[11]=u,e[12]=f):f=e[12],f},C1={rectangle:"rounded-lg",circle:"rounded-full"},Et=t=>{const e=D.compilerRuntimeExports.c(22);let r,o,s,n,a,l,i,c;e[0]!==t?({animate:n,className:r,color:a,fullWidth:l,height:s,shape:i,width:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=n===void 0?!0:n,u=a===void 0?"gray":a,f=l===void 0?!1:l,x=i===void 0?"rectangle":i,m=typeof s=="number"?`${s}px`:s,h=typeof c=="number"?`${c}px`:c;let g;e[9]!==m||e[10]!==h?(g={height:m,width:h},e[9]=m,e[10]=h,e[11]=g):g=e[11];const b=g,y=pe[u],v=C1[x];let k;e[12]!==d||e[13]!==r||e[14]!==f||e[15]!==y.background||e[16]!==v?(k=A("relative overflow-hidden",y.background,v,{"animate-pulse":d,"w-full":f},r),e[12]=d,e[13]=r,e[14]=f,e[15]=y.background,e[16]=v,e[17]=k):k=e[17];let w;return e[18]!==o||e[19]!==b||e[20]!==k?(w=p.jsx("div",{"aria-busy":"true","aria-label":"Loading...",className:k,"data-ox-slot":"skeleton",role:"status",style:b,...o}),e[18]=o,e[19]=b,e[20]=k,e[21]=w):w=e[21],w},E1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l,i,c;e[0]!==t?({animate:s,className:r,color:n,fullWidth:a,height:l,lines:i,width:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=s===void 0?!0:s,u=n===void 0?"gray":n,f=a===void 0?!1:a,x=l===void 0?20:l,m=i===void 0?1:i;let h;e[9]!==f||e[10]!==c?(h=w=>{if(!f){if(c!==void 0&&!Array.isArray(c))return typeof c=="number"?`${c}px`:c;if(Array.isArray(c)&&c.length>0){const C=c[w%c.length];return typeof C=="number"?`${C}px`:C}return"100px"}},e[9]=f,e[10]=c,e[11]=h):h=e[11];const g=h;let b;e[12]!==r?(b=A("flex flex-col space-y-2",r),e[12]=r,e[13]=b):b=e[13];let y;e[14]!==m?(y=Array.from({length:m}),e[14]=m,e[15]=y):y=e[15];let v;e[16]!==d||e[17]!==u||e[18]!==f||e[19]!==g||e[20]!==x||e[21]!==y?(v=y.map((w,C)=>p.jsx(Et,{animate:d,color:u,"data-ox-slot":"skeleton-text",fullWidth:f,height:x,width:g(C)},C)),e[16]=d,e[17]=u,e[18]=f,e[19]=g,e[20]=x,e[21]=y,e[22]=v):v=e[22];let k;return e[23]!==o||e[24]!==b||e[25]!==v?(k=p.jsx("div",{className:b,...o,children:v}),e[23]=o,e[24]=b,e[25]=v,e[26]=k):k=e[26],k},N1={sm:{track:"h-1",handle:"size-4",text:"text-xs"},md:{track:"h-2",handle:"size-5",text:"text-sm"}},Yo=(t,e,r)=>{if(Array.isArray(t))return[Math.max(e,Math.min(r,t[0])),Math.max(e,Math.min(r,t[1]))];const o=Math.max(e,Math.min(r,t));return[o,o]},qo=(t,e,r)=>(t-e)/(r-e)*100,O1=(t,e,r,o)=>{const s=e+t/100*(r-e),n=Math.round(s/o)*o;return Math.max(e,Math.min(r,n))},j1=t=>{const e=D.compilerRuntimeExports.c(126);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g;e[0]!==t?({"aria-label":r,"aria-labelledby":o,className:s,defaultValue:c,disabled:d,max:u,min:f,onChange:l,onChangeCommitted:i,orientation:x,showValue:m,size:h,step:g,value:n,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15]);const b=c===void 0?0:c,y=d===void 0?!1:d,v=u===void 0?100:u,k=f===void 0?0:f,w=x===void 0?"horizontal":x,C=m===void 0?!1:m,N=h===void 0?"md":h,E=g===void 0?1:g,O=_.useRef(null),j=_.useRef(!1),S=_.useRef(0),T=n!==void 0,P=Array.isArray(b)||Array.isArray(n),M=n||b;let I;e[16]!==v||e[17]!==k||e[18]!==M?(I=Yo(M,k,v),e[16]=v,e[17]=k,e[18]=M,e[19]=I):I=e[19];const[V,F]=_.useState(I);let L;e[20]!==n||e[21]!==V||e[22]!==T||e[23]!==v||e[24]!==k?(L=T?Yo(n,k,v):V,e[20]=n,e[21]=V,e[22]=T,e[23]=v,e[24]=k,e[25]=L):L=e[25];const z=L;let R;e[26]!==y||e[27]!==T||e[28]!==P||e[29]!==l?(R=xe=>{if(y)return;const ue=P?xe:xe[0];T||F(xe),l?.(ue)},e[26]=y,e[27]=T,e[28]=P,e[29]=l,e[30]=R):R=e[30];const $=R;let Y;e[31]!==v||e[32]!==k||e[33]!==w||e[34]!==E?(Y=xe=>{if(!O.current)return k;const ue=O.current.getBoundingClientRect(),De=w==="horizontal"?(xe.clientX-ue.left)/ue.width*100:(ue.bottom-xe.clientY)/ue.height*100;return O1(Math.max(0,Math.min(100,De)),k,v,E)},e[31]=v,e[32]=k,e[33]=w,e[34]=E,e[35]=Y):Y=e[35];const H=Y;let W;e[36]!==z||e[37]!==y||e[38]!==H||e[39]!==$||e[40]!==P?(W=(xe,ue)=>{if(y)return;xe.preventDefault(),j.current=!0,S.current=ue||0;const De=H(xe);if(P&&ue!==void 0){const me=[...z];me[ue]=De,ue===0&&me[0]>me[1]?me[1]=me[0]:ue===1&&me[1]<me[0]&&(me[0]=me[1]),$(me)}else $([De,De])},e[36]=z,e[37]=y,e[38]=H,e[39]=$,e[40]=P,e[41]=W):W=e[41];const G=W;let Q;e[42]!==z||e[43]!==y||e[44]!==H||e[45]!==$||e[46]!==P?(Q=xe=>{if(y||j.current)return;const ue=H(xe);if(P){const[De,me]=z,Ve=Math.abs(ue-De),Sn=Math.abs(ue-me),Tn=Ve<=Sn?0:1,uo=[...z];uo[Tn]=ue,$(uo)}else $([ue,ue])},e[42]=z,e[43]=y,e[44]=H,e[45]=$,e[46]=P,e[47]=Q):Q=e[47];const q=Q;let Z;e[48]!==z||e[49]!==y||e[50]!==$||e[51]!==P||e[52]!==v||e[53]!==k||e[54]!==E?(Z=(xe,ue)=>{if(y)return;let De;e:switch(xe.key){case"ArrowRight":case"ArrowUp":{De=E;break e}case"ArrowLeft":case"ArrowDown":{De=-E;break e}case"PageUp":{De=(v-k)*.1;break e}case"PageDown":{De=-(v-k)*.1;break e}case"Home":{De=k-z[ue];break e}case"End":{De=v-z[ue];break e}default:return}xe.preventDefault();const me=[...z];me[ue]=Math.max(k,Math.min(v,z[ue]+De)),P&&(ue===0&&me[0]>me[1]?me[1]=me[0]:ue===1&&me[1]<me[0]&&(me[0]=me[1])),$(me)},e[48]=z,e[49]=y,e[50]=$,e[51]=P,e[52]=v,e[53]=k,e[54]=E,e[55]=Z):Z=e[55];const K=Z;let U,X;e[56]!==z||e[57]!==H||e[58]!==$||e[59]!==P||e[60]!==i?(U=()=>{const xe=De=>{if(!j.current)return;const me=H(De);if(P){const Ve=[...z];Ve[S.current]=me,S.current===0&&Ve[0]>Ve[1]?Ve[1]=Ve[0]:S.current===1&&Ve[1]<Ve[0]&&(Ve[0]=Ve[1]),$(Ve)}else $([me,me])},ue=()=>{j.current&&(j.current=!1,i?.(P?z:z[0]))};return j.current&&(document.addEventListener("mousemove",xe),document.addEventListener("mouseup",ue)),()=>{document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",ue)}},X=[H,P,z,$,i],e[56]=z,e[57]=H,e[58]=$,e[59]=P,e[60]=i,e[61]=U,e[62]=X):(U=e[61],X=e[62]),_.useEffect(U,X);const B=N1[N],[te,ne]=z,oe=qo(te,k,v),ge=qo(ne,k,v);let we;e[63]!==s?(we=A("w-full py-3",s),e[63]=s,e[64]=we):we=e[64];let be;e[65]!==y||e[66]!==B.track?(be=A("relative w-full cursor-pointer rounded-full bg-gray-300",B.track,{"ox-default-disabled":y}),e[65]=y,e[66]=B.track,e[67]=be):be=e[67];const Me=`${P?oe:0}%`,$e=`${P?ge-oe:oe}%`;let _e;e[68]!==Me||e[69]!==$e?(_e=p.jsx("div",{className:"absolute h-full rounded-full bg-violet-700",style:{left:Me,width:$e}}),e[68]=Me,e[69]=$e,e[70]=_e):_e=e[70];const He=P?`${r} minimum`:r,Je=String(te);let re;e[71]!==y||e[72]!==B.handle?(re=A("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",B.handle,{"cursor-not-allowed":y}),e[71]=y,e[72]=B.handle,e[73]=re):re=e[73];const fe=`${oe}%`;let Re;e[74]!==fe?(Re={left:fe},e[74]=fe,e[75]=Re):Re=e[75];const et=y?-1:0;let ot;e[76]!==K?(ot=xe=>K(xe,0),e[76]=K,e[77]=ot):ot=e[77];let dt;e[78]!==G?(dt=xe=>G(xe,0),e[78]=G,e[79]=dt):dt=e[79];let ut;e[80]!==o||e[81]!==v||e[82]!==k||e[83]!==te||e[84]!==w||e[85]!==He||e[86]!==Je||e[87]!==re||e[88]!==Re||e[89]!==et||e[90]!==ot||e[91]!==dt?(ut=p.jsx("div",{"aria-label":He,"aria-labelledby":o,"aria-orientation":w,"aria-valuemax":v,"aria-valuemin":k,"aria-valuenow":te,"aria-valuetext":Je,className:re,role:"slider",style:Re,tabIndex:et,onKeyDown:ot,onMouseDown:dt}),e[80]=o,e[81]=v,e[82]=k,e[83]=te,e[84]=w,e[85]=He,e[86]=Je,e[87]=re,e[88]=Re,e[89]=et,e[90]=ot,e[91]=dt,e[92]=ut):ut=e[92];let ft;e[93]!==r||e[94]!==o||e[95]!==y||e[96]!==K||e[97]!==G||e[98]!==P||e[99]!==v||e[100]!==ge||e[101]!==ne||e[102]!==k||e[103]!==w||e[104]!==B.handle?(ft=P?p.jsx("div",{"aria-label":P?`${r} maximum`:r,"aria-labelledby":o,"aria-orientation":w,"aria-valuemax":v,"aria-valuemin":k,"aria-valuenow":ne,"aria-valuetext":String(ne),className:A("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",B.handle,{"cursor-not-allowed":y}),role:"slider",style:{left:`${ge}%`},tabIndex:y?-1:0,onKeyDown:xe=>K(xe,1),onMouseDown:xe=>G(xe,1)}):null,e[93]=r,e[94]=o,e[95]=y,e[96]=K,e[97]=G,e[98]=P,e[99]=v,e[100]=ge,e[101]=ne,e[102]=k,e[103]=w,e[104]=B.handle,e[105]=ft):ft=e[105];let mt;e[106]!==q||e[107]!==be||e[108]!==_e||e[109]!==ut||e[110]!==ft?(mt=p.jsxs("div",{className:be,ref:O,onClick:q,children:[_e,ut,ft]}),e[106]=q,e[107]=be,e[108]=_e,e[109]=ut,e[110]=ft,e[111]=mt):mt=e[111];let pt;e[112]!==P||e[113]!==v||e[114]!==ne||e[115]!==k||e[116]!==te||e[117]!==C?(pt=C&&p.jsxs("div",{className:A("mt-2 flex justify-between text-xs text-gray-1000"),children:[p.jsx("span",{children:P?`${te} - ${ne}`:te}),p.jsxs("span",{children:[k," - ",v]})]}),e[112]=P,e[113]=v,e[114]=ne,e[115]=k,e[116]=te,e[117]=C,e[118]=pt):pt=e[118];let ht;e[119]!==mt||e[120]!==pt?(ht=p.jsxs("div",{className:"relative py-3",children:[mt,pt]}),e[119]=mt,e[120]=pt,e[121]=ht):ht=e[121];let Vt;return e[122]!==a||e[123]!==we||e[124]!==ht?(Vt=p.jsx("div",{className:we,"data-ox-slot":"slider",...a,children:ht}),e[122]=a,e[123]=we,e[124]=ht,e[125]=Vt):Vt=e[125],Vt},S1={loading:{title:"Loading...",message:"Good things take time",icon:hs,showAction:!1},empty:{title:"Nothing here",message:"It's so empty... like my soul",icon:rl,showAction:!1},offline:{title:"You're offline",message:"Did you forget to pay the internet bill?",icon:nl,showAction:!0},success:{title:"Success!",message:"Everything went perfectly as planned",icon:Ha,showAction:!1},warning:{title:"Heads up!",message:"Something needs your attention",icon:_a,showAction:!1},info:{title:"Just so you know",message:"Here's some helpful information",icon:Ja,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}},T1={sm:{container:"max-w-sm space-y-4",spacing:"space-y-1",title:"text-lg",message:he.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"}},P1=t=>t==="success"?Le.success:t==="warning"?Le.warning:t==="info"?Le.info:typeof t=="number"?Le.error:{text:"text-violet-700"},M1=t=>{const e=D.compilerRuntimeExports.c(76);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({action:r,children:o,className:s,inline:i,message:a,onBack:l,size:c,title:d,type:u,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?!1:i,x=c===void 0?"sm":c;if(o){let W;e[11]!==s?(W=A("min-h-screen w-full",s),e[11]=s,e[12]=W):W=e[12];let G;return e[13]!==o||e[14]!==W?(G=p.jsx("div",{className:W,children:o}),e[13]=o,e[14]=W,e[15]=G):G=e[15],G}const m=S1[u],h=d||m.title,g=a||m.message;let b;e[16]!==l?(b=()=>{l?l():window.history.back()},e[16]=l,e[17]=b):b=e[17];const y=b;let v;e[18]!==r||e[19]!==m.showAction||e[20]!==y||e[21]!==x?(v=()=>r!==void 0?r:m.showAction?p.jsx(je,{size:x,variant:"secondary",onClick:y,children:"Back"}):null,e[18]=r,e[19]=m.showAction,e[20]=y,e[21]=x,e[22]=v):v=e[22];const k=v,w=T1[x];let C,N,E,O,j,S,T,P;if(e[23]!==s||e[24]!==m.icon||e[25]!==n||e[26]!==f||e[27]!==x||e[28]!==w.container||e[29]!==w.numberText||e[30]!==u){const W=P1(u);T=typeof u=="number"?"assertive":"polite";const G=!f;e[39]!==s||e[40]!==f||e[41]!==G?(P=A("flex w-full items-center justify-center",{"min-h-screen bg-gray-50":G,"h-full":f},s),e[39]=s,e[40]=f,e[41]=G,e[42]=P):P=e[42],C="status-display",N=typeof u=="number"?"alert":"status",E=n,e[43]!==w.container?(S=A("flex flex-col items-center text-center",w.container),e[43]=w.container,e[44]=S):S=e[44],O="flex items-center space-x-4",j=m.icon?p.jsx(ce,{className:A(W.text,{"animate-spin":u==="loading"}),path:m.icon,size:x==="md"?1.75:1.25}):typeof u=="number"?p.jsx("div",{className:A("bg-gradient-to-br from-violet-700 from-20% to-rose-500 bg-clip-text font-bold text-transparent",w.numberText),children:u}):null,e[23]=s,e[24]=m.icon,e[25]=n,e[26]=f,e[27]=x,e[28]=w.container,e[29]=w.numberText,e[30]=u,e[31]=C,e[32]=N,e[33]=E,e[34]=O,e[35]=j,e[36]=S,e[37]=T,e[38]=P}else C=e[31],N=e[32],E=e[33],O=e[34],j=e[35],S=e[36],T=e[37],P=e[38];let M;e[45]!==O||e[46]!==j?(M=p.jsx("div",{className:O,children:j}),e[45]=O,e[46]=j,e[47]=M):M=e[47];const I=w.spacing;let V;e[48]!==w.title?(V=A("font-bold text-gray-1200",w.title),e[48]=w.title,e[49]=V):V=e[49];let F;e[50]!==h||e[51]!==V?(F=p.jsx("h1",{id:"status-title","aria-describedby":"status-message",className:V,children:h}),e[50]=h,e[51]=V,e[52]=F):F=e[52];let L;e[53]!==w.message?(L=A("text-gray-1000",w.message),e[53]=w.message,e[54]=L):L=e[54];let z;e[55]!==g||e[56]!==L?(z=p.jsx("p",{id:"status-message",className:L,children:g}),e[55]=g,e[56]=L,e[57]=z):z=e[57];let R;e[58]!==w.spacing||e[59]!==F||e[60]!==z?(R=p.jsxs("div",{className:I,children:[F,z]}),e[58]=w.spacing,e[59]=F,e[60]=z,e[61]=R):R=e[61];let $;e[62]!==k?($=k(),e[62]=k,e[63]=$):$=e[63];let Y;e[64]!==M||e[65]!==R||e[66]!==$||e[67]!==S?(Y=p.jsxs("div",{className:S,children:[M,R,$]}),e[64]=M,e[65]=R,e[66]=$,e[67]=S,e[68]=Y):Y=e[68];let H;return e[69]!==C||e[70]!==N||e[71]!==E||e[72]!==Y||e[73]!==T||e[74]!==P?(H=p.jsx("div",{"aria-live":T,className:P,"data-ox-slot":C,role:N,...E,children:Y}),e[69]=C,e[70]=N,e[71]=E,e[72]=Y,e[73]=T,e[74]=P,e[75]=H):H=e[75],H},Ks=_.createContext(null),so=()=>{const t=_.useContext(Ks);if(!t)throw new Error("OxStepperItem must be used within OxStepper");return t},Xs=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{orientation:n}=so(),a=n==="vertical";let l;e[4]!==o||e[5]!==a?(l=A("mt-2 p-4",{"border-t border-gray-400":a},o),e[4]=o,e[5]=a,e[6]=l):l=e[6];let i;return e[7]!==r||e[8]!==s||e[9]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"stepper-actions",...s,children:r}),e[7]=r,e[8]=s,e[9]=l,e[10]=i):i=e[10],i},R1=(t,e,r)=>t==="error"?Le.error.icon:t==="warning"?Le.warning.icon:e||(r?Le.success.icon:null),Js=(t,e)=>t==="error"?Le.error:t==="warning"?Le.warning:pe[e],Wo=(t,e)=>t==="error"||t==="warning"?e.text:"text-gray-1200",en=t=>{const e=D.compilerRuntimeExports.c(18);let r,o,s,n;e[0]!==t?({className:r,state:s,stepIndex:n,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{color:a,currentStep:l,orientation:i}=so(),c=l>n,d=s||(c?"completed":"current");let u;e[5]!==d||e[6]!==a?(u=Js(d,a),e[5]=d,e[6]=a,e[7]=u):u=e[7];const f=u,x=i==="horizontal",m=i==="vertical",h=!c;let g;e[8]!==r||e[9]!==c||e[10]!==f.border||e[11]!==x||e[12]!==m||e[13]!==h?(g=A("flex-1 border transition-colors duration-300",{"mx-4 mt-[19px]":x,"my-2 min-h-6":m,"border-gray-400":h,[f.border]:c},r),e[8]=r,e[9]=c,e[10]=f.border,e[11]=x,e[12]=m,e[13]=h,e[14]=g):g=e[14];let b;return e[15]!==o||e[16]!==g?(b=p.jsx("div",{className:g,"data-ox-slot":"stepper-connector",...o}),e[15]=o,e[16]=g,e[17]=b):b=e[17],b},yt=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,disabled:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!1:n;let l;e[5]!==o||e[6]!==a?(l=A("text-xs leading-relaxed text-pretty text-gray-1100",{"ox-default-disabled":a},o),e[5]=o,e[6]=a,e[7]=l):l=e[7];let i;return e[8]!==r||e[9]!==s||e[10]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"description",...s,children:r}),e[8]=r,e[9]=s,e[10]=l,e[11]=i):i=e[11],i},tn=t=>{const e=D.compilerRuntimeExports.c(14);let r,o,s,n;e[0]!==t?({children:r,className:o,icon:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?fs:n;if(!r)return null;let l;e[5]!==o?(l=A("grid grid-cols-[auto_1fr] items-center gap-1 text-xs text-pretty text-rose-400",o),e[5]=o,e[6]=l):l=e[6];let i;e[7]!==a?(i=p.jsx(ce,{className:"shrink-0 text-current",path:a,size:Ie.md}),e[7]=a,e[8]=i):i=e[8];let c;return e[9]!==r||e[10]!==s||e[11]!==l||e[12]!==i?(c=p.jsxs("div",{className:l,"data-ox-slot":"error",role:"alert",...s,children:[i,r]}),e[9]=r,e[10]=s,e[11]=l,e[12]=i,e[13]=c):c=e[13],c},D1={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"},rn=({as:t="h2",children:e,className:r,level:o,...s})=>{const n=o??(t!=="div"?parseInt(t.slice(1)):2),a=D.clamp(n,1,7),l={className:A("text-gray-1200",D1[a],r),"data-ox-slot":"heading",...s,...t==="div"&&{role:"heading","aria-level":n}};return _.createElement(t,l,e)},on=t=>{const e=D.compilerRuntimeExports.c(19);let r,o,s,n,a,l;e[0]!==t?({children:r,className:o,disabled:a,htmlFor:n,required:l,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=a===void 0?!1:a,c=l===void 0?!1:l,d=!i;let u;e[7]!==o||e[8]!==i||e[9]!==d?(u=A("block text-sm font-medium",{"text-gray-1200":d,"ox-default-disabled":i},o),e[7]=o,e[8]=i,e[9]=d,e[10]=u):u=e[10];let f;e[11]!==c?(f=c&&p.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),e[11]=c,e[12]=f):f=e[12];let x;return e[13]!==r||e[14]!==s||e[15]!==n||e[16]!==u||e[17]!==f?(x=p.jsxs("label",{className:u,"data-ox-slot":"label",htmlFor:n,...s,children:[r,f]}),e[13]=r,e[14]=s,e[15]=n,e[16]=u,e[17]=f,e[18]=x):x=e[18],x},A1=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,required:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?!1:a,c=!l;let d;e[6]!==o||e[7]!==l||e[8]!==c?(d=A("block text-base font-semibold",{"text-gray-1200":c,"ox-default-disabled":l},o),e[6]=o,e[7]=l,e[8]=c,e[9]=d):d=e[9];let u;e[10]!==i?(u=i&&p.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),e[10]=i,e[11]=u):u=e[11];let f;return e[12]!==r||e[13]!==s||e[14]!==d||e[15]!==u?(f=p.jsxs("legend",{className:d,"data-ox-slot":"legend",...s,children:[r,u]}),e[12]=r,e[13]=s,e[14]=d,e[15]=u,e[16]=f):f=e[16],f},I1={completed:"check",error:"close",warning:"warning",current:"current step",upcoming:"upcoming step"},sn=t=>{const e=D.compilerRuntimeExports.c(73);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,description:s,icon:a,state:l,stepIndex:i,title:c,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=i===void 0?0:i,{color:u,currentStep:f,onStepChange:x,orientation:m,totalSteps:h,type:g}=so(),b=f===d,y=f>d,v=l||(d<f?"completed":d===f?"current":"upcoming"),k=g==="non-linear"||y||b;let w;e[9]!==v||e[10]!==a||e[11]!==y?(w=R1(v,a,y),e[9]=v,e[10]=a,e[11]=y,e[12]=w):w=e[12];const C=w;let N,E,O,j,S,T,P,M;if(e[13]!==v||e[14]!==k||e[15]!==o||e[16]!==u||e[17]!==s||e[18]!==n||e[19]!==b||e[20]!==x||e[21]!==m||e[22]!==l||e[23]!==C||e[24]!==d||e[25]!==c||e[26]!==h){N=Symbol.for("react.early_return_sentinel");e:{const $=Js(v,u);let Y;e[35]!==k||e[36]!==x||e[37]!==d?(Y=()=>{k&&x&&x(d)},e[35]=k,e[36]=x,e[37]=d,e[38]=Y):Y=e[38];const H=Y,W=()=>p.jsx("button",{"aria-current":b?"step":void 0,"aria-describedby":s?`step-${d}-desc`:void 0,"aria-label":`${c} - ${I1[v]} (${d+1} of ${h})`,className:A("flex items-center justify-center rounded-lg transition-colors","enabled:cursor-pointer",v==="error"?"ox-rose-outset-focus":"ox-violet-outset-focus",{"cursor-pointer":k,"opacity-50":v==="upcoming"}),disabled:!k,type:"button",onClick:H,children:p.jsx("div",{className:A("flex size-10 flex-shrink-0 items-center justify-center rounded-lg border",$.border,$.background),children:C?p.jsx(ce,{className:$.text,path:C}):p.jsx("span",{className:A("text-base font-medium text-current"),children:d+1})})});if(m==="horizontal"){let Q;e[39]!==o?(Q=A("flex flex-col items-center text-center",o),e[39]=o,e[40]=Q):Q=e[40];let q;e[41]!==s||e[42]!==d?(q=s?p.jsx(yt,{id:`step-${d}-desc`,children:s}):null,e[41]=s,e[42]=d,e[43]=q):q=e[43],N=p.jsxs("div",{className:Q,"data-ox-slot":"stepper-item",...n,children:[W(),p.jsxs("div",{className:"mt-2",children:[p.jsx("h6",{className:A("text-sm font-medium",Wo(v,$)),children:c}),q]})]});break e}e[44]!==o?(S=A("flex gap-3",o),e[44]=o,e[45]=S):S=e[45],T="stepper-item",P=n;let G;e[46]!==l||e[47]!==d||e[48]!==h?(G=d<h-1?p.jsx(en,{state:l,stepIndex:d}):null,e[46]=l,e[47]=d,e[48]=h,e[49]=G):G=e[49],M=p.jsxs("div",{className:"flex flex-col items-center",children:[W(),G]}),j="flex-1",O="mb-4",E=A("text-sm font-medium",Wo(v,$))}e[13]=v,e[14]=k,e[15]=o,e[16]=u,e[17]=s,e[18]=n,e[19]=b,e[20]=x,e[21]=m,e[22]=l,e[23]=C,e[24]=d,e[25]=c,e[26]=h,e[27]=N,e[28]=E,e[29]=O,e[30]=j,e[31]=S,e[32]=T,e[33]=P,e[34]=M}else N=e[27],E=e[28],O=e[29],j=e[30],S=e[31],T=e[32],P=e[33],M=e[34];if(N!==Symbol.for("react.early_return_sentinel"))return N;let I;e[50]!==E||e[51]!==c?(I=p.jsx("h6",{className:E,children:c}),e[50]=E,e[51]=c,e[52]=I):I=e[52];let V;e[53]!==s||e[54]!==d?(V=s?p.jsx(yt,{id:`step-${d}-desc`,children:s}):null,e[53]=s,e[54]=d,e[55]=V):V=e[55];let F;e[56]!==I||e[57]!==V||e[58]!==O?(F=p.jsxs("div",{className:O,children:[I,V]}),e[56]=I,e[57]=V,e[58]=O,e[59]=F):F=e[59];let L;e[60]!==r||e[61]!==b?(L=b&&r?p.jsx("div",{className:"ox-gray-border mb-4 rounded-lg bg-gray-50 p-4",children:r}):null,e[60]=r,e[61]=b,e[62]=L):L=e[62];let z;e[63]!==F||e[64]!==L||e[65]!==j?(z=p.jsxs("div",{className:j,children:[F,L]}),e[63]=F,e[64]=L,e[65]=j,e[66]=z):z=e[66];let R;return e[67]!==z||e[68]!==S||e[69]!==T||e[70]!==P||e[71]!==M?(R=p.jsxs("div",{className:S,"data-ox-slot":T,...P,children:[M,z]}),e[67]=z,e[68]=S,e[69]=T,e[70]=P,e[71]=M,e[72]=R):R=e[72],R},$1=t=>{const e=D.compilerRuntimeExports.c(46);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,color:a,currentStep:l,onStepChange:n,orientation:i,type:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?"violet":a,u=l===void 0?0:l,f=i===void 0?"vertical":i,x=c===void 0?"linear":c;let m,h,g,b,y,v,k,w,C,N,E;if(e[9]!==r||e[10]!==o||e[11]!==d||e[12]!==u||e[13]!==s||e[14]!==n||e[15]!==f||e[16]!==x){const S=_.Children.toArray(r).filter(L1);let T;e[28]!==r?(T=_.Children.toArray(r).find(_1),e[28]=r,e[29]=T):T=e[29],h=T;const P=S.map(V1),M={color:d,currentStep:u,onStepChange:n,orientation:f,totalSteps:S.length,type:x};m=Ks.Provider,v=M,k="Step-by-step progress",w=S.length,C=u+1,e[30]!==o?(N=A("w-full",o),e[30]=o,e[31]=N):N=e[31],E="stepper",g="navigation",b=s,y=f==="horizontal"?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"flex w-full items-start",children:P.map((I,V)=>p.jsxs(_.Fragment,{children:[_.cloneElement(I,{className:A("min-w-0 flex-1",I.props.className)}),V<S.length-1?p.jsx(en,{state:S[V].props.state,stepIndex:V}):null]},V))}),S[u]?.props.children?p.jsx("div",{className:"ox-gray-border mt-6 rounded-lg bg-gray-50 p-4",children:S[u].props.children}):null]}):P,e[9]=r,e[10]=o,e[11]=d,e[12]=u,e[13]=s,e[14]=n,e[15]=f,e[16]=x,e[17]=m,e[18]=h,e[19]=g,e[20]=b,e[21]=y,e[22]=v,e[23]=k,e[24]=w,e[25]=C,e[26]=N,e[27]=E}else m=e[17],h=e[18],g=e[19],b=e[20],y=e[21],v=e[22],k=e[23],w=e[24],C=e[25],N=e[26],E=e[27];let O;e[32]!==h||e[33]!==g||e[34]!==b||e[35]!==y||e[36]!==k||e[37]!==w||e[38]!==C||e[39]!==N||e[40]!==E?(O=p.jsxs("div",{"aria-label":k,"aria-valuemax":w,"aria-valuenow":C,className:N,"data-ox-slot":E,role:g,...b,children:[y,h]}),e[32]=h,e[33]=g,e[34]=b,e[35]=y,e[36]=k,e[37]=w,e[38]=C,e[39]=N,e[40]=E,e[41]=O):O=e[41];let j;return e[42]!==m||e[43]!==v||e[44]!==O?(j=p.jsx(m,{value:v,children:O}),e[42]=m,e[43]=v,e[44]=O,e[45]=j):j=e[45],j};function L1(t){return _.isValidElement(t)&&t.type===sn}function _1(t){return _.isValidElement(t)&&t.type===Xs}function V1(t,e){return _.cloneElement(t,{stepIndex:e,key:e})}const no=$1;no.Actions=Xs;no.Item=sn;const nn=_.createContext(void 0),z1=t=>{const e=D.compilerRuntimeExports.c(50);let r,o,s,n,a,l,i,c,d,u,f,x;e[0]!==t?({allRowIds:a,children:r,className:o,hoverable:l,isLoading:i,onSelectionChange:n,selectable:c,selectedRows:d,skeletonColumns:u,skeletonRows:f,striped:x,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12]);let m;e[13]!==a?(m=a===void 0?[]:a,e[13]=a,e[14]=m):m=e[14];const h=m,g=l===void 0?!1:l,b=i===void 0?!1:i,y=c===void 0?!1:c;let v;e[15]!==d?(v=d===void 0?[]:d,e[15]=d,e[16]=v):v=e[16];const k=v,w=u===void 0?3:u,C=f===void 0?5:f,N=x===void 0?!1:x,E=h.length>0&&k.length===h.length,O=k.length>0&&k.length<h.length,j=Math.max(1,Math.min(w,20)),S=Math.max(1,Math.min(C,50));let T;e[17]!==k?(T=R=>k.includes(R),e[17]=k,e[18]=T):T=e[18];let P;e[19]!==n||e[20]!==k?(P=R=>{if(!n)return;const $=k.includes(R);n($?k.filter(Y=>Y!==R):[...k,R])},e[19]=n,e[20]=k,e[21]=P):P=e[21];let M;e[22]!==h||e[23]!==E||e[24]!==n?(M=()=>{n&&n(E?[]:[...h])},e[22]=h,e[23]=E,e[24]=n,e[25]=M):M=e[25];let I;e[26]!==h||e[27]!==g||e[28]!==E||e[29]!==O||e[30]!==b||e[31]!==n||e[32]!==y||e[33]!==k||e[34]!==N||e[35]!==T||e[36]!==P||e[37]!==M||e[38]!==j||e[39]!==S?(I={allRowIds:h,hoverable:g,isLoading:b,selectable:y,selectedRows:k,skeletonColumns:j,skeletonRows:S,striped:N,onSelectionChange:n,isSelected:T,toggleSelection:P,toggleAll:M,isAllSelected:E,isIndeterminate:O},e[26]=h,e[27]=g,e[28]=E,e[29]=O,e[30]=b,e[31]=n,e[32]=y,e[33]=k,e[34]=N,e[35]=T,e[36]=P,e[37]=M,e[38]=j,e[39]=S,e[40]=I):I=e[40];const V=I;let F;e[41]!==o?(F=A("w-full table-auto sm:table-fixed",o),e[41]=o,e[42]=F):F=e[42];let L;e[43]!==r||e[44]!==s||e[45]!==F?(L=p.jsx("div",{className:"rounded-lg bg-gray-50",children:p.jsx("table",{className:F,"data-ox-slot":"table",...s,children:r})}),e[43]=r,e[44]=s,e[45]=F,e[46]=L):L=e[46];let z;return e[47]!==V||e[48]!==L?(z=p.jsx(nn.Provider,{value:V,children:L}),e[47]=V,e[48]=L,e[49]=z):z=e[49],z},ir=()=>_.useContext(nn),an=t=>{const e=D.compilerRuntimeExports.c(7),{columns:r}=t,o=ir();let s;e[0]!==o?.selectable?(s=o?.selectable?p.jsx("td",{className:"px-3 py-2",children:p.jsx("div",{className:"flex items-center justify-center",children:p.jsx(Et,{height:21,shape:"circle",width:16})})}):null,e[0]=o?.selectable,e[1]=s):s=e[1];let n;e[2]!==r?(n=Array.from({length:r}).map(F1),e[2]=r,e[3]=n):n=e[3];let a;return e[4]!==s||e[5]!==n?(a=p.jsxs("tr",{className:"border-b border-gray-400 last:border-b-0",children:[s,n]}),e[4]=s,e[5]=n,e[6]=a):a=e[6],a};function F1(t,e){return p.jsx("td",{className:"px-3 py-2",children:p.jsx(Et,{fullWidth:!0,height:21})},e)}const H1=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=ir();let a;e[4]!==r||e[5]!==n?(a=n?.isLoading?Array.from({length:n.skeletonRows}).map((i,c)=>p.jsx(an,{columns:n.skeletonColumns},c)):r,e[4]=r,e[5]=n,e[6]=a):a=e[6];let l;return e[7]!==o||e[8]!==s||e[9]!==a?(l=p.jsx("tbody",{className:o,"data-ox-slot":"table-body",...s,children:a}),e[7]=o,e[8]=s,e[9]=a,e[10]=l):l=e[10],l},B1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("px-3 py-2 text-sm text-gray-1200",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("td",{className:n,"data-ox-slot":"table-cell",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Y1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("mb-4 flex items-center justify-between gap-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"table-controls",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},q1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("border-t border-gray-400 bg-gray-100 font-semibold",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("tfoot",{className:n,"data-ox-slot":"table-footer",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},ln=_.createContext(void 0),W1=()=>_.useContext(ln),G1={sm:"size-4.5",md:"size-5.5"},U1=t=>{const e=D.compilerRuntimeExports.c(58);let r,o,s,n,a,l,i,c,d,u,f,x,m,h;e[0]!==t?({checked:r,className:o,defaultChecked:s,disabled:u,error:f,id:c,indeterminate:x,name:a,onChange:l,onCheckedChange:i,required:m,size:d,value:h,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14]);const g=u===void 0?!1:u,b=f===void 0?!1:f,y=x===void 0?!1:x,v=m===void 0?!1:m,k=_.useId(),w=W1(),C=_.useRef(null),E=`${c||k}-checkbox`,O=d||w?.size||"sm",j=g||w?.disabled||!1,S=a||w?.name,T=r!==void 0||w&&h!==void 0;let P;if(w&&h!==void 0){let X;e[15]!==w.value||e[16]!==h?(X=w.value?.includes(h)||!1,e[15]=w.value,e[16]=h,e[17]=X):X=e[17],P=X}else P=r??void 0;let M,I;e[18]!==y?(M=()=>{C.current&&(C.current.indeterminate=y)},I=[y],e[18]=y,e[19]=M,e[20]=I):(M=e[19],I=e[20]),_.useEffect(M,I);const V=y?"mixed":P===!0?"true":"false";let F;e[21]!==w||e[22]!==l||e[23]!==i||e[24]!==h?(F=X=>{const B=X.target.checked;if(w&&h!==void 0){const te=w.value,ne=B?[...te,h]:te.filter(oe=>oe!==h);w.onChange?.(ne)}else l?.(X),i?.(B)},e[21]=w,e[22]=l,e[23]=i,e[24]=h,e[25]=F):F=e[25];const L=F,z=y?xs:Br;let R;e[26]!==P||e[27]!==s||e[28]!==T?(R=T?{checked:P}:{defaultChecked:s},e[26]=P,e[27]=s,e[28]=T,e[29]=R):R=e[29];const $=G1[O],Y=!b;let H;e[30]!==o||e[31]!==b||e[32]!==Y||e[33]!==$?(H=A("peer cursor-pointer appearance-none rounded-sm bg-gray-50",$,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":b,"ox-gray-border":Y},o),e[30]=o,e[31]=b,e[32]=Y,e[33]=$,e[34]=H):H=e[34];const W=j?"disabled":y?"indeterminate":P?"checked":"unchecked";let G;e[35]!==j||e[36]!==S||e[37]!==V||e[38]!==E||e[39]!==n||e[40]!==b||e[41]!==L||e[42]!==v||e[43]!==H||e[44]!==W||e[45]!==R||e[46]!==h?(G=p.jsx("input",{id:E,"aria-checked":V,"aria-invalid":b,"aria-required":v,"data-ox-slot":"checkbox",ref:C,...R,className:H,disabled:j,name:S,required:v,type:"checkbox",value:h,onChange:L,...n,"data-ox-state":W}),e[35]=j,e[36]=S,e[37]=V,e[38]=E,e[39]=n,e[40]=b,e[41]=L,e[42]=v,e[43]=H,e[44]=W,e[45]=R,e[46]=h,e[47]=G):G=e[47];const Q=!y;let q;e[48]!==y||e[49]!==Q?(q=A("pointer-events-none absolute inset-0 m-auto text-gray-1200",{"opacity-80":y,"opacity-0 peer-checked:opacity-80":Q}),e[48]=y,e[49]=Q,e[50]=q):q=e[50];const Z=Ie[O];let K;e[51]!==z||e[52]!==q||e[53]!==Z?(K=p.jsx(ce,{className:q,path:z,size:Z}),e[51]=z,e[52]=q,e[53]=Z,e[54]=K):K=e[54];let U;return e[55]!==G||e[56]!==K?(U=p.jsxs("div",{className:"relative inline-flex shrink-0",children:[G,K]}),e[55]=G,e[56]=K,e[57]=U):U=e[57],U},Z1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,disabled:l,name:n,onChange:a,size:i,value:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?"sm":i;let f;e[9]!==c?(f=c===void 0?[]:c,e[9]=c,e[10]=f):f=e[10];const x=f;let m;e[11]!==d||e[12]!==n||e[13]!==a||e[14]!==u||e[15]!==x?(m={value:x,onChange:a,name:n,size:u,disabled:d},e[11]=d,e[12]=n,e[13]=a,e[14]=u,e[15]=x,e[16]=m):m=e[16];let h;e[17]!==o?(h=A("space-y-2",o),e[17]=o,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==s||e[21]!==h?(g=p.jsx("div",{className:h,"data-ox-slot":"checkbox-group",role:"group",...s,children:r}),e[19]=r,e[20]=s,e[21]=h,e[22]=g):g=e[22];let b;return e[23]!==m||e[24]!==g?(b=p.jsx(ln.Provider,{value:m,children:g}),e[23]=m,e[24]=g,e[25]=b):b=e[25],b},cr=U1;cr.Group=Z1;const cn=_.createContext(null),Go=t=>{const e={B:1,KB:1024,MB:1048576,GB:1073741824},r=t.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!r)throw new Error(`Invalid size format: ${t}. Use format like "5MB", "1.5GB", etc.`);const[,o,s]=r;return parseFloat(o)*e[s.toUpperCase()]},Q1=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),K1=(t,e)=>e.some(r=>r.includes("/")?r.endsWith("/*")?t.type.startsWith(r.slice(0,-1)):t.type===r:t.name.toLowerCase().endsWith(`.${r.toLowerCase()}`)),X1=t=>{const e=D.compilerRuntimeExports.c(68);let r,o,s,n,a,l,i,c,d,u,f;e[0]!==t?({accept:d,children:r,className:o,disabled:u,maxFiles:n,maxSize:a,minSize:l,multiple:f,onError:i,onFileSelect:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11]);let x;e[12]!==d?(x=d===void 0?[]:d,e[12]=d,e[13]=x):x=e[13];const m=x,h=u===void 0?!1:u,g=f===void 0?!1:f;let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[14]=b):b=e[14];const[y,v]=_.useState(b),[k,w]=_.useState(!1),[C,N]=_.useState();let E;e[15]!==m||e[16]!==n||e[17]!==a||e[18]!==l||e[19]!==g?(E=U=>{if(!g&&U.length>1)return"Only single file selection is allowed";if(n&&U.length>n)return`Maximum ${n} file${n===1?"":"s"} allowed`;if(U.length===0)return null;if(m.length>0&&U.filter(B=>!K1(B,m)).length>0)return`Invalid file type. Accepted formats: ${m.join(", ")}`;if(a){const X=Go(a);if(U.filter(te=>te.size>X).length>0)return`File size must not exceed ${a}`}if(l){const X=Go(l);if(U.filter(te=>te.size<X).length>0)return`File size must be at least ${l}`}return null},e[15]=m,e[16]=n,e[17]=a,e[18]=l,e[19]=g,e[20]=E):E=e[20];const O=E;let j;e[21]!==i||e[22]!==c||e[23]!==O?(j=U=>{const X=O(U);if(X){N(X),i?.(X);return}N(void 0),v(U),c?.(U)},e[21]=i,e[22]=c,e[23]=O,e[24]=j):j=e[24];const S=j;let T;e[25]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{v([]),N(void 0)},e[25]=T):T=e[25];const P=T;let M;e[26]!==m||e[27]!==h||e[28]!==C||e[29]!==y||e[30]!==k||e[31]!==n||e[32]!==a||e[33]!==l||e[34]!==g||e[35]!==i||e[36]!==c||e[37]!==S||e[38]!==O?(M={accept:m,clearFiles:P,disabled:h,error:C,files:y,isDragActive:k,maxFiles:n,maxSize:a,minSize:l,multiple:g,onError:i,onFileSelect:c,selectFiles:S,validateFiles:O},e[26]=m,e[27]=h,e[28]=C,e[29]=y,e[30]=k,e[31]=n,e[32]=a,e[33]=l,e[34]=g,e[35]=i,e[36]=c,e[37]=S,e[38]=O,e[39]=M):M=e[39];const I=M;let V;e[40]!==h?(V=U=>{U.preventDefault(),U.stopPropagation(),h||w(!0)},e[40]=h,e[41]=V):V=e[41];const F=V;let L;e[42]!==h?(L=U=>{U.preventDefault(),U.stopPropagation(),!h&&!U.currentTarget.contains(U.relatedTarget)&&w(!1)},e[42]=h,e[43]=L):L=e[43];const z=L,R=J1;let $;e[44]!==h||e[45]!==S?($=U=>{if(U.preventDefault(),U.stopPropagation(),h)return;w(!1);const X=Array.from(U.dataTransfer.files);S(X)},e[44]=h,e[45]=S,e[46]=$):$=e[46];const Y=$;let H;e[47]!==o?(H=A("relative",o),e[47]=o,e[48]=H):H=e[48];const W=k?"drag-active":"idle";let G;e[49]!==m?(G=m.length>0?Q1(m):void 0,e[49]=m,e[50]=G):G=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q={display:"none"},e[51]=Q):Q=e[51];let q;e[52]!==h||e[53]!==g||e[54]!==G?(q=p.jsx("input",{accept:G,className:"hidden","data-ox-slot":"file-upload-input",disabled:h,multiple:g,style:Q,type:"file"}),e[52]=h,e[53]=g,e[54]=G,e[55]=q):q=e[55];let Z;e[56]!==r||e[57]!==s||e[58]!==F||e[59]!==z||e[60]!==Y||e[61]!==H||e[62]!==W||e[63]!==q?(Z=p.jsxs("div",{className:H,"data-ox-slot":"file-upload",...s,"data-ox-state":W,onDragEnter:F,onDragLeave:z,onDragOver:R,onDrop:Y,children:[r,q]}),e[56]=r,e[57]=s,e[58]=F,e[59]=z,e[60]=Y,e[61]=H,e[62]=W,e[63]=q,e[64]=Z):Z=e[64];let K;return e[65]!==I||e[66]!==Z?(K=p.jsx(cn.Provider,{value:I,children:Z}),e[65]=I,e[66]=Z,e[67]=K):K=e[67],K};function J1(t){t.preventDefault(),t.stopPropagation()}const ao=()=>{const t=_.useContext(cn);if(!t)throw new Error("useFileUploadContext must be used within a FileUploadContext.Provider");return t},eu=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),tu=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useRef(null),{accept:a,disabled:l,error:i,isDragActive:c,multiple:d,selectFiles:u}=ao();let f;e[4]!==l?(f=()=>{!l&&n.current&&n.current.click()},e[4]=l,e[5]=f):f=e[5];const x=f;let m;e[6]!==u?(m=T=>{const P=Array.from(T.target.files||[]);P.length>0&&u(P),T.target.value=""},e[6]=u,e[7]=m):m=e[7];const h=m,g=!c&&!i,b=!i&&!l;let y;e[8]!==o||e[9]!==l||e[10]!==i||e[11]!==c||e[12]!==g||e[13]!==b?(y=A("rounded-lg border-2 border-dashed p-6 transition-all duration-200",{"border-gray-400 bg-gray-50":g,"border-violet-500 bg-gray-50":c,"border-rose-500 bg-gray-50":i,"cursor-pointer hover:border-violet-500 focus:border-violet-500 focus:outline-none":b,"ox-default-disabled":l},o),e[8]=o,e[9]=l,e[10]=i,e[11]=c,e[12]=g,e[13]=b,e[14]=y):y=e[14];const v=l?-1:0,k=i?"error":c?"drag-active":l?"disabled":"idle";let w;e[15]!==l||e[16]!==x?(w=T=>{(T.key==="Enter"||T.key===" ")&&!l&&(T.preventDefault(),x())},e[15]=l,e[16]=x,e[17]=w):w=e[17];let C;e[18]!==i?(C=i&&p.jsx("div",{className:"mt-2 text-center text-sm text-rose-500",children:i}),e[18]=i,e[19]=C):C=e[19];let N;e[20]!==r||e[21]!==s||e[22]!==x||e[23]!==y||e[24]!==v||e[25]!==k||e[26]!==w||e[27]!==C?(N=p.jsxs("div",{className:y,"data-ox-slot":"file-upload-area",role:"button",tabIndex:v,...s,"data-ox-state":k,onClick:x,onKeyDown:w,children:[r,C]}),e[20]=r,e[21]=s,e[22]=x,e[23]=y,e[24]=v,e[25]=k,e[26]=w,e[27]=C,e[28]=N):N=e[28];let E;e[29]!==a?(E=a.length>0?eu(a):void 0,e[29]=a,e[30]=E):E=e[30];let O;e[31]===Symbol.for("react.memo_cache_sentinel")?(O={display:"none"},e[31]=O):O=e[31];let j;e[32]!==l||e[33]!==h||e[34]!==d||e[35]!==E?(j=p.jsx("input",{accept:E,className:"hidden","data-ox-slot":"file-upload-area-input",disabled:l,multiple:d,ref:n,style:O,type:"file",onChange:h}),e[32]=l,e[33]=h,e[34]=d,e[35]=E,e[36]=j):j=e[36];let S;return e[37]!==N||e[38]!==j?(S=p.jsxs(p.Fragment,{children:[N,j]}),e[37]=N,e[38]=j,e[39]=S):S=e[39],S},ru=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),ou=t=>{const e=D.compilerRuntimeExports.c(31);let r,o,s,n,a;e[0]!==t?({children:r,className:o,size:n,variant:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?"sm":n,i=a===void 0?"primary":a,c=_.useRef(null),{accept:d,disabled:u,multiple:f,selectFiles:x}=ao();let m;e[6]!==u?(m=()=>{!u&&c.current&&c.current.click()},e[6]=u,e[7]=m):m=e[7];const h=m;let g;e[8]!==x?(g=E=>{const O=Array.from(E.target.files||[]);O.length>0&&x(O),E.target.value=""},e[8]=x,e[9]=g):g=e[9];const b=g;let y;e[10]!==o?(y=A("cursor-pointer",o),e[10]=o,e[11]=y):y=e[11];let v;e[12]!==r||e[13]!==u||e[14]!==s||e[15]!==h||e[16]!==l||e[17]!==y||e[18]!==i?(v=p.jsx(je,{className:y,"data-ox-slot":"file-upload-button",disabled:u,size:l,type:"button",variant:i,...s,onClick:h,children:r}),e[12]=r,e[13]=u,e[14]=s,e[15]=h,e[16]=l,e[17]=y,e[18]=i,e[19]=v):v=e[19];let k;e[20]!==d?(k=d.length>0?ru(d):void 0,e[20]=d,e[21]=k):k=e[21];let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w={display:"none"},e[22]=w):w=e[22];let C;e[23]!==u||e[24]!==b||e[25]!==f||e[26]!==k?(C=p.jsx("input",{accept:k,className:"hidden","data-ox-slot":"file-upload-button-input",disabled:u,multiple:f,ref:c,style:w,type:"file",onChange:b}),e[23]=u,e[24]=b,e[25]=f,e[26]=k,e[27]=C):C=e[27];let N;return e[28]!==v||e[29]!==C?(N=p.jsxs(p.Fragment,{children:[v,C]}),e[28]=v,e[29]=C,e[30]=N):N=e[30],N},su=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),nu=t=>{const e=D.compilerRuntimeExports.c(52);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useRef(null),[a,l]=_.useState(!1),{accept:i,disabled:c,isDragActive:d,multiple:u,selectFiles:f}=ao();let x;e[4]!==c?(x=()=>{!c&&n.current&&n.current.click()},e[4]=c,e[5]=x):x=e[5];const m=x;let h;e[6]!==f?(h=$=>{const Y=Array.from($.target.files||[]);Y.length>0&&f(Y),$.target.value=""},e[6]=f,e[7]=h):h=e[7];const g=h,b=(a||d)&&!c;let y;e[8]!==o||e[9]!==c?(y=A("ox-backdrop-blur-parent group relative w-fit cursor-pointer overflow-hidden rounded-lg","ox-violet-outset-focus",{"cursor-not-allowed opacity-50":c},o),e[8]=o,e[9]=c,e[10]=y):y=e[10];const v=c?-1:0,k=d?"drag-active":a?"hovered":c?"disabled":"idle";let w;e[11]!==c||e[12]!==m?(w=$=>{($.key==="Enter"||$.key===" ")&&!c&&($.preventDefault(),m())},e[11]=c,e[12]=m,e[13]=w):w=e[13];let C,N;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=()=>l(!0),N=()=>l(!1),e[14]=C,e[15]=N):(C=e[14],N=e[15]);const E=!b;let O;e[16]!==d||e[17]!==b||e[18]!==E?(O=A("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":E,"opacity-100":b,"bg-violet-700/60":d}),e[16]=d,e[17]=b,e[18]=E,e[19]=O):O=e[19];const j=!b;let S;e[20]!==d||e[21]!==b||e[22]!==j?(S=A("flex flex-col items-center gap-2 text-white transition-transform duration-200",{"scale-90":j,"scale-100":b,"scale-110":d}),e[20]=d,e[21]=b,e[22]=j,e[23]=S):S=e[23];const T=d?qa:sl;let P;e[24]!==T?(P=p.jsx(ce,{className:"drop-shadow-sm",path:T,size:1.5}),e[24]=T,e[25]=P):P=e[25];let M;e[26]!==S||e[27]!==P?(M=p.jsx("div",{className:S,children:P}),e[26]=S,e[27]=P,e[28]=M):M=e[28];let I;e[29]!==O||e[30]!==M?(I=p.jsx("div",{className:O,"data-ox-slot":"file-upload-overlay-backdrop",children:M}),e[29]=O,e[30]=M,e[31]=I):I=e[31];let V;e[32]!==r||e[33]!==s||e[34]!==m||e[35]!==I||e[36]!==y||e[37]!==v||e[38]!==k||e[39]!==w?(V=p.jsxs("div",{className:y,"data-ox-slot":"file-upload-overlay",role:"button",tabIndex:v,...s,"data-ox-state":k,onClick:m,onKeyDown:w,onMouseEnter:C,onMouseLeave:N,children:[r,I]}),e[32]=r,e[33]=s,e[34]=m,e[35]=I,e[36]=y,e[37]=v,e[38]=k,e[39]=w,e[40]=V):V=e[40];let F;e[41]!==i?(F=i.length>0?su(i):void 0,e[41]=i,e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L={display:"none"},e[43]=L):L=e[43];let z;e[44]!==c||e[45]!==g||e[46]!==u||e[47]!==F?(z=p.jsx("input",{accept:F,className:"hidden","data-ox-slot":"file-upload-overlay-input",disabled:c,multiple:u,ref:n,style:L,type:"file",onChange:g}),e[44]=c,e[45]=g,e[46]=u,e[47]=F,e[48]=z):z=e[48];let R;return e[49]!==V||e[50]!==z?(R=p.jsxs(p.Fragment,{children:[V,z]}),e[49]=V,e[50]=z,e[51]=R):R=e[51],R},dr=X1;dr.Area=tu;dr.Button=ou;dr.Overlay=nu;const au=t=>{const e=D.compilerRuntimeExports.c(14);let r,o,s,n,a;e[0]!==t?({children:r,className:o,fullWidth:n,noValidate:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?!0:a;let c;e[6]!==o||e[7]!==l?(c=A({"w-full":l},o),e[6]=o,e[7]=l,e[8]=c):c=e[8];let d;return e[9]!==r||e[10]!==s||e[11]!==i||e[12]!==c?(d=p.jsx("form",{className:c,"data-ox-slot":"form",noValidate:i,...s,children:r}),e[9]=r,e[10]=s,e[11]=i,e[12]=c,e[13]=d):d=e[13],d},lu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(yt,{...t}),e[0]=t,e[1]=r):r=e[1],r},iu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(tn,{...t}),e[0]=t,e[1]=r):r=e[1],r},cu=A("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-1",'input[data-ox-slot="checkbox"]:col-start-1','input[data-ox-slot="checkbox"]:row-start-1','input[data-ox-slot="radio"]:col-start-1','input[data-ox-slot="radio"]:row-start-1','button[data-ox-slot="switch"]:col-start-1','button[data-ox-slot="switch"]:row-start-1',"*:data-[ox-slot=label]:col-start-2","*:data-[ox-slot=description]:col-start-2","*:data-[ox-slot=error]:col-start-2"),du=t=>{const e=D.compilerRuntimeExports.c(13);let r,o,s,n;e[0]!==t?({children:r,className:o,orientation:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?"vertical":n,l=a==="vertical",i=a==="horizontal";let c;e[5]!==o||e[6]!==l||e[7]!==i?(c=A({"space-y-1":l,[cu]:i},o),e[5]=o,e[6]=l,e[7]=i,e[8]=c):c=e[8];let d;return e[9]!==r||e[10]!==s||e[11]!==c?(d=p.jsx("div",{className:c,"data-ox-slot":"form-field",...s,children:r}),e[9]=r,e[10]=s,e[11]=c,e[12]=d):d=e[12],d},uu=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,layout:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n==="grid";let l;e[5]!==o||e[6]!==a?(l=A("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":a},o),e[5]=o,e[6]=a,e[7]=l):l=e[7];let i;return e[8]!==r||e[9]!==s||e[10]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"form-group",...s,children:r}),e[8]=r,e[9]=s,e[10]=l,e[11]=i):i=e[11],i},fu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(rn,{...t}),e[0]=t,e[1]=r):r=e[1],r},mu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(on,{...t}),e[0]=t,e[1]=r):r=e[1],r},lt=au;lt.Group=uu;lt.Field=du;lt.Label=mu;lt.Description=lu;lt.Error=iu;lt.GroupTitle=fu;const $t=_.createContext(null),Qe=()=>{const t=_.useContext($t);if(!t)throw new Error("useBaseInputContext must be used within a BaseInput component");return t},Ke=t=>{const e=D.compilerRuntimeExports.c(18);let r,o,s,n;e[0]!==t?({children:r,className:o,path:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{disabled:a,size:l}=Qe(),i=he[l],c=!n;let d;e[5]!==o||e[6]!==i||e[7]!==c?(d=A("enabled:cursor-pointer","disabled:ox-default-disabled",{[i]:c},o),e[5]=o,e[6]=i,e[7]=c,e[8]=d):d=e[8];let u;e[9]!==r||e[10]!==n||e[11]!==l?(u=n?p.jsx(ce,{path:n,size:Ie[l]}):r,e[9]=r,e[10]=n,e[11]=l,e[12]=u):u=e[12];let f;return e[13]!==a||e[14]!==s||e[15]!==d||e[16]!==u?(f=p.jsx("button",{className:d,"data-ox-slot":"input-button",disabled:a,tabIndex:-1,type:"button",...s,children:u}),e[13]=a,e[14]=s,e[15]=d,e[16]=u,e[17]=f):f=e[17],f},pu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},ur=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{error:n,showValidation:a,size:l,validationMessage:i}=Qe(),c=Pe[l],d=!n;let u;e[4]!==o||e[5]!==n||e[6]!==c||e[7]!==d?(u=A("flex w-full items-center gap-1.5 rounded-lg bg-gray-50 p-1.5","ox-violet-outset-within-focus",c,{"ox-gray-border":d,"ox-rose-border":n},o),e[4]=o,e[5]=n,e[6]=c,e[7]=d,e[8]=u):u=e[8];let f;e[9]!==r||e[10]!==s||e[11]!==u?(f=p.jsx("div",{className:u,"data-ox-slot":"input-container",...s,children:r}),e[9]=r,e[10]=s,e[11]=u,e[12]=f):f=e[12];let x;return e[13]!==a||e[14]!==f||e[15]!==i?(x=p.jsx(jn,{content:i,open:a,position:"bottom",trigger:"click",variant:"error",children:f}),e[13]=a,e[14]=f,e[15]=i,e[16]=x):x=e[16],x},dn=_.createContext(null),un=()=>{const t=_.useContext(dn);if(!t)throw new Error("useDateContext must be used within a DateInput component");return t},hu=()=>{const t=D.compilerRuntimeExports.c(10),{day:e,month:r,setValue:o,year:s}=un(),{setOpen:n}=Fe();let a;t[0]!==e||t[1]!==r||t[2]!==s?(a=e&&r&&s&&s.length===4?`${s}-${r.padStart(2,"0")}-${e.padStart(2,"0")}`:void 0,t[0]=e,t[1]=r,t[2]=s,t[3]=a):a=t[3];const l=a;let i;t[4]!==n||t[5]!==o?(i=u=>{const[f,x,m]=u.split("-");o({day:m,month:x,year:f}),n(!1)},t[4]=n,t[5]=o,t[6]=i):i=t[6];const c=i;let d;return t[7]!==l||t[8]!==c?(d=p.jsx(Ls,{value:l,onChange:c}),t[7]=l,t[8]=c,t[9]=d):d=t[9],d},xu=t=>{const e=D.compilerRuntimeExports.c(21),{defaultValue:r,onChange:o,value:s}=t,n=r??"";let a;e[0]!==o?(a=N=>o?.(N??""),e[0]=o,e[1]=a):a=e[1];let l;e[2]!==n||e[3]!==a||e[4]!==s?(l={value:s,defaultValue:n,onChange:a},e[2]=n,e[3]=a,e[4]=s,e[5]=l):l=e[5];const[i,c]=D.useControllableState(l),d=gu,u=bu;let f;e[6]!==i?(f=d(i),e[6]=i,e[7]=f):f=e[7];const{day:x,month:m,year:h}=f;let g;e[8]!==x||e[9]!==m||e[10]!==c||e[11]!==h?(g=N=>{const E=N.day??x,O=N.month??m,j=N.year??h,S=u(E,O,j);c(S)},e[8]=x,e[9]=m,e[10]=c,e[11]=h,e[12]=g):g=e[12];const b=g;let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=(N,E,O)=>{if(!N||!E||!O||O.length<4)return!1;const j=u(N,E,O),S=Vc(j,"yyyy-MM-dd",new Date);return Os(S)},e[13]=y):y=e[13];const v=y,k=yu,w=vu;let C;return e[14]!==i||e[15]!==x||e[16]!==m||e[17]!==c||e[18]!==b||e[19]!==h?(C={day:x,month:m,year:h,setValue:b,dateValue:i,setDateValue:c,isValidCompleteDate:v,getMaxDayForMonth:k,autoCompleteYear:w},e[14]=i,e[15]=x,e[16]=m,e[17]=c,e[18]=b,e[19]=h,e[20]=C):C=e[20],C};function gu(t){if(!t)return{day:"",month:"",year:""};const[e,r,o]=t.split("-");return{day:o===void 0?"":o,month:r===void 0?"":r,year:e===void 0?"":e}}function bu(t,e,r){if(!t&&!e&&!r)return"";const o=t?t.padStart(2,"0"):"",s=e?e.padStart(2,"0"):"";return`${r?r.padStart(4,"0"):""}-${s}-${o}`}function yu(t,e){if(!t)return 31;const r=parseInt(t,10);if(r<1||r>12)return 31;const o=e&&e.length===4?parseInt(e,10):new Date().getFullYear(),s=new Date(o,r-1,1);return Hi(s)}function vu(t){return t.length===2?parseInt(t,10)<50?`20${t}`:`19${t}`:t}const wu=t=>{const e=D.compilerRuntimeExports.c(59);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g,b,y,v;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultOpen:n,defaultValue:d,disabled:u,error:f,onChange:l,onOpenChange:i,open:c,pickOnly:x,readOnly:m,required:h,showValidation:g,showValidationTooltip:b,size:y,value:v,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y,e[18]=v):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15],b=e[16],y=e[17],v=e[18]);const k=d===void 0?"":d,w=u===void 0?!1:u,C=f===void 0?!1:f,N=x===void 0?!1:x,E=m===void 0?!1:m,O=h===void 0?!1:h,j=g===void 0?!1:g,S=b===void 0?!1:b,T=y===void 0?"sm":y,P=E||N;let M;e[19]!==k||e[20]!==l||e[21]!==v?(M={value:v,defaultValue:k,onChange:l},e[19]=k,e[20]=l,e[21]=v,e[22]=M):M=e[22];const{autoCompleteYear:I,day:V,getMaxDayForMonth:F,isValidCompleteDate:L,month:z,setValue:R,year:$}=xu(M),[Y,H]=_.useState(""),[W,G]=_.useState(j),Q=s||Y;let q;e[23]!==w||e[24]!==C||e[25]!==O||e[26]!==W||e[27]!==S||e[28]!==T||e[29]!==Q?(q={disabled:w,error:C,showValidation:W,showValidationTooltip:S,required:O,size:T,validationMessage:Q,setShowValidation:G,setValidationMessage:H},e[23]=w,e[24]=C,e[25]=O,e[26]=W,e[27]=S,e[28]=T,e[29]=Q,e[30]=q):q=e[30];let Z;e[31]!==I||e[32]!==V||e[33]!==P||e[34]!==F||e[35]!==L||e[36]!==z||e[37]!==N||e[38]!==R||e[39]!==$?(Z={day:V,month:z,year:$,setValue:R,isValidCompleteDate:L,getMaxDayForMonth:F,autoCompleteYear:I,readOnly:P,pickOnly:N},e[31]=I,e[32]=V,e[33]=P,e[34]=F,e[35]=L,e[36]=z,e[37]=N,e[38]=R,e[39]=$,e[40]=Z):Z=e[40];let K;e[41]!==o?(K=A("w-fit",o),e[41]=o,e[42]=K):K=e[42];let U;e[43]===Symbol.for("react.memo_cache_sentinel")?(U=p.jsx(Ne.Content,{className:"ox-date-input-animate",children:p.jsx(hu,{})}),e[43]=U):U=e[43];let X;e[44]!==r||e[45]!==n||e[46]!==i||e[47]!==c?(X=p.jsxs(Ne,{align:"center",animationDuration:200,defaultOpen:n,offset:16,open:c,position:"bottom",trigger:"click",onOpenChange:i,children:[r,U]}),e[44]=r,e[45]=n,e[46]=i,e[47]=c,e[48]=X):X=e[48];let B;e[49]!==a||e[50]!==K||e[51]!==X?(B=p.jsx(ur,{className:K,"data-ox-slot":"input-date-container",...a,children:X}),e[49]=a,e[50]=K,e[51]=X,e[52]=B):B=e[52];let te;e[53]!==Z||e[54]!==B?(te=p.jsx(dn.Provider,{value:Z,children:B}),e[53]=Z,e[54]=B,e[55]=te):te=e[55];let ne;return e[56]!==q||e[57]!==te?(ne=p.jsx($t.Provider,{value:q,children:te}),e[56]=q,e[57]=te,e[58]=ne):ne=e[58],ne},fr=t=>{const e=D.compilerRuntimeExports.c(16);let r,o,s,n;e[0]!==t?({children:r,className:o,path:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{disabled:a,size:l}=Qe();let i;e[5]!==o||e[6]!==a?(i=A("enabled:cursor-pointer",{"ox-default-disabled":a},o),e[5]=o,e[6]=a,e[7]=i):i=e[7];let c;e[8]!==r||e[9]!==n||e[10]!==l?(c=n?p.jsx(ce,{path:n,size:Ie[l]}):r,e[8]=r,e[9]=n,e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==s||e[13]!==i||e[14]!==c?(d=p.jsx("span",{className:i,"data-ox-slot":"input-icon",tabIndex:-1,...s,children:c}),e[12]=s,e[13]=i,e[14]=c,e[15]=d):d=e[15],d},ku=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},at=t=>{const e=D.compilerRuntimeExports.c(23);let r,o,s;e[0]!==t?({className:r,id:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useId(),{customValidationMessage:a,disabled:l,error:i,required:c,setShowValidation:d,setValidationMessage:u,showValidationTooltip:f,size:x}=Qe();let m;e[4]!==a||e[5]!==d||e[6]!==u||e[7]!==f?(m=w=>{w.preventDefault(),f&&(u(a||w.currentTarget.validationMessage),d(!0))},e[4]=a,e[5]=d,e[6]=u,e[7]=f,e[8]=m):m=e[8];const h=m,g=s||n,b=he[x];let y;e[9]!==r||e[10]!==b?(y=A("w-full min-w-10 appearance-none bg-transparent outline-none enabled:text-gray-1200","placeholder:text-gray-900 disabled:ox-default-disabled",b,r),e[9]=r,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==d?(v=()=>d(!1),e[12]=d,e[13]=v):v=e[13];let k;return e[14]!==l||e[15]!==o||e[16]!==i||e[17]!==h||e[18]!==g||e[19]!==c||e[20]!==y||e[21]!==v?(k=p.jsx("input",{id:g,"aria-invalid":i,"aria-required":c,className:y,disabled:l,required:c,onInput:v,onInvalid:h,...o}),e[14]=l,e[15]=o,e[16]=i,e[17]=h,e[18]=g,e[19]=c,e[20]=y,e[21]=v,e[22]=k):k=e[22],k},Cu=()=>{const t=D.compilerRuntimeExports.c(95),{disabled:e,setValidationMessage:r,size:o}=Qe(),{autoCompleteYear:s,day:n,getMaxDayForMonth:a,isValidCompleteDate:l,month:i,pickOnly:c,readOnly:d,setValue:u,year:f}=un(),{setOpen:x}=Fe(),m=_.useRef(null),h=_.useRef(null),g=_.useRef(null);let b;t[0]!==n||t[1]!==a||t[2]!==i||t[3]!==u||t[4]!==f?(b=re=>{const fe=a(i,f),Re=n?parseInt(n,10):re===1?0:fe+1,et=re===1?Re>=fe?1:Re+1:Re<=1?fe:Re-1;u({day:String(et)})},t[0]=n,t[1]=a,t[2]=i,t[3]=u,t[4]=f,t[5]=b):b=t[5];const y=b;let v;t[6]!==n||t[7]!==a||t[8]!==i||t[9]!==u||t[10]!==f?(v=re=>{const fe=i?parseInt(i,10):re===1?0:13,Re=re===1?fe>=12?1:fe+1:fe<=1?12:fe-1,et=a(String(Re),f);(n?parseInt(n,10):0)>et?u({day:String(et),month:String(Re)}):u({month:String(Re)})},t[6]=n,t[7]=a,t[8]=i,t[9]=u,t[10]=f,t[11]=v):v=t[11];const k=v;let w;t[12]!==a||t[13]!==i||t[14]!==u||t[15]!==f?(w=re=>{const fe=re.target.value,Re=a(i,f);(fe===""||/^\d{1,2}$/.test(fe)&&parseInt(fe,10)<=Re)&&u({day:fe})},t[12]=a,t[13]=i,t[14]=u,t[15]=f,t[16]=w):w=t[16];const C=w;let N;t[17]!==u?(N=re=>{const fe=re.target.value;(fe===""||/^\d{1,2}$/.test(fe)&&parseInt(fe,10)<=12)&&u({month:fe})},t[17]=u,t[18]=N):N=t[18];const E=N;let O;t[19]!==u?(O=re=>{const fe=re.target.value;(fe===""||/^\d{1,4}$/.test(fe)&&parseInt(fe,10)<=2100)&&u({year:fe})},t[19]=u,t[20]=O):O=t[20];const j=O;let S;t[21]!==y?(S=re=>{re.key==="ArrowUp"?(re.preventDefault(),y(1)):re.key==="ArrowDown"?(re.preventDefault(),y(-1)):(re.key==="Tab"&&!re.shiftKey||re.key==="Enter"||re.key==="-")&&(re.preventDefault(),h.current?.focus())},t[21]=y,t[22]=S):S=t[22];const T=S;let P;t[23]!==k||t[24]!==i?(P=re=>{re.key==="ArrowUp"?(re.preventDefault(),k(1)):re.key==="ArrowDown"?(re.preventDefault(),k(-1)):re.key==="Tab"&&re.shiftKey?(re.preventDefault(),m.current?.focus()):re.key==="Tab"&&!re.shiftKey||re.key==="Enter"||re.key==="-"?(re.preventDefault(),g.current?.focus()):re.key==="Backspace"&&i===""&&m.current?.focus()},t[23]=k,t[24]=i,t[25]=P):P=t[25];const M=P;let I;t[26]!==f?(I=re=>{re.key==="Tab"&&re.shiftKey?(re.preventDefault(),h.current?.focus()):re.key==="Backspace"&&f===""&&h.current?.focus()},t[26]=f,t[27]=I):I=t[27];const V=I;let F;t[28]!==n||t[29]!==l||t[30]!==i||t[31]!==r||t[32]!==f?(F=()=>{n&&i&&f?l(n,i,f)?r(""):r("Invalid date"):r("")},t[28]=n,t[29]=l,t[30]=i,t[31]=r,t[32]=f,t[33]=F):F=t[33];const L=F;let z;t[34]!==L?(z=()=>{L()},t[34]=L,t[35]=z):z=t[35];const R=z;let $;t[36]!==L?($=()=>{L()},t[36]=L,t[37]=$):$=t[37];const Y=$;let H;t[38]!==s||t[39]!==u||t[40]!==L||t[41]!==f?(H=()=>{if(f.length===2){const re=s(f);u({year:re})}L()},t[38]=s,t[39]=u,t[40]=L,t[41]=f,t[42]=H):H=t[42];const W=H;let G;t[43]!==c||t[44]!==x?(G=()=>{c&&x(!0)},t[43]=c,t[44]=x,t[45]=G):G=t[45];const Q=G,q=c&&!e;let Z;t[46]!==q?(Z=A("flex items-center bg-transparent",{"cursor-pointer":q}),t[46]=q,t[47]=Z):Z=t[47];let K;t[48]!==c?(K=A("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[48]=c,t[49]=K):K=t[49];let U;t[50]!==n||t[51]!==R||t[52]!==C||t[53]!==T||t[54]!==d||t[55]!==K?(U=p.jsx(at,{"aria-label":"Day",autoComplete:"off",className:K,inputMode:"numeric",max:"31",min:"0",pattern:"[0-9]*",placeholder:"dd",readOnly:d,ref:m,type:"number",value:n,onBlur:R,onChange:C,onKeyDown:T}),t[50]=n,t[51]=R,t[52]=C,t[53]=T,t[54]=d,t[55]=K,t[56]=U):U=t[56];const X=he[o],B=!e;let te;t[57]!==e||t[58]!==X||t[59]!==B?(te=A(X,{"text-gray-1000":B,"ox-default-disabled":e}),t[57]=e,t[58]=X,t[59]=B,t[60]=te):te=t[60];let ne;t[61]!==te?(ne=p.jsx("span",{className:te,children:"-"}),t[61]=te,t[62]=ne):ne=t[62];let oe;t[63]!==c?(oe=A("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[63]=c,t[64]=oe):oe=t[64];let ge;t[65]!==Y||t[66]!==E||t[67]!==M||t[68]!==i||t[69]!==d||t[70]!==oe?(ge=p.jsx(at,{"aria-label":"Month",autoComplete:"off",className:oe,inputMode:"numeric",max:"12",min:"0",pattern:"[0-9]*",placeholder:"mm",readOnly:d,ref:h,type:"number",value:i,onBlur:Y,onChange:E,onKeyDown:M}),t[65]=Y,t[66]=E,t[67]=M,t[68]=i,t[69]=d,t[70]=oe,t[71]=ge):ge=t[71];const we=he[o],be=!e;let Me;t[72]!==e||t[73]!==we||t[74]!==be?(Me=A(we,{"text-gray-1000":be,"ox-default-disabled":e}),t[72]=e,t[73]=we,t[74]=be,t[75]=Me):Me=t[75];let $e;t[76]!==Me?($e=p.jsx("span",{className:Me,children:"-"}),t[76]=Me,t[77]=$e):$e=t[77];let _e;t[78]!==c?(_e=A("w-10 min-w-10 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[78]=c,t[79]=_e):_e=t[79];let He;t[80]!==W||t[81]!==j||t[82]!==V||t[83]!==d||t[84]!==_e||t[85]!==f?(He=p.jsx(at,{"aria-label":"Year",autoComplete:"off",className:_e,inputMode:"numeric",max:"2100",min:"0",pattern:"[0-9]*",placeholder:"yyyy",readOnly:d,ref:g,type:"number",value:f,onBlur:W,onChange:j,onKeyDown:V}),t[80]=W,t[81]=j,t[82]=V,t[83]=d,t[84]=_e,t[85]=f,t[86]=He):He=t[86];let Je;return t[87]!==Q||t[88]!==Z||t[89]!==U||t[90]!==ne||t[91]!==ge||t[92]!==$e||t[93]!==He?(Je=p.jsxs("div",{className:Z,"data-ox-slot":"input-date",onClick:Q,children:[U,ne,ge,$e,He]}),t[87]=Q,t[88]=Z,t[89]=U,t[90]=ne,t[91]=ge,t[92]=$e,t[93]=He,t[94]=Je):Je=t[94],Je},Eu=t=>{const e=D.compilerRuntimeExports.c(6);let r,o;e[0]!==t?({children:r,...o}=t,e[0]=t,e[1]=r,e[2]=o):(r=e[1],o=e[2]);let s;return e[3]!==r||e[4]!==o?(s=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx(Ke,{...o,path:Fa,children:r})}),e[3]=r,e[4]=o,e[5]=s):s=e[5],s},Lt=Cu;Lt.Container=wu;Lt.Icon=ku;Lt.Button=pu;Lt.PickerButton=Eu;const Nu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},fn=_.createContext(null),Ou=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g,b,y;e[0]!==t?({children:r,defaultValue:o,disabled:d,error:u,locale:f,max:n,maximumFractionDigits:a,min:l,minimumFractionDigits:i,onChange:c,required:x,showValidationTooltip:m,size:h,steps:g,useGrouping:b,value:y,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15],b=e[16],y=e[17]);const v=d===void 0?!1:d,k=u===void 0?!1:u,w=f===void 0?"en-US":f,C=x===void 0?!1:x,N=m===void 0?!1:m,E=h===void 0?"sm":h,O=g===void 0?1:g,j=b===void 0?!0:b,S=_.useId(),T=new Intl.NumberFormat(w,{useGrouping:j!==!1,minimumFractionDigits:i,maximumFractionDigits:a});let P;e[18]!==o||e[19]!==c||e[20]!==y?(P={value:y,onChange:c,defaultValue:o,name:"OxNumberInput"},e[18]=o,e[19]=c,e[20]=y,e[21]=P):P=e[21];const[M,I]=D.useControllableState(P),[V,F]=_.useState(M!==void 0?T.format(M):""),[L,z]=_.useState(""),[R,$]=_.useState(!1),Y=ju;let H;e[22]!==n||e[23]!==l?(H=B=>D.clamp(B,l??-1/0,n??1/0),e[22]=n,e[23]=l,e[24]=H):H=e[24];const W=H,G=B=>{let te=Y(V);te===void 0&&(te=M!==void 0?M:0);const ne=W(te),oe=W(ne+B);I(oe),F(T.format(oe))};let Q;e[25]!==G||e[26]!==O?(Q=()=>G(O),e[25]=G,e[26]=O,e[27]=Q):Q=e[27];const q=Q;let Z;e[28]!==G||e[29]!==O?(Z=()=>G(-O),e[28]=G,e[29]=O,e[30]=Z):Z=e[30];const K=Z;let U;e[31]!==v||e[32]!==k||e[33]!==C||e[34]!==R||e[35]!==N||e[36]!==E||e[37]!==L?(U={disabled:v,error:k,showValidation:R,showValidationTooltip:N,required:C,size:E,validationMessage:L,setShowValidation:$,setValidationMessage:z},e[31]=v,e[32]=k,e[33]=C,e[34]=R,e[35]=N,e[36]=E,e[37]=L,e[38]=U):U=e[38];let X;return e[39]!==r||e[40]!==s?(X=p.jsx(ur,{"data-ox-slot":"input-number-container",...s,children:r}),e[39]=r,e[40]=s,e[41]=X):X=e[41],p.jsx($t.Provider,{value:U,children:p.jsx(fn.Provider,{value:{clampValue:W,displayValue:V,formatter:T,handleDecrement:K,handleIncrement:q,inputId:S,internalValue:M,max:n,min:l,parse:Y,setDisplayValue:F,setInternalValue:I,steps:O},children:X})})};function ju(t){if(!t.trim())return;const e=t.replace(/[^\d.-]/g,""),r=parseFloat(e);return!isNaN(r)&&isFinite(r)?r:void 0}const lo=()=>{const t=_.useContext(fn);if(!t)throw new Error("useNumberContext must be used within a Number component");return t},Su=()=>{const t=D.compilerRuntimeExports.c(6),{size:e}=Qe(),{handleDecrement:r,inputId:o}=lo(),s=Ie[e];let n;t[0]!==s?(n=p.jsx(ce,{path:xs,size:s}),t[0]=s,t[1]=n):n=t[1];let a;return t[2]!==r||t[3]!==o||t[4]!==n?(a=p.jsx(Ke,{"aria-controls":o,"aria-label":"Decrease value","data-ox-slot":"input-number-decrement",onClick:r,children:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=a):a=t[5],a},Tu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},Pu=()=>{const t=D.compilerRuntimeExports.c(6),{size:e}=Qe(),{handleIncrement:r,inputId:o}=lo(),s=Ie[e];let n;t[0]!==s?(n=p.jsx(ce,{path:ol,size:s}),t[0]=s,t[1]=n):n=t[1];let a;return t[2]!==r||t[3]!==o||t[4]!==n?(a=p.jsx(Ke,{"aria-controls":o,"aria-label":"Increase value","data-slot":"input-number-increment",onClick:r,children:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=a):a=t[5],a},Mu=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n;e[0]!==t?({"aria-label":r,"aria-labelledby":o,className:s,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{clampValue:a,displayValue:l,formatter:i,handleDecrement:c,handleIncrement:d,inputId:u,internalValue:f,max:x,min:m,parse:h,setDisplayValue:g,setInternalValue:b}=lo(),[y,v]=_.useState(!1);let k;e[5]!==g?(k=V=>{g(V.target.value)},e[5]=g,e[6]=k):k=e[6];const w=k,C=Ru;let N;e[7]!==a||e[8]!==l||e[9]!==i||e[10]!==h||e[11]!==g||e[12]!==b?(N=()=>{const V=h(l);if(V!==void 0){const F=a(V);b(F),g(i.format(F))}else b(void 0),g("")},e[7]=a,e[8]=l,e[9]=i,e[10]=h,e[11]=g,e[12]=b,e[13]=N):N=e[13];const E=N;let O;e[14]!==i||e[15]!==h||e[16]!==g||e[17]!==b?(O=V=>{const F=V.clipboardData.getData("text"),L=h(F);L!==void 0&&(V.preventDefault(),g(i.format(L)),b(L))},e[14]=i,e[15]=h,e[16]=g,e[17]=b,e[18]=O):O=e[18];const j=O;let S;e[19]!==E||e[20]!==c||e[21]!==d||e[22]!==y?(S={onArrowDown:c,onArrowUp:d,onEnter:E,enabled:y,allowRepeat:!0},e[19]=E,e[20]=c,e[21]=d,e[22]=y,e[23]=S):S=e[23],D.useKeyboard(S);let T;e[24]!==s?(T=A("text-center",s),e[24]=s,e[25]=T):T=e[25];let P;e[26]!==E?(P=()=>{v(!1),E()},e[26]=E,e[27]=P):P=e[27];let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=()=>v(!0),e[28]=M):M=e[28];let I;return e[29]!==r||e[30]!==o||e[31]!==l||e[32]!==n||e[33]!==w||e[34]!==j||e[35]!==u||e[36]!==f||e[37]!==x||e[38]!==m||e[39]!==T||e[40]!==P?(I=p.jsx(at,{id:u,"aria-label":r,"aria-labelledby":o,"aria-valuemax":x,"aria-valuemin":m,"aria-valuenow":f,autoComplete:"off",className:T,"data-ox-slot":"input-number",inputMode:"decimal",role:"spinbutton",type:"text",value:l,onBeforeInput:C,onBlur:P,onChange:w,onFocus:M,onPaste:j,...n}),e[29]=r,e[30]=o,e[31]=l,e[32]=n,e[33]=w,e[34]=j,e[35]=u,e[36]=f,e[37]=x,e[38]=m,e[39]=T,e[40]=P,e[41]=I):I=e[41],I};function Ru(t){const e=t.nativeEvent,r=t.target,o=r.value.slice(0,r.selectionStart??void 0)+(e.data??"")+r.value.slice(r.selectionEnd??void 0);!/^-?[\d.,]*$/.test(o)&&o!==""&&t.preventDefault()}const Nt=Mu;Nt.Button=Nu;Nt.Container=Ou;Nt.DecrementButton=Su;Nt.Icon=Tu;Nt.IncrementButton=Pu;const Du={sm:"size-8 text-sm",md:"size-9 text-sm"},Au={sm:"gap-1",md:"gap-2"},Iu=t=>{switch(t){case"numeric":return{inputMode:"numeric",pattern:"[0-9]*"};case"alphanumeric":return{inputMode:"text",pattern:"[A-Z0-9]*"};case"text":default:return{inputMode:"text"}}},$u=(t,e)=>{switch(e){case"numeric":return t.replace(/[^0-9]/g,"");case"alphanumeric":return t.replace(/[^A-Z0-9]/gi,"").toUpperCase();default:return t}},Lu=t=>{const e=D.compilerRuntimeExports.c(25),{className:r,disabled:o,error:s,length:n,onComplete:a,onValueChange:l,placeholder:i,size:c,type:d}=t,u=o===void 0?!1:o,f=s===void 0?!1:s,x=n===void 0?6:n,m=i===void 0?"":i,h=c===void 0?"md":c,g=d===void 0?"numeric":d,b=_.useId();let y;e[0]!==x?(y=()=>new Array(x).fill(""),e[0]=x,e[1]=y):y=e[1];const[v,k]=_.useState(y);let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=[],e[2]=w):w=e[2];const C=_.useRef(w);let N;e[3]!==g?(N=Iu(g),e[3]=g,e[4]=N):N=e[4];const E=N;let O,j;e[5]!==x?(O=()=>{C.current=C.current.slice(0,x)},j=[x],e[5]=x,e[6]=O,e[7]=j):(O=e[6],j=e[7]),_.useEffect(O,j);let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=M=>Mt.flushSync(()=>{k(M)}),e[8]=S):S=e[8];const T=S;let P;if(e[9]!==b||e[10]!==r||e[11]!==v||e[12]!==u||e[13]!==f||e[14]!==x||e[15]!==a||e[16]!==l||e[17]!==m||e[18]!==h||e[19]!==g||e[20]!==E){const M=(z,R)=>{const $=$u(R,g),Y=[...v];Y[z]=$[0]||"";const H=Y[z]&&z<x-1?z+1:void 0;T(Y),H!==void 0&&C.current[H]?.focus();const W=Y.filter(_u),G=W.join("");l?.(G),W.length===x&&a?.(G)},I=(z,R)=>{const $=[...v];if(R.key==="Backspace"){if(v[z]){$[z]="",T($);const Y=$.filter(Vu);l?.(Y.join(""))}else if(z>0){$[z-1]="",T($),C.current[z-1]?.focus();const Y=$.filter(zu);l?.(Y.join(""))}}R.key==="ArrowLeft"&&z>0&&C.current[z-1]?.focus(),R.key==="ArrowRight"&&z<x-1&&C.current[z+1]?.focus()},V=z=>{C.current[z]?.select()},F=Au[h];let L;e[22]!==r||e[23]!==F?(L=A("inline-flex",F,r),e[22]=r,e[23]=F,e[24]=L):L=e[24],P=p.jsx("div",{className:L,"data-ox-slot":"otp-input",children:Array.from({length:x},(z,R)=>{const $=R===0||v.slice(0,R).every(Fu),Y=u||!$;return p.jsx("input",{id:`${b}-digit-${R}`,"aria-label":`Digit ${R+1} of ${x}`,autoComplete:"one-time-code",className:A("rounded-lg border bg-gray-50 text-center font-mono transition-all duration-200","ox-violet-outset-focus",Du[h],{"ox-gray-border":!f,"ox-rose-border":f,"ox-default-disabled":u}),"data-ox-slot":"otp-digit",disabled:Y,maxLength:1,placeholder:m,ref:H=>{C.current[R]=H},type:"text",value:v[R],onChange:H=>M(R,H.target.value),onFocus:()=>V(R),onKeyDown:H=>I(R,H),onPaste:Hu,...E},R)})}),e[9]=b,e[10]=r,e[11]=v,e[12]=u,e[13]=f,e[14]=x,e[15]=a,e[16]=l,e[17]=m,e[18]=h,e[19]=g,e[20]=E,e[21]=P}else P=e[21];return P};function _u(t){return t!==""}function Vu(t){return t!==""}function zu(t){return t!==""}function Fu(t){return t!==""}function Hu(t){return t.preventDefault()}const Bu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},mn=_.createContext(null),io=()=>{const t=_.useContext(mn);if(!t)throw new Error("useTextContext must be used within a Text component");return t},Yu=()=>{const t=D.compilerRuntimeExports.c(5),{handleClear:e,internalValue:r}=io(),o=!r;let s;t[0]!==o?(s=A("",{invisible:o}),t[0]=o,t[1]=s):s=t[1];let n;return t[2]!==e||t[3]!==s?(n=p.jsx(Ke,{"aria-label":"Clear input",className:s,"data-ox-slot":"input-text-clear",path:Rt,onClick:e}),t[2]=e,t[3]=s,t[4]=n):n=t[4],n},qu=t=>{const e=D.compilerRuntimeExports.c(53);let r,o,s,n,a,l,i,c,d,u,f,x,m,h;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultValue:n,disabled:i,error:c,onChange:l,required:d,showValidation:u,showValidationTooltip:f,size:x,type:m,value:h,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14]);const g=i===void 0?!1:i,b=c===void 0?!1:c,y=d===void 0?!1:d,v=u===void 0?!1:u,k=f===void 0?!1:f,w=x===void 0?"sm":x,C=m===void 0?"text":m,N=_.useRef(null);let E;e[15]!==l?(E=B=>{l?.(B??"")},e[15]=l,e[16]=E):E=e[16];let O;e[17]!==n||e[18]!==E||e[19]!==h?(O={value:h,onChange:E,defaultValue:n,name:"OxTextInput"},e[17]=n,e[18]=E,e[19]=h,e[20]=O):O=e[20];const[j,S]=D.useControllableState(O),T=j??"";let P;e[21]!==S?(P=B=>S(B),e[21]=S,e[22]=P):P=e[22];const M=P,[I,V]=_.useState(C),[F,L]=_.useState(""),[z,R]=_.useState(v);let $;e[23]!==M?($=()=>{M(""),N.current?.focus()},e[23]=M,e[24]=$):$=e[24];const Y=$;let H;e[25]!==I?(H=()=>{I==="password"?V("text"):I==="text"&&V("password")},e[25]=I,e[26]=H):H=e[26];const W=H,G=s||F;let Q;e[27]!==g||e[28]!==b||e[29]!==y||e[30]!==z||e[31]!==k||e[32]!==w||e[33]!==G?(Q={disabled:g,error:b,showValidation:z,showValidationTooltip:k,required:y,size:w,validationMessage:G,setShowValidation:R,setValidationMessage:L},e[27]=g,e[28]=b,e[29]=y,e[30]=z,e[31]=k,e[32]=w,e[33]=G,e[34]=Q):Q=e[34];let q;e[35]!==I||e[36]!==Y||e[37]!==W||e[38]!==T||e[39]!==M?(q={handleClear:Y,handleTypeToggle:W,inputRef:N,internalValue:T,setInternalValue:M,type:I},e[35]=I,e[36]=Y,e[37]=W,e[38]=T,e[39]=M,e[40]=q):q=e[40];let Z;e[41]!==o?(Z=A("[&_[data-ox-slot='input-text']:only-child]:px-2",o),e[41]=o,e[42]=Z):Z=e[42];let K;e[43]!==r||e[44]!==a||e[45]!==Z?(K=p.jsx(ur,{className:Z,"data-ox-slot":"input-text-container",...a,children:r}),e[43]=r,e[44]=a,e[45]=Z,e[46]=K):K=e[46];let U;e[47]!==q||e[48]!==K?(U=p.jsx(mn.Provider,{value:q,children:K}),e[47]=q,e[48]=K,e[49]=U):U=e[49];let X;return e[50]!==Q||e[51]!==U?(X=p.jsx($t.Provider,{value:Q,children:U}),e[50]=Q,e[51]=U,e[52]=X):X=e[52],X},Wu=t=>{const e=D.compilerRuntimeExports.c(16);let r,o,s,n,a,l;e[0]!==t?({className:r,currentLength:n,disabled:a,maxLength:s,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?0:n,c=a===void 0?!1:a,u=he[l===void 0?"sm":l];let f;e[7]!==r||e[8]!==c||e[9]!==u?(f=A("mt-1 text-right text-gray-1000 tabular-nums",u,{"ox-default-disabled":c},r),e[7]=r,e[8]=c,e[9]=u,e[10]=f):f=e[10];let x;return e[11]!==i||e[12]!==o||e[13]!==s||e[14]!==f?(x=p.jsxs("div",{className:f,"data-ox-slot":"input-counter",...o,children:[i,"/",s]}),e[11]=i,e[12]=o,e[13]=s,e[14]=f,e[15]=x):x=e[15],x},Gu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Wu,{...t}),e[0]=t,e[1]=r):r=e[1],r},Uu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},Zu=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a,l,i;e[0]!==t?({autoComplete:r,className:o,id:n,maxLength:a,placeholder:l,spellCheck:i,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=i===void 0?!1:i,{disabled:d,error:u,required:f}=Qe(),{inputRef:x,internalValue:m,setInternalValue:h,type:g}=io();let b;e[8]!==h?(b=k=>{h(k.target.value)},e[8]=h,e[9]=b):b=e[9];const y=b;let v;return e[10]!==r||e[11]!==o||e[12]!==d||e[13]!==s||e[14]!==u||e[15]!==y||e[16]!==n||e[17]!==x||e[18]!==m||e[19]!==a||e[20]!==l||e[21]!==f||e[22]!==c||e[23]!==g?(v=p.jsx(at,{id:n,"aria-invalid":u,"aria-required":f,autoComplete:r,className:o,"data-ox-slot":"input-text",disabled:d,maxLength:a,placeholder:l,ref:x,required:f,spellCheck:c,type:g,value:m,onChange:y,...s}),e[10]=r,e[11]=o,e[12]=d,e[13]=s,e[14]=u,e[15]=y,e[16]=n,e[17]=x,e[18]=m,e[19]=a,e[20]=l,e[21]=f,e[22]=c,e[23]=g,e[24]=v):v=e[24],v},Qu=()=>{const t=D.compilerRuntimeExports.c(4),{handleTypeToggle:e,type:r}=io(),o=r==="text",s=o?"Hide password":"Show password",n=o?Ka:Qa;let a;return t[0]!==e||t[1]!==s||t[2]!==n?(a=p.jsx(Ke,{"aria-label":s,"data-ox-slot":"input-text-toggle",path:n,onClick:e}),t[0]=e,t[1]=s,t[2]=n,t[3]=a):a=t[3],a},it=Zu;it.Button=Bu;it.ClearButton=Yu;it.Container=qu;it.Counter=Gu;it.Icon=Uu;it.VisibilityButton=Qu;const Ku=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},pn=_.createContext(null),Xu=t=>{const e=D.compilerRuntimeExports.c(21),{defaultValue:r,onChange:o,value:s}=t,n=r??"";let a;e[0]!==o?(a=k=>o?.(k??""),e[0]=o,e[1]=a):a=e[1];let l;e[2]!==n||e[3]!==a||e[4]!==s?(l={value:s,defaultValue:n,onChange:a},e[2]=n,e[3]=a,e[4]=s,e[5]=l):l=e[5];const[i,c]=D.useControllableState(l),d=Ju,u=ef;let f;e[6]!==i?(f=d(i),e[6]=i,e[7]=f):f=e[7];const{hours:x,minutes:m}=f;let h;e[8]!==m||e[9]!==c?(h=k=>{const w=u(k,m);c(w)},e[8]=m,e[9]=c,e[10]=h):h=e[10];const g=h;let b;e[11]!==x||e[12]!==c?(b=k=>{const w=u(x,k);c(w)},e[11]=x,e[12]=c,e[13]=b):b=e[13];const y=b;let v;return e[14]!==x||e[15]!==m||e[16]!==g||e[17]!==y||e[18]!==c||e[19]!==i?(v={hours:x,minutes:m,setHours:g,setMinutes:y,timeValue:i,setTimeValue:c},e[14]=x,e[15]=m,e[16]=g,e[17]=y,e[18]=c,e[19]=i,e[20]=v):v=e[20],v};function Ju(t){if(!t)return{hours:"",minutes:""};const[e,r]=t.split(":");return{hours:e===void 0?"":e,minutes:r===void 0?"":r}}function ef(t,e){if(!t&&!e)return"";const r=t?t.padStart(2,"0"):"",o=e?e.padStart(2,"0"):"";return`${r}:${o}`}const tf=t=>{const e=D.compilerRuntimeExports.c(43);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultValue:l,disabled:i,error:c,onChange:a,required:d,showValidation:u,showValidationTooltip:f,size:x,value:m,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=l===void 0?"":l,g=i===void 0?!1:i,b=c===void 0?!1:c,y=d===void 0?!1:d,v=u===void 0?!1:u,k=f===void 0?!1:f,w=x===void 0?"sm":x;let C;e[14]!==h||e[15]!==a||e[16]!==m?(C={value:m,defaultValue:h,onChange:a},e[14]=h,e[15]=a,e[16]=m,e[17]=C):C=e[17];const{hours:N,minutes:E,setHours:O,setMinutes:j}=Xu(C),[S,T]=_.useState(""),[P,M]=_.useState(v),I=s||S;let V;e[18]!==g||e[19]!==b||e[20]!==y||e[21]!==P||e[22]!==k||e[23]!==w||e[24]!==I?(V={disabled:g,error:b,showValidation:P,showValidationTooltip:k,required:y,size:w,validationMessage:I,setShowValidation:M,setValidationMessage:T},e[18]=g,e[19]=b,e[20]=y,e[21]=P,e[22]=k,e[23]=w,e[24]=I,e[25]=V):V=e[25];let F;e[26]!==N||e[27]!==E||e[28]!==O||e[29]!==j?(F={hours:N,minutes:E,setHours:O,setMinutes:j},e[26]=N,e[27]=E,e[28]=O,e[29]=j,e[30]=F):F=e[30];let L;e[31]!==o?(L=A("w-fit [&_[data-ox-slot='input-time']:only-child]:px-2",o),e[31]=o,e[32]=L):L=e[32];let z;e[33]!==r||e[34]!==n||e[35]!==L?(z=p.jsx(ur,{className:L,"data-ox-slot":"input-time-container",...n,children:r}),e[33]=r,e[34]=n,e[35]=L,e[36]=z):z=e[36];let R;e[37]!==F||e[38]!==z?(R=p.jsx(pn.Provider,{value:F,children:z}),e[37]=F,e[38]=z,e[39]=R):R=e[39];let $;return e[40]!==V||e[41]!==R?($=p.jsx($t.Provider,{value:V,children:R}),e[40]=V,e[41]=R,e[42]=$):$=e[42],$},rf=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},of=()=>{const t=_.useContext(pn);if(!t)throw new Error("useTimeContext must be used within a TimeInput component");return t},sf=()=>{const t=D.compilerRuntimeExports.c(26),{hours:e,minutes:r,setHours:o,setMinutes:s}=of(),{disabled:n,size:a}=Qe(),l=_.useRef(null),i=_.useRef(null);let c;t[0]!==o?(c=j=>{const S=j.target.value;(S===""||/^\d{1,2}$/.test(S)&&parseInt(S,10)<=23)&&o(S)},t[0]=o,t[1]=c):c=t[1];const d=c;let u;t[2]!==s?(u=j=>{const S=j.target.value;(S===""||/^\d{1,2}$/.test(S)&&parseInt(S,10)<=59)&&s(S)},t[2]=s,t[3]=u):u=t[3];const f=u;let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=j=>{(j.key==="Tab"||j.key==="Enter"||j.key===":")&&(j.preventDefault(),i.current?.focus())},t[4]=x):x=t[4];const m=x;let h;t[5]!==r?(h=j=>{j.key==="Backspace"&&r===""&&l.current?.focus()},t[5]=r,t[6]=h):h=t[6];const g=h;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=A("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),t[7]=b):b=t[7];let y;t[8]!==d||t[9]!==e?(y=p.jsx(at,{autoComplete:"off",className:b,max:"23",min:"0",placeholder:"hh",ref:l,type:"number",value:e,onChange:d,onKeyDown:m}),t[8]=d,t[9]=e,t[10]=y):y=t[10];const v=he[a],k=!n;let w;t[11]!==n||t[12]!==v||t[13]!==k?(w=A(v,{"text-gray-1000":k,"ox-default-disabled":n}),t[11]=n,t[12]=v,t[13]=k,t[14]=w):w=t[14];let C;t[15]!==w?(C=p.jsx("span",{className:w,children:":"}),t[15]=w,t[16]=C):C=t[16];let N;t[17]===Symbol.for("react.memo_cache_sentinel")?(N=A("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),t[17]=N):N=t[17];let E;t[18]!==f||t[19]!==g||t[20]!==r?(E=p.jsx(at,{autoComplete:"off",className:N,max:"59",min:"0",placeholder:"mm",ref:i,type:"number",value:r,onChange:f,onKeyDown:g}),t[18]=f,t[19]=g,t[20]=r,t[21]=E):E=t[21];let O;return t[22]!==E||t[23]!==y||t[24]!==C?(O=p.jsxs("div",{className:"flex items-center gap-1 bg-transparent px-2","data-ox-slot":"input-time",children:[y,C,E]}),t[22]=E,t[23]=y,t[24]=C,t[25]=O):O=t[25],O},mr=sf;mr.Container=tf;mr.Icon=rf;mr.Button=Ku;const hn=_.createContext(void 0),nf=()=>{const t=_.useContext(hn);if(!t)throw new Error("OxRadio must be used within OxRadioGroup");return t},af={sm:"size-4.5",md:"size-5.5"},lf=t=>{const e=D.compilerRuntimeExports.c(47);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({checked:r,className:o,defaultChecked:s,disabled:u,error:f,id:c,name:a,onChange:l,onCheckedChange:i,required:x,size:d,value:m,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=u===void 0?!1:u,g=f===void 0?!1:f,b=x===void 0?!1:x,y=_.useId(),v=nf(),k=_.useRef(null),C=`${c||y}-radio`,N=d||v.size,E=h||v.disabled,O=a||v?.name,j=r!==void 0||v&&m!==void 0&&v.value!==void 0;let S;v&&m!==void 0&&v.value!==void 0?S=v.value===m:S=r;let T;e[14]!==v||e[15]!==l||e[16]!==i||e[17]!==m?(T=H=>{const W=H.target.checked;v&&m!==void 0&&v.onChange?.(m),l?.(H),i?.(W)},e[14]=v,e[15]=l,e[16]=i,e[17]=m,e[18]=T):T=e[18];const P=T;let M;e[19]!==S||e[20]!==s||e[21]!==j?(M=j?{checked:S}:{defaultChecked:s},e[19]=S,e[20]=s,e[21]=j,e[22]=M):M=e[22];const I=af[N],V=!g;let F;e[23]!==o||e[24]!==g||e[25]!==I||e[26]!==V?(F=A("peer cursor-pointer appearance-none rounded-full bg-gray-50",I,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":g,"ox-gray-border":V},o),e[23]=o,e[24]=g,e[25]=I,e[26]=V,e[27]=F):F=e[27];const L=S?"checked":"unchecked";let z;e[28]!==E||e[29]!==O||e[30]!==n||e[31]!==g||e[32]!==P||e[33]!==C||e[34]!==b||e[35]!==M||e[36]!==F||e[37]!==L||e[38]!==m?(z=p.jsx("input",{id:C,"aria-invalid":g,"aria-required":b,"data-ox-slot":"radio",ref:k,...M,className:F,disabled:E,name:O,required:b,type:"radio",value:m,onChange:P,...n,"data-ox-state":L}),e[28]=E,e[29]=O,e[30]=n,e[31]=g,e[32]=P,e[33]=C,e[34]=b,e[35]=M,e[36]=F,e[37]=L,e[38]=m,e[39]=z):z=e[39];let R;e[40]!==E?(R=A("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":E}),e[40]=E,e[41]=R):R=e[41];let $;e[42]!==R?($=p.jsx("div",{className:R}),e[42]=R,e[43]=$):$=e[43];let Y;return e[44]!==z||e[45]!==$?(Y=p.jsxs("div",{className:"relative inline-flex shrink-0",children:[z,$]}),e[44]=z,e[45]=$,e[46]=Y):Y=e[46],Y},cf=t=>{const e=D.compilerRuntimeExports.c(24);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,disabled:l,name:n,onChange:a,size:i,value:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?"sm":i;let f;e[9]!==d||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==c?(f={value:c,onChange:a,name:n,size:u,disabled:d},e[9]=d,e[10]=n,e[11]=a,e[12]=u,e[13]=c,e[14]=f):f=e[14];let x;e[15]!==o?(x=A("contents space-y-2",o),e[15]=o,e[16]=x):x=e[16];let m;e[17]!==r||e[18]!==s||e[19]!==x?(m=p.jsx("div",{className:x,"data-ox-slot":"radio-group",role:"radiogroup",...s,children:r}),e[17]=r,e[18]=s,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==f||e[22]!==m?(h=p.jsx(hn.Provider,{value:f,children:m}),e[21]=f,e[22]=m,e[23]=h):h=e[23],h},xn=lf;xn.Group=cf;const gn=_.createContext(void 0),co=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("overflow-hidden text-ellipsis",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("span",{className:n,"data-ox-slot":"select-label",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},_t=()=>{const t=_.useContext(gn);if(!t)throw new Error("Select components must be used within an OxSelect");return t},df={sm:`px-2 ${he.sm} ${Pe.sm}`,md:`px-2.5 ${he.md} ${Pe.md}`},bn=t=>{const e=D.compilerRuntimeExports.c(44);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,value:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,{multiple:i,onSelect:c,selectedValue:d,size:u}=_t(),{setOpen:f}=Fe();let x;if(e[6]!==r){const T=_.Children.toArray(r).find(uf);x=T&&_.isValidElement(T)?T.props.children:r,e[6]=r,e[7]=x}else x=e[7];const m=x;let h;e[8]!==m||e[9]!==i||e[10]!==c||e[11]!==f||e[12]!==a?(h=()=>{c({value:a,label:m}),i||f(!1)},e[8]=m,e[9]=i,e[10]=c,e[11]=f,e[12]=a,e[13]=h):h=e[13];const g=h;let b;e[14]!==g||e[15]!==f?(b=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),g()),T.key==="Escape"&&f(!1)},e[14]=g,e[15]=f,e[16]=b):b=e[16];const y=b;let v,k,w,C,N;e[17]!==o||e[18]!==d||e[19]!==u||e[20]!==a?(v=d.includes(a),C="contents",N="none",k=v,w=A("group col-span-3 grid grid-cols-subgrid items-center rounded-sm text-left text-gray-1200",df[u],"ox-violet-inset-focus enabled:cursor-pointer enabled:hover:bg-gray-400","disabled:ox-default-disabled",{"bg-gray-400":v},o),e[17]=o,e[18]=d,e[19]=u,e[20]=a,e[21]=v,e[22]=k,e[23]=w,e[24]=C,e[25]=N):(v=e[21],k=e[22],w=e[23],C=e[24],N=e[25]);const E=l?-1:0;let O;e[26]!==l||e[27]!==v||e[28]!==u?(O=v&&!l?p.jsx(ce,{className:"justify-self-center text-violet-700","data-ox-slot":"select-check-icon",path:Br,size:Ie[u]}):null,e[26]=l,e[27]=v,e[28]=u,e[29]=O):O=e[29];let j;e[30]!==r||e[31]!==l||e[32]!==s||e[33]!==g||e[34]!==y||e[35]!==O||e[36]!==k||e[37]!==w||e[38]!==E?(j=p.jsxs("button",{"aria-selected":k,className:w,"data-ox-slot":"select-option",disabled:l,role:"option",tabIndex:E,type:"button",onClick:g,onKeyDown:y,...s,children:[r,O]}),e[30]=r,e[31]=l,e[32]=s,e[33]=g,e[34]=y,e[35]=O,e[36]=k,e[37]=w,e[38]=E,e[39]=j):j=e[39];let S;return e[40]!==j||e[41]!==C||e[42]!==N?(S=p.jsx("li",{className:C,role:N,children:j}),e[40]=j,e[41]=C,e[42]=N,e[43]=S):S=e[43],S};function uf(t){return _.isValidElement(t)&&(t.type===co||Jt(t,"select-label"))}const ff=t=>{const e=new Map,r=o=>{if(!_.isValidElement(o))return;if(o.type===bn){const{children:a,value:l}=o.props,i=_.Children.toArray(a).find(d=>_.isValidElement(d)&&(d.type===co||Jt(d,"select-label"))),c=i&&_.isValidElement(i)?i.props.children:a;e.set(l,c);return}const s=o.props,{children:n}=s;n&&_.Children.forEach(n,r)};return t.forEach(r),e},yn=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{buttonRef:n,multiple:a,selectId:l}=_t(),{contentRef:i,open:c}=Fe();let d,u;e[4]!==n||e[5]!==i||e[6]!==c?(d=()=>{if(c&&n.current&&i.current){const h=n.current.offsetWidth;i.current.style.minWidth=`${h}px`}},u=[c,n,i],e[4]=n,e[5]=i,e[6]=c,e[7]=d,e[8]=u):(d=e[7],u=e[8]),_.useLayoutEffect(d,u);const f=`${l}-listbox`;let x;e[9]!==o?(x=A("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',o),e[9]=o,e[10]=x):x=e[10];let m;return e[11]!==r||e[12]!==s||e[13]!==a||e[14]!==f||e[15]!==x?(m=p.jsx(Ne.Content,{className:"ox-gray-border ox-select-animate rounded-lg bg-gray-200 p-1",portal:!1,children:p.jsx("ul",{id:f,"aria-multiselectable":a,className:x,"data-ox-slot":"select-listbox",role:"listbox",...s,children:r})}),e[11]=r,e[12]=s,e[13]=a,e[14]=f,e[15]=x,e[16]=m):m=e[16],m},Uo=t=>t==null?[]:Array.isArray(t)?t:[t],mf=t=>{const e=D.compilerRuntimeExports.c(63),{children:r,className:o,defaultOpen:s,defaultValue:n,disabled:a,error:l,id:i,isLoading:c,multiple:d,onChange:u,onOpenChange:f,open:x,required:m,size:h,value:g}=t,b=n===void 0?null:n,y=a===void 0?!1:a,v=l===void 0?!1:l,k=c===void 0?!1:c,w=d===void 0?!1:d,C=m===void 0?!1:m,N=h===void 0?"sm":h,E=_.useId(),O=_.useRef(null),{checkOverflow:j,handleResize:S,overflowAmount:T}=D.useOverflowDetection();let P;if(e[0]!==r){e:{const oe=_.Children.toArray(r).find(pf);if(!oe||!_.isValidElement(oe)){let we;e[2]===Symbol.for("react.memo_cache_sentinel")?(we=new Map,e[2]=we):we=e[2],P=we;break e}const ge=_.Children.toArray(oe.props.children||[]);P=ff(ge)}e[0]=r,e[1]=P}else P=e[1];const M=P;let I;e[3]!==g?(I=g!==void 0?new Set(Uo(g)):void 0,e[3]=g,e[4]=I):I=e[4];let V;e[5]!==b?(V=new Set(Uo(b)),e[5]=b,e[6]=V):V=e[6];let F;e[7]!==w||e[8]!==u?(F=oe=>{if(!oe)return;const ge=w?Array.from(oe):oe.size>0?Array.from(oe)[0]:null;u?.(ge)},e[7]=w,e[8]=u,e[9]=F):F=e[9];let L;e[10]!==V||e[11]!==F||e[12]!==I?(L={value:I,defaultValue:V,onChange:F,name:"OxSelect"},e[10]=V,e[11]=F,e[12]=I,e[13]=L):L=e[13];const[z,R]=D.useControllableState(L);let $;e[14]!==M||e[15]!==z?($=Array.from(z??new Set).filter(oe=>oe===""?M.has(""):!0).map(oe=>({value:oe,label:M.get(oe)??oe})),e[14]=M,e[15]=z,e[16]=$):$=e[16];const Y=$;let H;e[17]!==j?(H=()=>{j()},e[17]=j,e[18]=H):H=e[18];let W;if(e[19]!==j||e[20]!==z?(W=[z,j],e[19]=j,e[20]=z,e[21]=W):W=e[21],_.useLayoutEffect(H,W),k){let oe;e[22]!==o?(oe=A("flex w-full flex-col",o),e[22]=o,e[23]=oe):oe=e[23];const ge=Pe[N],we=!v;let be;e[24]!==v||e[25]!==ge||e[26]!==we?(be=A("rounded-lg",ge,{"ox-rose-border":v,"ox-gray-border":we}),e[24]=v,e[25]=ge,e[26]=we,e[27]=be):be=e[27];let Me;e[28]!==be?(Me=p.jsx(Et,{className:be,fullWidth:!0}),e[28]=be,e[29]=Me):Me=e[29];let $e;return e[30]!==oe||e[31]!==Me?($e=p.jsx("div",{className:oe,children:Me}),e[30]=oe,e[31]=Me,e[32]=$e):$e=e[32],$e}const Q=`${i||E}-select`;let q;e[33]!==w||e[34]!==R?(q=oe=>{const{value:ge}=oe;R(we=>{const be=new Set(we);return w?be.has(ge)?be.delete(ge):be.add(ge):(be.clear(),be.add(ge)),be})},e[33]=w,e[34]=R,e[35]=q):q=e[35];const Z=q;let K;e[36]!==z?(K=Array.from(z??new Set),e[36]=z,e[37]=K):K=e[37];let U;e[38]!==v||e[39]!==S||e[40]!==w||e[41]!==Z||e[42]!==T||e[43]!==C||e[44]!==Q||e[45]!==Y||e[46]!==N||e[47]!==K?(U={selectedValue:K,onSelect:Z,multiple:w,size:N,error:v,selectedOptions:Y,required:C,handleResize:S,overflowAmount:T,selectId:Q,buttonRef:O},e[38]=v,e[39]=S,e[40]=w,e[41]=Z,e[42]=T,e[43]=C,e[44]=Q,e[45]=Y,e[46]=N,e[47]=K,e[48]=U):U=e[48];let X;e[49]!==o?(X=A("flex w-full flex-col",o),e[49]=o,e[50]=X):X=e[50];let B;e[51]!==r||e[52]!==s||e[53]!==y||e[54]!==f||e[55]!==x?(B=p.jsx(Ne,{align:"start",animationDuration:100,ariaHaspopup:"listbox",defaultOpen:s,disabled:y,open:x,position:"bottom",trigger:"click",onOpenChange:f,children:r}),e[51]=r,e[52]=s,e[53]=y,e[54]=f,e[55]=x,e[56]=B):B=e[56];let te;e[57]!==X||e[58]!==B?(te=p.jsx("div",{className:X,children:B}),e[57]=X,e[58]=B,e[59]=te):te=e[59];let ne;return e[60]!==U||e[61]!==te?(ne=p.jsx(gn.Provider,{value:U,children:te}),e[60]=U,e[61]=te,e[62]=ne):ne=e[62],ne};function pf(t){return _.isValidElement(t)&&(t.type===yn||Jt(t,"select-content"))}const hf=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({className:r,path:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{size:n}=_t();let a;e[4]!==r?(a=A("mr-2 shrink-0 text-current",r),e[4]=r,e[5]=a):a=e[5];const l=Ie[n];let i;return e[6]!==o||e[7]!==s||e[8]!==a||e[9]!==l?(i=p.jsx(ce,{className:a,"data-ox-slot":"select-icon",path:s,size:l,...o}),e[6]=o,e[7]=s,e[8]=a,e[9]=l,e[10]=i):i=e[10],i},xf=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n;e[0]!==t?({children:r,className:o,label:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{size:a}=_t(),l=he[a];let i;e[5]!==o||e[6]!==l?(i=A("col-span-full px-2 py-1 font-semibold text-gray-1000",l,o),e[5]=o,e[6]=l,e[7]=i):i=e[7];let c;e[8]!==s||e[9]!==n||e[10]!==i?(c=p.jsx("div",{className:i,"data-ox-slot":"select-option-group",...s,children:n}),e[8]=s,e[9]=n,e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==r||e[13]!==c?(d=p.jsxs("div",{className:"contents [&_[data-ox-slot=select-option]]:pl-4",children:[c,r]}),e[12]=r,e[13]=c,e[14]=d):d=e[14],d},gf={sm:`px-1.25 ${he.sm} ${Pe.sm}`,md:`px-1.75 ${he.md} ${Pe.md}`},bf=t=>{const e=D.compilerRuntimeExports.c(46);let r,o,s,n,a,l,i;e[0]!==t?({badgeColor:n,className:r,disabled:s,displayAsBadges:a,placeholder:l,size:i,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=n===void 0?"purple":n,d=a===void 0?!1:a,u=l===void 0?"Select an option":l,f=i===void 0?"sm":i,{buttonRef:x,error:m,handleResize:h,multiple:g,overflowAmount:b,required:y,selectId:v,selectedOptions:k,size:w}=_t(),{disabled:C,open:N}=Fe(),E=f||w,O=b>0,j=s??C,S=`${v}-listbox`;let T;e[8]!==u||e[9]!==k?(T=k.length>0?`Selected: ${k.map(yf).join(", ")}`:u,e[8]=u,e[9]=k,e[10]=T):T=e[10];const P=gf[E],M=!m;let I;e[11]!==r||e[12]!==m||e[13]!==N||e[14]!==P||e[15]!==M?(I=A("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",P,{"ox-rose-border":m,"ox-gray-border":M,"default-active-border":N},r),e[11]=r,e[12]=m,e[13]=N,e[14]=P,e[15]=M,e[16]=I):I=e[16];const V=N?"open":"closed";let F;e[17]!==c||e[18]!==d||e[19]!==h||e[20]!==j||e[21]!==E||e[22]!==g||e[23]!==b||e[24]!==u||e[25]!==k||e[26]!==O?(F=k.length>0?p.jsxs("div",{className:A("flex w-full items-center overflow-hidden","[&_[data-ox-slot=select-icon]]:hidden",{"opacity-50":j&&d}),children:[p.jsx("div",{className:A("overflow-hidden text-ellipsis whitespace-nowrap",{"flex gap-1":d&&g}),ref:h,children:d&&g?k.map(Y=>p.jsx(Wt,{color:c,"data-ox-state":"selected",size:E,children:Y.label},String(Y.value))):k.map((Y,H,W)=>{const G=W.length-b,Q=H===G-1;return p.jsxs("span",{"data-ox-state":"selected",children:[Y.label,H<W.length-1&&!Q&&", "]},String(Y.value))})}),O&&g?p.jsxs(Wt,{className:"ml-1",color:c,size:E,children:["+",b]}):null]}):p.jsx("span",{className:"w-full overflow-hidden text-ellipsis whitespace-nowrap",children:u}),e[17]=c,e[18]=d,e[19]=h,e[20]=j,e[21]=E,e[22]=g,e[23]=b,e[24]=u,e[25]=k,e[26]=O,e[27]=F):F=e[27];let L;e[28]!==N?(L=A("text-current transition-transform duration-300 ease-in-out",{"rotate-180":N}),e[28]=N,e[29]=L):L=e[29];const z=Ie[E];let R;e[30]!==L||e[31]!==z?(R=p.jsx("div",{className:"absolute end-3 top-1/2 -translate-y-1/2",children:p.jsx(ce,{className:L,path:er,size:z})}),e[30]=L,e[31]=z,e[32]=R):R=e[32];let $;return e[33]!==x||e[34]!==o||e[35]!==m||e[36]!==j||e[37]!==y||e[38]!==v||e[39]!==V||e[40]!==F||e[41]!==R||e[42]!==S||e[43]!==T||e[44]!==I?($=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsxs("button",{id:v,"aria-controls":S,"aria-disabled":j,"aria-invalid":m,"aria-label":T,"aria-required":y,className:I,"data-ox-slot":"select-trigger",disabled:j,ref:x,role:"combobox",type:"button",...o,"data-ox-state":V,children:[F,R]})}),e[33]=x,e[34]=o,e[35]=m,e[36]=j,e[37]=y,e[38]=v,e[39]=V,e[40]=F,e[41]=R,e[42]=S,e[43]=T,e[44]=I,e[45]=$):$=e[45],$};function yf(t){return t.label}const ct=mf;ct.Content=yn;ct.Icon=hf;ct.Label=co;ct.Option=bn;ct.OptionGroup=xf;ct.Trigger=bf;const vf={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"}},wf=t=>{const e=D.compilerRuntimeExports.c(37);let r,o,s,n,a,l,i,c,d;e[0]!==t?({checked:a,className:r,disabled:l,error:i,id:n,onChange:s,required:c,size:d,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=a===void 0?!1:a,f=l===void 0?!1:l,x=i===void 0?!1:i,m=c===void 0?!1:c,h=d===void 0?"sm":d,g=_.useId(),y=`${n||g}-switch`,v=vf[h];let k;e[10]!==u||e[11]!==s?(k=()=>{s?.(!u)},e[10]=u,e[11]=s,e[12]=k):k=e[12];const w=k,C=!u,N=!x;let E;e[13]!==u||e[14]!==r||e[15]!==x||e[16]!==v.container||e[17]!==C||e[18]!==N?(E=A("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",v.container,{"bg-violet-700":u,"bg-gray-400":C,"ox-rose-border":x,"border-transparent":N},r),e[13]=u,e[14]=r,e[15]=x,e[16]=v.container,e[17]=C,e[18]=N,e[19]=E):E=e[19];const O=u?"checked":"unchecked";let j;e[20]!==u||e[21]!==v.thumb||e[22]!==v.translate?(j=A("inline-block transform rounded-full bg-gray-1200 shadow-sm","transition-transform duration-200 ease-in-out",v.thumb,{[v.translate]:u}),e[20]=u,e[21]=v.thumb,e[22]=v.translate,e[23]=j):j=e[23];let S;e[24]!==j?(S=p.jsx("span",{className:j}),e[24]=j,e[25]=S):S=e[25];let T;return e[26]!==u||e[27]!==f||e[28]!==o||e[29]!==x||e[30]!==w||e[31]!==m||e[32]!==y||e[33]!==O||e[34]!==S||e[35]!==E?(T=p.jsx("button",{id:y,"aria-checked":u,"aria-invalid":x,"aria-required":m,className:E,"data-ox-slot":"switch",disabled:f,role:"switch",type:"button",onClick:w,...o,"data-ox-state":O,children:S}),e[26]=u,e[27]=f,e[28]=o,e[29]=x,e[30]=w,e[31]=m,e[32]=y,e[33]=O,e[34]=S,e[35]=E,e[36]=T):T=e[36],T},kf={sm:`${he.sm} min-${Pe.sm}`,md:`${he.md} min-${Pe.md}`},Cf=t=>{const e=D.compilerRuntimeExports.c(41);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({className:r,disabled:l,error:i,id:a,name:s,onChange:n,placeholder:c,required:d,rows:u,showMaxLength:f,size:x,value:m,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=l===void 0?!1:l,g=i===void 0?!1:i,b=c===void 0?"Enter text...":c,y=d===void 0?!1:d,v=u===void 0?3:u,k=f===void 0?!1:f,w=x===void 0?"sm":x,C=_.useId(),[N,E]=_.useState(0),j=`${a||C}-textarea`,S=o.maxLength,T=m!==void 0,P=T?typeof m=="string"?m.length:0:N;let M;e[14]!==T||e[15]!==n?(M=Y=>{T||E(Y.target.value.length),n?.(Y)},e[14]=T,e[15]=n,e[16]=M):M=e[16];const I=M,V=kf[w],F=!g;let L;e[17]!==r||e[18]!==g||e[19]!==F||e[20]!==V?(L=A("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",V,{"ox-rose-border":g,"ox-gray-border":F},r),e[17]=r,e[18]=g,e[19]=F,e[20]=V,e[21]=L):L=e[21];let z;e[22]!==h||e[23]!==o||e[24]!==g||e[25]!==I||e[26]!==s||e[27]!==b||e[28]!==y||e[29]!==v||e[30]!==L||e[31]!==j||e[32]!==m?(z=p.jsx("textarea",{id:j,"aria-invalid":g,"aria-required":y,className:L,"data-ox-slot":"textarea",disabled:h,name:s,placeholder:b,required:y,rows:v,value:m,onChange:I,...o}),e[22]=h,e[23]=o,e[24]=g,e[25]=I,e[26]=s,e[27]=b,e[28]=y,e[29]=v,e[30]=L,e[31]=j,e[32]=m,e[33]=z):z=e[33];let R;e[34]!==P||e[35]!==S||e[36]!==k?(R=k&&typeof S=="number"?p.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-gray-1000",children:[P,"/",S]}):null,e[34]=P,e[35]=S,e[36]=k,e[37]=R):R=e[37];let $;return e[38]!==z||e[39]!==R?($=p.jsxs("div",{className:"flex w-full flex-col",children:[z,R]}),e[38]=z,e[39]=R,e[40]=$):$=e[40],$},Ef=t=>{const e=D.compilerRuntimeExports.c(20);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=ir();let a;e[4]!==r||e[5]!==n?.selectable?(a=n?.selectable&&(r==null||typeof r=="string"&&r.trim()===""),e[4]=r,e[5]=n?.selectable,e[6]=a):a=e[6];const l=a;let i;e[7]!==n?(i=()=>{n?.toggleAll()},e[7]=n,e[8]=i):i=e[8];const c=i;let d;e[9]!==o?(d=A("border-b border-gray-400 bg-gray-100 px-3 py-2 text-left text-sm font-semibold text-gray-1200",o),e[9]=o,e[10]=d):d=e[10];let u;e[11]!==r||e[12]!==n||e[13]!==c||e[14]!==l?(u=l?p.jsxs("div",{className:"flex items-center justify-center",children:[p.jsx("span",{className:"sr-only",children:"Select all rows"}),p.jsx(cr,{"aria-label":"Select all rows",checked:n.isAllSelected,indeterminate:n.isIndeterminate,onCheckedChange:c})]}):r,e[11]=r,e[12]=n,e[13]=c,e[14]=l,e[15]=u):u=e[15];let f;return e[16]!==s||e[17]!==d||e[18]!==u?(f=p.jsx("th",{className:d,"data-ox-slot":"table-head",...s,children:u}),e[16]=s,e[17]=d,e[18]=u,e[19]=f):f=e[19],f},Nf=t=>{const e=D.compilerRuntimeExports.c(8);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;return e[4]!==r||e[5]!==o||e[6]!==s?(n=p.jsx("thead",{className:o,"data-ox-slot":"table-header",...s,children:r}),e[4]=r,e[5]=o,e[6]=s,e[7]=n):n=e[7],n},Of=t=>{const e=D.compilerRuntimeExports.c(21);let r,o,s,n;e[0]!==t?({children:r,className:o,rowId:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=ir();let l;e[5]!==a||e[6]!==n?(l=()=>{n&&a?.selectable&&a.toggleSelection(n)},e[5]=a,e[6]=n,e[7]=l):l=e[7];const i=l;let c;if(e[8]!==o||e[9]!==a||e[10]!==n){const f=n&&a?.isSelected(n);c=A("border-b border-gray-400 last:border-b-0","in-[tfoot]:hover:bg-transparent in-[thead]:hover:bg-transparent",{"bg-gray-300":a?.selectable&&f,"in-[tbody]:even:bg-gray-100":a?.striped&&!f,"in-[tbody]:hover:bg-gray-300":a?.hoverable&&!f},o),e[8]=o,e[9]=a,e[10]=n,e[11]=c}else c=e[11];let d;e[12]!==a||e[13]!==i||e[14]!==n?(d=a?.selectable&&n?p.jsx("td",{className:"px-3 py-2",children:p.jsx("div",{className:"flex items-center justify-center",children:p.jsx(cr,{"aria-label":`Select row ${n}`,checked:a.isSelected(n),onCheckedChange:i})})}):null,e[12]=a,e[13]=i,e[14]=n,e[15]=d):d=e[15];let u;return e[16]!==r||e[17]!==s||e[18]!==c||e[19]!==d?(u=p.jsxs("tr",{className:c,"data-ox-slot":"table-row",...s,children:[d,r]}),e[16]=r,e[17]=s,e[18]=c,e[19]=d,e[20]=u):u=e[20],u},Xe=z1;Xe.Body=H1;Xe.Cell=B1;Xe.Controls=Y1;Xe.Footer=q1;Xe.Head=Ef;Xe.Header=Nf;Xe.Row=Of;Xe.SkeletonRow=an;const vn=_.createContext(null),jf=t=>{const e=D.compilerRuntimeExports.c(22);let r,o,s,n,a,l;e[0]!==t?({children:r,className:o,defaultValue:s,onValueChange:a,value:l,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const[i,c]=_.useState(s||""),d=l!==void 0,u=d?l:i;let f;e[7]!==d||e[8]!==a?(f=v=>{d||c(v),a?.(v)},e[7]=d,e[8]=a,e[9]=f):f=e[9];const x=f;let m;e[10]!==u||e[11]!==x?(m={value:u,onValueChange:x},e[10]=u,e[11]=x,e[12]=m):m=e[12];const h=m;let g;e[13]!==o?(g=A("w-full",o),e[13]=o,e[14]=g):g=e[14];let b;e[15]!==r||e[16]!==n||e[17]!==g?(b=p.jsx("div",{className:g,"data-ox-slot":"tabs",...n,children:r}),e[15]=r,e[16]=n,e[17]=g,e[18]=b):b=e[18];let y;return e[19]!==h||e[20]!==b?(y=p.jsx(vn.Provider,{value:h,children:b}),e[19]=h,e[20]=b,e[21]=y):y=e[21],y},wn=()=>{const t=_.useContext(vn);if(!t)throw new Error("Tabs components must be used within OxTabs");return t},Sf=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,value:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{value:a}=wn();if(!(a===n))return null;const i=`tab-${n}`;let c;e[5]!==o?(c=A("pt-4 text-gray-1200",o),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==r||e[8]!==s||e[9]!==i||e[10]!==c?(d=p.jsx("div",{"aria-labelledby":i,className:c,"data-ox-slot":"tabs-content",role:"tabpanel",...s,children:r}),e[7]=r,e[8]=s,e[9]=i,e[10]=c,e[11]=d):d=e[11],d},Tf=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("flex border-b border-gray-400",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"tabs-list",role:"tablist",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Pf=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,value:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,{onValueChange:i,value:c}=wn(),d=c===a;let u;e[6]!==l||e[7]!==i||e[8]!==a?(u=()=>{l||i(a)},e[6]=l,e[7]=i,e[8]=a,e[9]=u):u=e[9];const f=u;let x;e[10]!==f?(x=v=>{(v.key==="Enter"||v.key==="Space")&&(v.preventDefault(),f())},e[10]=f,e[11]=x):x=e[11];const m=x,h=!d;let g;e[12]!==o||e[13]!==d||e[14]!==h?(g=A("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":d,"text-gray-1100":h},o),e[12]=o,e[13]=d,e[14]=h,e[15]=g):g=e[15];const b=d?"active":"inactive";let y;return e[16]!==r||e[17]!==l||e[18]!==s||e[19]!==f||e[20]!==m||e[21]!==d||e[22]!==g||e[23]!==b?(y=p.jsx("button",{"aria-selected":d,className:g,"data-ox-slot":"tabs-trigger",disabled:l,role:"tab",onClick:f,onKeyDown:m,...s,"data-ox-state":b,children:r}),e[16]=r,e[17]=l,e[18]=s,e[19]=f,e[20]=m,e[21]=d,e[22]=g,e[23]=b,e[24]=y):y=e[24],y},pr=jf;pr.List=Tf;pr.Trigger=Pf;pr.Content=Sf;const Mf=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("grid grid-cols-[1fr_auto_1fr] items-start gap-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("ol",{"aria-label":"Timeline",className:n,"data-ox-slot":"timeline",role:"list",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Rf=t=>{const e=D.compilerRuntimeExports.c(51);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({align:i,children:r,className:o,color:c,description:s,icon:a,label:l,showSeparator:d,timestamp:u,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?"left":i,x=c===void 0?"purple":c,m=d===void 0?!1:d,h=r||s;let g;e[11]!==o?(g=A("col-span-3 grid grid-cols-subgrid",o),e[11]=o,e[12]=g):g=e[12];let b;e[13]!==f||e[14]!==x||e[15]!==h||e[16]!==l||e[17]!==u?(b=f==="left"&&p.jsxs("div",{className:"space-y-1 text-right",children:[p.jsx("h6",{className:A("text-sm leading-tight font-medium",pe[x].text),children:l}),h&&p.jsx(yt,{children:h}),u&&p.jsx("span",{className:"text-xs text-gray-1000",children:u})]}),e[13]=f,e[14]=x,e[15]=h,e[16]=l,e[17]=u,e[18]=b):b=e[18];let y;e[19]!==b?(y=p.jsx("div",{children:b}),e[19]=b,e[20]=y):y=e[20];const v=pe[x],k=pe[x];let w;e[21]!==v.background||e[22]!==k.border?(w=A("flex items-center justify-center rounded-lg",kt.md,v.background,k.border),e[21]=v.background,e[22]=k.border,e[23]=w):w=e[23];const C=pe[x];let N;e[24]!==C.text?(N=A("text-gray-1200",C.text),e[24]=C.text,e[25]=N):N=e[25];const E=a||Ya;let O;e[26]!==N||e[27]!==E?(O=p.jsx(ce,{className:N,path:E,size:Ie.md}),e[26]=N,e[27]=E,e[28]=O):O=e[28];let j;e[29]!==O||e[30]!==w?(j=p.jsx("div",{className:w,children:O}),e[29]=O,e[30]=w,e[31]=j):j=e[31];let S;e[32]!==m?(S=m?p.jsx(oo,{className:"mx-auto",orientation:"vertical"}):null,e[32]=m,e[33]=S):S=e[33];let T;e[34]!==j||e[35]!==S?(T=p.jsxs("div",{className:"grid shrink-0 grid-rows-[auto_1fr] gap-4",children:[j,S]}),e[34]=j,e[35]=S,e[36]=T):T=e[36];let P;e[37]!==f||e[38]!==x||e[39]!==h||e[40]!==l||e[41]!==u?(P=f==="right"&&p.jsxs("div",{className:"space-y-1 text-left",children:[p.jsx("h6",{className:A("text-sm leading-tight font-medium",pe[x].text),children:l}),h&&p.jsx(yt,{children:h}),u&&p.jsx("span",{className:"text-xs text-gray-1000",children:u})]}),e[37]=f,e[38]=x,e[39]=h,e[40]=l,e[41]=u,e[42]=P):P=e[42];let M;e[43]!==P?(M=p.jsx("div",{children:P}),e[43]=P,e[44]=M):M=e[44];let I;return e[45]!==n||e[46]!==T||e[47]!==M||e[48]!==g||e[49]!==y?(I=p.jsxs("li",{className:g,"data-ox-slot":"timeline-item",role:"listitem",...n,children:[y,T,M]}),e[45]=n,e[46]=T,e[47]=M,e[48]=g,e[49]=y,e[50]=I):I=e[50],I},kn=Mf;kn.Item=Rf;const Df=t=>{const e=D.compilerRuntimeExports.c(49),{index:r,onRemove:o,position:s,toast:n}=t,a=n.icon??Le[n.type].icon,l=n.color?pe[n.color]:Le[n.type],[i,c]=_.useState(!0);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const T=setTimeout(()=>c(!1),50);return()=>clearTimeout(T)},u=[],e[0]=d,e[1]=u):(d=e[0],u=e[1]),_.useEffect(d,u);const f=r*8,x=1-r*.05;let m;e[2]!==r||e[3]!==i||e[4]!==s||e[5]!==x||e[6]!==f||e[7]!==n.isRemoving?(m=()=>{const T=i?s==="top"?-16:16:0;return s==="top"?{top:`${f+T}px`,transform:`scale(${x})`,zIndex:30-r,opacity:n.isRemoving||i?0:1}:{top:`${-f+T}px`,transform:`scale(${x})`,zIndex:30-r,opacity:n.isRemoving||i?0:1}},e[2]=r,e[3]=i,e[4]=s,e[5]=x,e[6]=f,e[7]=n.isRemoving,e[8]=m):m=e[8];const h=m;if(n.customContent){let T;e[9]!==h?(T=h(),e[9]=h,e[10]=T):T=e[10];let P;e[11]!==o||e[12]!==n.id?(P=()=>o(n.id),e[11]=o,e[12]=n.id,e[13]=P):P=e[13];let M;return e[14]!==T||e[15]!==P||e[16]!==n.customContent?(M=p.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:T,onClick:P,children:n.customContent}),e[14]=T,e[15]=P,e[16]=n.customContent,e[17]=M):M=e[17],M}const g=n.description?`${n.id}-desc`:void 0,b=n.type==="error"||n.type==="warning"?"alert":"status";let y;e[18]!==h?(y=h(),e[18]=h,e[19]=y):y=e[19];let v;e[20]!==o||e[21]!==n.id?(v=()=>o(n.id),e[20]=o,e[21]=n.id,e[22]=v):v=e[22];let k;e[23]!==n.type?(k=p.jsxs("span",{className:"sr-only",children:[n.type," notification:"]}),e[23]=n.type,e[24]=k):k=e[24];let w;e[25]!==l.background?(w=A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",l.background),e[25]=l.background,e[26]=w):w=e[26];let C;e[27]!==a||e[28]!==l.text?(C=p.jsx(ce,{className:l.text,path:a,size:.7}),e[27]=a,e[28]=l.text,e[29]=C):C=e[29];let N;e[30]!==C||e[31]!==w?(N=p.jsx("div",{className:w,children:C}),e[30]=C,e[31]=w,e[32]=N):N=e[32];let E;e[33]!==n.title?(E=p.jsx("div",{className:"text-xs font-medium text-gray-1200",children:n.title}),e[33]=n.title,e[34]=E):E=e[34];let O;e[35]!==n.description||e[36]!==n.id?(O=n.description?p.jsx("p",{id:`${n.id}-desc`,className:"mt-1 text-xs",children:n.description}):null,e[35]=n.description,e[36]=n.id,e[37]=O):O=e[37];let j;e[38]!==E||e[39]!==O?(j=p.jsxs("div",{className:"flex-1",children:[E,O]}),e[38]=E,e[39]=O,e[40]=j):j=e[40];let S;return e[41]!==N||e[42]!==j||e[43]!==g||e[44]!==b||e[45]!==y||e[46]!==v||e[47]!==k?(S=p.jsxs("div",{"aria-describedby":g,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:b,style:y,onClick:v,children:[k,N,j]}),e[41]=N,e[42]=j,e[43]=g,e[44]=b,e[45]=y,e[46]=v,e[47]=k,e[48]=S):S=e[48],S},Af={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"},If={top:"top-4",bottom:"bottom-24"},Cn=t=>{const e=D.compilerRuntimeExports.c(13),{align:r,onRemove:o,position:s,toasts:n}=t,a=Af[r],l=If[s];let i;e[0]!==a||e[1]!==l?(i=A("pointer-events-none fixed z-50 w-11/12 md:w-80",a,l),e[0]=a,e[1]=l,e[2]=i):i=e[2];let c;if(e[3]!==o||e[4]!==s||e[5]!==n){let u;e[7]!==o||e[8]!==s?(u=(f,x)=>p.jsx(Df,{index:x,position:s,toast:f,onRemove:o},f.id),e[7]=o,e[8]=s,e[9]=u):u=e[9],c=n.map(u),e[3]=o,e[4]=s,e[5]=n,e[6]=c}else c=e[6];let d;return e[10]!==i||e[11]!==c?(d=Mt.createPortal(p.jsx("div",{"aria-atomic":"false","aria-label":"Notifications","aria-live":"polite",className:i,"data-ox-slot":"toast-container",role:"region",children:c}),document.body),e[10]=i,e[11]=c,e[12]=d):d=e[12],d},En=_.createContext(null),$f=t=>{const e=D.compilerRuntimeExports.c(15),{align:r,children:o,maxToasts:s,position:n}=t,a=r===void 0?"right":r,l=s===void 0?3:s,i=n===void 0?"top":n;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[d,u]=_.useState(c);let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=C=>{u(N=>N.map(E=>E.id===C?{...E,isRemoving:!0}:E)),setTimeout(()=>{u(N=>D.reject(N,E=>E.id===C))},200)},e[1]=f):f=e[1];const x=f;let m;e[2]!==l?(m=(C,N,E,O)=>{const j=D.uniqueId(),S=E?.duration??5e3,T={id:j,title:C,type:N,duration:S,description:E?.description,icon:E?.icon,color:E?.color,customContent:O};return u(P=>D.take([T,...P],l)),S>0&&setTimeout(()=>{x(j)},S),j},e[2]=l,e[3]=m):m=e[3];const h=m;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=C=>{C?x(C):u([])},e[4]=g):g=e[4];const b=g;let y;e[5]!==h?(y=Object.assign((C,N)=>h(C,"default",N),{success:(C,N)=>h(C,"success",N),error:(C,N)=>h(C,"error",N),warning:(C,N)=>h(C,"warning",N),info:(C,N)=>h(C,"info",N),custom:(C,N)=>h("","default",{duration:N?.duration},C),dismiss:b}),e[5]=h,e[6]=y):y=e[6];const v=y;let k;e[7]!==a||e[8]!==i||e[9]!==d?(k=p.jsx(Cn,{align:a,position:i,toasts:d,onRemove:x}),e[7]=a,e[8]=i,e[9]=d,e[10]=k):k=e[10];let w;return e[11]!==o||e[12]!==k||e[13]!==v?(w=p.jsxs(En.Provider,{value:v,children:[o,k]}),e[11]=o,e[12]=k,e[13]=v,e[14]=w):w=e[14],w},Lf=()=>{const t=_.useContext(En);if(!t)throw new Error("useOxToast must be used within a ToastProvider");return t},Nn=_.createContext(null),_f=()=>_.useContext(Nn),Vf={sm:`px-3 ${Pe.sm} ${he.sm}`,md:`px-4 ${Pe.md} ${he.md}`},zf=t=>{const e=D.compilerRuntimeExports.c(35);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,disabled:s,id:i,onPressedChange:a,pressed:l,size:c,value:d,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=_.useId(),f=_f(),m=`${i||u}-toggle`,h=f!==null,g=c||f?.size||"sm",b=s||f?.disabled||!1;let y,v,k,w;if(e[10]!==b||e[11]!==g||e[12]!==o||e[13]!==f||e[14]!==h||e[15]!==a||e[16]!==l||e[17]!==m||e[18]!==d){let N;if(h&&d!==void 0){f.type==="single"?N=f.value===d:N=(f.value||[]).includes(d);let E;e[23]!==b||e[24]!==f||e[25]!==d?(E=()=>{!b&&f.onToggle&&f.onToggle(d)},e[23]=b,e[24]=f,e[25]=d,e[26]=E):E=e[26],y=E}else N=l||!1,y=()=>{!b&&a&&a(!N)};v=m,k=N,w=A("inline-flex items-center gap-2 rounded-md border transition-colors duration-200","ox-gray-outset-focus enabled:cursor-pointer disabled:ox-default-disabled",Vf[g],{"border-gray-400 bg-gray-300 text-gray-1200 enabled:hover:bg-gray-500":N,"border-gray-400 bg-gray-50 text-gray-1000 enabled:hover:bg-gray-300":!N},o),e[10]=b,e[11]=g,e[12]=o,e[13]=f,e[14]=h,e[15]=a,e[16]=l,e[17]=m,e[18]=d,e[19]=y,e[20]=v,e[21]=k,e[22]=w}else y=e[19],v=e[20],k=e[21],w=e[22];let C;return e[27]!==b||e[28]!==r||e[29]!==n||e[30]!==y||e[31]!==v||e[32]!==k||e[33]!==w?(C=p.jsx("button",{id:v,"aria-pressed":k,className:w,"data-ox-slot":"toggle",disabled:b,role:"button",type:"button",onClick:y,...n,children:r}),e[27]=b,e[28]=r,e[29]=n,e[30]=y,e[31]=v,e[32]=k,e[33]=w,e[34]=C):C=e[34],C},Ff=t=>{const e=D.compilerRuntimeExports.c(30);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,disabled:l,name:n,onValueChange:a,size:i,type:c,value:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=l===void 0?!1:l,f=i===void 0?"sm":i,x=c===void 0?"single":c;let m;e[10]!==a||e[11]!==x||e[12]!==d?(m=k=>{if(a)if(x==="single")a(d===k?"":k);else{const w=d||[],C=w.includes(k)?w.filter(N=>N!==k):[...w,k];a(C)}},e[10]=a,e[11]=x,e[12]=d,e[13]=m):m=e[13];const h=m;let g;e[14]!==u||e[15]!==h||e[16]!==n||e[17]!==f||e[18]!==x||e[19]!==d?(g={value:d,onToggle:h,name:n,size:f,disabled:u,type:x},e[14]=u,e[15]=h,e[16]=n,e[17]=f,e[18]=x,e[19]=d,e[20]=g):g=e[20];let b;e[21]!==o?(b=A("flex flex-wrap gap-2",o),e[21]=o,e[22]=b):b=e[22];let y;e[23]!==r||e[24]!==s||e[25]!==b?(y=p.jsx("div",{className:b,"data-ox-slot":"toggle-group",role:"group",...s,children:r}),e[23]=r,e[24]=s,e[25]=b,e[26]=y):y=e[26];let v;return e[27]!==g||e[28]!==y?(v=p.jsx(Nn.Provider,{value:g,children:y}),e[27]=g,e[28]=y,e[29]=v):v=e[29],v},On=zf;On.Group=Ff;const Hf={default:"ox-gray-border text-gray-1200 bg-gray-200",error:A(...Object.values(D.pick(pe.rose,["background","border","text"]))),warning:A(...Object.values(D.pick(pe.amber,["background","border","text"]))),info:A(...Object.values(D.pick(pe.blue,["background","border","text"]))),success:A(...Object.values(D.pick(pe.green,["background","border","text"])))},jn=t=>{const e=D.compilerRuntimeExports.c(19),{align:r,children:o,className:s,content:n,disabled:a,hoverDelay:l,id:i,onOpenChange:c,open:d,position:u,trigger:f,variant:x}=t,m=r===void 0?"center":r,h=a===void 0?!1:a,g=l===void 0?500:l,b=u===void 0?"top":u,y=f===void 0?"hover":f,v=x===void 0?"default":x;let k;e[0]!==o?(k=p.jsx(Ne.Trigger,{asChild:!0,children:o}),e[0]=o,e[1]=k):k=e[1];const w=Hf[v];let C;e[2]!==s||e[3]!==w?(C=A("max-w-xs rounded-md border px-2 py-1 text-xs break-words",w,s),e[2]=s,e[3]=w,e[4]=C):C=e[4];let N;e[5]!==n||e[6]!==C?(N=p.jsx(Ne.Content,{className:"ox-tooltip-animate rounded-md backdrop-blur-sm",role:"tooltip",children:p.jsx("div",{className:C,"data-ox-slot":"tooltip-content",children:n})}),e[5]=n,e[6]=C,e[7]=N):N=e[7];let E;return e[8]!==m||e[9]!==h||e[10]!==g||e[11]!==i||e[12]!==c||e[13]!==d||e[14]!==b||e[15]!==N||e[16]!==k||e[17]!==y?(E=p.jsxs(Ne,{id:i,align:m,animationDuration:100,disabled:h,hoverDelay:g,offset:8,open:d,position:b,trigger:y,useAriaControls:!1,onOpenChange:c,children:[k,N]}),e[8]=m,e[9]=h,e[10]=g,e[11]=i,e[12]=c,e[13]=d,e[14]=b,e[15]=N,e[16]=k,e[17]=y,e[18]=E):E=e[18],E};exports.COLOR_STYLES=pe;exports.MOBILE_BREAKPOINT=bs;exports.OxAccordion=tr;exports.OxAlert=ys;exports.OxAvatar=rr;exports.OxBadge=Wt;exports.OxBreadcrumb=or;exports.OxButton=je;exports.OxCalendar=Ls;exports.OxCard=sr;exports.OxCheckbox=cr;exports.OxDateInput=Lt;exports.OxDescription=yt;exports.OxDescriptionList=Qr;exports.OxDialog=ar;exports.OxDrawer=Ze;exports.OxDropdown=Ae;exports.OxError=tn;exports.OxFileUpload=dr;exports.OxFloating=Ne;exports.OxFloatingContext=Kr;exports.OxForm=lt;exports.OxHeading=rn;exports.OxIcon=ce;exports.OxJsonField=qs;exports.OxLabel=on;exports.OxLegend=A1;exports.OxLink=Ud;exports.OxNotifications=Dt;exports.OxNumberInput=Nt;exports.OxOtpInput=Lu;exports.OxPagination=It;exports.OxPopover=ro;exports.OxProgress=Qs;exports.OxRadio=xn;exports.OxSelect=ct;exports.OxSeparator=oo;exports.OxSkeleton=Et;exports.OxSkeletonText=E1;exports.OxSlider=j1;exports.OxSpinner=_s;exports.OxStatusDisplay=M1;exports.OxStepper=no;exports.OxSwitch=wf;exports.OxTable=Xe;exports.OxTabs=pr;exports.OxTextInput=it;exports.OxTextarea=Cf;exports.OxTimeInput=mr;exports.OxTimeline=kn;exports.OxToast=Cn;exports.OxToastProvider=$f;exports.OxToggle=On;exports.OxTooltip=jn;exports.buildMailTo=Mn;exports.buildUrl=Pn;exports.cn=A;exports.copyToClipboard=ma;exports.createId=ba;exports.formatBytes=va;exports.formatCurrency=wa;exports.formatDate=ka;exports.formatNumber=Ca;exports.formatTimestamp=Hr;exports.generateRandomString=as;exports.handleFormErrors=is;exports.handleGraphQLFormErrors=ya;exports.hasDataSlot=Jt;exports.mdiAccount=La;exports.mdiChevronDown=er;exports.mdiClose=Rt;exports.mdiDockLeft=Ua;exports.mdiLockOutline=el;exports.mdiMenu=tl;exports.parseGraphQLErrors=ls;exports.scrollToElement=Ea;exports.useOxFloatingContext=Fe;exports.useOxToast=Lf;exports.validateEmail=Ma;exports.validatePhone=Aa;exports.validateUrl=Ra;
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(R),null," "));var B=X(q,U,W,G,Q+"."+U,r);if(B)return B}return null}return g($)}function M(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(M);if(R===null||l(R))return!0;var $=u(R);if($){var Y=$.call(R),H;if($!==R.entries){for(;!(H=Y.next()).done;)if(!M(H.value))return!1}else for(;!(H=Y.next()).done;){var W=H.value;if(W&&!M(W[1]))return!1}}else return!1;return!0;default:return!1}}function I(R,$){return R==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function V(R){var $=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":I($,R)?"symbol":$}function F(R){if(typeof R>"u"||R===null)return""+R;var $=V(R);if($==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return $}function L(R){var $=F(R);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function z(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},Pr}var Mr,zo;function _d(){if(zo)return Mr;zo=1;var t=eo();function e(){}function r(){}return r.resetWarningCache=e,Mr=function(){function o(a,l,i,c,d,u){if(u!==t){var f=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 f.name="Invariant Violation",f}}o.isRequired=o;function s(){return o}var n={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:e};return n.PropTypes=n,n},Mr}var Fo;function Vd(){if(Fo)return Bt.exports;if(Fo=1,process.env.NODE_ENV!=="production"){var t=Bs(),e=!0;Bt.exports=Ld()(t.isElement,e)}else Bt.exports=_d()();return Bt.exports}var Rr,Ho;function zd(){return Ho||(Ho=1,Rr=(function(t){var e={};function r(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=t,r.c=e,r.d=function(o,s,n){r.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:n})},r.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},r.t=function(o,s){if(1&s&&(o=r(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var a in o)r.d(n,a,(function(l){return o[l]}).bind(null,a));return n},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=2)})([function(t,e){t.exports=Vd()},function(t,e){t.exports=_},function(t,e,r){r.r(e);var o=r(1),s=r(0),n=function(){return(n=Object.assign||function(m){for(var h,g=1,b=arguments.length;g<b;g++)for(var y in h=arguments[g])Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y]);return m}).apply(this,arguments)},a=function(m,h){var g={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&h.indexOf(b)<0&&(g[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var y=0;for(b=Object.getOwnPropertySymbols(m);y<b.length;y++)h.indexOf(b[y])<0&&Object.prototype.propertyIsEnumerable.call(m,b[y])&&(g[b[y]]=m[b[y]])}return g},l=0,i=o.forwardRef((function(m,h){var g=m.title,b=g===void 0?null:g,y=m.description,v=y===void 0?null:y,k=m.size,w=k===void 0?null:k,C=m.color,N=C===void 0?"currentColor":C,E=m.horizontal,O=E===void 0?null:E,j=m.vertical,S=j===void 0?null:j,T=m.rotate,P=T===void 0?null:T,M=m.spin,I=M===void 0?null:M,V=m.style,F=V===void 0?{}:V,L=m.children,z=a(m,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);l++;var R,$=I!==null&&I,Y=o.Children.map(L,(function(Q){var q=Q;$!==!0&&($=(I===null?q.props.spin:I)===!0);var Z=q.props.size;typeof w=="number"&&typeof q.props.size=="number"&&(Z=q.props.size/w);var K={size:Z,color:N===null?q.props.color:N,horizontal:O===null?q.props.horizontal:O,vertical:S===null?q.props.vertical:S,rotate:P===null?q.props.rotate:P,spin:I===null?q.props.spin:I,inStack:!0};return o.cloneElement(q,K)}));w!==null&&(F.width=typeof w=="string"?w:1.5*w+"rem");var H,W="stack_labelledby_"+l,G="stack_describedby_"+l;if(b)R=v?W+" "+G:W;else if(H="presentation",v)throw new Error("title attribute required when description is set");return o.createElement("svg",n({ref:h,viewBox:"0 0 24 24",style:F,role:H,"aria-labelledby":R},z),b&&o.createElement("title",{id:W},b),v&&o.createElement("desc",{id:G},v),$&&o.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),Y)}));i.displayName="Stack",i.propTypes={size:s.oneOfType([s.number,s.string]),color:s.string,horizontal:s.bool,vertical:s.bool,rotate:s.number,spin:s.oneOfType([s.bool,s.number]),children:s.oneOfType([s.arrayOf(s.node),s.node]).isRequired,className:s.string,style:s.object},i.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var c=i;r.d(e,"Icon",(function(){return x})),r.d(e,"Stack",(function(){return c}));var d=function(){return(d=Object.assign||function(m){for(var h,g=1,b=arguments.length;g<b;g++)for(var y in h=arguments[g])Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y]);return m}).apply(this,arguments)},u=function(m,h){var g={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&h.indexOf(b)<0&&(g[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var y=0;for(b=Object.getOwnPropertySymbols(m);y<b.length;y++)h.indexOf(b[y])<0&&Object.prototype.propertyIsEnumerable.call(m,b[y])&&(g[b[y]]=m[b[y]])}return g},f=0,x=o.forwardRef((function(m,h){var g=m.path,b=m.id,y=b===void 0?++f:b,v=m.title,k=v===void 0?null:v,w=m.description,C=w===void 0?null:w,N=m.size,E=N===void 0?null:N,O=m.color,j=O===void 0?"currentColor":O,S=m.horizontal,T=S!==void 0&&S,P=m.vertical,M=P!==void 0&&P,I=m.rotate,V=I===void 0?0:I,F=m.spin,L=F!==void 0&&F,z=m.style,R=z===void 0?{}:z,$=m.inStack,Y=$!==void 0&&$,H=u(m,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),W={},G=[];E!==null&&(Y?G.push("scale("+E+")"):(R.width=typeof E=="string"?E:1.5*E+"rem",R.height=R.width)),T&&G.push("scaleX(-1)"),M&&G.push("scaleY(-1)"),V!==0&&G.push("rotate("+V+"deg)"),j!==null&&(W.fill=j);var Q=o.createElement("path",d({d:g,style:W},Y?H:{})),q=Q;G.length>0&&(R.transform=G.join(" "),R.transformOrigin="center",Y&&(q=o.createElement("g",{style:R},Q,o.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var Z,K=q,U=L===!0||typeof L!="number"?2:L,X=!Y&&(T||M);if(U<0&&(X=!X),L&&(K=o.createElement("g",{style:{animation:"spin"+(X?"-inverse":"")+" linear "+Math.abs(U)+"s infinite",transformOrigin:"center"}},q,!(T||M||V!==0)&&o.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),Y)return K;var B,te="icon_labelledby_"+y,ne="icon_describedby_"+y;if(k)Z=C?te+" "+ne:te;else if(B="presentation",C)throw new Error("title attribute required when description is set");return o.createElement("svg",d({ref:h,viewBox:"0 0 24 24",style:R,role:B,"aria-labelledby":Z},H),k&&o.createElement("title",{id:te},k),C&&o.createElement("desc",{id:ne},C),!Y&&L&&(X?o.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):o.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),K)}));x.displayName="Icon",x.propTypes={path:s.string.isRequired,size:s.oneOfType([s.number,s.string]),color:s.string,horizontal:s.bool,vertical:s.bool,rotate:s.number,spin:s.oneOfType([s.bool,s.number]),style:s.object,inStack:s.bool,className:s.string},x.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},e.default=x}])),Rr}var Fd=zd();const Hd=D.getDefaultExportFromCjs(Fd),ce=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n,a;e[0]!==t?({className:r,path:o,placeholder:n,size:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?.9:a,c=o??Wa,d=!l;let u;e[6]!==r||e[7]!==l||e[8]!==d?(u=A({"text-gray-1200":d,"text-transparent":l},r),e[6]=r,e[7]=l,e[8]=d,e[9]=u):u=e[9];let f;return e[10]!==c||e[11]!==s||e[12]!==i||e[13]!==u?(f=p.jsx(Hd,{"aria-hidden":"true",className:u,"data-ox-slot":"icon","data-testid":"icon",path:c,size:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=u,e[14]=f):f=e[14],f},Qt=t=>{const e=D.compilerRuntimeExports.c(61),{data:r,level:o}=t,[s,n]=_.useState(o>2);let a;e[0]!==o?(a=" ".repeat(o),e[0]=o,e[1]=a):a=e[1];const l=a;if(r===null){let d;return e[2]===Symbol.for("react.memo_cache_sentinel")?(d=p.jsx("span",{className:"text-gray-1000",children:"null"}),e[2]=d):d=e[2],d}if(r===void 0){let d;return e[3]===Symbol.for("react.memo_cache_sentinel")?(d=p.jsx("span",{className:"text-gray-1000",children:"undefined"}),e[3]=d):d=e[3],d}if(typeof r=="string"){let d;return e[4]!==r?(d=p.jsxs("span",{className:pe.green.text,children:['"',r,'"']}),e[4]=r,e[5]=d):d=e[5],d}if(typeof r=="number"){let d;return e[6]!==r?(d=p.jsx("span",{className:pe.blue.text,children:r}),e[6]=r,e[7]=d):d=e[7],d}if(typeof r=="boolean"){let d;e[8]!==r?(d=r.toString(),e[8]=r,e[9]=d):d=e[9];let u;return e[10]!==d?(u=p.jsx("span",{className:pe.amber.text,children:d}),e[10]=d,e[11]=u):u=e[11],u}if(Array.isArray(r)){if(r.length===0){let y;return e[12]===Symbol.for("react.memo_cache_sentinel")?(y=p.jsx("span",{className:pe.gray.text,children:"[]"}),e[12]=y):y=e[12],y}const d=s?"collapsed":"expanded";let u;e[13]!==s?(u=()=>n(!s),e[13]=s,e[14]=u):u=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=p.jsx("span",{className:"text-gray-1200",children:"["}),e[15]=f):f=e[15];let x;e[16]!==s||e[17]!==r.length?(x=s?p.jsxs("span",{className:"ml-1 text-gray-900",children:[r.length," item",r.length!==1?"s":""]}):null,e[16]=s,e[17]=r.length,e[18]=x):x=e[18];let m;e[19]!==d||e[20]!==u||e[21]!==x?(m=p.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":d,onClick:u,children:[f,x]}),e[19]=d,e[20]=u,e[21]=x,e[22]=m):m=e[22];let h;e[23]!==s||e[24]!==r||e[25]!==l||e[26]!==o?(h=s?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ml-4",children:r.map((y,v)=>p.jsxs("div",{className:"block",children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx(Qt,{data:y,level:o+1}),v<r.length-1&&p.jsx("span",{className:"text-gray-1100",children:","})]},v))}),p.jsxs("div",{children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx("span",{className:"text-gray-1200",children:"]"})]})]}),e[23]=s,e[24]=r,e[25]=l,e[26]=o,e[27]=h):h=e[27];let g;e[28]!==s?(g=s&&p.jsx("span",{className:"text-gray-1200",children:"]"}),e[28]=s,e[29]=g):g=e[29];let b;return e[30]!==m||e[31]!==h||e[32]!==g?(b=p.jsxs("div",{className:"inline","data-ox-slot":"json-array",children:[m,h,g]}),e[30]=m,e[31]=h,e[32]=g,e[33]=b):b=e[33],b}if(typeof r=="object"){let d;e[34]!==r?(d=Object.keys(r),e[34]=r,e[35]=d):d=e[35];const u=d;if(u.length===0){let k;return e[36]===Symbol.for("react.memo_cache_sentinel")?(k=p.jsx("span",{className:"text-gray-1100",children:"{}"}),e[36]=k):k=e[36],k}const f=s?"collapsed":"expanded";let x;e[37]!==s?(x=()=>n(!s),e[37]=s,e[38]=x):x=e[38];let m;e[39]===Symbol.for("react.memo_cache_sentinel")?(m=p.jsx("span",{className:"text-gray-1200",children:"{"}),e[39]=m):m=e[39];let h;e[40]!==s||e[41]!==u.length?(h=s?p.jsxs("span",{className:"ml-1 text-gray-1100",children:[u.length," key",u.length!==1?"s":""]}):null,e[40]=s,e[41]=u.length,e[42]=h):h=e[42];let g;e[43]!==f||e[44]!==x||e[45]!==h?(g=p.jsxs("button",{className:"ox-violet-outset-focus text-gray-1100 hover:text-gray-1200","data-ox-state":f,onClick:x,children:[m,h]}),e[43]=f,e[44]=x,e[45]=h,e[46]=g):g=e[46];let b;e[47]!==s||e[48]!==r||e[49]!==l||e[50]!==u||e[51]!==o?(b=s?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"ml-4",children:u.map((k,w)=>p.jsxs("div",{className:"block",children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsxs("span",{className:"text-gray-1200",children:['"',k,'"']}),p.jsx("span",{className:"text-gray-1100",children:": "}),p.jsx(Qt,{data:r[k],level:o+1}),w<u.length-1&&p.jsx("span",{className:"text-gray-1100",children:","})]},k))}),p.jsxs("div",{children:[p.jsx("span",{className:"text-gray-600",children:l}),p.jsx("span",{className:"text-gray-1200",children:"}"})]})]}),e[47]=s,e[48]=r,e[49]=l,e[50]=u,e[51]=o,e[52]=b):b=e[52];let y;e[53]!==s?(y=s&&p.jsx("span",{className:"text-gray-1200",children:"}"}),e[53]=s,e[54]=y):y=e[54];let v;return e[55]!==g||e[56]!==b||e[57]!==y?(v=p.jsxs("div",{className:"inline",children:[g,b,y]}),e[55]=g,e[56]=b,e[57]=y,e[58]=v):v=e[58],v}const i=String(r);let c;return e[59]!==i?(c=p.jsx("span",{className:"text-gray-1100",children:i}),e[59]=i,e[60]=c):c=e[60],c},Bd=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s;e[0]!==t?({className:r,value:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const[n,a]=_.useState(!1);let l;e[4]!==s?(l=(()=>{if(s==null)return{parsedData:null,isValid:!0,error:null};if(typeof s=="object")return{parsedData:s,isValid:!0,error:null};if(typeof s=="string")try{return{parsedData:JSON.parse(s),isValid:!0,error:null}}catch(w){const C=w;return{parsedData:null,isValid:!1,error:C instanceof Error?C.message:"Invalid JSON"}}return{parsedData:s,isValid:!0,error:null}})(),e[4]=s,e[5]=l):l=e[5];const{error:i,isValid:c,parsedData:d}=l;let u;e[6]!==d||e[7]!==s?(u=async()=>{const k=typeof s=="string"?s:JSON.stringify(d,null,2);try{await navigator.clipboard.writeText(k),a(!0),setTimeout(()=>a(!1),2e3)}catch(w){console.error("Failed to copy:",w)}},e[6]=d,e[7]=s,e[8]=u):u=e[8];const f=u;let x;e[9]!==r?(x=A("ox-gray-border relative w-full overflow-auto rounded-lg bg-gray-50 p-4 font-mono text-sm",r),e[9]=r,e[10]=x):x=e[10];const m=c?n?"copied":"default":"error",h=n?Br:Ga;let g;e[11]!==h?(g=p.jsx(je.Icon,{path:h}),e[11]=h,e[12]=g):g=e[12];let b;e[13]!==f||e[14]!==g?(b=p.jsx(je,{"aria-label":"Copy JSON to clipboard",className:"absolute top-1 right-1",size:"sm",variant:"ghost",onClick:f,children:g}),e[13]=f,e[14]=g,e[15]=b):b=e[15];let y;e[16]!==i||e[17]!==c||e[18]!==d||e[19]!==s?(y=p.jsx("div",{className:"pr-8 text-gray-1200",children:c?p.jsx(Qt,{data:d,level:0}):p.jsxs("div",{className:"text-rose-400",children:[p.jsx("div",{className:"font-medium",children:"Invalid JSON:"}),p.jsx("div",{className:"mt-1 text-xs text-gray-900",children:i}),p.jsx("div",{className:"mt-2 text-gray-1100",children:p.jsx("pre",{className:"whitespace-pre-wrap",children:s})})]})}),e[16]=i,e[17]=c,e[18]=d,e[19]=s,e[20]=y):y=e[20];let v;return e[21]!==o||e[22]!==x||e[23]!==m||e[24]!==b||e[25]!==y?(v=p.jsxs("div",{className:x,"data-ox-slot":"json-field",...o,"data-ox-state":m,children:[b,y]}),e[21]=o,e[22]=x,e[23]=m,e[24]=b,e[25]=y,e[26]=v):v=e[26],v},qs=Bd;qs.Node=Qt;const Yd={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"},qd={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"},Wd={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"},Gd={sm:`px-1.5 min-w-8 ${he.sm} ${Pe.sm}`,md:`px-2 min-w-10 ${he.md} ${Pe.md}`},Ud=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a,l,i;e[0]!==t?({children:r,className:o,disabled:s,href:a,size:l,variant:i,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=l===void 0?"sm":l,d=i===void 0?"link":i,u=Gd[c],f=Yd[d],x=Wd[d],m=!s,h=qd[d],g=!s;let b;e[8]!==o||e[9]!==s||e[10]!==u||e[11]!==f||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g?(b=A("inline-flex items-center rounded-lg font-medium transition-colors",u,f,{[x]:m,[h]:g,"ox-default-disabled cursor-not-allowed":s},o),e[8]=o,e[9]=s,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b):b=e[16];const y=s?void 0:a,v=s?-1:void 0,k=s?Zd:void 0;let w;return e[17]!==r||e[18]!==s||e[19]!==n||e[20]!==y||e[21]!==v||e[22]!==k||e[23]!==b?(w=p.jsx("a",{"aria-disabled":s,className:b,"data-ox-slot":"link",href:y,tabIndex:v,onClick:k,...n,children:r}),e[17]=r,e[18]=s,e[19]=n,e[20]=y,e[21]=v,e[22]=k,e[23]=b,e[24]=w):w=e[24],w};function Zd(t){return t.preventDefault()}const Ws=_.createContext(null),Qd={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"},Kd=t=>{const e=D.compilerRuntimeExports.c(59);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,closeOnOutsideClick:l,isOpen:n,onClose:a,persistent:i,showCloseButton:c,size:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=l===void 0?!0:l,f=i===void 0?!1:i,x=c===void 0?!0:c,m=d===void 0?"sm":d,h=_.useId(),g=_.useId(),b=_.useRef(null),[y,v]=_.useState(!1);let k;e[10]!==a?(k=Z=>Z?void 0:a?.(),e[10]=a,e[11]=k):k=e[11];let w;e[12]!==n||e[13]!==k?(w={value:n,onChange:k,defaultValue:!1,name:"OxDialog"},e[12]=n,e[13]=k,e[14]=w):w=e[14];const[C,N]=D.useControllableState(w),E=y&&C;let O;e[15]!==E?(O={containerRef:b,options:{enabled:E,restoreFocus:!0,trapFocus:!0,autoFocus:!0}},e[15]=E,e[16]=O):O=e[16],D.useFocus(O);let j;e[17]!==N?(j=()=>N(!1),e[17]=N,e[18]=j):j=e[18];let S;e[19]!==g||e[20]!==f||e[21]!==x||e[22]!==j||e[23]!==h?(S={onClose:j,titleId:h,bodyId:g,persistent:f,showCloseButton:x},e[19]=g,e[20]=f,e[21]=x,e[22]=j,e[23]=h,e[24]=S):S=e[24];const T=S;let P;e[25]!==C||e[26]!==y?(P=Z=>{Z.target===b.current&&!C&&y&&(v(!1),b.current?.close())},e[25]=C,e[26]=y,e[27]=P):P=e[27];const M=P;let I;e[28]!==C||e[29]!==f||e[30]!==N?(I=()=>{f&&C?b.current?.showModal():f||N(!1)},e[28]=C,e[29]=f,e[30]=N,e[31]=I):I=e[31];const V=I;let F,L;e[32]!==C?(F=()=>{C&&v(!0)},L=[C],e[32]=C,e[33]=F,e[34]=L):(F=e[33],L=e[34]),_.useEffect(F,L);let z,R;e[35]!==C||e[36]!==y?(z=()=>{const Z=b.current;if(!(!Z||!y))return C&&(document.body.classList.add("overflow-hidden"),Z.showModal()),Xd},R=[C,y],e[35]=C,e[36]=y,e[37]=z,e[38]=R):(z=e[37],R=e[38]),_.useEffect(z,R);let $,Y;if(e[39]!==u||e[40]!==V||e[41]!==f||e[42]!==y?($=()=>{const Z=b.current;if(!Z||!y)return;const K=B=>{B.key==="Escape"&&f&&(B.preventDefault(),B.stopPropagation())},U=B=>{B.preventDefault(),V()},X=B=>{u&&B.target===Z&&V()};return document.addEventListener("keydown",K),Z.addEventListener("cancel",U),Z.addEventListener("click",X),Z.addEventListener("close",V),()=>{document.removeEventListener("keydown",K),Z.removeEventListener("cancel",U),Z.removeEventListener("click",X),Z.removeEventListener("close",V)}},Y=[y,u,V,f],e[39]=u,e[40]=V,e[41]=f,e[42]=y,e[43]=$,e[44]=Y):($=e[43],Y=e[44]),_.useEffect($,Y),!y)return null;const H=Qd[m];let W;e[45]!==o||e[46]!==H?(W=A("ox-gray-border fixed inset-0 m-auto h-fit w-full rounded-lg bg-gray-50","ox-dialog-animation ox-dialog-backdrop",H,o),e[45]=o,e[46]=H,e[47]=W):W=e[47];const G=C?"open":"closing";let Q;e[48]!==r||e[49]!==T?(Q=p.jsx(Ws.Provider,{value:T,children:r}),e[48]=r,e[49]=T,e[50]=Q):Q=e[50];let q;return e[51]!==g||e[52]!==s||e[53]!==M||e[54]!==W||e[55]!==G||e[56]!==Q||e[57]!==h?(q=Mt.createPortal(p.jsx("dialog",{"aria-describedby":g,"aria-labelledby":h,className:W,"data-ox-slot":"dialog",ref:b,role:"dialog",onAnimationEnd:M,...s,"data-ox-state":G,children:Q}),document.body),e[51]=g,e[52]=s,e[53]=M,e[54]=W,e[55]=G,e[56]=Q,e[57]=h,e[58]=q):q=e[58],q};function Xd(){document.body.classList.remove("overflow-hidden")}const Gs=()=>{const t=_.useContext(Ws);if(!t)throw new Error("Dialog sub-components must be used within OxDialog");return t},Jd=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{bodyId:n}=Gs();let a;e[4]!==o?(a=A("p-4 text-sm text-gray-1200",o),e[4]=o,e[5]=a):a=e[5];let l;return e[6]!==n||e[7]!==r||e[8]!==s||e[9]!==a?(l=p.jsx("div",{id:n,className:a,"data-ox-slot":"dialog-body",...s,children:r}),e[6]=n,e[7]=r,e[8]=s,e[9]=a,e[10]=l):l=e[10],l},e1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("mx-4 flex justify-end gap-3 border-t border-gray-400 py-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"dialog-footer",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},t1=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{onClose:n,persistent:a,showCloseButton:l,titleId:i}=Gs(),c=l&&!a;let d;e[4]!==o?(d=A("mx-4 box-content flex h-8 items-center justify-between border-b border-gray-400 py-4 text-gray-1200",o),e[4]=o,e[5]=d):d=e[5];let u;e[6]!==r?(u=p.jsx("div",{className:"flex-1",children:r}),e[6]=r,e[7]=u):u=e[7];let f;e[8]!==n||e[9]!==c?(f=c?p.jsx(je,{"aria-label":"Close Dialog",size:"sm",variant:"ghost",onClick:n,children:p.jsx(je.Icon,{path:Rt})}):null,e[8]=n,e[9]=c,e[10]=f):f=e[10];let x;return e[11]!==s||e[12]!==d||e[13]!==u||e[14]!==f||e[15]!==i?(x=p.jsxs("div",{id:i,className:d,"data-ox-slot":"dialog-header",...s,children:[u,f]}),e[11]=s,e[12]=d,e[13]=u,e[14]=f,e[15]=i,e[16]=x):x=e[16],x},ar=Kd;ar.Body=Jd;ar.Footer=e1;ar.Header=t1;const Tt=_.createContext(null),lr=()=>{const t=_.useContext(Tt);if(!t)throw new Error("useNotificationsContext must be used within a NotificationsContext.Provider");return t},Us=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({children:r,className:o,icon:n,img:a,message:l,timestamp:d,title:u,type:i,unread:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?"default":i,x=c===void 0?!1:c,{isMobile:m,onItemClick:h,setOpen:g}=lr(),b=Le[f];let y;e[11]!==n||e[12]!==a||e[13]!==m||e[14]!==l||e[15]!==h||e[16]!==g||e[17]!==d||e[18]!==u||e[19]!==f||e[20]!==x?(y=()=>{const O={id:crypto.randomUUID(),icon:n,img:a,message:l,read:!x,timestamp:d||new Date,title:u||"",type:f};h?.(O),m&&g(!1)},e[11]=n,e[12]=a,e[13]=m,e[14]=l,e[15]=h,e[16]=g,e[17]=d,e[18]=u,e[19]=f,e[20]=x,e[21]=y):y=e[21];const v=y;let k;e[22]!==r||e[23]!==n||e[24]!==a||e[25]!==l||e[26]!==b||e[27]!==d||e[28]!==u||e[29]!==x?(k=r||p.jsxs(p.Fragment,{children:[p.jsx("div",{className:A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",b.background),"data-ox-slot":"notifications-icon",children:a?p.jsx(rr,{alt:"User avatar",fallback:"NA",size:"md",src:a}):p.jsx(ce,{className:b.text,path:n??b.icon,size:.75})}),p.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[u&&p.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:u}),l&&p.jsx("p",{className:"mb-1 text-xs leading-4",children:l}),d&&p.jsx("p",{className:"text-xs text-gray-1000",children:Hr(d)})]}),x&&p.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),e[22]=r,e[23]=n,e[24]=a,e[25]=l,e[26]=b,e[27]=d,e[28]=u,e[29]=x,e[30]=k):k=e[30];const w=k;let C;e[31]!==o||e[32]!==x?(C=A("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":x},o),e[31]=o,e[32]=x,e[33]=C):C=e[33];const N=x?"unread":"read";let E;return e[34]!==s||e[35]!==v||e[36]!==w||e[37]!==C||e[38]!==N?(E=p.jsx("li",{className:"contents",children:p.jsx("button",{className:C,"data-ox-slot":"notifications-button",...s,"data-ox-state":N,onClick:v,children:w})}),e[34]=s,e[35]=v,e[36]=w,e[37]=C,e[38]=N,e[39]=E):E=e[39],E},Bo=A("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'),Kt=t=>{const e=D.compilerRuntimeExports.c(52);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{emptyMessage:n,isMobile:a,items:l,onMarkAllRead:i,setOpen:c,unreadCount:d}=lr(),u=l.length>0,f=d>0;let x;e[4]!==a||e[5]!==i||e[6]!==c?(x=()=>{i?.(),a&&c(!1)},e[4]=a,e[5]=i,e[6]=c,e[7]=x):x=e[7];const m=x;let h;e[8]!==r||e[9]!==n||e[10]!==u||e[11]!==l?(h=r||p.jsx(p.Fragment,{children:u?l.map(r1):p.jsxs("li",{className:"col-span-3 px-3 py-8 text-center",role:"status",children:[p.jsx(ce,{className:"mx-auto mb-2 opacity-50",path:za,size:2}),p.jsx("p",{className:"text-sm opacity-50",children:n})]})}),e[8]=r,e[9]=n,e[10]=u,e[11]=l,e[12]=h):h=e[12];const g=h;if(a){let N;e[13]!==c?(N=()=>c(!1),e[13]=c,e[14]=N):N=e[14];let E;e[15]===Symbol.for("react.memo_cache_sentinel")?(E=p.jsx(je.Icon,{path:Rt}),e[15]=E):E=e[15];let O;e[16]!==N?(O=p.jsx(je,{"aria-label":"Close notifications",size:"md",variant:"ghost",onClick:N,children:E}),e[16]=N,e[17]=O):O=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=p.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),e[18]=j):j=e[18];let S;e[19]!==m||e[20]!==f||e[21]!==i?(S=f&&i&&p.jsx("button",{className:"cursor-pointer text-xs text-gray-1000 transition-colors hover:text-gray-1200",onClick:m,children:"Mark all read"}),e[19]=m,e[20]=f,e[21]=i,e[22]=S):S=e[22];let T;e[23]!==S?(T=p.jsx("div",{className:"flex items-center gap-2",children:S}),e[23]=S,e[24]=T):T=e[24];let P;e[25]!==O||e[26]!==T?(P=p.jsxs("div",{className:"flex h-15 items-center justify-between border-b border-gray-400 px-4",children:[O,j,T]}),e[25]=O,e[26]=T,e[27]=P):P=e[27];let M;e[28]!==o?(M=A(Bo,o),e[28]=o,e[29]=M):M=e[29];let I;e[30]!==s||e[31]!==g||e[32]!==M?(I=p.jsx("ul",{"aria-orientation":"vertical",className:M,"data-ox-slot":"notifications-body",...s,children:g}),e[30]=s,e[31]=g,e[32]=M,e[33]=I):I=e[33];let V;return e[34]!==I||e[35]!==P?(V=p.jsxs(Ze.Content,{closeOnOutsideClick:!0,side:"right",children:[P,I]}),e[34]=I,e[35]=P,e[36]=V):V=e[36],V}let b;e[37]===Symbol.for("react.memo_cache_sentinel")?(b=p.jsx("h5",{className:"text-sm font-semibold text-gray-1200",children:"Notifications"}),e[37]=b):b=e[37];let y;e[38]!==f||e[39]!==i?(y=f&&i&&p.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"}),e[38]=f,e[39]=i,e[40]=y):y=e[40];let v;e[41]!==y?(v=p.jsx(Ae.Header,{children:p.jsxs("div",{className:"flex items-center justify-between",children:[b,y]})}),e[41]=y,e[42]=v):v=e[42];let k;e[43]!==o?(k=A("w-85",Bo,o),e[43]=o,e[44]=k):k=e[44];let w;e[45]!==s||e[46]!==g||e[47]!==k?(w=p.jsx("ul",{"aria-orientation":"vertical",className:k,"data-ox-slot":"notifications-body",...s,children:g}),e[45]=s,e[46]=g,e[47]=k,e[48]=w):w=e[48];let C;return e[49]!==v||e[50]!==w?(C=p.jsxs(Ae.Content,{className:"p-0",children:[v,w]}),e[49]=v,e[50]=w,e[51]=C):C=e[51],C};function r1(t,e){return p.jsx(Us,{className:A({"border-t border-gray-400":e>0}),icon:t.icon,img:t.img,message:t.message,timestamp:t.timestamp,title:t.title,type:t.type,unread:!t.read},t.id)}const Xt=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s,n,a;e[0]!==t?({children:r,className:o,customIcon:s,unreadCount:a,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const{disabled:l,isMobile:i,open:c,setOpen:d,unreadCount:u}=lr(),f=a??u;let x;e[6]!==f?(x=f>99?"99+":f.toString(),e[6]=f,e[7]=x):x=e[7];const m=x,h=f>0,g=s??ms,b=`Notifications${h?` (${f} unread)`:""}`;let y;e[8]!==l||e[9]!==m||e[10]!==h?(y=h&&p.jsx("div",{className:A("absolute -top-2 -right-2",{"opacity-50":l}),children:p.jsx(Wt,{className:"min-w-[1.25rem] justify-center px-1",color:"violet",size:"sm",children:m})}),e[8]=l,e[9]=m,e[10]=h,e[11]=y):y=e[11];const k=r||y;if(i){let O;e[12]!==o?(O=A("relative",o),e[12]=o,e[13]=O):O=e[13];const j=c?"open":"closed";let S;e[14]!==d?(S=()=>d(!0),e[14]=d,e[15]=S):S=e[15];let T;e[16]!==g?(T=p.jsx(je.Icon,{path:g}),e[16]=g,e[17]=T):T=e[17];let P;return e[18]!==b||e[19]!==k||e[20]!==l||e[21]!==n||e[22]!==O||e[23]!==j||e[24]!==S||e[25]!==T?(P=p.jsxs(je,{"aria-label":b,className:O,"data-ox-slot":"notifications-trigger",disabled:l,size:"md",variant:"ghost",...n,"data-ox-state":j,onClick:S,children:[T,k]}),e[18]=b,e[19]=k,e[20]=l,e[21]=n,e[22]=O,e[23]=j,e[24]=S,e[25]=T,e[26]=P):P=e[26],P}let w;e[27]!==o||e[28]!==c?(w=A("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":c},o),e[27]=o,e[28]=c,e[29]=w):w=e[29];const C=c?"open":"closed";let N;e[30]!==g?(N=p.jsx(ce,{path:g}),e[30]=g,e[31]=N):N=e[31];let E;return e[32]!==b||e[33]!==k||e[34]!==l||e[35]!==n||e[36]!==w||e[37]!==C||e[38]!==N?(E=p.jsxs(Ae.Trigger,{"aria-label":b,className:w,"data-ox-slot":"notifications-trigger",disabled:l,hideIcon:!0,...n,"data-ox-state":C,children:[N,k]}),e[32]=b,e[33]=k,e[34]=l,e[35]=n,e[36]=w,e[37]=C,e[38]=N,e[39]=E):E=e[39],E},o1=t=>{const e=D.compilerRuntimeExports.c(68);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,disabled:a,emptyMessage:l,items:i,onItemClick:s,onMarkAllRead:n,unreadCount:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?!1:a,u=l===void 0?"No notifications":l;let f;e[9]!==i?(f=i===void 0?[]:i,e[9]=i,e[10]=f):f=e[10];const x=f,m=c===void 0?0:c,[h,g]=_.useState(!1),[b,y]=_.useState(!1);let v,k;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{const T=()=>{y(window.innerWidth<bs)};return T(),window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},k=[],e[11]=v,e[12]=k):(v=e[11],k=e[12]),_.useEffect(v,k);let w;e[13]!==d||e[14]!==u||e[15]!==b||e[16]!==x||e[17]!==s||e[18]!==n||e[19]!==h||e[20]!==m?(w={disabled:d,emptyMessage:u,isMobile:b,items:x,open:h,setOpen:g,unreadCount:m,onItemClick:s,onMarkAllRead:n},e[13]=d,e[14]=u,e[15]=b,e[16]=x,e[17]=s,e[18]=n,e[19]=h,e[20]=m,e[21]=w):w=e[21];const C=w;if(r){let T;e[22]!==r?(T=_.Children.toArray(r).find(s1),e[22]=r,e[23]=T):T=e[23];const P=T;let M;e[24]!==r?(M=_.Children.toArray(r).find(n1),e[24]=r,e[25]=M):M=e[25];const I=M;if(b){let z;e[26]!==I||e[27]!==h?(z=p.jsx(Ze,{open:h,onOpenChange:g,children:I}),e[26]=I,e[27]=h,e[28]=z):z=e[28];let R;e[29]!==o||e[30]!==z||e[31]!==P?(R=p.jsxs("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"mobile",children:[P,z]}),e[29]=o,e[30]=z,e[31]=P,e[32]=R):R=e[32];let $;return e[33]!==C||e[34]!==R?($=p.jsx(Tt.Provider,{value:C,children:R}),e[33]=C,e[34]=R,e[35]=$):$=e[35],$}let V;e[36]!==I||e[37]!==d||e[38]!==h||e[39]!==P?(V=p.jsxs(Ae,{align:"end",disabled:d,open:h,side:"bottom",onOpenChange:g,children:[P,I]}),e[36]=I,e[37]=d,e[38]=h,e[39]=P,e[40]=V):V=e[40];let F;e[41]!==o||e[42]!==V?(F=p.jsx("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"desktop",children:V}),e[41]=o,e[42]=V,e[43]=F):F=e[43];let L;return e[44]!==C||e[45]!==F?(L=p.jsx(Tt.Provider,{value:C,children:F}),e[44]=C,e[45]=F,e[46]=L):L=e[46],L}if(b){let T;e[47]===Symbol.for("react.memo_cache_sentinel")?(T=p.jsx(Xt,{}),e[47]=T):T=e[47];let P;e[48]===Symbol.for("react.memo_cache_sentinel")?(P=p.jsx(Kt,{}),e[48]=P):P=e[48];let M;e[49]!==h?(M=p.jsx(Ze,{open:h,onOpenChange:g,children:P}),e[49]=h,e[50]=M):M=e[50];let I;e[51]!==o||e[52]!==M?(I=p.jsxs("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"mobile",children:[T,M]}),e[51]=o,e[52]=M,e[53]=I):I=e[53];let V;return e[54]!==C||e[55]!==I?(V=p.jsx(Tt.Provider,{value:C,children:I}),e[54]=C,e[55]=I,e[56]=V):V=e[56],V}let N,E;e[57]===Symbol.for("react.memo_cache_sentinel")?(E=p.jsx(Xt,{}),N=p.jsx(Kt,{}),e[57]=N,e[58]=E):(N=e[57],E=e[58]);let O;e[59]!==d||e[60]!==h?(O=p.jsxs(Ae,{align:"end",disabled:d,open:h,side:"bottom",onOpenChange:g,children:[E,N]}),e[59]=d,e[60]=h,e[61]=O):O=e[61];let j;e[62]!==o||e[63]!==O?(j=p.jsx("div",{"data-ox-slot":"notifications",...o,"data-ox-state":"desktop",children:O}),e[62]=o,e[63]=O,e[64]=j):j=e[64];let S;return e[65]!==C||e[66]!==j?(S=p.jsx(Tt.Provider,{value:C,children:j}),e[65]=C,e[66]=j,e[67]=S):S=e[67],S};function s1(t){return _.isValidElement(t)&&t.type===Xt}function n1(t){return _.isValidElement(t)&&t.type===Kt}const a1=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n,a,l,i,c,d,u,f;e[0]!==t?({children:r,className:o,href:n,icon:a,img:l,message:i,timestamp:u,title:f,type:c,unread:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11]);const x=c===void 0?"default":c,m=d===void 0?!1:d,{isMobile:h,onItemClick:g,setOpen:b}=lr(),y=Le[x];let v;e[12]!==a||e[13]!==l||e[14]!==h||e[15]!==i||e[16]!==g||e[17]!==b||e[18]!==u||e[19]!==f||e[20]!==x||e[21]!==m?(v=()=>{const j={id:crypto.randomUUID(),icon:a,img:l,message:i,read:!m,timestamp:u||new Date,title:f||"",type:x};g?.(j),h&&b(!1)},e[12]=a,e[13]=l,e[14]=h,e[15]=i,e[16]=g,e[17]=b,e[18]=u,e[19]=f,e[20]=x,e[21]=m,e[22]=v):v=e[22];const k=v;let w;e[23]!==r||e[24]!==a||e[25]!==l||e[26]!==i||e[27]!==y||e[28]!==u||e[29]!==f||e[30]!==m?(w=r||p.jsxs(p.Fragment,{children:[p.jsx("div",{className:A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",y.background),"data-ox-slot":"notifications-icon",children:l?p.jsx(rr,{alt:"User avatar",fallback:"NA",size:"md",src:l}):p.jsx(ce,{className:y.text,path:a??y.icon,size:.75})}),p.jsxs("div",{className:"min-w-0 flex-1","data-ox-slot":"notifications-content",children:[f&&p.jsx("h5",{className:"mb-1 text-sm leading-tight font-semibold text-pretty text-gray-1200",children:f}),i&&p.jsx("p",{className:"mb-1 text-xs leading-4",children:i}),u&&p.jsx("p",{className:"text-xs text-gray-1000",children:Hr(u)})]}),m&&p.jsx("div",{className:"mt-1.5 h-2 w-2 flex-shrink-0 rounded-full bg-rose-500","data-ox-slot":"notifications-unread"})]}),e[23]=r,e[24]=a,e[25]=l,e[26]=i,e[27]=y,e[28]=u,e[29]=f,e[30]=m,e[31]=w):w=e[31];const C=w;let N;e[32]!==o||e[33]!==m?(N=A("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":m},o),e[32]=o,e[33]=m,e[34]=N):N=e[34];const E=m?"unread":"read";let O;return e[35]!==s||e[36]!==k||e[37]!==n||e[38]!==C||e[39]!==N||e[40]!==E?(O=p.jsx("li",{className:"contents",children:p.jsx("a",{className:N,"data-ox-slot":"notifications-link",href:n,...s,"data-ox-state":E,onClick:k,children:C})}),e[35]=s,e[36]=k,e[37]=n,e[38]=C,e[39]=N,e[40]=E,e[41]=O):O=e[41],O},Dt=o1;Dt.Body=Kt;Dt.Button=Us;Dt.Link=a1;Dt.Trigger=Xt;const l1=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("flex justify-center",o),e[4]=o,e[5]=n):n=e[5];let a;e[6]!==r?(a=p.jsx("ul",{className:"flex items-center gap-1",children:r}),e[6]=r,e[7]=a):a=e[7];let l;return e[8]!==s||e[9]!==n||e[10]!==a?(l=p.jsx("nav",{"aria-label":"Pagination",className:n,"data-ox-slot":"pagination",role:"navigation",...s,children:a}),e[8]=s,e[9]=n,e[10]=a,e[11]=l):l=e[11],l},Zs=["inline-flex items-center justify-center rounded-lg","transition-colors duration-150","border border-transparent bg-transparent"],to=A(Zs,"enabled:cursor-pointer enabled:text-gray-1200","enabled:hover:bg-gray-300","enabled:ox-gray-outset-focus disabled:ox-default-disabled"),At={sm:`px-2 ${he.sm}`,md:`px-2.5 ${he.md}`},i1=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s;e[0]!==t?({className:r,size:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=s===void 0?"sm":s,a=At[n],l=kt[n];let i;e[4]!==r||e[5]!==a||e[6]!==l?(i=A("flex items-center justify-center text-gray-900",a,l,r),e[4]=r,e[5]=a,e[6]=l,e[7]=i):i=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=p.jsx("span",{className:"sr-only",children:"More pages"}),e[8]=c):c=e[8];const d=Ie[n];let u;e[9]!==d?(u=p.jsx(ce,{path:Za,size:d}),e[9]=d,e[10]=u):u=e[10];let f;return e[11]!==o||e[12]!==i||e[13]!==u?(f=p.jsx("li",{children:p.jsxs("span",{className:i,"data-ox-slot":"pagination-ellipsis",...o,children:[c,u]})}),e[11]=o,e[12]=i,e[13]=u,e[14]=f):f=e[14],f},c1=t=>"href"in t,d1=t=>{const e=D.compilerRuntimeExports.c(28);let r,o,s,n,a,l,i,c;e[0]!==t?({className:r,disabled:l,href:o,isActive:i,onClick:s,page:n,size:c,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?!1:i,f=c===void 0?"sm":c,x=At[f],m=kt[f],h=!d;let g;e[9]!==r||e[10]!==d||e[11]!==u||e[12]!==x||e[13]!==m||e[14]!==h?(g=A(Zs,x,m,{"ox-gray-outset-focus cursor-pointer text-gray-1200 hover:bg-gray-300":h,"ox-default-disabled":d,"bg-gray-300":u},r),e[9]=r,e[10]=d,e[11]=u,e[12]=x,e[13]=m,e[14]=h,e[15]=g):g=e[15];const b=g;let y;e[16]!==d||e[17]!==s?(y=E=>{if(d){E.preventDefault();return}s?.(E)},e[16]=d,e[17]=s,e[18]=y):y=e[18];const v=y,k=u?"page":void 0,w=u?`Current page: ${n}`:`Go to page ${n}`,C=d?void 0:o;let N;return e[19]!==d||e[20]!==v||e[21]!==b||e[22]!==n||e[23]!==a||e[24]!==w||e[25]!==C||e[26]!==k?(N=p.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:p.jsx("a",{"aria-current":k,"aria-disabled":d,"aria-label":w,className:b,"data-ox-slot":"pagination-link",href:C,onClick:v,...a,children:n})}),e[19]=d,e[20]=v,e[21]=b,e[22]=n,e[23]=a,e[24]=w,e[25]=C,e[26]=k,e[27]=N):N=e[27],N},u1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l,i,c;e[0]!==t?({className:r,disabled:a,isActive:l,onClick:o,page:s,size:i,type:c,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?!1:a,u=l===void 0?!1:l,f=i===void 0?"sm":i,x=c===void 0?"button":c,m=At[f],h=kt[f];let g;e[9]!==r||e[10]!==u||e[11]!==m||e[12]!==h?(g=A(to,m,h,{"bg-gray-300 enabled:text-gray-1200":u},r),e[9]=r,e[10]=u,e[11]=m,e[12]=h,e[13]=g):g=e[13];const b=g;let y;e[14]!==o||e[15]!==s?(y=()=>{o?.(s)},e[14]=o,e[15]=s,e[16]=y):y=e[16];const v=y,k=u?"page":void 0,w=u?`Current page: ${s}`:`Go to page ${s}`;let C;return e[17]!==b||e[18]!==d||e[19]!==v||e[20]!==s||e[21]!==n||e[22]!==w||e[23]!==k||e[24]!==x?(C=p.jsx("li",{className:"contents","data-ox-slot":"pagination-item",children:p.jsx("button",{"aria-current":k,"aria-label":w,className:b,"data-ox-slot":"pagination-link",disabled:d,type:x,onClick:v,...n,children:s})}),e[17]=b,e[18]=d,e[19]=v,e[20]=s,e[21]=n,e[22]=w,e[23]=k,e[24]=x,e[25]=C):C=e[25],C},f1=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=c1(t)?p.jsx(d1,{...t}):p.jsx(u1,{...t}),e[0]=t,e[1]=r):r=e[1],r},m1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l;e[0]!==t?({className:r,disabled:n,onClick:s,short:a,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?!1:n,c=a===void 0?!1:a,d=l===void 0?"sm":l;let u;e[7]!==i||e[8]!==s?(u=()=>{i||s()},e[7]=i,e[8]=s,e[9]=u):u=e[9];const f=u,x=At[d],m=Pe[d],h=!c,g=kt[d],b=!c;let y;e[10]!==r||e[11]!==c||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==b?(y=A(to,x,{[m]:h,[g]:c,"gap-1":b},r),e[10]=r,e[11]=c,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):y=e[17];const v=c?null:"Next",k=Ie[d];let w;e[18]!==k?(w=p.jsx(ce,{path:Yr,size:k}),e[18]=k,e[19]=w):w=e[19];let C;return e[20]!==i||e[21]!==o||e[22]!==f||e[23]!==y||e[24]!==v||e[25]!==w?(C=p.jsx("li",{children:p.jsxs("button",{"aria-label":"Go to next page",className:y,"data-ox-slot":"pagination-next",disabled:i,type:"button",onClick:f,...o,children:[v,w]})}),e[20]=i,e[21]=o,e[22]=f,e[23]=y,e[24]=v,e[25]=w,e[26]=C):C=e[26],C},p1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l;e[0]!==t?({className:r,disabled:n,onClick:s,short:a,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?!1:n,c=a===void 0?!1:a,d=l===void 0?"sm":l;let u;e[7]!==i||e[8]!==s?(u=()=>{i||s()},e[7]=i,e[8]=s,e[9]=u):u=e[9];const f=u,x=At[d],m=Pe[d],h=!c,g=kt[d],b=!c;let y;e[10]!==r||e[11]!==c||e[12]!==x||e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==b?(y=A(to,x,{[m]:h,[g]:c,"gap-1":b},r),e[10]=r,e[11]=c,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):y=e[17];const v=Ie[d];let k;e[18]!==v?(k=p.jsx(ce,{path:ps,size:v}),e[18]=v,e[19]=k):k=e[19];const w=c?null:"Previous";let C;return e[20]!==i||e[21]!==o||e[22]!==f||e[23]!==y||e[24]!==k||e[25]!==w?(C=p.jsx("li",{children:p.jsxs("button",{"aria-label":"Go to previous page",className:y,"data-ox-slot":"pagination-previous",disabled:i,type:"button",onClick:f,...o,children:[k,w]})}),e[20]=i,e[21]=o,e[22]=f,e[23]=y,e[24]=k,e[25]=w,e[26]=C):C=e[26],C},It=l1;It.Ellipsis=i1;It.Item=f1;It.Next=m1;It.Previous=p1;const h1=t=>{const e=D.compilerRuntimeExports.c(20);let r,o,s,n,a,l,i,c;e[0]!==t?({align:a,children:r,defaultOpen:l,disabled:i,onOpenChange:s,open:n,side:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?"center":a,u=l===void 0?!1:l,f=i===void 0?!1:i,x=c===void 0?"bottom":c;let m;e[9]!==d||e[10]!==r||e[11]!==u||e[12]!==f||e[13]!==s||e[14]!==n||e[15]!==x?(m=p.jsx(Ne,{align:d,animationDuration:100,ariaHaspopup:"dialog",defaultOpen:u,disabled:f,open:n,position:x,trigger:"click",onOpenChange:s,children:r}),e[9]=d,e[10]=r,e[11]=u,e[12]=f,e[13]=s,e[14]=n,e[15]=x,e[16]=m):m=e[16];let h;return e[17]!==o||e[18]!==m?(h=p.jsx("div",{className:"inline-block","data-ox-slot":"popover",...o,children:m}),e[17]=o,e[18]=m,e[19]=h):h=e[19],h},x1=t=>{const e=D.compilerRuntimeExports.c(21);let r,o,s,n;e[0]!==t?({children:r,className:o,showCloseButton:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!0:n,{open:l,setOpen:i}=Fe();let c;e[5]!==o?(c=A("ox-gray-border relative max-w-sm min-w-[16rem] rounded-lg bg-gray-200 p-4 shadow-lg",o),e[5]=o,e[6]=c):c=e[6];const d=l?"open":"closing";let u;e[7]!==i||e[8]!==a?(u=a&&p.jsx("div",{className:"absolute top-2 right-2",children:p.jsx(je,{"aria-label":"Close popover",size:"sm",variant:"ghost",onClick:()=>i(!1),children:p.jsx(je.Icon,{path:Rt})})}),e[7]=i,e[8]=a,e[9]=u):u=e[9];let f;e[10]!==a?(f=A({"pr-8":a}),e[10]=a,e[11]=f):f=e[11];let x;e[12]!==r||e[13]!==f?(x=p.jsx("div",{className:f,children:r}),e[12]=r,e[13]=f,e[14]=x):x=e[14];let m;return e[15]!==s||e[16]!==c||e[17]!==d||e[18]!==u||e[19]!==x?(m=p.jsx(Ne.Content,{className:"ox-popover-animate",children:p.jsxs("div",{className:c,"data-ox-slot":"popover-content","data-ox-state":d,...s,children:[u,x]})}),e[15]=s,e[16]=c,e[17]=d,e[18]=u,e[19]=x,e[20]=m):m=e[20],m},g1=Xr("OxPopoverTrigger","button"),b1=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n;e[0]!==t?({asChild:n,children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!1:n;let l;e[5]!==s?(l={"data-ox-slot":"popover-trigger",type:"button",...s},e[5]=s,e[6]=l):l=e[6];const i=l;if(a){let d;return e[7]!==r||e[8]!==o||e[9]!==i?(d=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx(g1,{...i,className:o,children:r})}),e[7]=r,e[8]=o,e[9]=i,e[10]=d):d=e[10],d}let c;return e[11]!==r||e[12]!==o||e[13]!==i?(c=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx("button",{...i,className:o,children:r})}),e[11]=r,e[12]=o,e[13]=i,e[14]=c):c=e[14],c},ro=h1;ro.Content=x1;ro.Trigger=b1;const y1={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"},v1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l;e[0]!==t?({buffer:r,className:o,max:n,value:a,variant:l,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?100:n,c=a===void 0?0:a,d=l===void 0?"violet":l,u=Math.max(0,Math.min(c,i)),f=r?Math.max(0,Math.min(r,i)):0,x=pe[d];let m;e[7]!==o?(m=A("relative h-2 overflow-hidden rounded-full bg-gray-300",o),e[7]=o,e[8]=m):m=e[8];let h;e[9]!==r||e[10]!==f||e[11]!==i||e[12]!==d?(h=r!==void 0?p.jsx("div",{className:A("absolute inset-y-0 left-0 rounded-full transition-all duration-300",y1[d]),style:{width:`${f/i*100}%`}}):null,e[9]=r,e[10]=f,e[11]=i,e[12]=d,e[13]=h):h=e[13];let g;e[14]!==x.backgroundSolid?(g=A("absolute inset-y-0 left-0 rounded-full transition-all duration-300",x.backgroundSolid),e[14]=x.backgroundSolid,e[15]=g):g=e[15];const b=`${u/i*100}%`;let y;e[16]!==b?(y={width:b},e[16]=b,e[17]=y):y=e[17];let v;e[18]!==g||e[19]!==y?(v=p.jsx("div",{className:g,style:y}),e[18]=g,e[19]=y,e[20]=v):v=e[20];let k;return e[21]!==s||e[22]!==m||e[23]!==h||e[24]!==v?(k=p.jsxs("div",{className:m,"data-ox-slot":"progress",role:"progressbar",...s,children:[h,v]}),e[21]=s,e[22]=m,e[23]=h,e[24]=v,e[25]=k):k=e[25],k},w1={sm:40,md:48},k1=t=>{const e=D.compilerRuntimeExports.c(38);let r,o,s,n,a,l,i;e[0]!==t?({className:r,max:s,showPercentage:n,size:a,value:l,variant:i,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=s===void 0?100:s,d=n===void 0?!1:n,u=a===void 0?"sm":a,f=l===void 0?0:l,x=i===void 0?"violet":i,m=Math.max(0,Math.min(f,c));let h;e[8]!==c||e[9]!==m?(h=Math.round(m/c*100),e[8]=c,e[9]=m,e[10]=h):h=e[10];const g=h,b=w1[u],y=pe[x],v=(b-4)/2,k=2*Math.PI*v,w=k-m/c*k;let C;e[11]!==r?(C=A("inline-flex items-center justify-center",r),e[11]=r,e[12]=C):C=e[12];let N;e[13]!==y.stroke?(N=A("transition-all duration-300 ease-in-out",y.stroke),e[13]=y.stroke,e[14]=N):N=e[14];const E=b/2,O=b/2;let j;e[15]!==k||e[16]!==w?(j={strokeDasharray:k,strokeDashoffset:w},e[15]=k,e[16]=w,e[17]=j):j=e[17];let S;e[18]!==v||e[19]!==O||e[20]!==j||e[21]!==N||e[22]!==E?(S=p.jsx("circle",{className:N,cx:E,cy:O,fill:"none",r:v,strokeLinecap:"round",strokeWidth:"4",style:j}),e[18]=v,e[19]=O,e[20]=j,e[21]=N,e[22]=E,e[23]=S):S=e[23];let T;e[24]!==b||e[25]!==S?(T=p.jsx("svg",{className:"-rotate-90 transform",height:b,width:b,children:S}),e[24]=b,e[25]=S,e[26]=T):T=e[26];let P;e[27]!==g||e[28]!==d||e[29]!==u?(P=d&&p.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:p.jsxs("span",{className:A("font-medium text-gray-1200",{"text-xxs":u==="sm","text-xs":u==="md"}),children:[g,"%"]})}),e[27]=g,e[28]=d,e[29]=u,e[30]=P):P=e[30];let M;e[31]!==T||e[32]!==P?(M=p.jsxs("div",{className:"relative",children:[T,P]}),e[31]=T,e[32]=P,e[33]=M):M=e[33];let I;return e[34]!==o||e[35]!==M||e[36]!==C?(I=p.jsx("div",{className:C,"data-ox-slot":"progress",...o,children:M}),e[34]=o,e[35]=M,e[36]=C,e[37]=I):I=e[37],I},Qs=v1;Qs.Circular=k1;const oo=t=>{const e=D.compilerRuntimeExports.c(13);let r,o,s,n;e[0]!==t?({className:r,decorative:s,orientation:n,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=s===void 0?!0:s,l=n===void 0?"horizontal":n,i=a?void 0:l,c=l==="horizontal"?"h-0.25 w-full":"h-full w-0.25";let d;e[5]!==r||e[6]!==c?(d=A("shrink-0 bg-gray-400",c,r),e[5]=r,e[6]=c,e[7]=d):d=e[7];const u=a?"none":"separator";let f;return e[8]!==o||e[9]!==i||e[10]!==d||e[11]!==u?(f=p.jsx("div",{"aria-orientation":i,className:d,"data-ox-slot":"separator",role:u,...o}),e[8]=o,e[9]=i,e[10]=d,e[11]=u,e[12]=f):f=e[12],f},C1={rectangle:"rounded-lg",circle:"rounded-full"},Et=t=>{const e=D.compilerRuntimeExports.c(22);let r,o,s,n,a,l,i,c;e[0]!==t?({animate:n,className:r,color:a,fullWidth:l,height:s,shape:i,width:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=n===void 0?!0:n,u=a===void 0?"gray":a,f=l===void 0?!1:l,x=i===void 0?"rectangle":i,m=typeof s=="number"?`${s}px`:s,h=typeof c=="number"?`${c}px`:c;let g;e[9]!==m||e[10]!==h?(g={height:m,width:h},e[9]=m,e[10]=h,e[11]=g):g=e[11];const b=g,y=pe[u],v=C1[x];let k;e[12]!==d||e[13]!==r||e[14]!==f||e[15]!==y.background||e[16]!==v?(k=A("relative overflow-hidden",y.background,v,{"animate-pulse":d,"w-full":f},r),e[12]=d,e[13]=r,e[14]=f,e[15]=y.background,e[16]=v,e[17]=k):k=e[17];let w;return e[18]!==o||e[19]!==b||e[20]!==k?(w=p.jsx("div",{"aria-busy":"true","aria-label":"Loading...",className:k,"data-ox-slot":"skeleton",role:"status",style:b,...o}),e[18]=o,e[19]=b,e[20]=k,e[21]=w):w=e[21],w},E1=t=>{const e=D.compilerRuntimeExports.c(27);let r,o,s,n,a,l,i,c;e[0]!==t?({animate:s,className:r,color:n,fullWidth:a,height:l,lines:i,width:c,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=s===void 0?!0:s,u=n===void 0?"gray":n,f=a===void 0?!1:a,x=l===void 0?20:l,m=i===void 0?1:i;let h;e[9]!==f||e[10]!==c?(h=w=>{if(!f){if(c!==void 0&&!Array.isArray(c))return typeof c=="number"?`${c}px`:c;if(Array.isArray(c)&&c.length>0){const C=c[w%c.length];return typeof C=="number"?`${C}px`:C}return"100px"}},e[9]=f,e[10]=c,e[11]=h):h=e[11];const g=h;let b;e[12]!==r?(b=A("flex flex-col space-y-2",r),e[12]=r,e[13]=b):b=e[13];let y;e[14]!==m?(y=Array.from({length:m}),e[14]=m,e[15]=y):y=e[15];let v;e[16]!==d||e[17]!==u||e[18]!==f||e[19]!==g||e[20]!==x||e[21]!==y?(v=y.map((w,C)=>p.jsx(Et,{animate:d,color:u,"data-ox-slot":"skeleton-text",fullWidth:f,height:x,width:g(C)},C)),e[16]=d,e[17]=u,e[18]=f,e[19]=g,e[20]=x,e[21]=y,e[22]=v):v=e[22];let k;return e[23]!==o||e[24]!==b||e[25]!==v?(k=p.jsx("div",{className:b,...o,children:v}),e[23]=o,e[24]=b,e[25]=v,e[26]=k):k=e[26],k},N1={sm:{track:"h-1",handle:"size-4",text:"text-xs"},md:{track:"h-2",handle:"size-5",text:"text-sm"}},Yo=(t,e,r)=>{if(Array.isArray(t))return[Math.max(e,Math.min(r,t[0])),Math.max(e,Math.min(r,t[1]))];const o=Math.max(e,Math.min(r,t));return[o,o]},qo=(t,e,r)=>(t-e)/(r-e)*100,O1=(t,e,r,o)=>{const s=e+t/100*(r-e),n=Math.round(s/o)*o;return Math.max(e,Math.min(r,n))},j1=t=>{const e=D.compilerRuntimeExports.c(126);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g;e[0]!==t?({"aria-label":r,"aria-labelledby":o,className:s,defaultValue:c,disabled:d,max:u,min:f,onChange:l,onChangeCommitted:i,orientation:x,showValue:m,size:h,step:g,value:n,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15]);const b=c===void 0?0:c,y=d===void 0?!1:d,v=u===void 0?100:u,k=f===void 0?0:f,w=x===void 0?"horizontal":x,C=m===void 0?!1:m,N=h===void 0?"md":h,E=g===void 0?1:g,O=_.useRef(null),j=_.useRef(!1),S=_.useRef(0),T=n!==void 0,P=Array.isArray(b)||Array.isArray(n),M=n||b;let I;e[16]!==v||e[17]!==k||e[18]!==M?(I=Yo(M,k,v),e[16]=v,e[17]=k,e[18]=M,e[19]=I):I=e[19];const[V,F]=_.useState(I);let L;e[20]!==n||e[21]!==V||e[22]!==T||e[23]!==v||e[24]!==k?(L=T?Yo(n,k,v):V,e[20]=n,e[21]=V,e[22]=T,e[23]=v,e[24]=k,e[25]=L):L=e[25];const z=L;let R;e[26]!==y||e[27]!==T||e[28]!==P||e[29]!==l?(R=xe=>{if(y)return;const ue=P?xe:xe[0];T||F(xe),l?.(ue)},e[26]=y,e[27]=T,e[28]=P,e[29]=l,e[30]=R):R=e[30];const $=R;let Y;e[31]!==v||e[32]!==k||e[33]!==w||e[34]!==E?(Y=xe=>{if(!O.current)return k;const ue=O.current.getBoundingClientRect(),De=w==="horizontal"?(xe.clientX-ue.left)/ue.width*100:(ue.bottom-xe.clientY)/ue.height*100;return O1(Math.max(0,Math.min(100,De)),k,v,E)},e[31]=v,e[32]=k,e[33]=w,e[34]=E,e[35]=Y):Y=e[35];const H=Y;let W;e[36]!==z||e[37]!==y||e[38]!==H||e[39]!==$||e[40]!==P?(W=(xe,ue)=>{if(y)return;xe.preventDefault(),j.current=!0,S.current=ue||0;const De=H(xe);if(P&&ue!==void 0){const me=[...z];me[ue]=De,ue===0&&me[0]>me[1]?me[1]=me[0]:ue===1&&me[1]<me[0]&&(me[0]=me[1]),$(me)}else $([De,De])},e[36]=z,e[37]=y,e[38]=H,e[39]=$,e[40]=P,e[41]=W):W=e[41];const G=W;let Q;e[42]!==z||e[43]!==y||e[44]!==H||e[45]!==$||e[46]!==P?(Q=xe=>{if(y||j.current)return;const ue=H(xe);if(P){const[De,me]=z,Ve=Math.abs(ue-De),Sn=Math.abs(ue-me),Tn=Ve<=Sn?0:1,uo=[...z];uo[Tn]=ue,$(uo)}else $([ue,ue])},e[42]=z,e[43]=y,e[44]=H,e[45]=$,e[46]=P,e[47]=Q):Q=e[47];const q=Q;let Z;e[48]!==z||e[49]!==y||e[50]!==$||e[51]!==P||e[52]!==v||e[53]!==k||e[54]!==E?(Z=(xe,ue)=>{if(y)return;let De;e:switch(xe.key){case"ArrowRight":case"ArrowUp":{De=E;break e}case"ArrowLeft":case"ArrowDown":{De=-E;break e}case"PageUp":{De=(v-k)*.1;break e}case"PageDown":{De=-(v-k)*.1;break e}case"Home":{De=k-z[ue];break e}case"End":{De=v-z[ue];break e}default:return}xe.preventDefault();const me=[...z];me[ue]=Math.max(k,Math.min(v,z[ue]+De)),P&&(ue===0&&me[0]>me[1]?me[1]=me[0]:ue===1&&me[1]<me[0]&&(me[0]=me[1])),$(me)},e[48]=z,e[49]=y,e[50]=$,e[51]=P,e[52]=v,e[53]=k,e[54]=E,e[55]=Z):Z=e[55];const K=Z;let U,X;e[56]!==z||e[57]!==H||e[58]!==$||e[59]!==P||e[60]!==i?(U=()=>{const xe=De=>{if(!j.current)return;const me=H(De);if(P){const Ve=[...z];Ve[S.current]=me,S.current===0&&Ve[0]>Ve[1]?Ve[1]=Ve[0]:S.current===1&&Ve[1]<Ve[0]&&(Ve[0]=Ve[1]),$(Ve)}else $([me,me])},ue=()=>{j.current&&(j.current=!1,i?.(P?z:z[0]))};return j.current&&(document.addEventListener("mousemove",xe),document.addEventListener("mouseup",ue)),()=>{document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",ue)}},X=[H,P,z,$,i],e[56]=z,e[57]=H,e[58]=$,e[59]=P,e[60]=i,e[61]=U,e[62]=X):(U=e[61],X=e[62]),_.useEffect(U,X);const B=N1[N],[te,ne]=z,oe=qo(te,k,v),ge=qo(ne,k,v);let we;e[63]!==s?(we=A("w-full py-3",s),e[63]=s,e[64]=we):we=e[64];let be;e[65]!==y||e[66]!==B.track?(be=A("relative w-full cursor-pointer rounded-full bg-gray-300",B.track,{"ox-default-disabled":y}),e[65]=y,e[66]=B.track,e[67]=be):be=e[67];const Me=`${P?oe:0}%`,$e=`${P?ge-oe:oe}%`;let _e;e[68]!==Me||e[69]!==$e?(_e=p.jsx("div",{className:"absolute h-full rounded-full bg-violet-700",style:{left:Me,width:$e}}),e[68]=Me,e[69]=$e,e[70]=_e):_e=e[70];const He=P?`${r} minimum`:r,Je=String(te);let re;e[71]!==y||e[72]!==B.handle?(re=A("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",B.handle,{"cursor-not-allowed":y}),e[71]=y,e[72]=B.handle,e[73]=re):re=e[73];const fe=`${oe}%`;let Re;e[74]!==fe?(Re={left:fe},e[74]=fe,e[75]=Re):Re=e[75];const et=y?-1:0;let ot;e[76]!==K?(ot=xe=>K(xe,0),e[76]=K,e[77]=ot):ot=e[77];let dt;e[78]!==G?(dt=xe=>G(xe,0),e[78]=G,e[79]=dt):dt=e[79];let ut;e[80]!==o||e[81]!==v||e[82]!==k||e[83]!==te||e[84]!==w||e[85]!==He||e[86]!==Je||e[87]!==re||e[88]!==Re||e[89]!==et||e[90]!==ot||e[91]!==dt?(ut=p.jsx("div",{"aria-label":He,"aria-labelledby":o,"aria-orientation":w,"aria-valuemax":v,"aria-valuemin":k,"aria-valuenow":te,"aria-valuetext":Je,className:re,role:"slider",style:Re,tabIndex:et,onKeyDown:ot,onMouseDown:dt}),e[80]=o,e[81]=v,e[82]=k,e[83]=te,e[84]=w,e[85]=He,e[86]=Je,e[87]=re,e[88]=Re,e[89]=et,e[90]=ot,e[91]=dt,e[92]=ut):ut=e[92];let ft;e[93]!==r||e[94]!==o||e[95]!==y||e[96]!==K||e[97]!==G||e[98]!==P||e[99]!==v||e[100]!==ge||e[101]!==ne||e[102]!==k||e[103]!==w||e[104]!==B.handle?(ft=P?p.jsx("div",{"aria-label":P?`${r} maximum`:r,"aria-labelledby":o,"aria-orientation":w,"aria-valuemax":v,"aria-valuemin":k,"aria-valuenow":ne,"aria-valuetext":String(ne),className:A("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",B.handle,{"cursor-not-allowed":y}),role:"slider",style:{left:`${ge}%`},tabIndex:y?-1:0,onKeyDown:xe=>K(xe,1),onMouseDown:xe=>G(xe,1)}):null,e[93]=r,e[94]=o,e[95]=y,e[96]=K,e[97]=G,e[98]=P,e[99]=v,e[100]=ge,e[101]=ne,e[102]=k,e[103]=w,e[104]=B.handle,e[105]=ft):ft=e[105];let mt;e[106]!==q||e[107]!==be||e[108]!==_e||e[109]!==ut||e[110]!==ft?(mt=p.jsxs("div",{className:be,ref:O,onClick:q,children:[_e,ut,ft]}),e[106]=q,e[107]=be,e[108]=_e,e[109]=ut,e[110]=ft,e[111]=mt):mt=e[111];let pt;e[112]!==P||e[113]!==v||e[114]!==ne||e[115]!==k||e[116]!==te||e[117]!==C?(pt=C&&p.jsxs("div",{className:A("mt-2 flex justify-between text-xs text-gray-1000"),children:[p.jsx("span",{children:P?`${te} - ${ne}`:te}),p.jsxs("span",{children:[k," - ",v]})]}),e[112]=P,e[113]=v,e[114]=ne,e[115]=k,e[116]=te,e[117]=C,e[118]=pt):pt=e[118];let ht;e[119]!==mt||e[120]!==pt?(ht=p.jsxs("div",{className:"relative py-3",children:[mt,pt]}),e[119]=mt,e[120]=pt,e[121]=ht):ht=e[121];let Vt;return e[122]!==a||e[123]!==we||e[124]!==ht?(Vt=p.jsx("div",{className:we,"data-ox-slot":"slider",...a,children:ht}),e[122]=a,e[123]=we,e[124]=ht,e[125]=Vt):Vt=e[125],Vt},S1={loading:{title:"Loading...",message:"Good things take time",icon:hs,showAction:!1},empty:{title:"Nothing here",message:"It's so empty... like my soul",icon:rl,showAction:!1},offline:{title:"You're offline",message:"Did you forget to pay the internet bill?",icon:nl,showAction:!0},success:{title:"Success!",message:"Everything went perfectly as planned",icon:Ha,showAction:!1},warning:{title:"Heads up!",message:"Something needs your attention",icon:_a,showAction:!1},info:{title:"Just so you know",message:"Here's some helpful information",icon:Ja,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}},T1={sm:{container:"max-w-sm space-y-4",spacing:"space-y-1",title:"text-lg",message:he.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"}},P1=t=>t==="success"?Le.success:t==="warning"?Le.warning:t==="info"?Le.info:typeof t=="number"?Le.error:{text:"text-violet-700"},M1=t=>{const e=D.compilerRuntimeExports.c(76);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({action:r,children:o,className:s,inline:i,message:a,onBack:l,size:c,title:d,type:u,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?!1:i,x=c===void 0?"sm":c;if(o){let W;e[11]!==s?(W=A("min-h-screen w-full",s),e[11]=s,e[12]=W):W=e[12];let G;return e[13]!==o||e[14]!==W?(G=p.jsx("div",{className:W,children:o}),e[13]=o,e[14]=W,e[15]=G):G=e[15],G}const m=S1[u],h=d||m.title,g=a||m.message;let b;e[16]!==l?(b=()=>{l?l():window.history.back()},e[16]=l,e[17]=b):b=e[17];const y=b;let v;e[18]!==r||e[19]!==m.showAction||e[20]!==y||e[21]!==x?(v=()=>r!==void 0?r:m.showAction?p.jsx(je,{size:x,variant:"secondary",onClick:y,children:"Back"}):null,e[18]=r,e[19]=m.showAction,e[20]=y,e[21]=x,e[22]=v):v=e[22];const k=v,w=T1[x];let C,N,E,O,j,S,T,P;if(e[23]!==s||e[24]!==m.icon||e[25]!==n||e[26]!==f||e[27]!==x||e[28]!==w.container||e[29]!==w.numberText||e[30]!==u){const W=P1(u);T=typeof u=="number"?"assertive":"polite";const G=!f;e[39]!==s||e[40]!==f||e[41]!==G?(P=A("flex w-full items-center justify-center",{"min-h-screen bg-gray-50":G,"h-full":f},s),e[39]=s,e[40]=f,e[41]=G,e[42]=P):P=e[42],C="status-display",N=typeof u=="number"?"alert":"status",E=n,e[43]!==w.container?(S=A("flex flex-col items-center text-center",w.container),e[43]=w.container,e[44]=S):S=e[44],O="flex items-center space-x-4",j=m.icon?p.jsx(ce,{className:A(W.text,{"animate-spin":u==="loading"}),path:m.icon,size:x==="md"?1.75:1.25}):typeof u=="number"?p.jsx("div",{className:A("bg-gradient-to-br from-violet-700 from-20% to-rose-500 bg-clip-text font-bold text-transparent",w.numberText),children:u}):null,e[23]=s,e[24]=m.icon,e[25]=n,e[26]=f,e[27]=x,e[28]=w.container,e[29]=w.numberText,e[30]=u,e[31]=C,e[32]=N,e[33]=E,e[34]=O,e[35]=j,e[36]=S,e[37]=T,e[38]=P}else C=e[31],N=e[32],E=e[33],O=e[34],j=e[35],S=e[36],T=e[37],P=e[38];let M;e[45]!==O||e[46]!==j?(M=p.jsx("div",{className:O,children:j}),e[45]=O,e[46]=j,e[47]=M):M=e[47];const I=w.spacing;let V;e[48]!==w.title?(V=A("font-bold text-gray-1200",w.title),e[48]=w.title,e[49]=V):V=e[49];let F;e[50]!==h||e[51]!==V?(F=p.jsx("h1",{id:"status-title","aria-describedby":"status-message",className:V,children:h}),e[50]=h,e[51]=V,e[52]=F):F=e[52];let L;e[53]!==w.message?(L=A("text-gray-1000",w.message),e[53]=w.message,e[54]=L):L=e[54];let z;e[55]!==g||e[56]!==L?(z=p.jsx("p",{id:"status-message",className:L,children:g}),e[55]=g,e[56]=L,e[57]=z):z=e[57];let R;e[58]!==w.spacing||e[59]!==F||e[60]!==z?(R=p.jsxs("div",{className:I,children:[F,z]}),e[58]=w.spacing,e[59]=F,e[60]=z,e[61]=R):R=e[61];let $;e[62]!==k?($=k(),e[62]=k,e[63]=$):$=e[63];let Y;e[64]!==M||e[65]!==R||e[66]!==$||e[67]!==S?(Y=p.jsxs("div",{className:S,children:[M,R,$]}),e[64]=M,e[65]=R,e[66]=$,e[67]=S,e[68]=Y):Y=e[68];let H;return e[69]!==C||e[70]!==N||e[71]!==E||e[72]!==Y||e[73]!==T||e[74]!==P?(H=p.jsx("div",{"aria-live":T,className:P,"data-ox-slot":C,role:N,...E,children:Y}),e[69]=C,e[70]=N,e[71]=E,e[72]=Y,e[73]=T,e[74]=P,e[75]=H):H=e[75],H},Ks=_.createContext(null),so=()=>{const t=_.useContext(Ks);if(!t)throw new Error("OxStepperItem must be used within OxStepper");return t},Xs=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{orientation:n}=so(),a=n==="vertical";let l;e[4]!==o||e[5]!==a?(l=A("mt-2 p-4",{"border-t border-gray-400":a},o),e[4]=o,e[5]=a,e[6]=l):l=e[6];let i;return e[7]!==r||e[8]!==s||e[9]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"stepper-actions",...s,children:r}),e[7]=r,e[8]=s,e[9]=l,e[10]=i):i=e[10],i},R1=(t,e,r)=>t==="error"?Le.error.icon:t==="warning"?Le.warning.icon:e||(r?Le.success.icon:null),Js=(t,e)=>t==="error"?Le.error:t==="warning"?Le.warning:pe[e],Wo=(t,e)=>t==="error"||t==="warning"?e.text:"text-gray-1200",en=t=>{const e=D.compilerRuntimeExports.c(18);let r,o,s,n;e[0]!==t?({className:r,state:s,stepIndex:n,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{color:a,currentStep:l,orientation:i}=so(),c=l>n,d=s||(c?"completed":"current");let u;e[5]!==d||e[6]!==a?(u=Js(d,a),e[5]=d,e[6]=a,e[7]=u):u=e[7];const f=u,x=i==="horizontal",m=i==="vertical",h=!c;let g;e[8]!==r||e[9]!==c||e[10]!==f.border||e[11]!==x||e[12]!==m||e[13]!==h?(g=A("flex-1 border transition-colors duration-300",{"mx-4 mt-[19px]":x,"my-2 min-h-6":m,"border-gray-400":h,[f.border]:c},r),e[8]=r,e[9]=c,e[10]=f.border,e[11]=x,e[12]=m,e[13]=h,e[14]=g):g=e[14];let b;return e[15]!==o||e[16]!==g?(b=p.jsx("div",{className:g,"data-ox-slot":"stepper-connector",...o}),e[15]=o,e[16]=g,e[17]=b):b=e[17],b},yt=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,disabled:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?!1:n;let l;e[5]!==o||e[6]!==a?(l=A("text-xs leading-relaxed text-pretty text-gray-1100",{"ox-default-disabled":a},o),e[5]=o,e[6]=a,e[7]=l):l=e[7];let i;return e[8]!==r||e[9]!==s||e[10]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"description",...s,children:r}),e[8]=r,e[9]=s,e[10]=l,e[11]=i):i=e[11],i},tn=t=>{const e=D.compilerRuntimeExports.c(14);let r,o,s,n;e[0]!==t?({children:r,className:o,icon:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?fs:n;if(!r)return null;let l;e[5]!==o?(l=A("grid grid-cols-[auto_1fr] items-center gap-1 text-xs text-pretty text-rose-400",o),e[5]=o,e[6]=l):l=e[6];let i;e[7]!==a?(i=p.jsx(ce,{className:"shrink-0 text-current",path:a,size:Ie.md}),e[7]=a,e[8]=i):i=e[8];let c;return e[9]!==r||e[10]!==s||e[11]!==l||e[12]!==i?(c=p.jsxs("div",{className:l,"data-ox-slot":"error",role:"alert",...s,children:[i,r]}),e[9]=r,e[10]=s,e[11]=l,e[12]=i,e[13]=c):c=e[13],c},D1={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"},rn=({as:t="h2",children:e,className:r,level:o,...s})=>{const n=o??(t!=="div"?parseInt(t.slice(1)):2),a=D.clamp(n,1,7),l={className:A("text-gray-1200",D1[a],r),"data-ox-slot":"heading",...s,...t==="div"&&{role:"heading","aria-level":n}};return _.createElement(t,l,e)},on=t=>{const e=D.compilerRuntimeExports.c(19);let r,o,s,n,a,l;e[0]!==t?({children:r,className:o,disabled:a,htmlFor:n,required:l,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=a===void 0?!1:a,c=l===void 0?!1:l,d=!i;let u;e[7]!==o||e[8]!==i||e[9]!==d?(u=A("block text-sm font-medium",{"text-gray-1200":d,"ox-default-disabled":i},o),e[7]=o,e[8]=i,e[9]=d,e[10]=u):u=e[10];let f;e[11]!==c?(f=c&&p.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),e[11]=c,e[12]=f):f=e[12];let x;return e[13]!==r||e[14]!==s||e[15]!==n||e[16]!==u||e[17]!==f?(x=p.jsxs("label",{className:u,"data-ox-slot":"label",htmlFor:n,...s,children:[r,f]}),e[13]=r,e[14]=s,e[15]=n,e[16]=u,e[17]=f,e[18]=x):x=e[18],x},A1=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,required:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?!1:a,c=!l;let d;e[6]!==o||e[7]!==l||e[8]!==c?(d=A("block text-base font-semibold",{"text-gray-1200":c,"ox-default-disabled":l},o),e[6]=o,e[7]=l,e[8]=c,e[9]=d):d=e[9];let u;e[10]!==i?(u=i&&p.jsx("span",{className:"ml-1 text-rose-400",children:"*"}),e[10]=i,e[11]=u):u=e[11];let f;return e[12]!==r||e[13]!==s||e[14]!==d||e[15]!==u?(f=p.jsxs("legend",{className:d,"data-ox-slot":"legend",...s,children:[r,u]}),e[12]=r,e[13]=s,e[14]=d,e[15]=u,e[16]=f):f=e[16],f},I1={completed:"check",error:"close",warning:"warning",current:"current step",upcoming:"upcoming step"},sn=t=>{const e=D.compilerRuntimeExports.c(73);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,description:s,icon:a,state:l,stepIndex:i,title:c,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=i===void 0?0:i,{color:u,currentStep:f,onStepChange:x,orientation:m,totalSteps:h,type:g}=so(),b=f===d,y=f>d,v=l||(d<f?"completed":d===f?"current":"upcoming"),k=g==="non-linear"||y||b;let w;e[9]!==v||e[10]!==a||e[11]!==y?(w=R1(v,a,y),e[9]=v,e[10]=a,e[11]=y,e[12]=w):w=e[12];const C=w;let N,E,O,j,S,T,P,M;if(e[13]!==v||e[14]!==k||e[15]!==o||e[16]!==u||e[17]!==s||e[18]!==n||e[19]!==b||e[20]!==x||e[21]!==m||e[22]!==l||e[23]!==C||e[24]!==d||e[25]!==c||e[26]!==h){N=Symbol.for("react.early_return_sentinel");e:{const $=Js(v,u);let Y;e[35]!==k||e[36]!==x||e[37]!==d?(Y=()=>{k&&x&&x(d)},e[35]=k,e[36]=x,e[37]=d,e[38]=Y):Y=e[38];const H=Y,W=()=>p.jsx("button",{"aria-current":b?"step":void 0,"aria-describedby":s?`step-${d}-desc`:void 0,"aria-label":`${c} - ${I1[v]} (${d+1} of ${h})`,className:A("flex items-center justify-center rounded-lg transition-colors","enabled:cursor-pointer",v==="error"?"ox-rose-outset-focus":"ox-violet-outset-focus",{"cursor-pointer":k,"opacity-50":v==="upcoming"}),disabled:!k,type:"button",onClick:H,children:p.jsx("div",{className:A("flex size-10 flex-shrink-0 items-center justify-center rounded-lg border",$.border,$.background),children:C?p.jsx(ce,{className:$.text,path:C}):p.jsx("span",{className:A("text-base font-medium text-current"),children:d+1})})});if(m==="horizontal"){let Q;e[39]!==o?(Q=A("flex flex-col items-center text-center",o),e[39]=o,e[40]=Q):Q=e[40];let q;e[41]!==s||e[42]!==d?(q=s?p.jsx(yt,{id:`step-${d}-desc`,children:s}):null,e[41]=s,e[42]=d,e[43]=q):q=e[43],N=p.jsxs("div",{className:Q,"data-ox-slot":"stepper-item",...n,children:[W(),p.jsxs("div",{className:"mt-2",children:[p.jsx("h6",{className:A("text-sm font-medium",Wo(v,$)),children:c}),q]})]});break e}e[44]!==o?(S=A("flex gap-3",o),e[44]=o,e[45]=S):S=e[45],T="stepper-item",P=n;let G;e[46]!==l||e[47]!==d||e[48]!==h?(G=d<h-1?p.jsx(en,{state:l,stepIndex:d}):null,e[46]=l,e[47]=d,e[48]=h,e[49]=G):G=e[49],M=p.jsxs("div",{className:"flex flex-col items-center",children:[W(),G]}),j="flex-1",O="mb-4",E=A("text-sm font-medium",Wo(v,$))}e[13]=v,e[14]=k,e[15]=o,e[16]=u,e[17]=s,e[18]=n,e[19]=b,e[20]=x,e[21]=m,e[22]=l,e[23]=C,e[24]=d,e[25]=c,e[26]=h,e[27]=N,e[28]=E,e[29]=O,e[30]=j,e[31]=S,e[32]=T,e[33]=P,e[34]=M}else N=e[27],E=e[28],O=e[29],j=e[30],S=e[31],T=e[32],P=e[33],M=e[34];if(N!==Symbol.for("react.early_return_sentinel"))return N;let I;e[50]!==E||e[51]!==c?(I=p.jsx("h6",{className:E,children:c}),e[50]=E,e[51]=c,e[52]=I):I=e[52];let V;e[53]!==s||e[54]!==d?(V=s?p.jsx(yt,{id:`step-${d}-desc`,children:s}):null,e[53]=s,e[54]=d,e[55]=V):V=e[55];let F;e[56]!==I||e[57]!==V||e[58]!==O?(F=p.jsxs("div",{className:O,children:[I,V]}),e[56]=I,e[57]=V,e[58]=O,e[59]=F):F=e[59];let L;e[60]!==r||e[61]!==b?(L=b&&r?p.jsx("div",{className:"ox-gray-border mb-4 rounded-lg bg-gray-50 p-4",children:r}):null,e[60]=r,e[61]=b,e[62]=L):L=e[62];let z;e[63]!==F||e[64]!==L||e[65]!==j?(z=p.jsxs("div",{className:j,children:[F,L]}),e[63]=F,e[64]=L,e[65]=j,e[66]=z):z=e[66];let R;return e[67]!==z||e[68]!==S||e[69]!==T||e[70]!==P||e[71]!==M?(R=p.jsxs("div",{className:S,"data-ox-slot":T,...P,children:[M,z]}),e[67]=z,e[68]=S,e[69]=T,e[70]=P,e[71]=M,e[72]=R):R=e[72],R},$1=t=>{const e=D.compilerRuntimeExports.c(46);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,color:a,currentStep:l,onStepChange:n,orientation:i,type:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=a===void 0?"violet":a,u=l===void 0?0:l,f=i===void 0?"vertical":i,x=c===void 0?"linear":c;let m,h,g,b,y,v,k,w,C,N,E;if(e[9]!==r||e[10]!==o||e[11]!==d||e[12]!==u||e[13]!==s||e[14]!==n||e[15]!==f||e[16]!==x){const S=_.Children.toArray(r).filter(L1);let T;e[28]!==r?(T=_.Children.toArray(r).find(_1),e[28]=r,e[29]=T):T=e[29],h=T;const P=S.map(V1),M={color:d,currentStep:u,onStepChange:n,orientation:f,totalSteps:S.length,type:x};m=Ks.Provider,v=M,k="Step-by-step progress",w=S.length,C=u+1,e[30]!==o?(N=A("w-full",o),e[30]=o,e[31]=N):N=e[31],E="stepper",g="navigation",b=s,y=f==="horizontal"?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"flex w-full items-start",children:P.map((I,V)=>p.jsxs(_.Fragment,{children:[_.cloneElement(I,{className:A("min-w-0 flex-1",I.props.className)}),V<S.length-1?p.jsx(en,{state:S[V].props.state,stepIndex:V}):null]},V))}),S[u]?.props.children?p.jsx("div",{className:"ox-gray-border mt-6 rounded-lg bg-gray-50 p-4",children:S[u].props.children}):null]}):P,e[9]=r,e[10]=o,e[11]=d,e[12]=u,e[13]=s,e[14]=n,e[15]=f,e[16]=x,e[17]=m,e[18]=h,e[19]=g,e[20]=b,e[21]=y,e[22]=v,e[23]=k,e[24]=w,e[25]=C,e[26]=N,e[27]=E}else m=e[17],h=e[18],g=e[19],b=e[20],y=e[21],v=e[22],k=e[23],w=e[24],C=e[25],N=e[26],E=e[27];let O;e[32]!==h||e[33]!==g||e[34]!==b||e[35]!==y||e[36]!==k||e[37]!==w||e[38]!==C||e[39]!==N||e[40]!==E?(O=p.jsxs("div",{"aria-label":k,"aria-valuemax":w,"aria-valuenow":C,className:N,"data-ox-slot":E,role:g,...b,children:[y,h]}),e[32]=h,e[33]=g,e[34]=b,e[35]=y,e[36]=k,e[37]=w,e[38]=C,e[39]=N,e[40]=E,e[41]=O):O=e[41];let j;return e[42]!==m||e[43]!==v||e[44]!==O?(j=p.jsx(m,{value:v,children:O}),e[42]=m,e[43]=v,e[44]=O,e[45]=j):j=e[45],j};function L1(t){return _.isValidElement(t)&&t.type===sn}function _1(t){return _.isValidElement(t)&&t.type===Xs}function V1(t,e){return _.cloneElement(t,{stepIndex:e,key:e})}const no=$1;no.Actions=Xs;no.Item=sn;const nn=_.createContext(void 0),z1=t=>{const e=D.compilerRuntimeExports.c(50);let r,o,s,n,a,l,i,c,d,u,f,x;e[0]!==t?({allRowIds:a,children:r,className:o,hoverable:l,isLoading:i,onSelectionChange:n,selectable:c,selectedRows:d,skeletonColumns:u,skeletonRows:f,striped:x,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12]);let m;e[13]!==a?(m=a===void 0?[]:a,e[13]=a,e[14]=m):m=e[14];const h=m,g=l===void 0?!1:l,b=i===void 0?!1:i,y=c===void 0?!1:c;let v;e[15]!==d?(v=d===void 0?[]:d,e[15]=d,e[16]=v):v=e[16];const k=v,w=u===void 0?3:u,C=f===void 0?5:f,N=x===void 0?!1:x,E=h.length>0&&k.length===h.length,O=k.length>0&&k.length<h.length,j=Math.max(1,Math.min(w,20)),S=Math.max(1,Math.min(C,50));let T;e[17]!==k?(T=R=>k.includes(R),e[17]=k,e[18]=T):T=e[18];let P;e[19]!==n||e[20]!==k?(P=R=>{if(!n)return;const $=k.includes(R);n($?k.filter(Y=>Y!==R):[...k,R])},e[19]=n,e[20]=k,e[21]=P):P=e[21];let M;e[22]!==h||e[23]!==E||e[24]!==n?(M=()=>{n&&n(E?[]:[...h])},e[22]=h,e[23]=E,e[24]=n,e[25]=M):M=e[25];let I;e[26]!==h||e[27]!==g||e[28]!==E||e[29]!==O||e[30]!==b||e[31]!==n||e[32]!==y||e[33]!==k||e[34]!==N||e[35]!==T||e[36]!==P||e[37]!==M||e[38]!==j||e[39]!==S?(I={allRowIds:h,hoverable:g,isLoading:b,selectable:y,selectedRows:k,skeletonColumns:j,skeletonRows:S,striped:N,onSelectionChange:n,isSelected:T,toggleSelection:P,toggleAll:M,isAllSelected:E,isIndeterminate:O},e[26]=h,e[27]=g,e[28]=E,e[29]=O,e[30]=b,e[31]=n,e[32]=y,e[33]=k,e[34]=N,e[35]=T,e[36]=P,e[37]=M,e[38]=j,e[39]=S,e[40]=I):I=e[40];const V=I;let F;e[41]!==o?(F=A("w-full table-auto sm:table-fixed",o),e[41]=o,e[42]=F):F=e[42];let L;e[43]!==r||e[44]!==s||e[45]!==F?(L=p.jsx("div",{className:"rounded-lg bg-gray-50",children:p.jsx("table",{className:F,"data-ox-slot":"table",...s,children:r})}),e[43]=r,e[44]=s,e[45]=F,e[46]=L):L=e[46];let z;return e[47]!==V||e[48]!==L?(z=p.jsx(nn.Provider,{value:V,children:L}),e[47]=V,e[48]=L,e[49]=z):z=e[49],z},ir=()=>_.useContext(nn),an=t=>{const e=D.compilerRuntimeExports.c(7),{columns:r}=t,o=ir();let s;e[0]!==o?.selectable?(s=o?.selectable?p.jsx("td",{className:"px-3 py-2",children:p.jsx("div",{className:"flex items-center justify-center",children:p.jsx(Et,{height:21,shape:"circle",width:16})})}):null,e[0]=o?.selectable,e[1]=s):s=e[1];let n;e[2]!==r?(n=Array.from({length:r}).map(F1),e[2]=r,e[3]=n):n=e[3];let a;return e[4]!==s||e[5]!==n?(a=p.jsxs("tr",{className:"border-b border-gray-400 last:border-b-0",children:[s,n]}),e[4]=s,e[5]=n,e[6]=a):a=e[6],a};function F1(t,e){return p.jsx("td",{className:"px-3 py-2",children:p.jsx(Et,{fullWidth:!0,height:21})},e)}const H1=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=ir();let a;e[4]!==r||e[5]!==n?(a=n?.isLoading?Array.from({length:n.skeletonRows}).map((i,c)=>p.jsx(an,{columns:n.skeletonColumns},c)):r,e[4]=r,e[5]=n,e[6]=a):a=e[6];let l;return e[7]!==o||e[8]!==s||e[9]!==a?(l=p.jsx("tbody",{className:o,"data-ox-slot":"table-body",...s,children:a}),e[7]=o,e[8]=s,e[9]=a,e[10]=l):l=e[10],l},B1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("px-3 py-2 text-sm text-gray-1200",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("td",{className:n,"data-ox-slot":"table-cell",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Y1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("mb-4 flex items-center justify-between gap-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"table-controls",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},q1=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("border-t border-gray-400 bg-gray-100 font-semibold",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("tfoot",{className:n,"data-ox-slot":"table-footer",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},ln=_.createContext(void 0),W1=()=>_.useContext(ln),G1={sm:"size-4.5",md:"size-5.5"},U1=t=>{const e=D.compilerRuntimeExports.c(58);let r,o,s,n,a,l,i,c,d,u,f,x,m,h;e[0]!==t?({checked:r,className:o,defaultChecked:s,disabled:u,error:f,id:c,indeterminate:x,name:a,onChange:l,onCheckedChange:i,required:m,size:d,value:h,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14]);const g=u===void 0?!1:u,b=f===void 0?!1:f,y=x===void 0?!1:x,v=m===void 0?!1:m,k=_.useId(),w=W1(),C=_.useRef(null),E=`${c||k}-checkbox`,O=d||w?.size||"sm",j=g||w?.disabled||!1,S=a||w?.name,T=r!==void 0||w&&h!==void 0;let P;if(w&&h!==void 0){let X;e[15]!==w.value||e[16]!==h?(X=w.value?.includes(h)||!1,e[15]=w.value,e[16]=h,e[17]=X):X=e[17],P=X}else P=r??void 0;let M,I;e[18]!==y?(M=()=>{C.current&&(C.current.indeterminate=y)},I=[y],e[18]=y,e[19]=M,e[20]=I):(M=e[19],I=e[20]),_.useEffect(M,I);const V=y?"mixed":P===!0?"true":"false";let F;e[21]!==w||e[22]!==l||e[23]!==i||e[24]!==h?(F=X=>{const B=X.target.checked;if(w&&h!==void 0){const te=w.value,ne=B?[...te,h]:te.filter(oe=>oe!==h);w.onChange?.(ne)}else l?.(X),i?.(B)},e[21]=w,e[22]=l,e[23]=i,e[24]=h,e[25]=F):F=e[25];const L=F,z=y?xs:Br;let R;e[26]!==P||e[27]!==s||e[28]!==T?(R=T?{checked:P}:{defaultChecked:s},e[26]=P,e[27]=s,e[28]=T,e[29]=R):R=e[29];const $=G1[O],Y=!b;let H;e[30]!==o||e[31]!==b||e[32]!==Y||e[33]!==$?(H=A("peer cursor-pointer appearance-none rounded-sm bg-gray-50",$,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":b,"ox-gray-border":Y},o),e[30]=o,e[31]=b,e[32]=Y,e[33]=$,e[34]=H):H=e[34];const W=j?"disabled":y?"indeterminate":P?"checked":"unchecked";let G;e[35]!==j||e[36]!==S||e[37]!==V||e[38]!==E||e[39]!==n||e[40]!==b||e[41]!==L||e[42]!==v||e[43]!==H||e[44]!==W||e[45]!==R||e[46]!==h?(G=p.jsx("input",{id:E,"aria-checked":V,"aria-invalid":b,"aria-required":v,"data-ox-slot":"checkbox",ref:C,...R,className:H,disabled:j,name:S,required:v,type:"checkbox",value:h,onChange:L,...n,"data-ox-state":W}),e[35]=j,e[36]=S,e[37]=V,e[38]=E,e[39]=n,e[40]=b,e[41]=L,e[42]=v,e[43]=H,e[44]=W,e[45]=R,e[46]=h,e[47]=G):G=e[47];const Q=!y;let q;e[48]!==y||e[49]!==Q?(q=A("pointer-events-none absolute inset-0 m-auto text-gray-1200",{"opacity-80":y,"opacity-0 peer-checked:opacity-80":Q}),e[48]=y,e[49]=Q,e[50]=q):q=e[50];const Z=Ie[O];let K;e[51]!==z||e[52]!==q||e[53]!==Z?(K=p.jsx(ce,{className:q,path:z,size:Z}),e[51]=z,e[52]=q,e[53]=Z,e[54]=K):K=e[54];let U;return e[55]!==G||e[56]!==K?(U=p.jsxs("div",{className:"relative inline-flex shrink-0",children:[G,K]}),e[55]=G,e[56]=K,e[57]=U):U=e[57],U},Z1=t=>{const e=D.compilerRuntimeExports.c(26);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,disabled:l,name:n,onChange:a,size:i,value:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?"sm":i;let f;e[9]!==c?(f=c===void 0?[]:c,e[9]=c,e[10]=f):f=e[10];const x=f;let m;e[11]!==d||e[12]!==n||e[13]!==a||e[14]!==u||e[15]!==x?(m={value:x,onChange:a,name:n,size:u,disabled:d},e[11]=d,e[12]=n,e[13]=a,e[14]=u,e[15]=x,e[16]=m):m=e[16];let h;e[17]!==o?(h=A("space-y-2",o),e[17]=o,e[18]=h):h=e[18];let g;e[19]!==r||e[20]!==s||e[21]!==h?(g=p.jsx("div",{className:h,"data-ox-slot":"checkbox-group",role:"group",...s,children:r}),e[19]=r,e[20]=s,e[21]=h,e[22]=g):g=e[22];let b;return e[23]!==m||e[24]!==g?(b=p.jsx(ln.Provider,{value:m,children:g}),e[23]=m,e[24]=g,e[25]=b):b=e[25],b},cr=U1;cr.Group=Z1;const cn=_.createContext(null),Go=t=>{const e={B:1,KB:1024,MB:1048576,GB:1073741824},r=t.match(/^(\d+(?:\.\d+)?)\s*(B|KB|MB|GB)$/i);if(!r)throw new Error(`Invalid size format: ${t}. Use format like "5MB", "1.5GB", etc.`);const[,o,s]=r;return parseFloat(o)*e[s.toUpperCase()]},Q1=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),K1=(t,e)=>e.some(r=>r.includes("/")?r.endsWith("/*")?t.type.startsWith(r.slice(0,-1)):t.type===r:t.name.toLowerCase().endsWith(`.${r.toLowerCase()}`)),X1=t=>{const e=D.compilerRuntimeExports.c(68);let r,o,s,n,a,l,i,c,d,u,f;e[0]!==t?({accept:d,children:r,className:o,disabled:u,maxFiles:n,maxSize:a,minSize:l,multiple:f,onError:i,onFileSelect:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11]);let x;e[12]!==d?(x=d===void 0?[]:d,e[12]=d,e[13]=x):x=e[13];const m=x,h=u===void 0?!1:u,g=f===void 0?!1:f;let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[14]=b):b=e[14];const[y,v]=_.useState(b),[k,w]=_.useState(!1),[C,N]=_.useState();let E;e[15]!==m||e[16]!==n||e[17]!==a||e[18]!==l||e[19]!==g?(E=U=>{if(!g&&U.length>1)return"Only single file selection is allowed";if(n&&U.length>n)return`Maximum ${n} file${n===1?"":"s"} allowed`;if(U.length===0)return null;if(m.length>0&&U.filter(B=>!K1(B,m)).length>0)return`Invalid file type. Accepted formats: ${m.join(", ")}`;if(a){const X=Go(a);if(U.filter(te=>te.size>X).length>0)return`File size must not exceed ${a}`}if(l){const X=Go(l);if(U.filter(te=>te.size<X).length>0)return`File size must be at least ${l}`}return null},e[15]=m,e[16]=n,e[17]=a,e[18]=l,e[19]=g,e[20]=E):E=e[20];const O=E;let j;e[21]!==i||e[22]!==c||e[23]!==O?(j=U=>{const X=O(U);if(X){N(X),i?.(X);return}N(void 0),v(U),c?.(U)},e[21]=i,e[22]=c,e[23]=O,e[24]=j):j=e[24];const S=j;let T;e[25]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{v([]),N(void 0)},e[25]=T):T=e[25];const P=T;let M;e[26]!==m||e[27]!==h||e[28]!==C||e[29]!==y||e[30]!==k||e[31]!==n||e[32]!==a||e[33]!==l||e[34]!==g||e[35]!==i||e[36]!==c||e[37]!==S||e[38]!==O?(M={accept:m,clearFiles:P,disabled:h,error:C,files:y,isDragActive:k,maxFiles:n,maxSize:a,minSize:l,multiple:g,onError:i,onFileSelect:c,selectFiles:S,validateFiles:O},e[26]=m,e[27]=h,e[28]=C,e[29]=y,e[30]=k,e[31]=n,e[32]=a,e[33]=l,e[34]=g,e[35]=i,e[36]=c,e[37]=S,e[38]=O,e[39]=M):M=e[39];const I=M;let V;e[40]!==h?(V=U=>{U.preventDefault(),U.stopPropagation(),h||w(!0)},e[40]=h,e[41]=V):V=e[41];const F=V;let L;e[42]!==h?(L=U=>{U.preventDefault(),U.stopPropagation(),!h&&!U.currentTarget.contains(U.relatedTarget)&&w(!1)},e[42]=h,e[43]=L):L=e[43];const z=L,R=J1;let $;e[44]!==h||e[45]!==S?($=U=>{if(U.preventDefault(),U.stopPropagation(),h)return;w(!1);const X=Array.from(U.dataTransfer.files);S(X)},e[44]=h,e[45]=S,e[46]=$):$=e[46];const Y=$;let H;e[47]!==o?(H=A("relative",o),e[47]=o,e[48]=H):H=e[48];const W=k?"drag-active":"idle";let G;e[49]!==m?(G=m.length>0?Q1(m):void 0,e[49]=m,e[50]=G):G=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q={display:"none"},e[51]=Q):Q=e[51];let q;e[52]!==h||e[53]!==g||e[54]!==G?(q=p.jsx("input",{accept:G,className:"hidden","data-ox-slot":"file-upload-input",disabled:h,multiple:g,style:Q,type:"file"}),e[52]=h,e[53]=g,e[54]=G,e[55]=q):q=e[55];let Z;e[56]!==r||e[57]!==s||e[58]!==F||e[59]!==z||e[60]!==Y||e[61]!==H||e[62]!==W||e[63]!==q?(Z=p.jsxs("div",{className:H,"data-ox-slot":"file-upload",...s,"data-ox-state":W,onDragEnter:F,onDragLeave:z,onDragOver:R,onDrop:Y,children:[r,q]}),e[56]=r,e[57]=s,e[58]=F,e[59]=z,e[60]=Y,e[61]=H,e[62]=W,e[63]=q,e[64]=Z):Z=e[64];let K;return e[65]!==I||e[66]!==Z?(K=p.jsx(cn.Provider,{value:I,children:Z}),e[65]=I,e[66]=Z,e[67]=K):K=e[67],K};function J1(t){t.preventDefault(),t.stopPropagation()}const ao=()=>{const t=_.useContext(cn);if(!t)throw new Error("useFileUploadContext must be used within a FileUploadContext.Provider");return t},eu=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),tu=t=>{const e=D.compilerRuntimeExports.c(40);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useRef(null),{accept:a,disabled:l,error:i,isDragActive:c,multiple:d,selectFiles:u}=ao();let f;e[4]!==l?(f=()=>{!l&&n.current&&n.current.click()},e[4]=l,e[5]=f):f=e[5];const x=f;let m;e[6]!==u?(m=T=>{const P=Array.from(T.target.files||[]);P.length>0&&u(P),T.target.value=""},e[6]=u,e[7]=m):m=e[7];const h=m,g=!c&&!i,b=!i&&!l;let y;e[8]!==o||e[9]!==l||e[10]!==i||e[11]!==c||e[12]!==g||e[13]!==b?(y=A("rounded-lg border-2 border-dashed p-6 transition-all duration-200",{"border-gray-400 bg-gray-50":g,"border-violet-500 bg-gray-50":c,"border-rose-500 bg-gray-50":i,"cursor-pointer hover:border-violet-500 focus:border-violet-500 focus:outline-none":b,"ox-default-disabled":l},o),e[8]=o,e[9]=l,e[10]=i,e[11]=c,e[12]=g,e[13]=b,e[14]=y):y=e[14];const v=l?-1:0,k=i?"error":c?"drag-active":l?"disabled":"idle";let w;e[15]!==l||e[16]!==x?(w=T=>{(T.key==="Enter"||T.key===" ")&&!l&&(T.preventDefault(),x())},e[15]=l,e[16]=x,e[17]=w):w=e[17];let C;e[18]!==i?(C=i&&p.jsx("div",{className:"mt-2 text-center text-sm text-rose-500",children:i}),e[18]=i,e[19]=C):C=e[19];let N;e[20]!==r||e[21]!==s||e[22]!==x||e[23]!==y||e[24]!==v||e[25]!==k||e[26]!==w||e[27]!==C?(N=p.jsxs("div",{className:y,"data-ox-slot":"file-upload-area",role:"button",tabIndex:v,...s,"data-ox-state":k,onClick:x,onKeyDown:w,children:[r,C]}),e[20]=r,e[21]=s,e[22]=x,e[23]=y,e[24]=v,e[25]=k,e[26]=w,e[27]=C,e[28]=N):N=e[28];let E;e[29]!==a?(E=a.length>0?eu(a):void 0,e[29]=a,e[30]=E):E=e[30];let O;e[31]===Symbol.for("react.memo_cache_sentinel")?(O={display:"none"},e[31]=O):O=e[31];let j;e[32]!==l||e[33]!==h||e[34]!==d||e[35]!==E?(j=p.jsx("input",{accept:E,className:"hidden","data-ox-slot":"file-upload-area-input",disabled:l,multiple:d,ref:n,style:O,type:"file",onChange:h}),e[32]=l,e[33]=h,e[34]=d,e[35]=E,e[36]=j):j=e[36];let S;return e[37]!==N||e[38]!==j?(S=p.jsxs(p.Fragment,{children:[N,j]}),e[37]=N,e[38]=j,e[39]=S):S=e[39],S},ru=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),ou=t=>{const e=D.compilerRuntimeExports.c(31);let r,o,s,n,a;e[0]!==t?({children:r,className:o,size:n,variant:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?"sm":n,i=a===void 0?"primary":a,c=_.useRef(null),{accept:d,disabled:u,multiple:f,selectFiles:x}=ao();let m;e[6]!==u?(m=()=>{!u&&c.current&&c.current.click()},e[6]=u,e[7]=m):m=e[7];const h=m;let g;e[8]!==x?(g=E=>{const O=Array.from(E.target.files||[]);O.length>0&&x(O),E.target.value=""},e[8]=x,e[9]=g):g=e[9];const b=g;let y;e[10]!==o?(y=A("cursor-pointer",o),e[10]=o,e[11]=y):y=e[11];let v;e[12]!==r||e[13]!==u||e[14]!==s||e[15]!==h||e[16]!==l||e[17]!==y||e[18]!==i?(v=p.jsx(je,{className:y,"data-ox-slot":"file-upload-button",disabled:u,size:l,type:"button",variant:i,...s,onClick:h,children:r}),e[12]=r,e[13]=u,e[14]=s,e[15]=h,e[16]=l,e[17]=y,e[18]=i,e[19]=v):v=e[19];let k;e[20]!==d?(k=d.length>0?ru(d):void 0,e[20]=d,e[21]=k):k=e[21];let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w={display:"none"},e[22]=w):w=e[22];let C;e[23]!==u||e[24]!==b||e[25]!==f||e[26]!==k?(C=p.jsx("input",{accept:k,className:"hidden","data-ox-slot":"file-upload-button-input",disabled:u,multiple:f,ref:c,style:w,type:"file",onChange:b}),e[23]=u,e[24]=b,e[25]=f,e[26]=k,e[27]=C):C=e[27];let N;return e[28]!==v||e[29]!==C?(N=p.jsxs(p.Fragment,{children:[v,C]}),e[28]=v,e[29]=C,e[30]=N):N=e[30],N},su=t=>t.map(e=>e.includes("/")?e:`.${e}`).join(","),nu=t=>{const e=D.compilerRuntimeExports.c(52);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useRef(null),[a,l]=_.useState(!1),{accept:i,disabled:c,isDragActive:d,multiple:u,selectFiles:f}=ao();let x;e[4]!==c?(x=()=>{!c&&n.current&&n.current.click()},e[4]=c,e[5]=x):x=e[5];const m=x;let h;e[6]!==f?(h=$=>{const Y=Array.from($.target.files||[]);Y.length>0&&f(Y),$.target.value=""},e[6]=f,e[7]=h):h=e[7];const g=h,b=(a||d)&&!c;let y;e[8]!==o||e[9]!==c?(y=A("ox-backdrop-blur-parent group relative w-fit cursor-pointer overflow-hidden rounded-lg","ox-violet-outset-focus",{"cursor-not-allowed opacity-50":c},o),e[8]=o,e[9]=c,e[10]=y):y=e[10];const v=c?-1:0,k=d?"drag-active":a?"hovered":c?"disabled":"idle";let w;e[11]!==c||e[12]!==m?(w=$=>{($.key==="Enter"||$.key===" ")&&!c&&($.preventDefault(),m())},e[11]=c,e[12]=m,e[13]=w):w=e[13];let C,N;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=()=>l(!0),N=()=>l(!1),e[14]=C,e[15]=N):(C=e[14],N=e[15]);const E=!b;let O;e[16]!==d||e[17]!==b||e[18]!==E?(O=A("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":E,"opacity-100":b,"bg-violet-700/60":d}),e[16]=d,e[17]=b,e[18]=E,e[19]=O):O=e[19];const j=!b;let S;e[20]!==d||e[21]!==b||e[22]!==j?(S=A("flex flex-col items-center gap-2 text-white transition-transform duration-200",{"scale-90":j,"scale-100":b,"scale-110":d}),e[20]=d,e[21]=b,e[22]=j,e[23]=S):S=e[23];const T=d?qa:sl;let P;e[24]!==T?(P=p.jsx(ce,{className:"drop-shadow-sm",path:T,size:1.5}),e[24]=T,e[25]=P):P=e[25];let M;e[26]!==S||e[27]!==P?(M=p.jsx("div",{className:S,children:P}),e[26]=S,e[27]=P,e[28]=M):M=e[28];let I;e[29]!==O||e[30]!==M?(I=p.jsx("div",{className:O,"data-ox-slot":"file-upload-overlay-backdrop",children:M}),e[29]=O,e[30]=M,e[31]=I):I=e[31];let V;e[32]!==r||e[33]!==s||e[34]!==m||e[35]!==I||e[36]!==y||e[37]!==v||e[38]!==k||e[39]!==w?(V=p.jsxs("div",{className:y,"data-ox-slot":"file-upload-overlay",role:"button",tabIndex:v,...s,"data-ox-state":k,onClick:m,onKeyDown:w,onMouseEnter:C,onMouseLeave:N,children:[r,I]}),e[32]=r,e[33]=s,e[34]=m,e[35]=I,e[36]=y,e[37]=v,e[38]=k,e[39]=w,e[40]=V):V=e[40];let F;e[41]!==i?(F=i.length>0?su(i):void 0,e[41]=i,e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L={display:"none"},e[43]=L):L=e[43];let z;e[44]!==c||e[45]!==g||e[46]!==u||e[47]!==F?(z=p.jsx("input",{accept:F,className:"hidden","data-ox-slot":"file-upload-overlay-input",disabled:c,multiple:u,ref:n,style:L,type:"file",onChange:g}),e[44]=c,e[45]=g,e[46]=u,e[47]=F,e[48]=z):z=e[48];let R;return e[49]!==V||e[50]!==z?(R=p.jsxs(p.Fragment,{children:[V,z]}),e[49]=V,e[50]=z,e[51]=R):R=e[51],R},dr=X1;dr.Area=tu;dr.Button=ou;dr.Overlay=nu;const au=t=>{const e=D.compilerRuntimeExports.c(14);let r,o,s,n,a;e[0]!==t?({children:r,className:o,fullWidth:n,noValidate:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,i=a===void 0?!0:a;let c;e[6]!==o||e[7]!==l?(c=A({"w-full":l},o),e[6]=o,e[7]=l,e[8]=c):c=e[8];let d;return e[9]!==r||e[10]!==s||e[11]!==i||e[12]!==c?(d=p.jsx("form",{className:c,"data-ox-slot":"form",noValidate:i,...s,children:r}),e[9]=r,e[10]=s,e[11]=i,e[12]=c,e[13]=d):d=e[13],d},lu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(yt,{...t}),e[0]=t,e[1]=r):r=e[1],r},iu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(tn,{...t}),e[0]=t,e[1]=r):r=e[1],r},cu=A("grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-1",'input[data-ox-slot="checkbox"]:col-start-1','input[data-ox-slot="checkbox"]:row-start-1','input[data-ox-slot="radio"]:col-start-1','input[data-ox-slot="radio"]:row-start-1','button[data-ox-slot="switch"]:col-start-1','button[data-ox-slot="switch"]:row-start-1',"*:data-[ox-slot=label]:col-start-2","*:data-[ox-slot=description]:col-start-2","*:data-[ox-slot=error]:col-start-2"),du=t=>{const e=D.compilerRuntimeExports.c(13);let r,o,s,n;e[0]!==t?({children:r,className:o,orientation:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n===void 0?"vertical":n,l=a==="vertical",i=a==="horizontal";let c;e[5]!==o||e[6]!==l||e[7]!==i?(c=A({"space-y-1":l,[cu]:i},o),e[5]=o,e[6]=l,e[7]=i,e[8]=c):c=e[8];let d;return e[9]!==r||e[10]!==s||e[11]!==c?(d=p.jsx("div",{className:c,"data-ox-slot":"form-field",...s,children:r}),e[9]=r,e[10]=s,e[11]=c,e[12]=d):d=e[12],d},uu=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,layout:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=n==="grid";let l;e[5]!==o||e[6]!==a?(l=A("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":a},o),e[5]=o,e[6]=a,e[7]=l):l=e[7];let i;return e[8]!==r||e[9]!==s||e[10]!==l?(i=p.jsx("div",{className:l,"data-ox-slot":"form-group",...s,children:r}),e[8]=r,e[9]=s,e[10]=l,e[11]=i):i=e[11],i},fu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(rn,{...t}),e[0]=t,e[1]=r):r=e[1],r},mu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(on,{...t}),e[0]=t,e[1]=r):r=e[1],r},lt=au;lt.Group=uu;lt.Field=du;lt.Label=mu;lt.Description=lu;lt.Error=iu;lt.GroupTitle=fu;const $t=_.createContext(null),Qe=()=>{const t=_.useContext($t);if(!t)throw new Error("useBaseInputContext must be used within a BaseInput component");return t},Ke=t=>{const e=D.compilerRuntimeExports.c(18);let r,o,s,n;e[0]!==t?({children:r,className:o,path:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{disabled:a,size:l}=Qe(),i=he[l],c=!n;let d;e[5]!==o||e[6]!==i||e[7]!==c?(d=A("enabled:cursor-pointer","disabled:ox-default-disabled",{[i]:c},o),e[5]=o,e[6]=i,e[7]=c,e[8]=d):d=e[8];let u;e[9]!==r||e[10]!==n||e[11]!==l?(u=n?p.jsx(ce,{path:n,size:Ie[l]}):r,e[9]=r,e[10]=n,e[11]=l,e[12]=u):u=e[12];let f;return e[13]!==a||e[14]!==s||e[15]!==d||e[16]!==u?(f=p.jsx("button",{className:d,"data-ox-slot":"input-button",disabled:a,tabIndex:-1,type:"button",...s,children:u}),e[13]=a,e[14]=s,e[15]=d,e[16]=u,e[17]=f):f=e[17],f},pu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},ur=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{error:n,showValidation:a,size:l,validationMessage:i}=Qe(),c=Pe[l],d=!n;let u;e[4]!==o||e[5]!==n||e[6]!==c||e[7]!==d?(u=A("flex w-full items-center gap-1.5 rounded-lg bg-gray-50 p-1.5","ox-violet-outset-within-focus",c,{"ox-gray-border":d,"ox-rose-border":n},o),e[4]=o,e[5]=n,e[6]=c,e[7]=d,e[8]=u):u=e[8];let f;e[9]!==r||e[10]!==s||e[11]!==u?(f=p.jsx("div",{className:u,"data-ox-slot":"input-container",...s,children:r}),e[9]=r,e[10]=s,e[11]=u,e[12]=f):f=e[12];let x;return e[13]!==a||e[14]!==f||e[15]!==i?(x=p.jsx(jn,{content:i,open:a,position:"bottom",trigger:"click",variant:"error",children:f}),e[13]=a,e[14]=f,e[15]=i,e[16]=x):x=e[16],x},dn=_.createContext(null),un=()=>{const t=_.useContext(dn);if(!t)throw new Error("useDateContext must be used within a DateInput component");return t},hu=()=>{const t=D.compilerRuntimeExports.c(10),{day:e,month:r,setValue:o,year:s}=un(),{setOpen:n}=Fe();let a;t[0]!==e||t[1]!==r||t[2]!==s?(a=e&&r&&s&&s.length===4?`${s}-${r.padStart(2,"0")}-${e.padStart(2,"0")}`:void 0,t[0]=e,t[1]=r,t[2]=s,t[3]=a):a=t[3];const l=a;let i;t[4]!==n||t[5]!==o?(i=u=>{const[f,x,m]=u.split("-");o({day:m,month:x,year:f}),n(!1)},t[4]=n,t[5]=o,t[6]=i):i=t[6];const c=i;let d;return t[7]!==l||t[8]!==c?(d=p.jsx(Ls,{value:l,onChange:c}),t[7]=l,t[8]=c,t[9]=d):d=t[9],d},xu=t=>{const e=D.compilerRuntimeExports.c(21),{defaultValue:r,onChange:o,value:s}=t,n=r??"";let a;e[0]!==o?(a=N=>o?.(N??""),e[0]=o,e[1]=a):a=e[1];let l;e[2]!==n||e[3]!==a||e[4]!==s?(l={value:s,defaultValue:n,onChange:a},e[2]=n,e[3]=a,e[4]=s,e[5]=l):l=e[5];const[i,c]=D.useControllableState(l),d=gu,u=bu;let f;e[6]!==i?(f=d(i),e[6]=i,e[7]=f):f=e[7];const{day:x,month:m,year:h}=f;let g;e[8]!==x||e[9]!==m||e[10]!==c||e[11]!==h?(g=N=>{const E=N.day??x,O=N.month??m,j=N.year??h,S=u(E,O,j);c(S)},e[8]=x,e[9]=m,e[10]=c,e[11]=h,e[12]=g):g=e[12];const b=g;let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=(N,E,O)=>{if(!N||!E||!O||O.length<4)return!1;const j=u(N,E,O),S=Vc(j,"yyyy-MM-dd",new Date);return Os(S)},e[13]=y):y=e[13];const v=y,k=yu,w=vu;let C;return e[14]!==i||e[15]!==x||e[16]!==m||e[17]!==c||e[18]!==b||e[19]!==h?(C={day:x,month:m,year:h,setValue:b,dateValue:i,setDateValue:c,isValidCompleteDate:v,getMaxDayForMonth:k,autoCompleteYear:w},e[14]=i,e[15]=x,e[16]=m,e[17]=c,e[18]=b,e[19]=h,e[20]=C):C=e[20],C};function gu(t){if(!t)return{day:"",month:"",year:""};const[e,r,o]=t.split("-");return{day:o===void 0?"":o,month:r===void 0?"":r,year:e===void 0?"":e}}function bu(t,e,r){if(!t&&!e&&!r)return"";const o=t?t.padStart(2,"0"):"",s=e?e.padStart(2,"0"):"";return`${r?r.padStart(4,"0"):""}-${s}-${o}`}function yu(t,e){if(!t)return 31;const r=parseInt(t,10);if(r<1||r>12)return 31;const o=e&&e.length===4?parseInt(e,10):new Date().getFullYear(),s=new Date(o,r-1,1);return Hi(s)}function vu(t){return t.length===2?parseInt(t,10)<50?`20${t}`:`19${t}`:t}const wu=t=>{const e=D.compilerRuntimeExports.c(59);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g,b,y,v;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultOpen:n,defaultValue:d,disabled:u,error:f,onChange:l,onOpenChange:i,open:c,pickOnly:x,readOnly:m,required:h,showValidation:g,showValidationTooltip:b,size:y,value:v,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y,e[18]=v):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15],b=e[16],y=e[17],v=e[18]);const k=d===void 0?"":d,w=u===void 0?!1:u,C=f===void 0?!1:f,N=x===void 0?!1:x,E=m===void 0?!1:m,O=h===void 0?!1:h,j=g===void 0?!1:g,S=b===void 0?!1:b,T=y===void 0?"sm":y,P=E||N;let M;e[19]!==k||e[20]!==l||e[21]!==v?(M={value:v,defaultValue:k,onChange:l},e[19]=k,e[20]=l,e[21]=v,e[22]=M):M=e[22];const{autoCompleteYear:I,day:V,getMaxDayForMonth:F,isValidCompleteDate:L,month:z,setValue:R,year:$}=xu(M),[Y,H]=_.useState(""),[W,G]=_.useState(j),Q=s||Y;let q;e[23]!==w||e[24]!==C||e[25]!==O||e[26]!==W||e[27]!==S||e[28]!==T||e[29]!==Q?(q={disabled:w,error:C,showValidation:W,showValidationTooltip:S,required:O,size:T,validationMessage:Q,setShowValidation:G,setValidationMessage:H},e[23]=w,e[24]=C,e[25]=O,e[26]=W,e[27]=S,e[28]=T,e[29]=Q,e[30]=q):q=e[30];let Z;e[31]!==I||e[32]!==V||e[33]!==P||e[34]!==F||e[35]!==L||e[36]!==z||e[37]!==N||e[38]!==R||e[39]!==$?(Z={day:V,month:z,year:$,setValue:R,isValidCompleteDate:L,getMaxDayForMonth:F,autoCompleteYear:I,readOnly:P,pickOnly:N},e[31]=I,e[32]=V,e[33]=P,e[34]=F,e[35]=L,e[36]=z,e[37]=N,e[38]=R,e[39]=$,e[40]=Z):Z=e[40];let K;e[41]!==o?(K=A("w-fit",o),e[41]=o,e[42]=K):K=e[42];let U;e[43]===Symbol.for("react.memo_cache_sentinel")?(U=p.jsx(Ne.Content,{className:"ox-date-input-animate",children:p.jsx(hu,{})}),e[43]=U):U=e[43];let X;e[44]!==r||e[45]!==n||e[46]!==i||e[47]!==c?(X=p.jsxs(Ne,{align:"center",animationDuration:200,defaultOpen:n,offset:16,open:c,position:"bottom",trigger:"click",onOpenChange:i,children:[r,U]}),e[44]=r,e[45]=n,e[46]=i,e[47]=c,e[48]=X):X=e[48];let B;e[49]!==a||e[50]!==K||e[51]!==X?(B=p.jsx(ur,{className:K,"data-ox-slot":"input-date-container",...a,children:X}),e[49]=a,e[50]=K,e[51]=X,e[52]=B):B=e[52];let te;e[53]!==Z||e[54]!==B?(te=p.jsx(dn.Provider,{value:Z,children:B}),e[53]=Z,e[54]=B,e[55]=te):te=e[55];let ne;return e[56]!==q||e[57]!==te?(ne=p.jsx($t.Provider,{value:q,children:te}),e[56]=q,e[57]=te,e[58]=ne):ne=e[58],ne},fr=t=>{const e=D.compilerRuntimeExports.c(16);let r,o,s,n;e[0]!==t?({children:r,className:o,path:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{disabled:a,size:l}=Qe();let i;e[5]!==o||e[6]!==a?(i=A("enabled:cursor-pointer",{"ox-default-disabled":a},o),e[5]=o,e[6]=a,e[7]=i):i=e[7];let c;e[8]!==r||e[9]!==n||e[10]!==l?(c=n?p.jsx(ce,{path:n,size:Ie[l]}):r,e[8]=r,e[9]=n,e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==s||e[13]!==i||e[14]!==c?(d=p.jsx("span",{className:i,"data-ox-slot":"input-icon",tabIndex:-1,...s,children:c}),e[12]=s,e[13]=i,e[14]=c,e[15]=d):d=e[15],d},ku=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},at=t=>{const e=D.compilerRuntimeExports.c(23);let r,o,s;e[0]!==t?({className:r,id:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=_.useId(),{customValidationMessage:a,disabled:l,error:i,required:c,setShowValidation:d,setValidationMessage:u,showValidationTooltip:f,size:x}=Qe();let m;e[4]!==a||e[5]!==d||e[6]!==u||e[7]!==f?(m=w=>{w.preventDefault(),f&&(u(a||w.currentTarget.validationMessage),d(!0))},e[4]=a,e[5]=d,e[6]=u,e[7]=f,e[8]=m):m=e[8];const h=m,g=s||n,b=he[x];let y;e[9]!==r||e[10]!==b?(y=A("w-full min-w-10 appearance-none bg-transparent outline-none enabled:text-gray-1200","placeholder:text-gray-900 disabled:ox-default-disabled",b,r),e[9]=r,e[10]=b,e[11]=y):y=e[11];let v;e[12]!==d?(v=()=>d(!1),e[12]=d,e[13]=v):v=e[13];let k;return e[14]!==l||e[15]!==o||e[16]!==i||e[17]!==h||e[18]!==g||e[19]!==c||e[20]!==y||e[21]!==v?(k=p.jsx("input",{id:g,"aria-invalid":i,"aria-required":c,className:y,disabled:l,required:c,onInput:v,onInvalid:h,...o}),e[14]=l,e[15]=o,e[16]=i,e[17]=h,e[18]=g,e[19]=c,e[20]=y,e[21]=v,e[22]=k):k=e[22],k},Cu=()=>{const t=D.compilerRuntimeExports.c(95),{disabled:e,setValidationMessage:r,size:o}=Qe(),{autoCompleteYear:s,day:n,getMaxDayForMonth:a,isValidCompleteDate:l,month:i,pickOnly:c,readOnly:d,setValue:u,year:f}=un(),{setOpen:x}=Fe(),m=_.useRef(null),h=_.useRef(null),g=_.useRef(null);let b;t[0]!==n||t[1]!==a||t[2]!==i||t[3]!==u||t[4]!==f?(b=re=>{const fe=a(i,f),Re=n?parseInt(n,10):re===1?0:fe+1,et=re===1?Re>=fe?1:Re+1:Re<=1?fe:Re-1;u({day:String(et)})},t[0]=n,t[1]=a,t[2]=i,t[3]=u,t[4]=f,t[5]=b):b=t[5];const y=b;let v;t[6]!==n||t[7]!==a||t[8]!==i||t[9]!==u||t[10]!==f?(v=re=>{const fe=i?parseInt(i,10):re===1?0:13,Re=re===1?fe>=12?1:fe+1:fe<=1?12:fe-1,et=a(String(Re),f);(n?parseInt(n,10):0)>et?u({day:String(et),month:String(Re)}):u({month:String(Re)})},t[6]=n,t[7]=a,t[8]=i,t[9]=u,t[10]=f,t[11]=v):v=t[11];const k=v;let w;t[12]!==a||t[13]!==i||t[14]!==u||t[15]!==f?(w=re=>{const fe=re.target.value,Re=a(i,f);(fe===""||/^\d{1,2}$/.test(fe)&&parseInt(fe,10)<=Re)&&u({day:fe})},t[12]=a,t[13]=i,t[14]=u,t[15]=f,t[16]=w):w=t[16];const C=w;let N;t[17]!==u?(N=re=>{const fe=re.target.value;(fe===""||/^\d{1,2}$/.test(fe)&&parseInt(fe,10)<=12)&&u({month:fe})},t[17]=u,t[18]=N):N=t[18];const E=N;let O;t[19]!==u?(O=re=>{const fe=re.target.value;(fe===""||/^\d{1,4}$/.test(fe)&&parseInt(fe,10)<=2100)&&u({year:fe})},t[19]=u,t[20]=O):O=t[20];const j=O;let S;t[21]!==y?(S=re=>{re.key==="ArrowUp"?(re.preventDefault(),y(1)):re.key==="ArrowDown"?(re.preventDefault(),y(-1)):(re.key==="Tab"&&!re.shiftKey||re.key==="Enter"||re.key==="-")&&(re.preventDefault(),h.current?.focus())},t[21]=y,t[22]=S):S=t[22];const T=S;let P;t[23]!==k||t[24]!==i?(P=re=>{re.key==="ArrowUp"?(re.preventDefault(),k(1)):re.key==="ArrowDown"?(re.preventDefault(),k(-1)):re.key==="Tab"&&re.shiftKey?(re.preventDefault(),m.current?.focus()):re.key==="Tab"&&!re.shiftKey||re.key==="Enter"||re.key==="-"?(re.preventDefault(),g.current?.focus()):re.key==="Backspace"&&i===""&&m.current?.focus()},t[23]=k,t[24]=i,t[25]=P):P=t[25];const M=P;let I;t[26]!==f?(I=re=>{re.key==="Tab"&&re.shiftKey?(re.preventDefault(),h.current?.focus()):re.key==="Backspace"&&f===""&&h.current?.focus()},t[26]=f,t[27]=I):I=t[27];const V=I;let F;t[28]!==n||t[29]!==l||t[30]!==i||t[31]!==r||t[32]!==f?(F=()=>{n&&i&&f?l(n,i,f)?r(""):r("Invalid date"):r("")},t[28]=n,t[29]=l,t[30]=i,t[31]=r,t[32]=f,t[33]=F):F=t[33];const L=F;let z;t[34]!==L?(z=()=>{L()},t[34]=L,t[35]=z):z=t[35];const R=z;let $;t[36]!==L?($=()=>{L()},t[36]=L,t[37]=$):$=t[37];const Y=$;let H;t[38]!==s||t[39]!==u||t[40]!==L||t[41]!==f?(H=()=>{if(f.length===2){const re=s(f);u({year:re})}L()},t[38]=s,t[39]=u,t[40]=L,t[41]=f,t[42]=H):H=t[42];const W=H;let G;t[43]!==c||t[44]!==x?(G=()=>{c&&x(!0)},t[43]=c,t[44]=x,t[45]=G):G=t[45];const Q=G,q=c&&!e;let Z;t[46]!==q?(Z=A("flex items-center bg-transparent",{"cursor-pointer":q}),t[46]=q,t[47]=Z):Z=t[47];let K;t[48]!==c?(K=A("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[48]=c,t[49]=K):K=t[49];let U;t[50]!==n||t[51]!==R||t[52]!==C||t[53]!==T||t[54]!==d||t[55]!==K?(U=p.jsx(at,{"aria-label":"Day",autoComplete:"off",className:K,inputMode:"numeric",max:"31",min:"0",pattern:"[0-9]*",placeholder:"dd",readOnly:d,ref:m,type:"number",value:n,onBlur:R,onChange:C,onKeyDown:T}),t[50]=n,t[51]=R,t[52]=C,t[53]=T,t[54]=d,t[55]=K,t[56]=U):U=t[56];const X=he[o],B=!e;let te;t[57]!==e||t[58]!==X||t[59]!==B?(te=A(X,{"text-gray-1000":B,"ox-default-disabled":e}),t[57]=e,t[58]=X,t[59]=B,t[60]=te):te=t[60];let ne;t[61]!==te?(ne=p.jsx("span",{className:te,children:"-"}),t[61]=te,t[62]=ne):ne=t[62];let oe;t[63]!==c?(oe=A("w-6 min-w-6 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[63]=c,t[64]=oe):oe=t[64];let ge;t[65]!==Y||t[66]!==E||t[67]!==M||t[68]!==i||t[69]!==d||t[70]!==oe?(ge=p.jsx(at,{"aria-label":"Month",autoComplete:"off",className:oe,inputMode:"numeric",max:"12",min:"0",pattern:"[0-9]*",placeholder:"mm",readOnly:d,ref:h,type:"number",value:i,onBlur:Y,onChange:E,onKeyDown:M}),t[65]=Y,t[66]=E,t[67]=M,t[68]=i,t[69]=d,t[70]=oe,t[71]=ge):ge=t[71];const we=he[o],be=!e;let Me;t[72]!==e||t[73]!==we||t[74]!==be?(Me=A(we,{"text-gray-1000":be,"ox-default-disabled":e}),t[72]=e,t[73]=we,t[74]=be,t[75]=Me):Me=t[75];let $e;t[76]!==Me?($e=p.jsx("span",{className:Me,children:"-"}),t[76]=Me,t[77]=$e):$e=t[77];let _e;t[78]!==c?(_e=A("w-10 min-w-10 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",{"enabled:cursor-pointer":c}),t[78]=c,t[79]=_e):_e=t[79];let He;t[80]!==W||t[81]!==j||t[82]!==V||t[83]!==d||t[84]!==_e||t[85]!==f?(He=p.jsx(at,{"aria-label":"Year",autoComplete:"off",className:_e,inputMode:"numeric",max:"2100",min:"0",pattern:"[0-9]*",placeholder:"yyyy",readOnly:d,ref:g,type:"number",value:f,onBlur:W,onChange:j,onKeyDown:V}),t[80]=W,t[81]=j,t[82]=V,t[83]=d,t[84]=_e,t[85]=f,t[86]=He):He=t[86];let Je;return t[87]!==Q||t[88]!==Z||t[89]!==U||t[90]!==ne||t[91]!==ge||t[92]!==$e||t[93]!==He?(Je=p.jsxs("div",{className:Z,"data-ox-slot":"input-date",onClick:Q,children:[U,ne,ge,$e,He]}),t[87]=Q,t[88]=Z,t[89]=U,t[90]=ne,t[91]=ge,t[92]=$e,t[93]=He,t[94]=Je):Je=t[94],Je},Eu=t=>{const e=D.compilerRuntimeExports.c(6);let r,o;e[0]!==t?({children:r,...o}=t,e[0]=t,e[1]=r,e[2]=o):(r=e[1],o=e[2]);let s;return e[3]!==r||e[4]!==o?(s=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsx(Ke,{...o,path:Fa,children:r})}),e[3]=r,e[4]=o,e[5]=s):s=e[5],s},Lt=Cu;Lt.Container=wu;Lt.Icon=ku;Lt.Button=pu;Lt.PickerButton=Eu;const Nu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},fn=_.createContext(null),Ou=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n,a,l,i,c,d,u,f,x,m,h,g,b,y;e[0]!==t?({children:r,defaultValue:o,disabled:d,error:u,locale:f,max:n,maximumFractionDigits:a,min:l,minimumFractionDigits:i,onChange:c,required:x,showValidationTooltip:m,size:h,steps:g,useGrouping:b,value:y,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h,e[15]=g,e[16]=b,e[17]=y):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14],g=e[15],b=e[16],y=e[17]);const v=d===void 0?!1:d,k=u===void 0?!1:u,w=f===void 0?"en-US":f,C=x===void 0?!1:x,N=m===void 0?!1:m,E=h===void 0?"sm":h,O=g===void 0?1:g,j=b===void 0?!0:b,S=_.useId(),T=new Intl.NumberFormat(w,{useGrouping:j!==!1,minimumFractionDigits:i,maximumFractionDigits:a});let P;e[18]!==o||e[19]!==c||e[20]!==y?(P={value:y,onChange:c,defaultValue:o,name:"OxNumberInput"},e[18]=o,e[19]=c,e[20]=y,e[21]=P):P=e[21];const[M,I]=D.useControllableState(P),[V,F]=_.useState(M!==void 0?T.format(M):""),[L,z]=_.useState(""),[R,$]=_.useState(!1),Y=ju;let H;e[22]!==n||e[23]!==l?(H=B=>D.clamp(B,l??-1/0,n??1/0),e[22]=n,e[23]=l,e[24]=H):H=e[24];const W=H,G=B=>{let te=Y(V);te===void 0&&(te=M!==void 0?M:0);const ne=W(te),oe=W(ne+B);I(oe),F(T.format(oe))};let Q;e[25]!==G||e[26]!==O?(Q=()=>G(O),e[25]=G,e[26]=O,e[27]=Q):Q=e[27];const q=Q;let Z;e[28]!==G||e[29]!==O?(Z=()=>G(-O),e[28]=G,e[29]=O,e[30]=Z):Z=e[30];const K=Z;let U;e[31]!==v||e[32]!==k||e[33]!==C||e[34]!==R||e[35]!==N||e[36]!==E||e[37]!==L?(U={disabled:v,error:k,showValidation:R,showValidationTooltip:N,required:C,size:E,validationMessage:L,setShowValidation:$,setValidationMessage:z},e[31]=v,e[32]=k,e[33]=C,e[34]=R,e[35]=N,e[36]=E,e[37]=L,e[38]=U):U=e[38];let X;return e[39]!==r||e[40]!==s?(X=p.jsx(ur,{"data-ox-slot":"input-number-container",...s,children:r}),e[39]=r,e[40]=s,e[41]=X):X=e[41],p.jsx($t.Provider,{value:U,children:p.jsx(fn.Provider,{value:{clampValue:W,displayValue:V,formatter:T,handleDecrement:K,handleIncrement:q,inputId:S,internalValue:M,max:n,min:l,parse:Y,setDisplayValue:F,setInternalValue:I,steps:O},children:X})})};function ju(t){if(!t.trim())return;const e=t.replace(/[^\d.-]/g,""),r=parseFloat(e);return!isNaN(r)&&isFinite(r)?r:void 0}const lo=()=>{const t=_.useContext(fn);if(!t)throw new Error("useNumberContext must be used within a Number component");return t},Su=()=>{const t=D.compilerRuntimeExports.c(6),{size:e}=Qe(),{handleDecrement:r,inputId:o}=lo(),s=Ie[e];let n;t[0]!==s?(n=p.jsx(ce,{path:xs,size:s}),t[0]=s,t[1]=n):n=t[1];let a;return t[2]!==r||t[3]!==o||t[4]!==n?(a=p.jsx(Ke,{"aria-controls":o,"aria-label":"Decrease value","data-ox-slot":"input-number-decrement",onClick:r,children:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=a):a=t[5],a},Tu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},Pu=()=>{const t=D.compilerRuntimeExports.c(6),{size:e}=Qe(),{handleIncrement:r,inputId:o}=lo(),s=Ie[e];let n;t[0]!==s?(n=p.jsx(ce,{path:ol,size:s}),t[0]=s,t[1]=n):n=t[1];let a;return t[2]!==r||t[3]!==o||t[4]!==n?(a=p.jsx(Ke,{"aria-controls":o,"aria-label":"Increase value","data-slot":"input-number-increment",onClick:r,children:n}),t[2]=r,t[3]=o,t[4]=n,t[5]=a):a=t[5],a},Mu=t=>{const e=D.compilerRuntimeExports.c(42);let r,o,s,n;e[0]!==t?({"aria-label":r,"aria-labelledby":o,className:s,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{clampValue:a,displayValue:l,formatter:i,handleDecrement:c,handleIncrement:d,inputId:u,internalValue:f,max:x,min:m,parse:h,setDisplayValue:g,setInternalValue:b}=lo(),[y,v]=_.useState(!1);let k;e[5]!==g?(k=V=>{g(V.target.value)},e[5]=g,e[6]=k):k=e[6];const w=k,C=Ru;let N;e[7]!==a||e[8]!==l||e[9]!==i||e[10]!==h||e[11]!==g||e[12]!==b?(N=()=>{const V=h(l);if(V!==void 0){const F=a(V);b(F),g(i.format(F))}else b(void 0),g("")},e[7]=a,e[8]=l,e[9]=i,e[10]=h,e[11]=g,e[12]=b,e[13]=N):N=e[13];const E=N;let O;e[14]!==i||e[15]!==h||e[16]!==g||e[17]!==b?(O=V=>{const F=V.clipboardData.getData("text"),L=h(F);L!==void 0&&(V.preventDefault(),g(i.format(L)),b(L))},e[14]=i,e[15]=h,e[16]=g,e[17]=b,e[18]=O):O=e[18];const j=O;let S;e[19]!==E||e[20]!==c||e[21]!==d||e[22]!==y?(S={onArrowDown:c,onArrowUp:d,onEnter:E,enabled:y,allowRepeat:!0},e[19]=E,e[20]=c,e[21]=d,e[22]=y,e[23]=S):S=e[23],D.useKeyboard(S);let T;e[24]!==s?(T=A("text-center",s),e[24]=s,e[25]=T):T=e[25];let P;e[26]!==E?(P=()=>{v(!1),E()},e[26]=E,e[27]=P):P=e[27];let M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=()=>v(!0),e[28]=M):M=e[28];let I;return e[29]!==r||e[30]!==o||e[31]!==l||e[32]!==n||e[33]!==w||e[34]!==j||e[35]!==u||e[36]!==f||e[37]!==x||e[38]!==m||e[39]!==T||e[40]!==P?(I=p.jsx(at,{id:u,"aria-label":r,"aria-labelledby":o,"aria-valuemax":x,"aria-valuemin":m,"aria-valuenow":f,autoComplete:"off",className:T,"data-ox-slot":"input-number",inputMode:"decimal",role:"spinbutton",type:"text",value:l,onBeforeInput:C,onBlur:P,onChange:w,onFocus:M,onPaste:j,...n}),e[29]=r,e[30]=o,e[31]=l,e[32]=n,e[33]=w,e[34]=j,e[35]=u,e[36]=f,e[37]=x,e[38]=m,e[39]=T,e[40]=P,e[41]=I):I=e[41],I};function Ru(t){const e=t.nativeEvent,r=t.target,o=r.value.slice(0,r.selectionStart??void 0)+(e.data??"")+r.value.slice(r.selectionEnd??void 0);!/^-?[\d.,]*$/.test(o)&&o!==""&&t.preventDefault()}const Nt=Mu;Nt.Button=Nu;Nt.Container=Ou;Nt.DecrementButton=Su;Nt.Icon=Tu;Nt.IncrementButton=Pu;const Du={sm:"size-8 text-sm",md:"size-9 text-sm"},Au={sm:"gap-1",md:"gap-2"},Iu=t=>{switch(t){case"numeric":return{inputMode:"numeric",pattern:"[0-9]*"};case"alphanumeric":return{inputMode:"text",pattern:"[A-Z0-9]*"};case"text":default:return{inputMode:"text"}}},$u=(t,e)=>{switch(e){case"numeric":return t.replace(/[^0-9]/g,"");case"alphanumeric":return t.replace(/[^A-Z0-9]/gi,"").toUpperCase();default:return t}},Lu=t=>{const e=D.compilerRuntimeExports.c(25),{className:r,disabled:o,error:s,length:n,onComplete:a,onValueChange:l,placeholder:i,size:c,type:d}=t,u=o===void 0?!1:o,f=s===void 0?!1:s,x=n===void 0?6:n,m=i===void 0?"":i,h=c===void 0?"md":c,g=d===void 0?"numeric":d,b=_.useId();let y;e[0]!==x?(y=()=>new Array(x).fill(""),e[0]=x,e[1]=y):y=e[1];const[v,k]=_.useState(y);let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=[],e[2]=w):w=e[2];const C=_.useRef(w);let N;e[3]!==g?(N=Iu(g),e[3]=g,e[4]=N):N=e[4];const E=N;let O,j;e[5]!==x?(O=()=>{C.current=C.current.slice(0,x)},j=[x],e[5]=x,e[6]=O,e[7]=j):(O=e[6],j=e[7]),_.useEffect(O,j);let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=M=>Mt.flushSync(()=>{k(M)}),e[8]=S):S=e[8];const T=S;let P;if(e[9]!==b||e[10]!==r||e[11]!==v||e[12]!==u||e[13]!==f||e[14]!==x||e[15]!==a||e[16]!==l||e[17]!==m||e[18]!==h||e[19]!==g||e[20]!==E){const M=(z,R)=>{const $=$u(R,g),Y=[...v];Y[z]=$[0]||"";const H=Y[z]&&z<x-1?z+1:void 0;T(Y),H!==void 0&&C.current[H]?.focus();const W=Y.filter(_u),G=W.join("");l?.(G),W.length===x&&a?.(G)},I=(z,R)=>{const $=[...v];if(R.key==="Backspace"){if(v[z]){$[z]="",T($);const Y=$.filter(Vu);l?.(Y.join(""))}else if(z>0){$[z-1]="",T($),C.current[z-1]?.focus();const Y=$.filter(zu);l?.(Y.join(""))}}R.key==="ArrowLeft"&&z>0&&C.current[z-1]?.focus(),R.key==="ArrowRight"&&z<x-1&&C.current[z+1]?.focus()},V=z=>{C.current[z]?.select()},F=Au[h];let L;e[22]!==r||e[23]!==F?(L=A("inline-flex",F,r),e[22]=r,e[23]=F,e[24]=L):L=e[24],P=p.jsx("div",{className:L,"data-ox-slot":"otp-input",children:Array.from({length:x},(z,R)=>{const $=R===0||v.slice(0,R).every(Fu),Y=u||!$;return p.jsx("input",{id:`${b}-digit-${R}`,"aria-label":`Digit ${R+1} of ${x}`,autoComplete:"one-time-code",className:A("rounded-lg border bg-gray-50 text-center font-mono transition-all duration-200","ox-violet-outset-focus",Du[h],{"ox-gray-border":!f,"ox-rose-border":f,"ox-default-disabled":u}),"data-ox-slot":"otp-digit",disabled:Y,maxLength:1,placeholder:m,ref:H=>{C.current[R]=H},type:"text",value:v[R],onChange:H=>M(R,H.target.value),onFocus:()=>V(R),onKeyDown:H=>I(R,H),onPaste:Hu,...E},R)})}),e[9]=b,e[10]=r,e[11]=v,e[12]=u,e[13]=f,e[14]=x,e[15]=a,e[16]=l,e[17]=m,e[18]=h,e[19]=g,e[20]=E,e[21]=P}else P=e[21];return P};function _u(t){return t!==""}function Vu(t){return t!==""}function zu(t){return t!==""}function Fu(t){return t!==""}function Hu(t){return t.preventDefault()}const Bu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},mn=_.createContext(null),io=()=>{const t=_.useContext(mn);if(!t)throw new Error("useTextContext must be used within a Text component");return t},Yu=()=>{const t=D.compilerRuntimeExports.c(5),{handleClear:e,internalValue:r}=io(),o=!r;let s;t[0]!==o?(s=A("",{invisible:o}),t[0]=o,t[1]=s):s=t[1];let n;return t[2]!==e||t[3]!==s?(n=p.jsx(Ke,{"aria-label":"Clear input",className:s,"data-ox-slot":"input-text-clear",path:Rt,onClick:e}),t[2]=e,t[3]=s,t[4]=n):n=t[4],n},qu=t=>{const e=D.compilerRuntimeExports.c(53);let r,o,s,n,a,l,i,c,d,u,f,x,m,h;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultValue:n,disabled:i,error:c,onChange:l,required:d,showValidation:u,showValidationTooltip:f,size:x,type:m,value:h,...a}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m,e[14]=h):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13],h=e[14]);const g=i===void 0?!1:i,b=c===void 0?!1:c,y=d===void 0?!1:d,v=u===void 0?!1:u,k=f===void 0?!1:f,w=x===void 0?"sm":x,C=m===void 0?"text":m,N=_.useRef(null);let E;e[15]!==l?(E=B=>{l?.(B??"")},e[15]=l,e[16]=E):E=e[16];let O;e[17]!==n||e[18]!==E||e[19]!==h?(O={value:h,onChange:E,defaultValue:n,name:"OxTextInput"},e[17]=n,e[18]=E,e[19]=h,e[20]=O):O=e[20];const[j,S]=D.useControllableState(O),T=j??"";let P;e[21]!==S?(P=B=>S(B),e[21]=S,e[22]=P):P=e[22];const M=P,[I,V]=_.useState(C),[F,L]=_.useState(""),[z,R]=_.useState(v);let $;e[23]!==M?($=()=>{M(""),N.current?.focus()},e[23]=M,e[24]=$):$=e[24];const Y=$;let H;e[25]!==I?(H=()=>{I==="password"?V("text"):I==="text"&&V("password")},e[25]=I,e[26]=H):H=e[26];const W=H,G=s||F;let Q;e[27]!==g||e[28]!==b||e[29]!==y||e[30]!==z||e[31]!==k||e[32]!==w||e[33]!==G?(Q={disabled:g,error:b,showValidation:z,showValidationTooltip:k,required:y,size:w,validationMessage:G,setShowValidation:R,setValidationMessage:L},e[27]=g,e[28]=b,e[29]=y,e[30]=z,e[31]=k,e[32]=w,e[33]=G,e[34]=Q):Q=e[34];let q;e[35]!==I||e[36]!==Y||e[37]!==W||e[38]!==T||e[39]!==M?(q={handleClear:Y,handleTypeToggle:W,inputRef:N,internalValue:T,setInternalValue:M,type:I},e[35]=I,e[36]=Y,e[37]=W,e[38]=T,e[39]=M,e[40]=q):q=e[40];let Z;e[41]!==o?(Z=A("[&_[data-ox-slot='input-text']:only-child]:px-2",o),e[41]=o,e[42]=Z):Z=e[42];let K;e[43]!==r||e[44]!==a||e[45]!==Z?(K=p.jsx(ur,{className:Z,"data-ox-slot":"input-text-container",...a,children:r}),e[43]=r,e[44]=a,e[45]=Z,e[46]=K):K=e[46];let U;e[47]!==q||e[48]!==K?(U=p.jsx(mn.Provider,{value:q,children:K}),e[47]=q,e[48]=K,e[49]=U):U=e[49];let X;return e[50]!==Q||e[51]!==U?(X=p.jsx($t.Provider,{value:Q,children:U}),e[50]=Q,e[51]=U,e[52]=X):X=e[52],X},Wu=t=>{const e=D.compilerRuntimeExports.c(16);let r,o,s,n,a,l;e[0]!==t?({className:r,currentLength:n,disabled:a,maxLength:s,size:l,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const i=n===void 0?0:n,c=a===void 0?!1:a,u=he[l===void 0?"sm":l];let f;e[7]!==r||e[8]!==c||e[9]!==u?(f=A("mt-1 text-right text-gray-1000 tabular-nums",u,{"ox-default-disabled":c},r),e[7]=r,e[8]=c,e[9]=u,e[10]=f):f=e[10];let x;return e[11]!==i||e[12]!==o||e[13]!==s||e[14]!==f?(x=p.jsxs("div",{className:f,"data-ox-slot":"input-counter",...o,children:[i,"/",s]}),e[11]=i,e[12]=o,e[13]=s,e[14]=f,e[15]=x):x=e[15],x},Gu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Wu,{...t}),e[0]=t,e[1]=r):r=e[1],r},Uu=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},Zu=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a,l,i;e[0]!==t?({autoComplete:r,className:o,id:n,maxLength:a,placeholder:l,spellCheck:i,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=i===void 0?!1:i,{disabled:d,error:u,required:f}=Qe(),{inputRef:x,internalValue:m,setInternalValue:h,type:g}=io();let b;e[8]!==h?(b=k=>{h(k.target.value)},e[8]=h,e[9]=b):b=e[9];const y=b;let v;return e[10]!==r||e[11]!==o||e[12]!==d||e[13]!==s||e[14]!==u||e[15]!==y||e[16]!==n||e[17]!==x||e[18]!==m||e[19]!==a||e[20]!==l||e[21]!==f||e[22]!==c||e[23]!==g?(v=p.jsx(at,{id:n,"aria-invalid":u,"aria-required":f,autoComplete:r,className:o,"data-ox-slot":"input-text",disabled:d,maxLength:a,placeholder:l,ref:x,required:f,spellCheck:c,type:g,value:m,onChange:y,...s}),e[10]=r,e[11]=o,e[12]=d,e[13]=s,e[14]=u,e[15]=y,e[16]=n,e[17]=x,e[18]=m,e[19]=a,e[20]=l,e[21]=f,e[22]=c,e[23]=g,e[24]=v):v=e[24],v},Qu=()=>{const t=D.compilerRuntimeExports.c(4),{handleTypeToggle:e,type:r}=io(),o=r==="text",s=o?"Hide password":"Show password",n=o?Ka:Qa;let a;return t[0]!==e||t[1]!==s||t[2]!==n?(a=p.jsx(Ke,{"aria-label":s,"data-ox-slot":"input-text-toggle",path:n,onClick:e}),t[0]=e,t[1]=s,t[2]=n,t[3]=a):a=t[3],a},it=Zu;it.Button=Bu;it.ClearButton=Yu;it.Container=qu;it.Counter=Gu;it.Icon=Uu;it.VisibilityButton=Qu;const Ku=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(Ke,{...t}),e[0]=t,e[1]=r):r=e[1],r},pn=_.createContext(null),Xu=t=>{const e=D.compilerRuntimeExports.c(21),{defaultValue:r,onChange:o,value:s}=t,n=r??"";let a;e[0]!==o?(a=k=>o?.(k??""),e[0]=o,e[1]=a):a=e[1];let l;e[2]!==n||e[3]!==a||e[4]!==s?(l={value:s,defaultValue:n,onChange:a},e[2]=n,e[3]=a,e[4]=s,e[5]=l):l=e[5];const[i,c]=D.useControllableState(l),d=Ju,u=ef;let f;e[6]!==i?(f=d(i),e[6]=i,e[7]=f):f=e[7];const{hours:x,minutes:m}=f;let h;e[8]!==m||e[9]!==c?(h=k=>{const w=u(k,m);c(w)},e[8]=m,e[9]=c,e[10]=h):h=e[10];const g=h;let b;e[11]!==x||e[12]!==c?(b=k=>{const w=u(x,k);c(w)},e[11]=x,e[12]=c,e[13]=b):b=e[13];const y=b;let v;return e[14]!==x||e[15]!==m||e[16]!==g||e[17]!==y||e[18]!==c||e[19]!==i?(v={hours:x,minutes:m,setHours:g,setMinutes:y,timeValue:i,setTimeValue:c},e[14]=x,e[15]=m,e[16]=g,e[17]=y,e[18]=c,e[19]=i,e[20]=v):v=e[20],v};function Ju(t){if(!t)return{hours:"",minutes:""};const[e,r]=t.split(":");return{hours:e===void 0?"":e,minutes:r===void 0?"":r}}function ef(t,e){if(!t&&!e)return"";const r=t?t.padStart(2,"0"):"",o=e?e.padStart(2,"0"):"";return`${r}:${o}`}const tf=t=>{const e=D.compilerRuntimeExports.c(43);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({children:r,className:o,customValidationMessage:s,defaultValue:l,disabled:i,error:c,onChange:a,required:d,showValidation:u,showValidationTooltip:f,size:x,value:m,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=l===void 0?"":l,g=i===void 0?!1:i,b=c===void 0?!1:c,y=d===void 0?!1:d,v=u===void 0?!1:u,k=f===void 0?!1:f,w=x===void 0?"sm":x;let C;e[14]!==h||e[15]!==a||e[16]!==m?(C={value:m,defaultValue:h,onChange:a},e[14]=h,e[15]=a,e[16]=m,e[17]=C):C=e[17];const{hours:N,minutes:E,setHours:O,setMinutes:j}=Xu(C),[S,T]=_.useState(""),[P,M]=_.useState(v),I=s||S;let V;e[18]!==g||e[19]!==b||e[20]!==y||e[21]!==P||e[22]!==k||e[23]!==w||e[24]!==I?(V={disabled:g,error:b,showValidation:P,showValidationTooltip:k,required:y,size:w,validationMessage:I,setShowValidation:M,setValidationMessage:T},e[18]=g,e[19]=b,e[20]=y,e[21]=P,e[22]=k,e[23]=w,e[24]=I,e[25]=V):V=e[25];let F;e[26]!==N||e[27]!==E||e[28]!==O||e[29]!==j?(F={hours:N,minutes:E,setHours:O,setMinutes:j},e[26]=N,e[27]=E,e[28]=O,e[29]=j,e[30]=F):F=e[30];let L;e[31]!==o?(L=A("w-fit [&_[data-ox-slot='input-time']:only-child]:px-2",o),e[31]=o,e[32]=L):L=e[32];let z;e[33]!==r||e[34]!==n||e[35]!==L?(z=p.jsx(ur,{className:L,"data-ox-slot":"input-time-container",...n,children:r}),e[33]=r,e[34]=n,e[35]=L,e[36]=z):z=e[36];let R;e[37]!==F||e[38]!==z?(R=p.jsx(pn.Provider,{value:F,children:z}),e[37]=F,e[38]=z,e[39]=R):R=e[39];let $;return e[40]!==V||e[41]!==R?($=p.jsx($t.Provider,{value:V,children:R}),e[40]=V,e[41]=R,e[42]=$):$=e[42],$},rf=t=>{const e=D.compilerRuntimeExports.c(2);let r;return e[0]!==t?(r=p.jsx(fr,{...t}),e[0]=t,e[1]=r):r=e[1],r},of=()=>{const t=_.useContext(pn);if(!t)throw new Error("useTimeContext must be used within a TimeInput component");return t},sf=()=>{const t=D.compilerRuntimeExports.c(26),{hours:e,minutes:r,setHours:o,setMinutes:s}=of(),{disabled:n,size:a}=Qe(),l=_.useRef(null),i=_.useRef(null);let c;t[0]!==o?(c=j=>{const S=j.target.value;(S===""||/^\d{1,2}$/.test(S)&&parseInt(S,10)<=23)&&o(S)},t[0]=o,t[1]=c):c=t[1];const d=c;let u;t[2]!==s?(u=j=>{const S=j.target.value;(S===""||/^\d{1,2}$/.test(S)&&parseInt(S,10)<=59)&&s(S)},t[2]=s,t[3]=u):u=t[3];const f=u;let x;t[4]===Symbol.for("react.memo_cache_sentinel")?(x=j=>{(j.key==="Tab"||j.key==="Enter"||j.key===":")&&(j.preventDefault(),i.current?.focus())},t[4]=x):x=t[4];const m=x;let h;t[5]!==r?(h=j=>{j.key==="Backspace"&&r===""&&l.current?.focus()},t[5]=r,t[6]=h):h=t[6];const g=h;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=A("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),t[7]=b):b=t[7];let y;t[8]!==d||t[9]!==e?(y=p.jsx(at,{autoComplete:"off",className:b,max:"23",min:"0",placeholder:"hh",ref:l,type:"number",value:e,onChange:d,onKeyDown:m}),t[8]=d,t[9]=e,t[10]=y):y=t[10];const v=he[a],k=!n;let w;t[11]!==n||t[12]!==v||t[13]!==k?(w=A(v,{"text-gray-1000":k,"ox-default-disabled":n}),t[11]=n,t[12]=v,t[13]=k,t[14]=w):w=t[14];let C;t[15]!==w?(C=p.jsx("span",{className:w,children:":"}),t[15]=w,t[16]=C):C=t[16];let N;t[17]===Symbol.for("react.memo_cache_sentinel")?(N=A("w-8 min-w-8 text-center","[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"),t[17]=N):N=t[17];let E;t[18]!==f||t[19]!==g||t[20]!==r?(E=p.jsx(at,{autoComplete:"off",className:N,max:"59",min:"0",placeholder:"mm",ref:i,type:"number",value:r,onChange:f,onKeyDown:g}),t[18]=f,t[19]=g,t[20]=r,t[21]=E):E=t[21];let O;return t[22]!==E||t[23]!==y||t[24]!==C?(O=p.jsxs("div",{className:"flex items-center gap-1 bg-transparent px-2","data-ox-slot":"input-time",children:[y,C,E]}),t[22]=E,t[23]=y,t[24]=C,t[25]=O):O=t[25],O},mr=sf;mr.Container=tf;mr.Icon=rf;mr.Button=Ku;const hn=_.createContext(void 0),nf=()=>{const t=_.useContext(hn);if(!t)throw new Error("OxRadio must be used within OxRadioGroup");return t},af={sm:"size-4.5",md:"size-5.5"},lf=t=>{const e=D.compilerRuntimeExports.c(47);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({checked:r,className:o,defaultChecked:s,disabled:u,error:f,id:c,name:a,onChange:l,onCheckedChange:i,required:x,size:d,value:m,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=u===void 0?!1:u,g=f===void 0?!1:f,b=x===void 0?!1:x,y=_.useId(),v=nf(),k=_.useRef(null),C=`${c||y}-radio`,N=d||v.size,E=h||v.disabled,O=a||v?.name,j=r!==void 0||v&&m!==void 0&&v.value!==void 0;let S;v&&m!==void 0&&v.value!==void 0?S=v.value===m:S=r;let T;e[14]!==v||e[15]!==l||e[16]!==i||e[17]!==m?(T=H=>{const W=H.target.checked;v&&m!==void 0&&v.onChange?.(m),l?.(H),i?.(W)},e[14]=v,e[15]=l,e[16]=i,e[17]=m,e[18]=T):T=e[18];const P=T;let M;e[19]!==S||e[20]!==s||e[21]!==j?(M=j?{checked:S}:{defaultChecked:s},e[19]=S,e[20]=s,e[21]=j,e[22]=M):M=e[22];const I=af[N],V=!g;let F;e[23]!==o||e[24]!==g||e[25]!==I||e[26]!==V?(F=A("peer cursor-pointer appearance-none rounded-full bg-gray-50",I,"ox-violet-outset-focus checked:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-50",{"ox-rose-border":g,"ox-gray-border":V},o),e[23]=o,e[24]=g,e[25]=I,e[26]=V,e[27]=F):F=e[27];const L=S?"checked":"unchecked";let z;e[28]!==E||e[29]!==O||e[30]!==n||e[31]!==g||e[32]!==P||e[33]!==C||e[34]!==b||e[35]!==M||e[36]!==F||e[37]!==L||e[38]!==m?(z=p.jsx("input",{id:C,"aria-invalid":g,"aria-required":b,"data-ox-slot":"radio",ref:k,...M,className:F,disabled:E,name:O,required:b,type:"radio",value:m,onChange:P,...n,"data-ox-state":L}),e[28]=E,e[29]=O,e[30]=n,e[31]=g,e[32]=P,e[33]=C,e[34]=b,e[35]=M,e[36]=F,e[37]=L,e[38]=m,e[39]=z):z=e[39];let R;e[40]!==E?(R=A("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":E}),e[40]=E,e[41]=R):R=e[41];let $;e[42]!==R?($=p.jsx("div",{className:R}),e[42]=R,e[43]=$):$=e[43];let Y;return e[44]!==z||e[45]!==$?(Y=p.jsxs("div",{className:"relative inline-flex shrink-0",children:[z,$]}),e[44]=z,e[45]=$,e[46]=Y):Y=e[46],Y},cf=t=>{const e=D.compilerRuntimeExports.c(24);let r,o,s,n,a,l,i,c;e[0]!==t?({children:r,className:o,disabled:l,name:n,onChange:a,size:i,value:c,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8]);const d=l===void 0?!1:l,u=i===void 0?"sm":i;let f;e[9]!==d||e[10]!==n||e[11]!==a||e[12]!==u||e[13]!==c?(f={value:c,onChange:a,name:n,size:u,disabled:d},e[9]=d,e[10]=n,e[11]=a,e[12]=u,e[13]=c,e[14]=f):f=e[14];let x;e[15]!==o?(x=A("contents space-y-2",o),e[15]=o,e[16]=x):x=e[16];let m;e[17]!==r||e[18]!==s||e[19]!==x?(m=p.jsx("div",{className:x,"data-ox-slot":"radio-group",role:"radiogroup",...s,children:r}),e[17]=r,e[18]=s,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==f||e[22]!==m?(h=p.jsx(hn.Provider,{value:f,children:m}),e[21]=f,e[22]=m,e[23]=h):h=e[23],h},xn=lf;xn.Group=cf;const gn=_.createContext(void 0),co=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("overflow-hidden text-ellipsis",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("span",{className:n,"data-ox-slot":"select-label",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},_t=()=>{const t=_.useContext(gn);if(!t)throw new Error("Select components must be used within an OxSelect");return t},df={sm:`px-2 ${he.sm} ${Pe.sm}`,md:`px-2.5 ${he.md} ${Pe.md}`},bn=t=>{const e=D.compilerRuntimeExports.c(44);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,value:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,{multiple:i,onSelect:c,selectedValue:d,size:u}=_t(),{setOpen:f}=Fe();let x;if(e[6]!==r){const T=_.Children.toArray(r).find(uf);x=T&&_.isValidElement(T)?T.props.children:r,e[6]=r,e[7]=x}else x=e[7];const m=x;let h;e[8]!==m||e[9]!==i||e[10]!==c||e[11]!==f||e[12]!==a?(h=()=>{c({value:a,label:m}),i||f(!1)},e[8]=m,e[9]=i,e[10]=c,e[11]=f,e[12]=a,e[13]=h):h=e[13];const g=h;let b;e[14]!==g||e[15]!==f?(b=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),g()),T.key==="Escape"&&f(!1)},e[14]=g,e[15]=f,e[16]=b):b=e[16];const y=b;let v,k,w,C,N;e[17]!==o||e[18]!==d||e[19]!==u||e[20]!==a?(v=d.includes(a),C="contents",N="none",k=v,w=A("group col-span-3 grid grid-cols-subgrid items-center rounded-sm text-left text-gray-1200",df[u],"ox-violet-inset-focus enabled:cursor-pointer enabled:hover:bg-gray-400","disabled:ox-default-disabled",{"bg-gray-400":v},o),e[17]=o,e[18]=d,e[19]=u,e[20]=a,e[21]=v,e[22]=k,e[23]=w,e[24]=C,e[25]=N):(v=e[21],k=e[22],w=e[23],C=e[24],N=e[25]);const E=l?-1:0;let O;e[26]!==l||e[27]!==v||e[28]!==u?(O=v&&!l?p.jsx(ce,{className:"justify-self-center text-violet-700","data-ox-slot":"select-check-icon",path:Br,size:Ie[u]}):null,e[26]=l,e[27]=v,e[28]=u,e[29]=O):O=e[29];let j;e[30]!==r||e[31]!==l||e[32]!==s||e[33]!==g||e[34]!==y||e[35]!==O||e[36]!==k||e[37]!==w||e[38]!==E?(j=p.jsxs("button",{"aria-selected":k,className:w,"data-ox-slot":"select-option",disabled:l,role:"option",tabIndex:E,type:"button",onClick:g,onKeyDown:y,...s,children:[r,O]}),e[30]=r,e[31]=l,e[32]=s,e[33]=g,e[34]=y,e[35]=O,e[36]=k,e[37]=w,e[38]=E,e[39]=j):j=e[39];let S;return e[40]!==j||e[41]!==C||e[42]!==N?(S=p.jsx("li",{className:C,role:N,children:j}),e[40]=j,e[41]=C,e[42]=N,e[43]=S):S=e[43],S};function uf(t){return _.isValidElement(t)&&(t.type===co||Jt(t,"select-label"))}const ff=t=>{const e=new Map,r=o=>{if(!_.isValidElement(o))return;if(o.type===bn){const{children:a,value:l}=o.props,i=_.Children.toArray(a).find(d=>_.isValidElement(d)&&(d.type===co||Jt(d,"select-label"))),c=i&&_.isValidElement(i)?i.props.children:a;e.set(l,c);return}const s=o.props,{children:n}=s;n&&_.Children.forEach(n,r)};return t.forEach(r),e},yn=t=>{const e=D.compilerRuntimeExports.c(17);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{buttonRef:n,multiple:a,selectId:l}=_t(),{contentRef:i,open:c}=Fe();let d,u;e[4]!==n||e[5]!==i||e[6]!==c?(d=()=>{if(c&&n.current&&i.current){const h=n.current.offsetWidth;i.current.style.minWidth=`${h}px`}},u=[c,n,i],e[4]=n,e[5]=i,e[6]=c,e[7]=d,e[8]=u):(d=e[7],u=e[8]),_.useLayoutEffect(d,u);const f=`${l}-listbox`;let x;e[9]!==o?(x=A("grid max-h-72 grid-cols-[auto_1fr_auto] gap-y-0.5 overflow-x-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',o),e[9]=o,e[10]=x):x=e[10];let m;return e[11]!==r||e[12]!==s||e[13]!==a||e[14]!==f||e[15]!==x?(m=p.jsx(Ne.Content,{className:"ox-gray-border ox-select-animate rounded-lg bg-gray-200 p-1",children:p.jsx("ul",{id:f,"aria-multiselectable":a,className:x,"data-ox-slot":"select-listbox",role:"listbox",...s,children:r})}),e[11]=r,e[12]=s,e[13]=a,e[14]=f,e[15]=x,e[16]=m):m=e[16],m},Uo=t=>t==null?[]:Array.isArray(t)?t:[t],mf=t=>{const e=D.compilerRuntimeExports.c(63),{children:r,className:o,defaultOpen:s,defaultValue:n,disabled:a,error:l,id:i,isLoading:c,multiple:d,onChange:u,onOpenChange:f,open:x,required:m,size:h,value:g}=t,b=n===void 0?null:n,y=a===void 0?!1:a,v=l===void 0?!1:l,k=c===void 0?!1:c,w=d===void 0?!1:d,C=m===void 0?!1:m,N=h===void 0?"sm":h,E=_.useId(),O=_.useRef(null),{checkOverflow:j,handleResize:S,overflowAmount:T}=D.useOverflowDetection();let P;if(e[0]!==r){e:{const oe=_.Children.toArray(r).find(pf);if(!oe||!_.isValidElement(oe)){let we;e[2]===Symbol.for("react.memo_cache_sentinel")?(we=new Map,e[2]=we):we=e[2],P=we;break e}const ge=_.Children.toArray(oe.props.children||[]);P=ff(ge)}e[0]=r,e[1]=P}else P=e[1];const M=P;let I;e[3]!==g?(I=g!==void 0?new Set(Uo(g)):void 0,e[3]=g,e[4]=I):I=e[4];let V;e[5]!==b?(V=new Set(Uo(b)),e[5]=b,e[6]=V):V=e[6];let F;e[7]!==w||e[8]!==u?(F=oe=>{if(!oe)return;const ge=w?Array.from(oe):oe.size>0?Array.from(oe)[0]:null;u?.(ge)},e[7]=w,e[8]=u,e[9]=F):F=e[9];let L;e[10]!==V||e[11]!==F||e[12]!==I?(L={value:I,defaultValue:V,onChange:F,name:"OxSelect"},e[10]=V,e[11]=F,e[12]=I,e[13]=L):L=e[13];const[z,R]=D.useControllableState(L);let $;e[14]!==M||e[15]!==z?($=Array.from(z??new Set).filter(oe=>oe===""?M.has(""):!0).map(oe=>({value:oe,label:M.get(oe)??oe})),e[14]=M,e[15]=z,e[16]=$):$=e[16];const Y=$;let H;e[17]!==j?(H=()=>{j()},e[17]=j,e[18]=H):H=e[18];let W;if(e[19]!==j||e[20]!==z?(W=[z,j],e[19]=j,e[20]=z,e[21]=W):W=e[21],_.useLayoutEffect(H,W),k){let oe;e[22]!==o?(oe=A("flex w-full flex-col",o),e[22]=o,e[23]=oe):oe=e[23];const ge=Pe[N],we=!v;let be;e[24]!==v||e[25]!==ge||e[26]!==we?(be=A("rounded-lg",ge,{"ox-rose-border":v,"ox-gray-border":we}),e[24]=v,e[25]=ge,e[26]=we,e[27]=be):be=e[27];let Me;e[28]!==be?(Me=p.jsx(Et,{className:be,fullWidth:!0}),e[28]=be,e[29]=Me):Me=e[29];let $e;return e[30]!==oe||e[31]!==Me?($e=p.jsx("div",{className:oe,children:Me}),e[30]=oe,e[31]=Me,e[32]=$e):$e=e[32],$e}const Q=`${i||E}-select`;let q;e[33]!==w||e[34]!==R?(q=oe=>{const{value:ge}=oe;R(we=>{const be=new Set(we);return w?be.has(ge)?be.delete(ge):be.add(ge):(be.clear(),be.add(ge)),be})},e[33]=w,e[34]=R,e[35]=q):q=e[35];const Z=q;let K;e[36]!==z?(K=Array.from(z??new Set),e[36]=z,e[37]=K):K=e[37];let U;e[38]!==v||e[39]!==S||e[40]!==w||e[41]!==Z||e[42]!==T||e[43]!==C||e[44]!==Q||e[45]!==Y||e[46]!==N||e[47]!==K?(U={selectedValue:K,onSelect:Z,multiple:w,size:N,error:v,selectedOptions:Y,required:C,handleResize:S,overflowAmount:T,selectId:Q,buttonRef:O},e[38]=v,e[39]=S,e[40]=w,e[41]=Z,e[42]=T,e[43]=C,e[44]=Q,e[45]=Y,e[46]=N,e[47]=K,e[48]=U):U=e[48];let X;e[49]!==o?(X=A("flex w-full flex-col",o),e[49]=o,e[50]=X):X=e[50];let B;e[51]!==r||e[52]!==s||e[53]!==y||e[54]!==f||e[55]!==x?(B=p.jsx(Ne,{align:"start",animationDuration:100,ariaHaspopup:"listbox",defaultOpen:s,disabled:y,open:x,position:"bottom",trigger:"click",onOpenChange:f,children:r}),e[51]=r,e[52]=s,e[53]=y,e[54]=f,e[55]=x,e[56]=B):B=e[56];let te;e[57]!==X||e[58]!==B?(te=p.jsx("div",{className:X,children:B}),e[57]=X,e[58]=B,e[59]=te):te=e[59];let ne;return e[60]!==U||e[61]!==te?(ne=p.jsx(gn.Provider,{value:U,children:te}),e[60]=U,e[61]=te,e[62]=ne):ne=e[62],ne};function pf(t){return _.isValidElement(t)&&(t.type===yn||Jt(t,"select-content"))}const hf=t=>{const e=D.compilerRuntimeExports.c(11);let r,o,s;e[0]!==t?({className:r,path:s,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const{size:n}=_t();let a;e[4]!==r?(a=A("mr-2 shrink-0 text-current",r),e[4]=r,e[5]=a):a=e[5];const l=Ie[n];let i;return e[6]!==o||e[7]!==s||e[8]!==a||e[9]!==l?(i=p.jsx(ce,{className:a,"data-ox-slot":"select-icon",path:s,size:l,...o}),e[6]=o,e[7]=s,e[8]=a,e[9]=l,e[10]=i):i=e[10],i},xf=t=>{const e=D.compilerRuntimeExports.c(15);let r,o,s,n;e[0]!==t?({children:r,className:o,label:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{size:a}=_t(),l=he[a];let i;e[5]!==o||e[6]!==l?(i=A("col-span-full px-2 py-1 font-semibold text-gray-1000",l,o),e[5]=o,e[6]=l,e[7]=i):i=e[7];let c;e[8]!==s||e[9]!==n||e[10]!==i?(c=p.jsx("div",{className:i,"data-ox-slot":"select-option-group",...s,children:n}),e[8]=s,e[9]=n,e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==r||e[13]!==c?(d=p.jsxs("div",{className:"contents [&_[data-ox-slot=select-option]]:pl-4",children:[c,r]}),e[12]=r,e[13]=c,e[14]=d):d=e[14],d},gf={sm:`px-1.25 ${he.sm} ${Pe.sm}`,md:`px-1.75 ${he.md} ${Pe.md}`},bf=t=>{const e=D.compilerRuntimeExports.c(46);let r,o,s,n,a,l,i;e[0]!==t?({badgeColor:n,className:r,disabled:s,displayAsBadges:a,placeholder:l,size:i,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7]);const c=n===void 0?"purple":n,d=a===void 0?!1:a,u=l===void 0?"Select an option":l,f=i===void 0?"sm":i,{buttonRef:x,error:m,handleResize:h,multiple:g,overflowAmount:b,required:y,selectId:v,selectedOptions:k,size:w}=_t(),{disabled:C,open:N}=Fe(),E=f||w,O=b>0,j=s??C,S=`${v}-listbox`;let T;e[8]!==u||e[9]!==k?(T=k.length>0?`Selected: ${k.map(yf).join(", ")}`:u,e[8]=u,e[9]=k,e[10]=T):T=e[10];const P=gf[E],M=!m;let I;e[11]!==r||e[12]!==m||e[13]!==N||e[14]!==P||e[15]!==M?(I=A("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",P,{"ox-rose-border":m,"ox-gray-border":M,"default-active-border":N},r),e[11]=r,e[12]=m,e[13]=N,e[14]=P,e[15]=M,e[16]=I):I=e[16];const V=N?"open":"closed";let F;e[17]!==c||e[18]!==d||e[19]!==h||e[20]!==j||e[21]!==E||e[22]!==g||e[23]!==b||e[24]!==u||e[25]!==k||e[26]!==O?(F=k.length>0?p.jsxs("div",{className:A("flex w-full items-center overflow-hidden","[&_[data-ox-slot=select-icon]]:hidden",{"opacity-50":j&&d}),children:[p.jsx("div",{className:A("overflow-hidden text-ellipsis whitespace-nowrap",{"flex gap-1":d&&g}),ref:h,children:d&&g?k.map(Y=>p.jsx(Wt,{color:c,"data-ox-state":"selected",size:E,children:Y.label},String(Y.value))):k.map((Y,H,W)=>{const G=W.length-b,Q=H===G-1;return p.jsxs("span",{"data-ox-state":"selected",children:[Y.label,H<W.length-1&&!Q&&", "]},String(Y.value))})}),O&&g?p.jsxs(Wt,{className:"ml-1",color:c,size:E,children:["+",b]}):null]}):p.jsx("span",{className:"w-full overflow-hidden text-ellipsis whitespace-nowrap",children:u}),e[17]=c,e[18]=d,e[19]=h,e[20]=j,e[21]=E,e[22]=g,e[23]=b,e[24]=u,e[25]=k,e[26]=O,e[27]=F):F=e[27];let L;e[28]!==N?(L=A("text-current transition-transform duration-300 ease-in-out",{"rotate-180":N}),e[28]=N,e[29]=L):L=e[29];const z=Ie[E];let R;e[30]!==L||e[31]!==z?(R=p.jsx("div",{className:"absolute end-3 top-1/2 -translate-y-1/2",children:p.jsx(ce,{className:L,path:er,size:z})}),e[30]=L,e[31]=z,e[32]=R):R=e[32];let $;return e[33]!==x||e[34]!==o||e[35]!==m||e[36]!==j||e[37]!==y||e[38]!==v||e[39]!==V||e[40]!==F||e[41]!==R||e[42]!==S||e[43]!==T||e[44]!==I?($=p.jsx(Ne.Trigger,{asChild:!0,children:p.jsxs("button",{id:v,"aria-controls":S,"aria-disabled":j,"aria-invalid":m,"aria-label":T,"aria-required":y,className:I,"data-ox-slot":"select-trigger",disabled:j,ref:x,role:"combobox",type:"button",...o,"data-ox-state":V,children:[F,R]})}),e[33]=x,e[34]=o,e[35]=m,e[36]=j,e[37]=y,e[38]=v,e[39]=V,e[40]=F,e[41]=R,e[42]=S,e[43]=T,e[44]=I,e[45]=$):$=e[45],$};function yf(t){return t.label}const ct=mf;ct.Content=yn;ct.Icon=hf;ct.Label=co;ct.Option=bn;ct.OptionGroup=xf;ct.Trigger=bf;const vf={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"}},wf=t=>{const e=D.compilerRuntimeExports.c(37);let r,o,s,n,a,l,i,c,d;e[0]!==t?({checked:a,className:r,disabled:l,error:i,id:n,onChange:s,required:c,size:d,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=a===void 0?!1:a,f=l===void 0?!1:l,x=i===void 0?!1:i,m=c===void 0?!1:c,h=d===void 0?"sm":d,g=_.useId(),y=`${n||g}-switch`,v=vf[h];let k;e[10]!==u||e[11]!==s?(k=()=>{s?.(!u)},e[10]=u,e[11]=s,e[12]=k):k=e[12];const w=k,C=!u,N=!x;let E;e[13]!==u||e[14]!==r||e[15]!==x||e[16]!==v.container||e[17]!==C||e[18]!==N?(E=A("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",v.container,{"bg-violet-700":u,"bg-gray-400":C,"ox-rose-border":x,"border-transparent":N},r),e[13]=u,e[14]=r,e[15]=x,e[16]=v.container,e[17]=C,e[18]=N,e[19]=E):E=e[19];const O=u?"checked":"unchecked";let j;e[20]!==u||e[21]!==v.thumb||e[22]!==v.translate?(j=A("inline-block transform rounded-full bg-gray-1200 shadow-sm","transition-transform duration-200 ease-in-out",v.thumb,{[v.translate]:u}),e[20]=u,e[21]=v.thumb,e[22]=v.translate,e[23]=j):j=e[23];let S;e[24]!==j?(S=p.jsx("span",{className:j}),e[24]=j,e[25]=S):S=e[25];let T;return e[26]!==u||e[27]!==f||e[28]!==o||e[29]!==x||e[30]!==w||e[31]!==m||e[32]!==y||e[33]!==O||e[34]!==S||e[35]!==E?(T=p.jsx("button",{id:y,"aria-checked":u,"aria-invalid":x,"aria-required":m,className:E,"data-ox-slot":"switch",disabled:f,role:"switch",type:"button",onClick:w,...o,"data-ox-state":O,children:S}),e[26]=u,e[27]=f,e[28]=o,e[29]=x,e[30]=w,e[31]=m,e[32]=y,e[33]=O,e[34]=S,e[35]=E,e[36]=T):T=e[36],T},kf={sm:`${he.sm} min-${Pe.sm}`,md:`${he.md} min-${Pe.md}`},Cf=t=>{const e=D.compilerRuntimeExports.c(41);let r,o,s,n,a,l,i,c,d,u,f,x,m;e[0]!==t?({className:r,disabled:l,error:i,id:a,name:s,onChange:n,placeholder:c,required:d,rows:u,showMaxLength:f,size:x,value:m,...o}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u,e[11]=f,e[12]=x,e[13]=m):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10],f=e[11],x=e[12],m=e[13]);const h=l===void 0?!1:l,g=i===void 0?!1:i,b=c===void 0?"Enter text...":c,y=d===void 0?!1:d,v=u===void 0?3:u,k=f===void 0?!1:f,w=x===void 0?"sm":x,C=_.useId(),[N,E]=_.useState(0),j=`${a||C}-textarea`,S=o.maxLength,T=m!==void 0,P=T?typeof m=="string"?m.length:0:N;let M;e[14]!==T||e[15]!==n?(M=Y=>{T||E(Y.target.value.length),n?.(Y)},e[14]=T,e[15]=n,e[16]=M):M=e[16];const I=M,V=kf[w],F=!g;let L;e[17]!==r||e[18]!==g||e[19]!==F||e[20]!==V?(L=A("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",V,{"ox-rose-border":g,"ox-gray-border":F},r),e[17]=r,e[18]=g,e[19]=F,e[20]=V,e[21]=L):L=e[21];let z;e[22]!==h||e[23]!==o||e[24]!==g||e[25]!==I||e[26]!==s||e[27]!==b||e[28]!==y||e[29]!==v||e[30]!==L||e[31]!==j||e[32]!==m?(z=p.jsx("textarea",{id:j,"aria-invalid":g,"aria-required":y,className:L,"data-ox-slot":"textarea",disabled:h,name:s,placeholder:b,required:y,rows:v,value:m,onChange:I,...o}),e[22]=h,e[23]=o,e[24]=g,e[25]=I,e[26]=s,e[27]=b,e[28]=y,e[29]=v,e[30]=L,e[31]=j,e[32]=m,e[33]=z):z=e[33];let R;e[34]!==P||e[35]!==S||e[36]!==k?(R=k&&typeof S=="number"?p.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-gray-1000",children:[P,"/",S]}):null,e[34]=P,e[35]=S,e[36]=k,e[37]=R):R=e[37];let $;return e[38]!==z||e[39]!==R?($=p.jsxs("div",{className:"flex w-full flex-col",children:[z,R]}),e[38]=z,e[39]=R,e[40]=$):$=e[40],$},Ef=t=>{const e=D.compilerRuntimeExports.c(20);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);const n=ir();let a;e[4]!==r||e[5]!==n?.selectable?(a=n?.selectable&&(r==null||typeof r=="string"&&r.trim()===""),e[4]=r,e[5]=n?.selectable,e[6]=a):a=e[6];const l=a;let i;e[7]!==n?(i=()=>{n?.toggleAll()},e[7]=n,e[8]=i):i=e[8];const c=i;let d;e[9]!==o?(d=A("border-b border-gray-400 bg-gray-100 px-3 py-2 text-left text-sm font-semibold text-gray-1200",o),e[9]=o,e[10]=d):d=e[10];let u;e[11]!==r||e[12]!==n||e[13]!==c||e[14]!==l?(u=l?p.jsxs("div",{className:"flex items-center justify-center",children:[p.jsx("span",{className:"sr-only",children:"Select all rows"}),p.jsx(cr,{"aria-label":"Select all rows",checked:n.isAllSelected,indeterminate:n.isIndeterminate,onCheckedChange:c})]}):r,e[11]=r,e[12]=n,e[13]=c,e[14]=l,e[15]=u):u=e[15];let f;return e[16]!==s||e[17]!==d||e[18]!==u?(f=p.jsx("th",{className:d,"data-ox-slot":"table-head",...s,children:u}),e[16]=s,e[17]=d,e[18]=u,e[19]=f):f=e[19],f},Nf=t=>{const e=D.compilerRuntimeExports.c(8);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;return e[4]!==r||e[5]!==o||e[6]!==s?(n=p.jsx("thead",{className:o,"data-ox-slot":"table-header",...s,children:r}),e[4]=r,e[5]=o,e[6]=s,e[7]=n):n=e[7],n},Of=t=>{const e=D.compilerRuntimeExports.c(21);let r,o,s,n;e[0]!==t?({children:r,className:o,rowId:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const a=ir();let l;e[5]!==a||e[6]!==n?(l=()=>{n&&a?.selectable&&a.toggleSelection(n)},e[5]=a,e[6]=n,e[7]=l):l=e[7];const i=l;let c;if(e[8]!==o||e[9]!==a||e[10]!==n){const f=n&&a?.isSelected(n);c=A("border-b border-gray-400 last:border-b-0","in-[tfoot]:hover:bg-transparent in-[thead]:hover:bg-transparent",{"bg-gray-300":a?.selectable&&f,"in-[tbody]:even:bg-gray-100":a?.striped&&!f,"in-[tbody]:hover:bg-gray-300":a?.hoverable&&!f},o),e[8]=o,e[9]=a,e[10]=n,e[11]=c}else c=e[11];let d;e[12]!==a||e[13]!==i||e[14]!==n?(d=a?.selectable&&n?p.jsx("td",{className:"px-3 py-2",children:p.jsx("div",{className:"flex items-center justify-center",children:p.jsx(cr,{"aria-label":`Select row ${n}`,checked:a.isSelected(n),onCheckedChange:i})})}):null,e[12]=a,e[13]=i,e[14]=n,e[15]=d):d=e[15];let u;return e[16]!==r||e[17]!==s||e[18]!==c||e[19]!==d?(u=p.jsxs("tr",{className:c,"data-ox-slot":"table-row",...s,children:[d,r]}),e[16]=r,e[17]=s,e[18]=c,e[19]=d,e[20]=u):u=e[20],u},Xe=z1;Xe.Body=H1;Xe.Cell=B1;Xe.Controls=Y1;Xe.Footer=q1;Xe.Head=Ef;Xe.Header=Nf;Xe.Row=Of;Xe.SkeletonRow=an;const vn=_.createContext(null),jf=t=>{const e=D.compilerRuntimeExports.c(22);let r,o,s,n,a,l;e[0]!==t?({children:r,className:o,defaultValue:s,onValueChange:a,value:l,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6]);const[i,c]=_.useState(s||""),d=l!==void 0,u=d?l:i;let f;e[7]!==d||e[8]!==a?(f=v=>{d||c(v),a?.(v)},e[7]=d,e[8]=a,e[9]=f):f=e[9];const x=f;let m;e[10]!==u||e[11]!==x?(m={value:u,onValueChange:x},e[10]=u,e[11]=x,e[12]=m):m=e[12];const h=m;let g;e[13]!==o?(g=A("w-full",o),e[13]=o,e[14]=g):g=e[14];let b;e[15]!==r||e[16]!==n||e[17]!==g?(b=p.jsx("div",{className:g,"data-ox-slot":"tabs",...n,children:r}),e[15]=r,e[16]=n,e[17]=g,e[18]=b):b=e[18];let y;return e[19]!==h||e[20]!==b?(y=p.jsx(vn.Provider,{value:h,children:b}),e[19]=h,e[20]=b,e[21]=y):y=e[21],y},wn=()=>{const t=_.useContext(vn);if(!t)throw new Error("Tabs components must be used within OxTabs");return t},Sf=t=>{const e=D.compilerRuntimeExports.c(12);let r,o,s,n;e[0]!==t?({children:r,className:o,value:n,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n):(r=e[1],o=e[2],s=e[3],n=e[4]);const{value:a}=wn();if(!(a===n))return null;const i=`tab-${n}`;let c;e[5]!==o?(c=A("pt-4 text-gray-1200",o),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==r||e[8]!==s||e[9]!==i||e[10]!==c?(d=p.jsx("div",{"aria-labelledby":i,className:c,"data-ox-slot":"tabs-content",role:"tabpanel",...s,children:r}),e[7]=r,e[8]=s,e[9]=i,e[10]=c,e[11]=d):d=e[11],d},Tf=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("flex border-b border-gray-400",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("div",{className:n,"data-ox-slot":"tabs-list",role:"tablist",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Pf=t=>{const e=D.compilerRuntimeExports.c(25);let r,o,s,n,a;e[0]!==t?({children:r,className:o,disabled:n,value:a,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5]);const l=n===void 0?!1:n,{onValueChange:i,value:c}=wn(),d=c===a;let u;e[6]!==l||e[7]!==i||e[8]!==a?(u=()=>{l||i(a)},e[6]=l,e[7]=i,e[8]=a,e[9]=u):u=e[9];const f=u;let x;e[10]!==f?(x=v=>{(v.key==="Enter"||v.key==="Space")&&(v.preventDefault(),f())},e[10]=f,e[11]=x):x=e[11];const m=x,h=!d;let g;e[12]!==o||e[13]!==d||e[14]!==h?(g=A("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":d,"text-gray-1100":h},o),e[12]=o,e[13]=d,e[14]=h,e[15]=g):g=e[15];const b=d?"active":"inactive";let y;return e[16]!==r||e[17]!==l||e[18]!==s||e[19]!==f||e[20]!==m||e[21]!==d||e[22]!==g||e[23]!==b?(y=p.jsx("button",{"aria-selected":d,className:g,"data-ox-slot":"tabs-trigger",disabled:l,role:"tab",onClick:f,onKeyDown:m,...s,"data-ox-state":b,children:r}),e[16]=r,e[17]=l,e[18]=s,e[19]=f,e[20]=m,e[21]=d,e[22]=g,e[23]=b,e[24]=y):y=e[24],y},pr=jf;pr.List=Tf;pr.Trigger=Pf;pr.Content=Sf;const Mf=t=>{const e=D.compilerRuntimeExports.c(10);let r,o,s;e[0]!==t?({children:r,className:o,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s):(r=e[1],o=e[2],s=e[3]);let n;e[4]!==o?(n=A("grid grid-cols-[1fr_auto_1fr] items-start gap-4",o),e[4]=o,e[5]=n):n=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==n?(a=p.jsx("ol",{"aria-label":"Timeline",className:n,"data-ox-slot":"timeline",role:"list",...s,children:r}),e[6]=r,e[7]=s,e[8]=n,e[9]=a):a=e[9],a},Rf=t=>{const e=D.compilerRuntimeExports.c(51);let r,o,s,n,a,l,i,c,d,u;e[0]!==t?({align:i,children:r,className:o,color:c,description:s,icon:a,label:l,showSeparator:d,timestamp:u,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d,e[10]=u):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9],u=e[10]);const f=i===void 0?"left":i,x=c===void 0?"purple":c,m=d===void 0?!1:d,h=r||s;let g;e[11]!==o?(g=A("col-span-3 grid grid-cols-subgrid",o),e[11]=o,e[12]=g):g=e[12];let b;e[13]!==f||e[14]!==x||e[15]!==h||e[16]!==l||e[17]!==u?(b=f==="left"&&p.jsxs("div",{className:"space-y-1 text-right",children:[p.jsx("h6",{className:A("text-sm leading-tight font-medium",pe[x].text),children:l}),h&&p.jsx(yt,{children:h}),u&&p.jsx("span",{className:"text-xs text-gray-1000",children:u})]}),e[13]=f,e[14]=x,e[15]=h,e[16]=l,e[17]=u,e[18]=b):b=e[18];let y;e[19]!==b?(y=p.jsx("div",{children:b}),e[19]=b,e[20]=y):y=e[20];const v=pe[x],k=pe[x];let w;e[21]!==v.background||e[22]!==k.border?(w=A("flex items-center justify-center rounded-lg",kt.md,v.background,k.border),e[21]=v.background,e[22]=k.border,e[23]=w):w=e[23];const C=pe[x];let N;e[24]!==C.text?(N=A("text-gray-1200",C.text),e[24]=C.text,e[25]=N):N=e[25];const E=a||Ya;let O;e[26]!==N||e[27]!==E?(O=p.jsx(ce,{className:N,path:E,size:Ie.md}),e[26]=N,e[27]=E,e[28]=O):O=e[28];let j;e[29]!==O||e[30]!==w?(j=p.jsx("div",{className:w,children:O}),e[29]=O,e[30]=w,e[31]=j):j=e[31];let S;e[32]!==m?(S=m?p.jsx(oo,{className:"mx-auto",orientation:"vertical"}):null,e[32]=m,e[33]=S):S=e[33];let T;e[34]!==j||e[35]!==S?(T=p.jsxs("div",{className:"grid shrink-0 grid-rows-[auto_1fr] gap-4",children:[j,S]}),e[34]=j,e[35]=S,e[36]=T):T=e[36];let P;e[37]!==f||e[38]!==x||e[39]!==h||e[40]!==l||e[41]!==u?(P=f==="right"&&p.jsxs("div",{className:"space-y-1 text-left",children:[p.jsx("h6",{className:A("text-sm leading-tight font-medium",pe[x].text),children:l}),h&&p.jsx(yt,{children:h}),u&&p.jsx("span",{className:"text-xs text-gray-1000",children:u})]}),e[37]=f,e[38]=x,e[39]=h,e[40]=l,e[41]=u,e[42]=P):P=e[42];let M;e[43]!==P?(M=p.jsx("div",{children:P}),e[43]=P,e[44]=M):M=e[44];let I;return e[45]!==n||e[46]!==T||e[47]!==M||e[48]!==g||e[49]!==y?(I=p.jsxs("li",{className:g,"data-ox-slot":"timeline-item",role:"listitem",...n,children:[y,T,M]}),e[45]=n,e[46]=T,e[47]=M,e[48]=g,e[49]=y,e[50]=I):I=e[50],I},kn=Mf;kn.Item=Rf;const Df=t=>{const e=D.compilerRuntimeExports.c(49),{index:r,onRemove:o,position:s,toast:n}=t,a=n.icon??Le[n.type].icon,l=n.color?pe[n.color]:Le[n.type],[i,c]=_.useState(!0);let d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const T=setTimeout(()=>c(!1),50);return()=>clearTimeout(T)},u=[],e[0]=d,e[1]=u):(d=e[0],u=e[1]),_.useEffect(d,u);const f=r*8,x=1-r*.05;let m;e[2]!==r||e[3]!==i||e[4]!==s||e[5]!==x||e[6]!==f||e[7]!==n.isRemoving?(m=()=>{const T=i?s==="top"?-16:16:0;return s==="top"?{top:`${f+T}px`,transform:`scale(${x})`,zIndex:30-r,opacity:n.isRemoving||i?0:1}:{top:`${-f+T}px`,transform:`scale(${x})`,zIndex:30-r,opacity:n.isRemoving||i?0:1}},e[2]=r,e[3]=i,e[4]=s,e[5]=x,e[6]=f,e[7]=n.isRemoving,e[8]=m):m=e[8];const h=m;if(n.customContent){let T;e[9]!==h?(T=h(),e[9]=h,e[10]=T):T=e[10];let P;e[11]!==o||e[12]!==n.id?(P=()=>o(n.id),e[11]=o,e[12]=n.id,e[13]=P):P=e[13];let M;return e[14]!==T||e[15]!==P||e[16]!==n.customContent?(M=p.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:T,onClick:P,children:n.customContent}),e[14]=T,e[15]=P,e[16]=n.customContent,e[17]=M):M=e[17],M}const g=n.description?`${n.id}-desc`:void 0,b=n.type==="error"||n.type==="warning"?"alert":"status";let y;e[18]!==h?(y=h(),e[18]=h,e[19]=y):y=e[19];let v;e[20]!==o||e[21]!==n.id?(v=()=>o(n.id),e[20]=o,e[21]=n.id,e[22]=v):v=e[22];let k;e[23]!==n.type?(k=p.jsxs("span",{className:"sr-only",children:[n.type," notification:"]}),e[23]=n.type,e[24]=k):k=e[24];let w;e[25]!==l.background?(w=A("mt-0.5 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg",l.background),e[25]=l.background,e[26]=w):w=e[26];let C;e[27]!==a||e[28]!==l.text?(C=p.jsx(ce,{className:l.text,path:a,size:.7}),e[27]=a,e[28]=l.text,e[29]=C):C=e[29];let N;e[30]!==C||e[31]!==w?(N=p.jsx("div",{className:w,children:C}),e[30]=C,e[31]=w,e[32]=N):N=e[32];let E;e[33]!==n.title?(E=p.jsx("div",{className:"text-xs font-medium text-gray-1200",children:n.title}),e[33]=n.title,e[34]=E):E=e[34];let O;e[35]!==n.description||e[36]!==n.id?(O=n.description?p.jsx("p",{id:`${n.id}-desc`,className:"mt-1 text-xs",children:n.description}):null,e[35]=n.description,e[36]=n.id,e[37]=O):O=e[37];let j;e[38]!==E||e[39]!==O?(j=p.jsxs("div",{className:"flex-1",children:[E,O]}),e[38]=E,e[39]=O,e[40]=j):j=e[40];let S;return e[41]!==N||e[42]!==j||e[43]!==g||e[44]!==b||e[45]!==y||e[46]!==v||e[47]!==k?(S=p.jsxs("div",{"aria-describedby":g,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:b,style:y,onClick:v,children:[k,N,j]}),e[41]=N,e[42]=j,e[43]=g,e[44]=b,e[45]=y,e[46]=v,e[47]=k,e[48]=S):S=e[48],S},Af={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"},If={top:"top-4",bottom:"bottom-24"},Cn=t=>{const e=D.compilerRuntimeExports.c(13),{align:r,onRemove:o,position:s,toasts:n}=t,a=Af[r],l=If[s];let i;e[0]!==a||e[1]!==l?(i=A("pointer-events-none fixed z-50 w-11/12 md:w-80",a,l),e[0]=a,e[1]=l,e[2]=i):i=e[2];let c;if(e[3]!==o||e[4]!==s||e[5]!==n){let u;e[7]!==o||e[8]!==s?(u=(f,x)=>p.jsx(Df,{index:x,position:s,toast:f,onRemove:o},f.id),e[7]=o,e[8]=s,e[9]=u):u=e[9],c=n.map(u),e[3]=o,e[4]=s,e[5]=n,e[6]=c}else c=e[6];let d;return e[10]!==i||e[11]!==c?(d=Mt.createPortal(p.jsx("div",{"aria-atomic":"false","aria-label":"Notifications","aria-live":"polite",className:i,"data-ox-slot":"toast-container",role:"region",children:c}),document.body),e[10]=i,e[11]=c,e[12]=d):d=e[12],d},En=_.createContext(null),$f=t=>{const e=D.compilerRuntimeExports.c(15),{align:r,children:o,maxToasts:s,position:n}=t,a=r===void 0?"right":r,l=s===void 0?3:s,i=n===void 0?"top":n;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[d,u]=_.useState(c);let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=C=>{u(N=>N.map(E=>E.id===C?{...E,isRemoving:!0}:E)),setTimeout(()=>{u(N=>D.reject(N,E=>E.id===C))},200)},e[1]=f):f=e[1];const x=f;let m;e[2]!==l?(m=(C,N,E,O)=>{const j=D.uniqueId(),S=E?.duration??5e3,T={id:j,title:C,type:N,duration:S,description:E?.description,icon:E?.icon,color:E?.color,customContent:O};return u(P=>D.take([T,...P],l)),S>0&&setTimeout(()=>{x(j)},S),j},e[2]=l,e[3]=m):m=e[3];const h=m;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=C=>{C?x(C):u([])},e[4]=g):g=e[4];const b=g;let y;e[5]!==h?(y=Object.assign((C,N)=>h(C,"default",N),{success:(C,N)=>h(C,"success",N),error:(C,N)=>h(C,"error",N),warning:(C,N)=>h(C,"warning",N),info:(C,N)=>h(C,"info",N),custom:(C,N)=>h("","default",{duration:N?.duration},C),dismiss:b}),e[5]=h,e[6]=y):y=e[6];const v=y;let k;e[7]!==a||e[8]!==i||e[9]!==d?(k=p.jsx(Cn,{align:a,position:i,toasts:d,onRemove:x}),e[7]=a,e[8]=i,e[9]=d,e[10]=k):k=e[10];let w;return e[11]!==o||e[12]!==k||e[13]!==v?(w=p.jsxs(En.Provider,{value:v,children:[o,k]}),e[11]=o,e[12]=k,e[13]=v,e[14]=w):w=e[14],w},Lf=()=>{const t=_.useContext(En);if(!t)throw new Error("useOxToast must be used within a ToastProvider");return t},Nn=_.createContext(null),_f=()=>_.useContext(Nn),Vf={sm:`px-3 ${Pe.sm} ${he.sm}`,md:`px-4 ${Pe.md} ${he.md}`},zf=t=>{const e=D.compilerRuntimeExports.c(35);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,disabled:s,id:i,onPressedChange:a,pressed:l,size:c,value:d,...n}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=_.useId(),f=_f(),m=`${i||u}-toggle`,h=f!==null,g=c||f?.size||"sm",b=s||f?.disabled||!1;let y,v,k,w;if(e[10]!==b||e[11]!==g||e[12]!==o||e[13]!==f||e[14]!==h||e[15]!==a||e[16]!==l||e[17]!==m||e[18]!==d){let N;if(h&&d!==void 0){f.type==="single"?N=f.value===d:N=(f.value||[]).includes(d);let E;e[23]!==b||e[24]!==f||e[25]!==d?(E=()=>{!b&&f.onToggle&&f.onToggle(d)},e[23]=b,e[24]=f,e[25]=d,e[26]=E):E=e[26],y=E}else N=l||!1,y=()=>{!b&&a&&a(!N)};v=m,k=N,w=A("inline-flex items-center gap-2 rounded-md border transition-colors duration-200","ox-gray-outset-focus enabled:cursor-pointer disabled:ox-default-disabled",Vf[g],{"border-gray-400 bg-gray-300 text-gray-1200 enabled:hover:bg-gray-500":N,"border-gray-400 bg-gray-50 text-gray-1000 enabled:hover:bg-gray-300":!N},o),e[10]=b,e[11]=g,e[12]=o,e[13]=f,e[14]=h,e[15]=a,e[16]=l,e[17]=m,e[18]=d,e[19]=y,e[20]=v,e[21]=k,e[22]=w}else y=e[19],v=e[20],k=e[21],w=e[22];let C;return e[27]!==b||e[28]!==r||e[29]!==n||e[30]!==y||e[31]!==v||e[32]!==k||e[33]!==w?(C=p.jsx("button",{id:v,"aria-pressed":k,className:w,"data-ox-slot":"toggle",disabled:b,role:"button",type:"button",onClick:y,...n,children:r}),e[27]=b,e[28]=r,e[29]=n,e[30]=y,e[31]=v,e[32]=k,e[33]=w,e[34]=C):C=e[34],C},Ff=t=>{const e=D.compilerRuntimeExports.c(30);let r,o,s,n,a,l,i,c,d;e[0]!==t?({children:r,className:o,disabled:l,name:n,onValueChange:a,size:i,type:c,value:d,...s}=t,e[0]=t,e[1]=r,e[2]=o,e[3]=s,e[4]=n,e[5]=a,e[6]=l,e[7]=i,e[8]=c,e[9]=d):(r=e[1],o=e[2],s=e[3],n=e[4],a=e[5],l=e[6],i=e[7],c=e[8],d=e[9]);const u=l===void 0?!1:l,f=i===void 0?"sm":i,x=c===void 0?"single":c;let m;e[10]!==a||e[11]!==x||e[12]!==d?(m=k=>{if(a)if(x==="single")a(d===k?"":k);else{const w=d||[],C=w.includes(k)?w.filter(N=>N!==k):[...w,k];a(C)}},e[10]=a,e[11]=x,e[12]=d,e[13]=m):m=e[13];const h=m;let g;e[14]!==u||e[15]!==h||e[16]!==n||e[17]!==f||e[18]!==x||e[19]!==d?(g={value:d,onToggle:h,name:n,size:f,disabled:u,type:x},e[14]=u,e[15]=h,e[16]=n,e[17]=f,e[18]=x,e[19]=d,e[20]=g):g=e[20];let b;e[21]!==o?(b=A("flex flex-wrap gap-2",o),e[21]=o,e[22]=b):b=e[22];let y;e[23]!==r||e[24]!==s||e[25]!==b?(y=p.jsx("div",{className:b,"data-ox-slot":"toggle-group",role:"group",...s,children:r}),e[23]=r,e[24]=s,e[25]=b,e[26]=y):y=e[26];let v;return e[27]!==g||e[28]!==y?(v=p.jsx(Nn.Provider,{value:g,children:y}),e[27]=g,e[28]=y,e[29]=v):v=e[29],v},On=zf;On.Group=Ff;const Hf={default:"ox-gray-border text-gray-1200 bg-gray-200",error:A(...Object.values(D.pick(pe.rose,["background","border","text"]))),warning:A(...Object.values(D.pick(pe.amber,["background","border","text"]))),info:A(...Object.values(D.pick(pe.blue,["background","border","text"]))),success:A(...Object.values(D.pick(pe.green,["background","border","text"])))},jn=t=>{const e=D.compilerRuntimeExports.c(19),{align:r,children:o,className:s,content:n,disabled:a,hoverDelay:l,id:i,onOpenChange:c,open:d,position:u,trigger:f,variant:x}=t,m=r===void 0?"center":r,h=a===void 0?!1:a,g=l===void 0?500:l,b=u===void 0?"top":u,y=f===void 0?"hover":f,v=x===void 0?"default":x;let k;e[0]!==o?(k=p.jsx(Ne.Trigger,{asChild:!0,children:o}),e[0]=o,e[1]=k):k=e[1];const w=Hf[v];let C;e[2]!==s||e[3]!==w?(C=A("max-w-xs rounded-md border px-2 py-1 text-xs break-words",w,s),e[2]=s,e[3]=w,e[4]=C):C=e[4];let N;e[5]!==n||e[6]!==C?(N=p.jsx(Ne.Content,{className:"ox-tooltip-animate rounded-md backdrop-blur-sm",role:"tooltip",children:p.jsx("div",{className:C,"data-ox-slot":"tooltip-content",children:n})}),e[5]=n,e[6]=C,e[7]=N):N=e[7];let E;return e[8]!==m||e[9]!==h||e[10]!==g||e[11]!==i||e[12]!==c||e[13]!==d||e[14]!==b||e[15]!==N||e[16]!==k||e[17]!==y?(E=p.jsxs(Ne,{id:i,align:m,animationDuration:100,disabled:h,hoverDelay:g,offset:8,open:d,position:b,trigger:y,useAriaControls:!1,onOpenChange:c,children:[k,N]}),e[8]=m,e[9]=h,e[10]=g,e[11]=i,e[12]=c,e[13]=d,e[14]=b,e[15]=N,e[16]=k,e[17]=y,e[18]=E):E=e[18],E};exports.COLOR_STYLES=pe;exports.MOBILE_BREAKPOINT=bs;exports.OxAccordion=tr;exports.OxAlert=ys;exports.OxAvatar=rr;exports.OxBadge=Wt;exports.OxBreadcrumb=or;exports.OxButton=je;exports.OxCalendar=Ls;exports.OxCard=sr;exports.OxCheckbox=cr;exports.OxDateInput=Lt;exports.OxDescription=yt;exports.OxDescriptionList=Qr;exports.OxDialog=ar;exports.OxDrawer=Ze;exports.OxDropdown=Ae;exports.OxError=tn;exports.OxFileUpload=dr;exports.OxFloating=Ne;exports.OxFloatingContext=Kr;exports.OxForm=lt;exports.OxHeading=rn;exports.OxIcon=ce;exports.OxJsonField=qs;exports.OxLabel=on;exports.OxLegend=A1;exports.OxLink=Ud;exports.OxNotifications=Dt;exports.OxNumberInput=Nt;exports.OxOtpInput=Lu;exports.OxPagination=It;exports.OxPopover=ro;exports.OxProgress=Qs;exports.OxRadio=xn;exports.OxSelect=ct;exports.OxSeparator=oo;exports.OxSkeleton=Et;exports.OxSkeletonText=E1;exports.OxSlider=j1;exports.OxSpinner=_s;exports.OxStatusDisplay=M1;exports.OxStepper=no;exports.OxSwitch=wf;exports.OxTable=Xe;exports.OxTabs=pr;exports.OxTextInput=it;exports.OxTextarea=Cf;exports.OxTimeInput=mr;exports.OxTimeline=kn;exports.OxToast=Cn;exports.OxToastProvider=$f;exports.OxToggle=On;exports.OxTooltip=jn;exports.buildMailTo=Mn;exports.buildUrl=Pn;exports.cn=A;exports.copyToClipboard=ma;exports.createId=ba;exports.formatBytes=va;exports.formatCurrency=wa;exports.formatDate=ka;exports.formatNumber=Ca;exports.formatTimestamp=Hr;exports.generateRandomString=as;exports.handleFormErrors=is;exports.handleGraphQLFormErrors=ya;exports.hasDataSlot=Jt;exports.mdiAccount=La;exports.mdiChevronDown=er;exports.mdiClose=Rt;exports.mdiDockLeft=Ua;exports.mdiLockOutline=el;exports.mdiMenu=tl;exports.parseGraphQLErrors=ls;exports.scrollToElement=Ea;exports.useOxFloatingContext=Fe;exports.useOxToast=Lf;exports.validateEmail=Ma;exports.validatePhone=Aa;exports.validateUrl=Ra;
|