cemtrik-dependencies 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +63 -0
- package/package.json +6 -2
- package/hooks.js +0 -4
- package/index.html +0 -13
- package/index.js +0 -45
- package/postcss.config.js +0 -6
- package/public/vite.svg +0 -1
- package/src/App.js +0 -12
- package/src/assets/cemtrik-icons-v1.0/Read Me.txt +0 -7
- package/src/assets/cemtrik-icons-v1.0/demo-files/demo.css +0 -152
- package/src/assets/cemtrik-icons-v1.0/demo-files/demo.js +0 -30
- package/src/assets/cemtrik-icons-v1.0/demo.html +0 -318
- package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.eot +0 -0
- package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.svg +0 -31
- package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.ttf +0 -0
- package/src/assets/cemtrik-icons-v1.0/fonts/cemtrik-icons.woff +0 -0
- package/src/assets/cemtrik-icons-v1.0/selection.json +0 -1
- package/src/assets/cemtrik-icons-v1.0/style.css +0 -96
- package/src/assets/icons/actions.svg +0 -4
- package/src/assets/icons/attributes.svg +0 -5
- package/src/assets/icons/bars.svg +0 -3
- package/src/assets/icons/bell.svg +0 -4
- package/src/assets/icons/cemtrik.svg +0 -9
- package/src/assets/icons/clipboardCheck.svg +0 -4
- package/src/assets/icons/clipboardList.svg +0 -5
- package/src/assets/icons/clock.svg +0 -3
- package/src/assets/icons/flag.svg +0 -3
- package/src/assets/icons/folder.svg +0 -3
- package/src/assets/icons/graph_indicators.svg +0 -3
- package/src/assets/icons/group.svg +0 -3
- package/src/assets/icons/letter.svg +0 -3
- package/src/assets/icons/measuring_points.svg +0 -3
- package/src/assets/icons/reports.svg +0 -4
- package/src/assets/icons/roboot.svg +0 -3
- package/src/assets/icons/user.svg +0 -4
- package/src/assets/icons/user_point.svg +0 -10
- package/src/assets/icons/vector.svg +0 -3
- package/src/assets/icons/vector2.svg +0 -3
- package/src/components/atoms/Alert/index.js +0 -104
- package/src/components/atoms/Alert/index.test.js +0 -36
- package/src/components/atoms/Avatar/index.js +0 -63
- package/src/components/atoms/Avatar/index.test.js +0 -30
- package/src/components/atoms/Bullets/Bullets.test.js +0 -22
- package/src/components/atoms/Bullets/index.js +0 -51
- package/src/components/atoms/ButtonOutline/index.js +0 -43
- package/src/components/atoms/ButtonOutline/index.test.js +0 -36
- package/src/components/atoms/ButtonPagination/index.js +0 -37
- package/src/components/atoms/ButtonPagination/index.test.js +0 -36
- package/src/components/atoms/ButtonSolid/index.js +0 -74
- package/src/components/atoms/ButtonSolid/index.test.js +0 -59
- package/src/components/atoms/Checkbox/index.js +0 -52
- package/src/components/atoms/Checkbox/index.test.js +0 -15
- package/src/components/atoms/ConfirmationAbandoningCreation/index.js +0 -70
- package/src/components/atoms/ConfirmationAbandoningCreation/index.test.js +0 -70
- package/src/components/atoms/Divider/index.js +0 -10
- package/src/components/atoms/Divider/index.test.js +0 -12
- package/src/components/atoms/GoBack/index.js +0 -30
- package/src/components/atoms/GoBack/index.test.js +0 -24
- package/src/components/atoms/Input/index.js +0 -107
- package/src/components/atoms/Input/index.test.js +0 -63
- package/src/components/atoms/InputDropdown/index.js +0 -111
- package/src/components/atoms/InputDropdown/index.test.js +0 -86
- package/src/components/atoms/Select/index.js +0 -199
- package/src/components/atoms/Select/index.test.js +0 -86
- package/src/components/atoms/Spinner/index.js +0 -49
- package/src/components/atoms/Spinner/index.test.js +0 -9
- package/src/components/atoms/Switch/index.js +0 -46
- package/src/components/atoms/Switch/index.test.js +0 -18
- package/src/components/atoms/Textarea/index.js +0 -136
- package/src/components/atoms/Textarea/index.spec.js +0 -51
- package/src/components/atoms/Tooltip/index.js +0 -64
- package/src/components/atoms/Tooltip/index.test.js +0 -31
- package/src/components/molecules/Dropdown/index.js +0 -315
- package/src/components/molecules/Dropdown/index.test.js +0 -190
- package/src/components/molecules/Modal/index.js +0 -103
- package/src/components/molecules/Modal/index.test.js +0 -42
- package/src/components/molecules/Pagination/index.js +0 -126
- package/src/components/molecules/Pagination/index.test.js +0 -57
- package/src/components/templates/Accordion/index.js +0 -174
- package/src/components/templates/Accordion/index.test.js +0 -130
- package/src/hooks/useCloseModal/index.js +0 -27
- package/src/hooks/useCloseModal/index.test.js +0 -26
- package/src/hooks/useForm/index.js +0 -70
- package/src/hooks/useForm/useForm.test.js +0 -104
- package/src/hooks/useMediaQuery/index.js +0 -53
- package/src/hooks/useMediaQuery/useMediaQuery.test.js +0 -46
- package/src/hooks/useWindowDimensions/index.js +0 -34
- package/src/hooks/useWindowDimensions/useWindowDimensions.test.js +0 -19
- package/src/index.css +0 -3
- package/src/main.js +0 -10
- package/src/utils/index.js +0 -32
- package/src/utils/index.test.js +0 -56
- package/tailwind.config.js +0 -117
- package/vite.config.js +0 -30
package/dist/index.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
(function(Q,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],u):(Q=typeof globalThis<"u"?globalThis:Q||self,u(Q.MyApp={},Q.React,Q.ReactDOM))})(this,function(Q,u,un){"use strict";function yr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const T=yr(u);function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tt={exports:{}},Ye={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var cn;function Sr(){if(cn)return Ye;cn=1;var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,d){var f,h={},x=null,m=null;d!==void 0&&(x=""+d),a.key!==void 0&&(x=""+a.key),a.ref!==void 0&&(m=a.ref);for(f in a)r.call(a,f)&&!i.hasOwnProperty(f)&&(h[f]=a[f]);if(s&&s.defaultProps)for(f in a=s.defaultProps,a)h[f]===void 0&&(h[f]=a[f]);return{$$typeof:n,type:s,key:x,ref:m,props:h,_owner:o.current}}return Ye.Fragment=t,Ye.jsx=l,Ye.jsxs=l,Ye}var qe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var dn;function Tr(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&function(){var e=u,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function g(c){if(c===null||typeof c!="object")return null;var y=b&&c[b]||c[v];return typeof y=="function"?y:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(c){{for(var y=arguments.length,j=new Array(y>1?y-1:0),M=1;M<y;M++)j[M-1]=arguments[M];C("error",c,j)}}function C(c,y,j){{var M=S.ReactDebugCurrentFrame,G=M.getStackAddendum();G!==""&&(y+="%s",j=j.concat([G]));var ne=j.map(function(U){return String(U)});ne.unshift("Warning: "+y),Function.prototype.apply.call(console[c],console,ne)}}var O=!1,k=!1,F=!1,B=!1,V=!1,A;A=Symbol.for("react.module.reference");function D(c){return!!(typeof c=="string"||typeof c=="function"||c===r||c===i||V||c===o||c===d||c===f||B||c===m||O||k||F||typeof c=="object"&&c!==null&&(c.$$typeof===x||c.$$typeof===h||c.$$typeof===l||c.$$typeof===s||c.$$typeof===a||c.$$typeof===A||c.getModuleId!==void 0))}function _(c,y,j){var M=c.displayName;if(M)return M;var G=y.displayName||y.name||"";return G!==""?j+"("+G+")":j}function Z(c){return c.displayName||"Context"}function re(c){if(c==null)return null;if(typeof c.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case r:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var y=c;return Z(y)+".Consumer";case l:var j=c;return Z(j._context)+".Provider";case a:return _(c,c.render,"ForwardRef");case h:var M=c.displayName||null;return M!==null?M:re(c.type)||"Memo";case x:{var G=c,ne=G._payload,U=G._init;try{return re(U(ne))}catch{return null}}}return null}var L=Object.assign,E=0,ae,W,se,K,ee,pe,ge;function Ce(){}Ce.__reactDisabledLog=!0;function be(){{if(E===0){ae=console.log,W=console.info,se=console.warn,K=console.error,ee=console.group,pe=console.groupCollapsed,ge=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}E++}}function P(){{if(E--,E===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},c,{value:ae}),info:L({},c,{value:W}),warn:L({},c,{value:se}),error:L({},c,{value:K}),group:L({},c,{value:ee}),groupCollapsed:L({},c,{value:pe}),groupEnd:L({},c,{value:ge})})}E<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=S.ReactCurrentDispatcher,te;function we(c,y,j){{if(te===void 0)try{throw Error()}catch(G){var M=G.stack.trim().match(/\n( *(at )?)/);te=M&&M[1]||""}return`
|
|
18
|
+
`+te+c}}var N=!1,H;{var R=typeof WeakMap=="function"?WeakMap:Map;H=new R}function me(c,y){if(!c||N)return"";{var j=H.get(c);if(j!==void 0)return j}var M;N=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=q.current,q.current=null,be();try{if(y){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(ye){M=ye}Reflect.construct(c,[],U)}else{try{U.call()}catch(ye){M=ye}c.call(U.prototype)}}else{try{throw Error()}catch(ye){M=ye}c()}}catch(ye){if(ye&&M&&typeof ye.stack=="string"){for(var z=ye.stack.split(`
|
|
19
|
+
`),xe=M.stack.split(`
|
|
20
|
+
`),de=z.length-1,fe=xe.length-1;de>=1&&fe>=0&&z[de]!==xe[fe];)fe--;for(;de>=1&&fe>=0;de--,fe--)if(z[de]!==xe[fe]){if(de!==1||fe!==1)do if(de--,fe--,fe<0||z[de]!==xe[fe]){var Se=`
|
|
21
|
+
`+z[de].replace(" at new "," at ");return c.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",c.displayName)),typeof c=="function"&&H.set(c,Se),Se}while(de>=1&&fe>=0);break}}}finally{N=!1,q.current=ne,P(),Error.prepareStackTrace=G}var Ve=c?c.displayName||c.name:"",Be=Ve?we(Ve):"";return typeof c=="function"&&H.set(c,Be),Be}function he(c,y,j){return me(c,!1)}function He(c){var y=c.prototype;return!!(y&&y.isReactComponent)}function Et(c,y,j){if(c==null)return"";if(typeof c=="function")return me(c,He(c));if(typeof c=="string")return we(c);switch(c){case d:return we("Suspense");case f:return we("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case a:return he(c.render);case h:return Et(c.type,y,j);case x:{var M=c,G=M._payload,ne=M._init;try{return Et(ne(G),y,j)}catch{}}}return""}var it=Object.prototype.hasOwnProperty,ar={},ur=S.ReactDebugCurrentFrame;function St(c){if(c){var y=c._owner,j=Et(c.type,c._source,y?y.type:null);ur.setExtraStackFrame(j)}else ur.setExtraStackFrame(null)}function Ps(c,y,j,M,G){{var ne=Function.call.bind(it);for(var U in c)if(ne(c,U)){var z=void 0;try{if(typeof c[U]!="function"){var xe=Error((M||"React class")+": "+j+" type `"+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[U]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}z=c[U](y,U,M,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){z=de}z&&!(z instanceof Error)&&(St(G),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",M||"React class",j,U,typeof z),St(null)),z instanceof Error&&!(z.message in ar)&&(ar[z.message]=!0,St(G),w("Failed %s type: %s",j,z.message),St(null))}}}var Ns=Array.isArray;function nn(c){return Ns(c)}function Ms(c){{var y=typeof Symbol=="function"&&Symbol.toStringTag,j=y&&c[Symbol.toStringTag]||c.constructor.name||"Object";return j}}function Ds(c){try{return cr(c),!1}catch{return!0}}function cr(c){return""+c}function dr(c){if(Ds(c))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ms(c)),cr(c)}var lt=S.ReactCurrentOwner,As={key:!0,ref:!0,__self:!0,__source:!0},fr,pr,rn;rn={};function Ls(c){if(it.call(c,"ref")){var y=Object.getOwnPropertyDescriptor(c,"ref").get;if(y&&y.isReactWarning)return!1}return c.ref!==void 0}function _s(c){if(it.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function Rs(c,y){if(typeof c.ref=="string"&<.current&&y&<.current.stateNode!==y){var j=re(lt.current.type);rn[j]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',re(lt.current.type),c.ref),rn[j]=!0)}}function Bs(c,y){{var j=function(){fr||(fr=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",y))};j.isReactWarning=!0,Object.defineProperty(c,"key",{get:j,configurable:!0})}}function zs(c,y){{var j=function(){pr||(pr=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",y))};j.isReactWarning=!0,Object.defineProperty(c,"ref",{get:j,configurable:!0})}}var Ws=function(c,y,j,M,G,ne,U){var z={$$typeof:n,type:c,key:y,ref:j,props:U,_owner:ne};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Hs(c,y,j,M,G){{var ne,U={},z=null,xe=null;j!==void 0&&(dr(j),z=""+j),_s(y)&&(dr(y.key),z=""+y.key),Ls(y)&&(xe=y.ref,Rs(y,G));for(ne in y)it.call(y,ne)&&!As.hasOwnProperty(ne)&&(U[ne]=y[ne]);if(c&&c.defaultProps){var de=c.defaultProps;for(ne in de)U[ne]===void 0&&(U[ne]=de[ne])}if(z||xe){var fe=typeof c=="function"?c.displayName||c.name||"Unknown":c;z&&Bs(U,fe),xe&&zs(U,fe)}return Ws(c,z,xe,G,M,lt.current,U)}}var on=S.ReactCurrentOwner,mr=S.ReactDebugCurrentFrame;function Ue(c){if(c){var y=c._owner,j=Et(c.type,c._source,y?y.type:null);mr.setExtraStackFrame(j)}else mr.setExtraStackFrame(null)}var ln;ln=!1;function sn(c){return typeof c=="object"&&c!==null&&c.$$typeof===n}function hr(){{if(on.current){var c=re(on.current.type);if(c)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+c+"`."}return""}}function Us(c){return""}var vr={};function Vs(c){{var y=hr();if(!y){var j=typeof c=="string"?c:c.displayName||c.name;j&&(y=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+j+">.")}return y}}function gr(c,y){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var j=Vs(y);if(vr[j])return;vr[j]=!0;var M="";c&&c._owner&&c._owner!==on.current&&(M=" It was passed a child from "+re(c._owner.type)+"."),Ue(c),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,M),Ue(null)}}function br(c,y){{if(typeof c!="object")return;if(nn(c))for(var j=0;j<c.length;j++){var M=c[j];sn(M)&&gr(M,y)}else if(sn(c))c._store&&(c._store.validated=!0);else if(c){var G=g(c);if(typeof G=="function"&&G!==c.entries)for(var ne=G.call(c),U;!(U=ne.next()).done;)sn(U.value)&&gr(U.value,y)}}}function Ys(c){{var y=c.type;if(y==null||typeof y=="string")return;var j;if(typeof y=="function")j=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===a||y.$$typeof===h))j=y.propTypes;else return;if(j){var M=re(y);Ps(j,c.props,"prop",M,c)}else if(y.PropTypes!==void 0&&!ln){ln=!0;var G=re(y);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qs(c){{for(var y=Object.keys(c.props),j=0;j<y.length;j++){var M=y[j];if(M!=="children"&&M!=="key"){Ue(c),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M),Ue(null);break}}c.ref!==null&&(Ue(c),w("Invalid attribute `ref` supplied to `React.Fragment`."),Ue(null))}}var xr={};function wr(c,y,j,M,G,ne){{var U=D(c);if(!U){var z="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=Us();xe?z+=xe:z+=hr();var de;c===null?de="null":nn(c)?de="array":c!==void 0&&c.$$typeof===n?(de="<"+(re(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):de=typeof c,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,z)}var fe=Hs(c,y,j,G,ne);if(fe==null)return fe;if(U){var Se=y.children;if(Se!==void 0)if(M)if(nn(Se)){for(var Ve=0;Ve<Se.length;Ve++)br(Se[Ve],c);Object.freeze&&Object.freeze(Se)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else br(Se,c)}if(it.call(y,"key")){var Be=re(c),ye=Object.keys(y).filter(function(Qs){return Qs!=="key"}),an=ye.length>0?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}";if(!xr[Be+an]){var Xs=ye.length>0?"{"+ye.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,an,Be,Xs,Be),xr[Be+an]=!0}}return c===r?qs(fe):Ys(fe),fe}}function Ks(c,y,j){return wr(c,y,j,!0)}function Zs(c,y,j){return wr(c,y,j,!1)}var Gs=Zs,Js=Ks;qe.Fragment=r,qe.jsx=Gs,qe.jsxs=Js}()),qe}process.env.NODE_ENV==="production"?Tt.exports=Sr():Tt.exports=Tr();var p=Tt.exports;function Ke(e,n,t){let r=t.initialDeps??[],o;return()=>{var i,l,s,a;let d;t.key&&((i=t.debug)!=null&&i.call(t))&&(d=Date.now());const f=e();if(!(f.length!==r.length||f.some((m,b)=>r[b]!==m)))return o;r=f;let x;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(x=Date.now()),o=n(...f),t.key&&((s=t.debug)!=null&&s.call(t))){const m=Math.round((Date.now()-d)*100)/100,b=Math.round((Date.now()-x)*100)/100,v=b/16,g=(S,w)=>{for(S=String(S);S.length<w;)S=" "+S;return S};console.info(`%c⏱ ${g(b,5)} /${g(m,5)} ms`,`
|
|
31
|
+
font-size: .6rem;
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(a=t==null?void 0:t.onChange)==null||a.call(t,o),o}}function Ct(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}const Cr=(e,n)=>Math.abs(e-n)<1,Or=(e,n,t)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>n.apply(this,o),t)}},jr=e=>e,Ir=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=n;o<=t;o++)r.push(o);return r},kr=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:s,height:a}=l;n({width:Math.round(s),height:Math.round(a)})};if(o(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(l=>{const s=l[0];if(s!=null&&s.borderBoxSize){const a=s.borderBoxSize[0];if(a){o({width:a.inlineSize,height:a.blockSize});return}}o(t.getBoundingClientRect())});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},fn={passive:!0},Fr=typeof window>"u"?!0:"onscrollend"in window,$r=(e,n)=>{const t=e.scrollElement;if(!t)return;const r=e.targetWindow;if(!r)return;let o=0;const i=Fr?()=>{}:Or(r,()=>{n(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=t[e.options.horizontal?"scrollLeft":"scrollTop"],i(),n(o,d)},s=l(!0),a=l(!1);return a(),t.addEventListener("scroll",s,fn),t.addEventListener("scrollend",a,fn),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",a)}},Pr=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const r=n.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Nr=(e,{adjustments:n=0,behavior:t},r)=>{var o,i;const l=e+n;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:t})};class Mr{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,o])=>{typeof o>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jr,rangeExtractor:Ir,onChange:()=>{},measureElement:Pr,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,r)=>{var o,i;const{startIndex:l,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(t||l!==(a==null?void 0:a.startIndex)||s!==(a==null?void 0:a.endIndex))&&((i=(o=this.options).onChange)==null||i.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.notify(!1,!1);return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=i,this.notify(l!==i,i)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const o=new Map,i=new Map;for(let l=r-1;l>=0;l--){const s=t[l];if(o.has(s.lane))continue;const a=i.get(s.lane);if(a==null||s.end>a.end?i.set(s.lane,s):s.end<a.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((l,s)=>l.end===s.end?l.index-s.index:l.end-s.end)[0]:void 0},this.getMeasurementOptions=Ke(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,o,i,l)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l}),{key:!1}),this.getMeasurements=Ke(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:l},s)=>{var a;if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,d);for(let h=d;h<t;h++){let x=(a=this.measurementsCache[h])==null?void 0:a.measureElement;x||(x=O=>{const k=i(h),F=this.elementsCache.get(k);if(!O){F&&(this.observer.unobserve(F),this.elementsCache.delete(k));return}F!==O&&(F&&this.observer.unobserve(F),this.observer.observe(O),this.elementsCache.set(k,O)),O.isConnected&&this.resizeItem(h,this.options.measureElement(O,void 0,this))});const m=i(h),b=this.options.lanes===1?f[h-1]:this.getFurthestMeasurement(f,h),v=b?b.end+this.options.gap:r+o,g=s.get(m),S=typeof g=="number"?g:this.options.estimateSize(h),w=v+S,C=b?b.lane:h%this.options.lanes;f[h]={index:h,start:v,size:S,end:w,key:m,lane:C,measureElement:x}}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Ke(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,o)=>this.range=t.length>0&&r>0?Dr({measurements:t,outerSize:r,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Ke(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,o,i)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,o=t.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const o=this.indexFromElement(t),i=this.getMeasurements()[o];if(!i||!t.isConnected){this.elementsCache.forEach((s,a)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(a))});return}const l=this.elementsCache.get(i.key);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(i.key,t)),this.resizeItem(o,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const o=this.getMeasurements()[t];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,l=r-i;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,l,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",l),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=Ke(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const o=[];for(let i=0,l=t.length;i<l;i++){const s=t[i],a=r[s];o.push(a)}return o},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return Ct(r[pn(0,r.length-1,o=>Ct(r[o]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const o=this.getSize(),i=this.getScrollOffset();r==="auto"&&(t<=i?r="start":t>=i+o?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-o:r==="center"&&(t=t-o/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-o;return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.getMeasurements()[t];if(!o)return;const i=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(o.end>=l+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=l+this.options.scrollPaddingStart)r="start";else return[l,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(t,{align:r="auto",behavior:o}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(t,r);if(!i)return;const[l,s]=i;this._scrollToOffset(l,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[d]=Ct(this.getOffsetForIndex(t,s));Cr(d,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:o})}else this.scrollToIndex(t,{align:s,behavior:o})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:r,behavior:o})=>{this.options.scrollToFn(t,{behavior:o,adjustments:r},this)},this.measure=()=>{var t,r;this.itemSizeCache=new Map,(r=(t=this.options).onChange)==null||r.call(t,this,!1)},this.setOptions(n)}}const pn=(e,n,t,r)=>{for(;e<=n;){const o=(e+n)/2|0,i=t(o);if(i<r)e=o+1;else if(i>r)n=o-1;else return o}return e>0?e-1:0};function Dr({measurements:e,outerSize:n,scrollOffset:t}){const r=e.length-1,i=pn(0,r,s=>e[s].start,t);let l=i;for(;l<r&&e[l].end<t+n;)l++;return{startIndex:i,endIndex:l}}const Ar=typeof document<"u"?T.useLayoutEffect:T.useEffect;function Lr(e){const n=T.useReducer(()=>({}),{})[1],t={...e,onChange:(o,i)=>{var l;i?un.flushSync(n):n(),(l=e.onChange)==null||l.call(e,o,i)}},[r]=T.useState(()=>new Mr(t));return r.setOptions(t),T.useEffect(()=>r._didMount(),[]),Ar(()=>r._willUpdate()),r}function _r(e){return Lr({observeElementRect:kr,observeElementOffset:$r,scrollToFn:Nr,...e})}var Rr=Object.defineProperty,Br=(e,n,t)=>n in e?Rr(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,Ot=(e,n,t)=>(Br(e,typeof n!="symbol"?n+"":n,t),t);let zr=class{constructor(){Ot(this,"current",this.detect()),Ot(this,"handoffState","pending"),Ot(this,"currentId",0)}set(n){this.current!==n&&(this.handoffState="pending",this.currentId=0,this.current=n)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},je=new zr,J=(e,n)=>{je.isServer?u.useEffect(e,n):u.useLayoutEffect(e,n)};function Te(e){let n=u.useRef(e);return J(()=>{n.current=e},[e]),n}function jt(e,n){let[t,r]=u.useState(e),o=Te(e);return J(()=>r(o.current),[o,r,...n]),t}let I=function(e){let n=Te(e);return u.useCallback((...t)=>n.current(...t),[n])};function mn(e,n,t){let[r,o]=u.useState(t),i=e!==void 0,l=u.useRef(i),s=u.useRef(!1),a=u.useRef(!1);return i&&!l.current&&!s.current?(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&l.current&&!a.current&&(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,I(d=>(i||o(d),n==null?void 0:n(d)))]}function st(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(n=>setTimeout(()=>{throw n}))}function Ee(){let e=[],n={addEventListener(t,r,o,i){return t.addEventListener(r,o,i),n.add(()=>t.removeEventListener(r,o,i))},requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(r))},nextFrame(...t){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(...t){let r=setTimeout(...t);return n.add(()=>clearTimeout(r))},microTask(...t){let r={current:!0};return st(()=>{r.current&&t[0]()}),n.add(()=>{r.current=!1})},style(t,r,o){let i=t.style.getPropertyValue(r);return Object.assign(t.style,{[r]:o}),this.add(()=>{Object.assign(t.style,{[r]:i})})},group(t){let r=Ee();return t(r),this.add(()=>r.dispose())},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let t of e.splice(0))t()}};return n}function Ie(){let[e]=u.useState(Ee);return u.useEffect(()=>()=>e.dispose(),[e]),e}function Wr(){let e=typeof document>"u";return"useSyncExternalStore"in T?(n=>n.useSyncExternalStore)(T)(()=>()=>{},()=>!1,()=>!e):!1}function ze(){let e=Wr(),[n,t]=T.useState(je.isHandoffComplete);return n&&je.isHandoffComplete===!1&&t(!1),T.useEffect(()=>{n!==!0&&t(!0)},[n]),T.useEffect(()=>je.handoff(),[]),e?!1:n}var hn;let ve=(hn=u.useId)!=null?hn:function(){let e=ze(),[n,t]=u.useState(e?()=>je.nextId():null);return J(()=>{n===null&&t(je.nextId())},[n]),n!=null?""+n:void 0};function le(e,n,...t){if(e in n){let o=n[e];return typeof o=="function"?o(...t):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,le),r}function at(e){return je.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let It=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ke=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ke||{}),vn=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vn||{}),Hr=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Hr||{});function gn(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(It)).sort((n,t)=>Math.sign((n.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var kt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(kt||{});function Ft(e,n=0){var t;return e===((t=at(e))==null?void 0:t.body)?!1:le(n,{0(){return e.matches(It)},1(){let r=e;for(;r!==null;){if(r.matches(It))return!0;r=r.parentElement}return!1}})}function bn(e){let n=at(e);Ee().nextFrame(()=>{n&&!Ft(n.activeElement,0)&&$e(e)})}var Ur=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ur||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function $e(e){e==null||e.focus({preventScroll:!0})}let Vr=["textarea","input"].join(",");function Yr(e){var n,t;return(t=(n=e==null?void 0:e.matches)==null?void 0:n.call(e,Vr))!=null?t:!1}function $t(e,n=t=>t){return e.slice().sort((t,r)=>{let o=n(t),i=n(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function qr(e,n){return Ze(gn(),n,{relativeTo:e})}function Ze(e,n,{sorted:t=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?t?$t(e):e:gn(e);o.length>0&&l.length>1&&(l=l.filter(m=>!o.includes(m))),r=r??i.activeElement;let s=(()=>{if(n&5)return 1;if(n&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=(()=>{if(n&1)return 0;if(n&2)return Math.max(0,l.indexOf(r))-1;if(n&4)return Math.max(0,l.indexOf(r))+1;if(n&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=n&32?{preventScroll:!0}:{},f=0,h=l.length,x;do{if(f>=h||f+h<=0)return 0;let m=a+f;if(n&16)m=(m+h)%h;else{if(m<0)return 3;if(m>=h)return 1}x=l[m],x==null||x.focus(d),f+=s}while(x!==i.activeElement);return n&6&&Yr(x)&&x.select(),2}function xn(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Kr(){return/Android/gi.test(window.navigator.userAgent)}function wn(){return xn()||Kr()}function ut(e,n,t){let r=Te(n);u.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,t),()=>document.removeEventListener(e,o,t)},[e,t])}function yn(e,n,t){let r=Te(n);u.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,t),()=>window.removeEventListener(e,o,t)},[e,t])}function Pt(e,n,t=!0){let r=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{r.current=t})},[t]);function o(l,s){if(!r.current||l.defaultPrevented)return;let a=s(l);if(a===null||!a.getRootNode().contains(a)||!a.isConnected)return;let d=function f(h){return typeof h=="function"?f(h()):Array.isArray(h)||h instanceof Set?h:[h]}(e);for(let f of d){if(f===null)continue;let h=f instanceof HTMLElement?f:f.current;if(h!=null&&h.contains(a)||l.composed&&l.composedPath().includes(h))return}return!Ft(a,kt.Loose)&&a.tabIndex!==-1&&l.preventDefault(),n(l,a)}let i=u.useRef(null);ut("pointerdown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ut("mousedown",l=>{var s,a;r.current&&(i.current=((a=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:a[0])||l.target)},!0),ut("click",l=>{wn()||i.current&&(o(l,()=>i.current),i.current=null)},!0),ut("touchend",l=>o(l,()=>l.target instanceof HTMLElement?l.target:null),!0),yn("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ae(...e){return u.useMemo(()=>at(...e),[...e])}function En(e){var n;if(e.type)return e.type;let t=(n=e.as)!=null?n:"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Nt(e,n){let[t,r]=u.useState(()=>En(e));return J(()=>{r(En(e))},[e.type,e.as]),J(()=>{t||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&r("button")},[t,n]),t}let Sn=Symbol();function Zr(e,n=!0){return Object.assign(e,{[Sn]:n})}function ue(...e){let n=u.useRef(e);u.useEffect(()=>{n.current=e},[e]);let t=I(r=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Sn]))?void 0:t}function Tn(e){return[e.screenX,e.screenY]}function Cn(){let e=u.useRef([-1,-1]);return{wasMoved(n){let t=Tn(n);return e.current[0]===t[0]&&e.current[1]===t[1]?!1:(e.current=t,!0)},update(n){e.current=Tn(n)}}}function On({container:e,accept:n,walk:t,enabled:r=!0}){let o=u.useRef(n),i=u.useRef(t);u.useEffect(()=>{o.current=n,i.current=t},[n,t]),J(()=>{if(!e||!r)return;let l=at(e);if(!l)return;let s=o.current,a=i.current,d=Object.assign(h=>s(h),{acceptNode:s}),f=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;f.nextNode();)a(f.currentNode)},[e,r,o,i])}function Ge(e,n){let t=u.useRef([]),r=I(e);u.useEffect(()=>{let o=[...t.current];for(let[i,l]of n.entries())if(t.current[i]!==l){let s=r(n,o);return t.current=n,s}},[r,...n])}function ct(...e){return Array.from(new Set(e.flatMap(n=>typeof n=="string"?n.split(" "):[]))).filter(Boolean).join(" ")}var Pe=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pe||{}),Ne=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ne||{});function oe({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:s}){s=s??Gr;let a=jn(n,e);if(i)return dt(a,t,r,l,s);let d=o??0;if(d&2){let{static:f=!1,...h}=a;if(f)return dt(h,t,r,l,s)}if(d&1){let{unmount:f=!0,...h}=a;return le(f?0:1,{0(){return null},1(){return dt({...h,hidden:!0,style:{display:"none"}},t,r,l,s)}})}return dt(a,t,r,l,s)}function dt(e,n={},t,r,o){let{as:i=t,children:l,refName:s="ref",...a}=Mt(e,["unmount","static"]),d=e.ref!==void 0?{[s]:e.ref}:{},f=typeof l=="function"?l(n):l;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(n));let h={};if(n){let x=!1,m=[];for(let[b,v]of Object.entries(n))typeof v=="boolean"&&(x=!0),v===!0&&m.push(b);x&&(h["data-headlessui-state"]=m.join(" "))}if(i===u.Fragment&&Object.keys(ft(a)).length>0){if(!u.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(v=>` - ${v}`).join(`
|
|
34
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
35
|
+
`)].join(`
|
|
36
|
+
`));let x=f.props,m=typeof(x==null?void 0:x.className)=="function"?(...v)=>ct(x==null?void 0:x.className(...v),a.className):ct(x==null?void 0:x.className,a.className),b=m?{className:m}:{};return u.cloneElement(f,Object.assign({},jn(f.props,ft(Mt(a,["ref"]))),h,d,{ref:o(f.ref,d.ref)},b))}return u.createElement(i,Object.assign({},Mt(a,["ref"]),i!==u.Fragment&&d,i!==u.Fragment&&h),f)}function Gr(...e){return e.every(n=>n==null)?void 0:n=>{for(let t of e)t!=null&&(typeof t=="function"?t(n):t.current=n)}}function jn(...e){if(e.length===0)return{};if(e.length===1)return e[0];let n={},t={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(t[o]!=null||(t[o]=[]),t[o].push(r[o])):n[o]=r[o];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map(r=>[r,void 0])));for(let r in t)Object.assign(n,{[r](o,...i){let l=t[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return n}function ie(e){var n;return Object.assign(u.forwardRef(e),{displayName:(n=e.displayName)!=null?n:e.name})}function ft(e){let n=Object.assign({},e);for(let t in n)n[t]===void 0&&delete n[t];return n}function Mt(e,n=[]){let t=Object.assign({},e);for(let r of n)r in t&&delete t[r];return t}let Jr="div";var We=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(We||{});function Xr(e,n){var t;let{features:r=1,...o}=e,i={ref:n,"aria-hidden":(r&2)===2?!0:(t=o["aria-hidden"])!=null?t:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return oe({ourProps:i,theirProps:o,slot:{},defaultTag:Jr,name:"Hidden"})}let Je=ie(Xr),Dt=u.createContext(null);Dt.displayName="OpenClosedContext";var ce=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ce||{});function Xe(){return u.useContext(Dt)}function At({value:e,children:n}){return u.createElement(Dt.Provider,{value:e},n)}function Qr(e){function n(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",n))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}let Oe=[];Qr(()=>{function e(n){n.target instanceof HTMLElement&&n.target!==document.body&&Oe[0]!==n.target&&(Oe.unshift(n.target),Oe=Oe.filter(t=>t!=null&&t.isConnected),Oe.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function pt(e){let n=e.parentElement,t=null;for(;n&&!(n instanceof HTMLFieldSetElement);)n instanceof HTMLLegendElement&&(t=n),n=n.parentElement;let r=(n==null?void 0:n.getAttribute("disabled"))==="";return r&&eo(t)?!1:r}function eo(e){if(!e)return!1;let n=e.previousElementSibling;for(;n!==null;){if(n instanceof HTMLLegendElement)return!1;n=n.previousElementSibling}return!0}function to(e){throw new Error("Unexpected object: "+e)}var X=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(X||{});function Lt(e,n){let t=n.resolveItems();if(t.length<=0)return null;let r=n.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 1:{for(let i=o-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 2:{for(let i=o+1;i<t.length;++i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 3:{for(let i=t.length-1;i>=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return r}case 4:{for(let i=0;i<t.length;++i)if(n.resolveId(t[i],i,t)===e.id)return i;return r}case 5:return null;default:to(e)}}function In(e={},n=null,t=[]){for(let[r,o]of Object.entries(e))Fn(t,kn(n,r),o);return t}function kn(e,n){return e?e+"["+n+"]":n}function Fn(e,n,t){if(Array.isArray(t))for(let[r,o]of t.entries())Fn(e,kn(n,r.toString()),o);else t instanceof Date?e.push([n,t.toISOString()]):typeof t=="boolean"?e.push([n,t?"1":"0"]):typeof t=="string"?e.push([n,t]):typeof t=="number"?e.push([n,`${t}`]):t==null?e.push([n,""]):In(t,n,e)}function no(e){var n,t;let r=(n=e==null?void 0:e.form)!=null?n:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(t=r.requestSubmit)==null||t.call(r)}}var Y=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Y||{}),ro=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ro||{}),oo=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oo||{}),io=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(io||{}),lo=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(lo||{});function _t(e,n=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=n(e.options.slice()),o=r.length>0&&r[0].dataRef.current.order!==null?r.sort((l,s)=>l.dataRef.current.order-s.dataRef.current.order):$t(r,l=>l.dataRef.current.domRef.current),i=t?o.indexOf(t):null;return i===-1&&(i=null),{options:o,activeOptionIndex:i}}let so={1(e){var n;return(n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var n,t;if((n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===0)return e;if((t=e.dataRef.current)!=null&&t.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,n){var t,r,o,i,l;if((t=e.dataRef.current)!=null&&t.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((o=e.dataRef.current)!=null&&o.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let f=n.focus===X.Specific?n.idx:Lt(n,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var x,m;return(m=(x=e.activeOptionIndex)!=null?x:e.virtual.options.findIndex(b=>!e.virtual.disabled(b)))!=null?m:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),h=(i=n.trigger)!=null?i:2;return e.activeOptionIndex===f&&e.activationTrigger===h?e:{...e,activeOptionIndex:f,activationTrigger:h}}let s=_t(e);if(s.activeOptionIndex===null){let f=s.options.findIndex(h=>!h.dataRef.current.disabled);f!==-1&&(s.activeOptionIndex=f)}let a=n.focus===X.Specific?n.idx:Lt(n,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled}),d=(l=n.trigger)!=null?l:2;return e.activeOptionIndex===a&&e.activationTrigger===d?e:{...e,...s,activeOptionIndex:a,activationTrigger:d}},3:(e,n)=>{var t,r,o;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:[...e.options,n.payload]};let i=n.payload,l=_t(e,a=>(a.push(i),a));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(n.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(i));let s={...e,...l,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(e,n)=>{var t;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:e.options.filter(o=>o.id!==n.id)};let r=_t(e,o=>{let i=o.findIndex(l=>l.id===n.id);return i!==-1&&o.splice(i,1),o});return{...e,...r,activationTrigger:2}},5:(e,n)=>e.labelId===n.id?e:{...e,labelId:n.id},6:(e,n)=>e.activationTrigger===n.trigger?e:{...e,activationTrigger:n.trigger},7:(e,n)=>{var t;if(((t=e.virtual)==null?void 0:t.options)===n.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=n.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?r=o:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:n.options})}}},Rt=u.createContext(null);Rt.displayName="ComboboxActionsContext";function Qe(e){let n=u.useContext(Rt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Qe),t}return n}let $n=u.createContext(null);function ao(e){var n;let t=Le("VirtualProvider"),[r,o]=u.useMemo(()=>{let a=t.optionsRef.current;if(!a)return[0,0];let d=window.getComputedStyle(a);return[parseFloat(d.paddingBlockStart||d.paddingTop),parseFloat(d.paddingBlockEnd||d.paddingBottom)]},[t.optionsRef.current]),i=_r({scrollPaddingStart:r,scrollPaddingEnd:o,count:t.virtual.options.length,estimateSize(){return 40},getScrollElement(){var a;return(a=t.optionsRef.current)!=null?a:null},overscan:12}),[l,s]=u.useState(0);return J(()=>{s(a=>a+1)},[(n=t.virtual)==null?void 0:n.options]),u.createElement($n.Provider,{value:i},u.createElement("div",{style:{position:"relative",width:"100%",height:`${i.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||t.activationTrigger===0)return;t.activeOptionIndex!==null&&t.virtual.options.length>t.activeOptionIndex&&i.scrollToIndex(t.activeOptionIndex)}}},i.getVirtualItems().map(a=>{var d;return u.createElement(u.Fragment,{key:a.key},u.cloneElement((d=e.children)==null?void 0:d.call(e,{option:t.virtual.options[a.index],open:t.comboboxState===0}),{key:`${l}-${a.key}`,"data-index":a.index,"aria-setsize":t.virtual.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}}))})))}let Bt=u.createContext(null);Bt.displayName="ComboboxDataContext";function Le(e){let n=u.useContext(Bt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Le),t}return n}function uo(e,n){return le(n.type,so,e,n)}let co=u.Fragment;function fo(e,n){let{value:t,defaultValue:r,onChange:o,form:i,name:l,by:s=null,disabled:a=!1,__demoMode:d=!1,nullable:f=!1,multiple:h=!1,immediate:x=!1,virtual:m=null,...b}=e,v=!1,g=null,[S=h?[]:void 0,w]=mn(t,o,r),[C,O]=u.useReducer(uo,{dataRef:u.createRef(),comboboxState:d?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),k=u.useRef(!1),F=u.useRef({static:!1,hold:!1}),B=u.useRef(null),V=u.useRef(null),A=u.useRef(null),D=u.useRef(null),_=I(typeof s=="string"?(N,H)=>{let R=s;return(N==null?void 0:N[R])===(H==null?void 0:H[R])}:s??((N,H)=>N===H)),Z=I(N=>C.options.findIndex(H=>_(H.dataRef.current.value,N))),re=u.useCallback(N=>le(E.mode,{1:()=>S.some(H=>_(H,N)),0:()=>_(S,N)}),[S]),L=I(N=>C.activeOptionIndex===Z(N)),E=u.useMemo(()=>({...C,immediate:v,optionsPropsRef:F,labelRef:B,inputRef:V,buttonRef:A,optionsRef:D,value:S,defaultValue:r,disabled:a,mode:h?1:0,virtual:C.virtual,get activeOptionIndex(){if(k.current&&C.activeOptionIndex===null&&C.options.length>0){let N=C.options.findIndex(H=>!H.dataRef.current.disabled);if(N!==-1)return N}return C.activeOptionIndex},calculateIndex:Z,compare:_,isSelected:re,isActive:L,nullable:f,__demoMode:d}),[S,r,a,h,f,d,C,g]);J(()=>{},[g,void 0]),J(()=>{C.dataRef.current=E},[E]),Pt([E.buttonRef,E.inputRef,E.optionsRef],()=>P.closeCombobox(),E.comboboxState===0);let ae=u.useMemo(()=>{var N,H,R;return{open:E.comboboxState===0,disabled:a,activeIndex:E.activeOptionIndex,activeOption:E.activeOptionIndex===null?null:E.virtual?E.virtual.options[(N=E.activeOptionIndex)!=null?N:0]:(R=(H=E.options[E.activeOptionIndex])==null?void 0:H.dataRef.current.value)!=null?R:null,value:S}},[E,a,S]),W=I(()=>{if(E.activeOptionIndex!==null){if(E.virtual)Ce(E.virtual.options[E.activeOptionIndex]);else{let{dataRef:N}=E.options[E.activeOptionIndex];Ce(N.current.value)}P.goToOption(X.Specific,E.activeOptionIndex)}}),se=I(()=>{O({type:0}),k.current=!0}),K=I(()=>{O({type:1}),k.current=!1}),ee=I((N,H,R)=>(k.current=!1,N===X.Specific?O({type:2,focus:X.Specific,idx:H,trigger:R}):O({type:2,focus:N,trigger:R}))),pe=I((N,H)=>(O({type:3,payload:{id:N,dataRef:H}}),()=>{E.isActive(H.current.value)&&(k.current=!0),O({type:4,id:N})})),ge=I(N=>(O({type:5,id:N}),()=>O({type:5,id:null}))),Ce=I(N=>le(E.mode,{0(){return w==null?void 0:w(N)},1(){let H=E.value.slice(),R=H.findIndex(me=>_(me,N));return R===-1?H.push(N):H.splice(R,1),w==null?void 0:w(H)}})),be=I(N=>{O({type:6,trigger:N})}),P=u.useMemo(()=>({onChange:Ce,registerOption:pe,registerLabel:ge,goToOption:ee,closeCombobox:K,openCombobox:se,setActivationTrigger:be,selectActiveOption:W}),[]),q=n===null?{}:{ref:n},te=u.useRef(null),we=Ie();return u.useEffect(()=>{te.current&&r!==void 0&&we.addEventListener(te.current,"reset",()=>{w==null||w(r)})},[te,w]),u.createElement(Rt.Provider,{value:P},u.createElement(Bt.Provider,{value:E},u.createElement(At,{value:le(E.comboboxState,{0:ce.Open,1:ce.Closed})},l!=null&&S!=null&&In({[l]:S}).map(([N,H],R)=>u.createElement(Je,{features:We.Hidden,ref:R===0?me=>{var he;te.current=(he=me==null?void 0:me.closest("form"))!=null?he:null}:void 0,...ft({key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:a,name:N,value:H})})),oe({ourProps:q,theirProps:b,slot:ae,defaultTag:co,name:"Combobox"}))))}let po="input";function mo(e,n){var t,r,o,i,l;let s=ve(),{id:a=`headlessui-combobox-input-${s}`,onChange:d,displayValue:f,type:h="text",...x}=e,m=Le("Combobox.Input"),b=Qe("Combobox.Input"),v=ue(m.inputRef,n),g=Ae(m.inputRef),S=u.useRef(!1),w=Ie(),C=I(()=>{b.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),b.goToOption(X.Nothing)}),O=function(){var E;return typeof f=="function"&&m.value!==void 0?(E=f(m.value))!=null?E:"":typeof m.value=="string"?m.value:""}();Ge(([E,ae],[W,se])=>{if(S.current)return;let K=m.inputRef.current;K&&((se===0&&ae===1||E!==W)&&(K.value=E),requestAnimationFrame(()=>{if(S.current||!K||(g==null?void 0:g.activeElement)!==K)return;let{selectionStart:ee,selectionEnd:pe}=K;Math.abs((pe??0)-(ee??0))===0&&ee===0&&K.setSelectionRange(K.value.length,K.value.length)}))},[O,m.comboboxState,g]),Ge(([E],[ae])=>{if(E===0&&ae===1){if(S.current)return;let W=m.inputRef.current;if(!W)return;let se=W.value,{selectionStart:K,selectionEnd:ee,selectionDirection:pe}=W;W.value="",W.value=se,pe!==null?W.setSelectionRange(K,ee,pe):W.setSelectionRange(K,ee)}},[m.comboboxState]);let k=u.useRef(!1),F=I(()=>{k.current=!0}),B=I(()=>{w.nextFrame(()=>{k.current=!1})}),V=I(E=>{switch(S.current=!0,E.key){case Y.Enter:if(S.current=!1,m.comboboxState!==0||k.current)return;if(E.preventDefault(),E.stopPropagation(),m.activeOptionIndex===null){b.closeCombobox();return}b.selectActiveOption(),m.mode===0&&b.closeCombobox();break;case Y.ArrowDown:return S.current=!1,E.preventDefault(),E.stopPropagation(),le(m.comboboxState,{0:()=>b.goToOption(X.Next),1:()=>b.openCombobox()});case Y.ArrowUp:return S.current=!1,E.preventDefault(),E.stopPropagation(),le(m.comboboxState,{0:()=>b.goToOption(X.Previous),1:()=>{b.openCombobox(),w.nextFrame(()=>{m.value||b.goToOption(X.Last)})}});case Y.Home:if(E.shiftKey)break;return S.current=!1,E.preventDefault(),E.stopPropagation(),b.goToOption(X.First);case Y.PageUp:return S.current=!1,E.preventDefault(),E.stopPropagation(),b.goToOption(X.First);case Y.End:if(E.shiftKey)break;return S.current=!1,E.preventDefault(),E.stopPropagation(),b.goToOption(X.Last);case Y.PageDown:return S.current=!1,E.preventDefault(),E.stopPropagation(),b.goToOption(X.Last);case Y.Escape:return S.current=!1,m.comboboxState!==0?void 0:(E.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&E.stopPropagation(),m.nullable&&m.mode===0&&m.value===null&&C(),b.closeCombobox());case Y.Tab:if(S.current=!1,m.comboboxState!==0)return;m.mode===0&&m.activationTrigger!==1&&b.selectActiveOption(),b.closeCombobox();break}}),A=I(E=>{d==null||d(E),m.nullable&&m.mode===0&&E.target.value===""&&C(),b.openCombobox()}),D=I(E=>{var ae,W,se;let K=(ae=E.relatedTarget)!=null?ae:Oe.find(ee=>ee!==E.currentTarget);if(S.current=!1,!((W=m.optionsRef.current)!=null&&W.contains(K))&&!((se=m.buttonRef.current)!=null&&se.contains(K))&&m.comboboxState===0)return E.preventDefault(),m.mode===0&&(m.nullable&&m.value===null?C():m.activationTrigger!==1&&b.selectActiveOption()),b.closeCombobox()}),_=I(E=>{var ae,W,se;let K=(ae=E.relatedTarget)!=null?ae:Oe.find(ee=>ee!==E.currentTarget);(W=m.buttonRef.current)!=null&&W.contains(K)||(se=m.optionsRef.current)!=null&&se.contains(K)||m.disabled||m.immediate&&m.comboboxState!==0&&(b.openCombobox(),w.nextFrame(()=>{b.setActivationTrigger(1)}))}),Z=jt(()=>{if(m.labelId)return[m.labelId].join(" ")},[m.labelId]),re=u.useMemo(()=>({open:m.comboboxState===0,disabled:m.disabled}),[m]),L={ref:v,id:a,role:"combobox",type:h,"aria-controls":(t=m.optionsRef.current)==null?void 0:t.id,"aria-expanded":m.comboboxState===0,"aria-activedescendant":m.activeOptionIndex===null?void 0:m.virtual?(r=m.options.find(E=>{var ae;return!((ae=m.virtual)!=null&&ae.disabled(E.dataRef.current.value))&&m.compare(E.dataRef.current.value,m.virtual.options[m.activeOptionIndex])}))==null?void 0:r.id:(o=m.options[m.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":Z,"aria-autocomplete":"list",defaultValue:(l=(i=e.defaultValue)!=null?i:m.defaultValue!==void 0?f==null?void 0:f(m.defaultValue):null)!=null?l:m.defaultValue,disabled:m.disabled,onCompositionStart:F,onCompositionEnd:B,onKeyDown:V,onChange:A,onFocus:_,onBlur:D};return oe({ourProps:L,theirProps:x,slot:re,defaultTag:po,name:"Combobox.Input"})}let ho="button";function vo(e,n){var t;let r=Le("Combobox.Button"),o=Qe("Combobox.Button"),i=ue(r.buttonRef,n),l=ve(),{id:s=`headlessui-combobox-button-${l}`,...a}=e,d=Ie(),f=I(v=>{switch(v.key){case Y.ArrowDown:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&o.openCombobox(),d.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case Y.ArrowUp:return v.preventDefault(),v.stopPropagation(),r.comboboxState===1&&(o.openCombobox(),d.nextFrame(()=>{r.value||o.goToOption(X.Last)})),d.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})});case Y.Escape:return r.comboboxState!==0?void 0:(v.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&v.stopPropagation(),o.closeCombobox(),d.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})}));default:return}}),h=I(v=>{if(pt(v.currentTarget))return v.preventDefault();r.comboboxState===0?o.closeCombobox():(v.preventDefault(),o.openCombobox()),d.nextFrame(()=>{var g;return(g=r.inputRef.current)==null?void 0:g.focus({preventScroll:!0})})}),x=jt(()=>{if(r.labelId)return[r.labelId,s].join(" ")},[r.labelId,s]),m=u.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),b={ref:i,id:s,type:Nt(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=r.optionsRef.current)==null?void 0:t.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":x,disabled:r.disabled,onClick:h,onKeyDown:f};return oe({ourProps:b,theirProps:a,slot:m,defaultTag:ho,name:"Combobox.Button"})}let go="label";function bo(e,n){let t=ve(),{id:r=`headlessui-combobox-label-${t}`,...o}=e,i=Le("Combobox.Label"),l=Qe("Combobox.Label"),s=ue(i.labelRef,n);J(()=>l.registerLabel(r),[r]);let a=I(()=>{var f;return(f=i.inputRef.current)==null?void 0:f.focus({preventScroll:!0})}),d=u.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled}),[i]);return oe({ourProps:{ref:s,id:r,onClick:a},theirProps:o,slot:d,defaultTag:go,name:"Combobox.Label"})}let xo="ul",wo=Pe.RenderStrategy|Pe.Static;function yo(e,n){let t=ve(),{id:r=`headlessui-combobox-options-${t}`,hold:o=!1,...i}=e,l=Le("Combobox.Options"),s=ue(l.optionsRef,n),a=Xe(),d=a!==null?(a&ce.Open)===ce.Open:l.comboboxState===0;J(()=>{var m;l.optionsPropsRef.current.static=(m=e.static)!=null?m:!1},[l.optionsPropsRef,e.static]),J(()=>{l.optionsPropsRef.current.hold=o},[l.optionsPropsRef,o]),On({container:l.optionsRef.current,enabled:l.comboboxState===0,accept(m){return m.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:m.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(m){m.setAttribute("role","none")}});let f=jt(()=>{var m,b;return(b=l.labelId)!=null?b:(m=l.buttonRef.current)==null?void 0:m.id},[l.labelId,l.buttonRef.current]),h=u.useMemo(()=>({open:l.comboboxState===0,option:void 0}),[l]),x={"aria-labelledby":f,role:"listbox","aria-multiselectable":l.mode===1?!0:void 0,id:r,ref:s};return l.virtual&&l.comboboxState===0&&Object.assign(i,{children:u.createElement(ao,null,i.children)}),oe({ourProps:x,theirProps:i,slot:h,defaultTag:xo,features:wo,visible:d,name:"Combobox.Options"})}let Eo="li";function So(e,n){var t;let r=ve(),{id:o=`headlessui-combobox-option-${r}`,disabled:i=!1,value:l,order:s=null,...a}=e,d=Le("Combobox.Option"),f=Qe("Combobox.Option"),h=d.virtual?d.activeOptionIndex===d.calculateIndex(l):d.activeOptionIndex===null?!1:((t=d.options[d.activeOptionIndex])==null?void 0:t.id)===o,x=d.isSelected(l),m=u.useRef(null),b=Te({disabled:i,value:l,domRef:m,order:s}),v=u.useContext($n),g=ue(n,m,v?v.measureElement:null),S=I(()=>f.onChange(l));J(()=>f.registerOption(o,b),[b,o]);let w=u.useRef(!(d.virtual||d.__demoMode));J(()=>{if(!d.virtual||!d.__demoMode)return;let D=Ee();return D.requestAnimationFrame(()=>{w.current=!0}),D.dispose},[d.virtual,d.__demoMode]),J(()=>{if(!w.current||d.comboboxState!==0||!h||d.activationTrigger===0)return;let D=Ee();return D.requestAnimationFrame(()=>{var _,Z;(Z=(_=m.current)==null?void 0:_.scrollIntoView)==null||Z.call(_,{block:"nearest"})}),D.dispose},[m,h,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let C=I(D=>{var _;if(i||(_=d.virtual)!=null&&_.disabled(l))return D.preventDefault();S(),wn()||requestAnimationFrame(()=>{var Z;return(Z=d.inputRef.current)==null?void 0:Z.focus({preventScroll:!0})}),d.mode===0&&requestAnimationFrame(()=>f.closeCombobox())}),O=I(()=>{var D;if(i||(D=d.virtual)!=null&&D.disabled(l))return f.goToOption(X.Nothing);let _=d.calculateIndex(l);f.goToOption(X.Specific,_)}),k=Cn(),F=I(D=>k.update(D)),B=I(D=>{var _;if(!k.wasMoved(D)||i||(_=d.virtual)!=null&&_.disabled(l)||h)return;let Z=d.calculateIndex(l);f.goToOption(X.Specific,Z,0)}),V=I(D=>{var _;k.wasMoved(D)&&(i||(_=d.virtual)!=null&&_.disabled(l)||h&&(d.optionsPropsRef.current.hold||f.goToOption(X.Nothing)))}),A=u.useMemo(()=>({active:h,selected:x,disabled:i}),[h,x,i]);return oe({ourProps:{id:o,ref:g,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":x,disabled:void 0,onClick:C,onFocus:O,onPointerEnter:F,onMouseEnter:F,onPointerMove:B,onMouseMove:B,onPointerLeave:V,onMouseLeave:V},theirProps:a,slot:A,defaultTag:Eo,name:"Combobox.Option"})}let To=ie(fo),Co=ie(vo),Oo=ie(mo),jo=ie(bo),Io=ie(yo),ko=ie(So),Fe=Object.assign(To,{Input:Oo,Button:Co,Label:jo,Options:Io,Option:ko});function Pn(e,n,t,r){let o=Te(t);u.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(n,i,r),()=>e.removeEventListener(n,i,r)},[e,n,r])}function et(){let e=u.useRef(!1);return J(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Nn(e){let n=I(e),t=u.useRef(!1);u.useEffect(()=>(t.current=!1,()=>{t.current=!0,st(()=>{t.current&&n()})}),[n])}var tt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(tt||{});function Fo(){let e=u.useRef(0);return yn("keydown",n=>{n.key==="Tab"&&(e.current=n.shiftKey?1:0)},!0),e}function Mn(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let n=new Set;for(let t of e.current)t.current instanceof HTMLElement&&n.add(t.current);return n}let $o="div";var Dn=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Dn||{});function Po(e,n){let t=u.useRef(null),r=ue(t,n),{initialFocus:o,containers:i,features:l=30,...s}=e;ze()||(l=1);let a=Ae(t);Do({ownerDocument:a},!!(l&16));let d=Ao({ownerDocument:a,container:t,initialFocus:o},!!(l&2));Lo({ownerDocument:a,container:t,containers:i,previousActiveElement:d},!!(l&8));let f=Fo(),h=I(v=>{let g=t.current;g&&(S=>S())(()=>{le(f.current,{[tt.Forwards]:()=>{Ze(g,ke.First,{skipElements:[v.relatedTarget]})},[tt.Backwards]:()=>{Ze(g,ke.Last,{skipElements:[v.relatedTarget]})}})})}),x=Ie(),m=u.useRef(!1),b={ref:r,onKeyDown(v){v.key=="Tab"&&(m.current=!0,x.requestAnimationFrame(()=>{m.current=!1}))},onBlur(v){let g=Mn(i);t.current instanceof HTMLElement&&g.add(t.current);let S=v.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(An(g,S)||(m.current?Ze(t.current,le(f.current,{[tt.Forwards]:()=>ke.Next,[tt.Backwards]:()=>ke.Previous})|ke.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&$e(v.target)))}};return u.createElement(u.Fragment,null,!!(l&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:We.Focusable}),oe({ourProps:b,theirProps:s,defaultTag:$o,name:"FocusTrap"}),!!(l&4)&&u.createElement(Je,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:We.Focusable}))}let No=ie(Po),nt=Object.assign(No,{features:Dn});function Mo(e=!0){let n=u.useRef(Oe.slice());return Ge(([t],[r])=>{r===!0&&t===!1&&st(()=>{n.current.splice(0)}),r===!1&&t===!0&&(n.current=Oe.slice())},[e,Oe,n]),I(()=>{var t;return(t=n.current.find(r=>r!=null&&r.isConnected))!=null?t:null})}function Do({ownerDocument:e},n){let t=Mo(n);Ge(()=>{n||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&$e(t())},[n]),Nn(()=>{n&&$e(t())})}function Ao({ownerDocument:e,container:n,initialFocus:t},r){let o=u.useRef(null),i=et();return Ge(()=>{if(!r)return;let l=n.current;l&&st(()=>{if(!i.current)return;let s=e==null?void 0:e.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===s){o.current=s;return}}else if(l.contains(s)){o.current=s;return}t!=null&&t.current?$e(t.current):Ze(l,ke.First)===vn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Lo({ownerDocument:e,container:n,containers:t,previousActiveElement:r},o){let i=et();Pn(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let s=Mn(t);n.current instanceof HTMLElement&&s.add(n.current);let a=r.current;if(!a)return;let d=l.target;d&&d instanceof HTMLElement?An(s,d)?(r.current=d,$e(d)):(l.preventDefault(),l.stopPropagation(),$e(a)):$e(r.current)},!0)}function An(e,n){for(let t of e)if(t.contains(n))return!0;return!1}let Ln=u.createContext(!1);function _o(){return u.useContext(Ln)}function zt(e){return u.createElement(Ln.Provider,{value:e.force},e.children)}function Ro(e){let n=_o(),t=u.useContext(_n),r=Ae(e),[o,i]=u.useState(()=>{if(!n&&t!==null||je.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return u.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),u.useEffect(()=>{n||t!==null&&i(t.current)},[t,i,n]),o}let Bo=u.Fragment;function zo(e,n){let t=e,r=u.useRef(null),o=ue(Zr(f=>{r.current=f}),n),i=Ae(r),l=Ro(r),[s]=u.useState(()=>{var f;return je.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),a=u.useContext(Wt),d=ze();return J(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),J(()=>{if(s&&a)return a.register(s)},[a,s]),Nn(()=>{var f;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((f=l.parentElement)==null||f.removeChild(l)))}),d?!l||!s?null:un.createPortal(oe({ourProps:{ref:o},theirProps:t,defaultTag:Bo,name:"Portal"}),s):null}let Wo=u.Fragment,_n=u.createContext(null);function Ho(e,n){let{target:t,...r}=e,o={ref:ue(n)};return u.createElement(_n.Provider,{value:t},oe({ourProps:o,theirProps:r,defaultTag:Wo,name:"Popover.Group"}))}let Wt=u.createContext(null);function Uo(){let e=u.useContext(Wt),n=u.useRef([]),t=I(i=>(n.current.push(i),e&&e.register(i),()=>r(i))),r=I(i=>{let l=n.current.indexOf(i);l!==-1&&n.current.splice(l,1),e&&e.unregister(i)}),o=u.useMemo(()=>({register:t,unregister:r,portals:n}),[t,r,n]);return[n,u.useMemo(()=>function({children:i}){return u.createElement(Wt.Provider,{value:o},i)},[o])]}let Vo=ie(zo),Yo=ie(Ho),Ht=Object.assign(Vo,{Group:Yo});function qo(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}const Ko=typeof Object.is=="function"?Object.is:qo,{useState:Zo,useEffect:Go,useLayoutEffect:Jo,useDebugValue:Xo}=T;function Qo(e,n,t){const r=n(),[{inst:o},i]=Zo({inst:{value:r,getSnapshot:n}});return Jo(()=>{o.value=r,o.getSnapshot=n,Ut(o)&&i({inst:o})},[e,r,n]),Go(()=>(Ut(o)&&i({inst:o}),e(()=>{Ut(o)&&i({inst:o})})),[e]),Xo(r),r}function Ut(e){const n=e.getSnapshot,t=e.value;try{const r=n();return!Ko(t,r)}catch{return!0}}function ei(e,n,t){return n()}const ti=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ni=!ti,ri=ni?ei:Qo,oi="useSyncExternalStore"in T?(e=>e.useSyncExternalStore)(T):ri;function ii(e){return oi(e.subscribe,e.getSnapshot,e.getSnapshot)}function li(e,n){let t=e(),r=new Set;return{getSnapshot(){return t},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=n[o].call(t,...i);l&&(t=l,r.forEach(s=>s()))}}}function si(){let e;return{before({doc:n}){var t;let r=n.documentElement;e=((t=n.defaultView)!=null?t:window).innerWidth-r.clientWidth},after({doc:n,d:t}){let r=n.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;t.style(r,"paddingRight",`${i}px`)}}}function ai(){return xn()?{before({doc:e,d:n,meta:t}){function r(o){return t.containers.flatMap(i=>i()).some(i=>i.contains(o))}n.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Ee();s.style(e.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;n.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:d}=new URL(a.href),f=e.querySelector(d);f&&!r(f)&&(l=f)}catch{}},!0),n.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;n.style(a,"overscrollBehavior","contain")}else n.style(s.target,"touchAction","none")}),n.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let a=s.target;for(;a.parentElement&&a.dataset.headlessuiPortal!==""&&!(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth);)a=a.parentElement;a.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()},{passive:!1}),n.add(()=>{var s;let a=(s=window.scrollY)!=null?s:window.pageYOffset;i!==a&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function ui(){return{before({doc:e,d:n}){n.style(e.documentElement,"overflow","hidden")}}}function ci(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let _e=li(()=>new Map,{PUSH(e,n){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:Ee(),meta:new Set};return r.count++,r.meta.add(n),this.set(e,r),this},POP(e,n){let t=this.get(e);return t&&(t.count--,t.meta.delete(n)),this},SCROLL_PREVENT({doc:e,d:n,meta:t}){let r={doc:e,d:n,meta:ci(t)},o=[ai(),si(),ui()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});_e.subscribe(()=>{let e=_e.getSnapshot(),n=new Map;for(let[t]of e)n.set(t,t.documentElement.style.overflow);for(let t of e.values()){let r=n.get(t.doc)==="hidden",o=t.count!==0;(o&&!r||!o&&r)&&_e.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&_e.dispatch("TEARDOWN",t)}});function di(e,n,t){let r=ii(_e),o=e?r.get(e):void 0,i=o?o.count>0:!1;return J(()=>{if(!(!e||!n))return _e.dispatch("PUSH",e,t),()=>_e.dispatch("POP",e,t)},[n,e]),i}let Vt=new Map,rt=new Map;function Rn(e,n=!0){J(()=>{var t;if(!n)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let s=(l=rt.get(r))!=null?l:1;if(s===1?rt.delete(r):rt.set(r,s-1),s!==1)return;let a=Vt.get(r);a&&(a["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",a["aria-hidden"]),r.inert=a.inert,Vt.delete(r))}let i=(t=rt.get(r))!=null?t:0;return rt.set(r,i+1),i!==0||(Vt.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,n])}function fi({defaultContainers:e=[],portals:n,mainTreeNodeRef:t}={}){var r;let o=u.useRef((r=t==null?void 0:t.current)!=null?r:null),i=Ae(o),l=I(()=>{var s,a,d;let f=[];for(let h of e)h!==null&&(h instanceof HTMLElement?f.push(h):"current"in h&&h.current instanceof HTMLElement&&f.push(h.current));if(n!=null&&n.current)for(let h of n.current)f.push(h);for(let h of(s=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])h!==document.body&&h!==document.head&&h instanceof HTMLElement&&h.id!=="headlessui-portal-root"&&(h.contains(o.current)||h.contains((d=(a=o.current)==null?void 0:a.getRootNode())==null?void 0:d.host)||f.some(x=>h.contains(x))||f.push(h));return f});return{resolveContainers:l,contains:I(s=>l().some(a=>a.contains(s))),mainTreeNodeRef:o,MainTreeNode:u.useMemo(()=>function(){return t!=null?null:u.createElement(Je,{features:We.Hidden,ref:o})},[o,t])}}let Yt=u.createContext(()=>{});Yt.displayName="StackContext";var qt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(qt||{});function pi(){return u.useContext(Yt)}function mi({children:e,onUpdate:n,type:t,element:r,enabled:o}){let i=pi(),l=I((...s)=>{n==null||n(...s),i(...s)});return J(()=>{let s=o===void 0||o===!0;return s&&l(0,t,r),()=>{s&&l(1,t,r)}},[l,t,r,o]),u.createElement(Yt.Provider,{value:l},e)}let Bn=u.createContext(null);function zn(){let e=u.useContext(Bn);if(e===null){let n=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,zn),n}return e}function Wn(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=I(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);return a!==-1&&s.splice(a,1),s}))),o=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(Bn.Provider,{value:o},t.children)},[n])]}let hi="p";function vi(e,n){let t=ve(),{id:r=`headlessui-description-${t}`,...o}=e,i=zn(),l=ue(n);J(()=>i.register(r),[r,i.register]);let s={ref:l,...i.props,id:r};return oe({ourProps:s,theirProps:o,slot:i.slot||{},defaultTag:hi,name:i.name||"Description"})}let gi=ie(vi),Hn=Object.assign(gi,{});var bi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bi||{}),xi=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(xi||{});let wi={0(e,n){return e.titleId===n.id?e:{...e,titleId:n.id}}},mt=u.createContext(null);mt.displayName="DialogContext";function ot(e){let n=u.useContext(mt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ot),t}return n}function yi(e,n,t=()=>[document.body]){di(e,n,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],t]}})}function Ei(e,n){return le(n.type,wi,e,n)}let Si="div",Ti=Pe.RenderStrategy|Pe.Static;function Ci(e,n){let t=ve(),{id:r=`headlessui-dialog-${t}`,open:o,onClose:i,initialFocus:l,role:s="dialog",__demoMode:a=!1,...d}=e,[f,h]=u.useState(0),x=u.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(x.current||(x.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let m=Xe();o===void 0&&m!==null&&(o=(m&ce.Open)===ce.Open);let b=u.useRef(null),v=ue(b,n),g=Ae(b),S=e.hasOwnProperty("open")||m!==null,w=e.hasOwnProperty("onClose");if(!S&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!S)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let C=o?0:1,[O,k]=u.useReducer(Ei,{titleId:null,descriptionId:null,panelRef:u.createRef()}),F=I(()=>i(!1)),B=I(R=>k({type:0,id:R})),V=ze()?a?!1:C===0:!1,A=f>1,D=u.useContext(mt)!==null,[_,Z]=Uo(),re={get current(){var R;return(R=O.panelRef.current)!=null?R:b.current}},{resolveContainers:L,mainTreeNodeRef:E,MainTreeNode:ae}=fi({portals:_,defaultContainers:[re]}),W=A?"parent":"leaf",se=m!==null?(m&ce.Closing)===ce.Closing:!1,K=D||se?!1:V,ee=u.useCallback(()=>{var R,me;return(me=Array.from((R=g==null?void 0:g.querySelectorAll("body > *"))!=null?R:[]).find(he=>he.id==="headlessui-portal-root"?!1:he.contains(E.current)&&he instanceof HTMLElement))!=null?me:null},[E]);Rn(ee,K);let pe=A?!0:V,ge=u.useCallback(()=>{var R,me;return(me=Array.from((R=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?R:[]).find(he=>he.contains(E.current)&&he instanceof HTMLElement))!=null?me:null},[E]);Rn(ge,pe),Pt(L,R=>{R.preventDefault(),F()},!(!V||A));let be=!(A||C!==0);Pn(g==null?void 0:g.defaultView,"keydown",R=>{be&&(R.defaultPrevented||R.key===Y.Escape&&(R.preventDefault(),R.stopPropagation(),F()))}),yi(g,!(se||C!==0||D),L),u.useEffect(()=>{if(C!==0||!b.current)return;let R=new ResizeObserver(me=>{for(let he of me){let He=he.target.getBoundingClientRect();He.x===0&&He.y===0&&He.width===0&&He.height===0&&F()}});return R.observe(b.current),()=>R.disconnect()},[C,b,F]);let[q,te]=Wn(),we=u.useMemo(()=>[{dialogState:C,close:F,setTitleId:B},O],[C,O,F,B]),N=u.useMemo(()=>({open:C===0}),[C]),H={ref:v,id:r,role:s,"aria-modal":C===0?!0:void 0,"aria-labelledby":O.titleId,"aria-describedby":q};return u.createElement(mi,{type:"Dialog",enabled:C===0,element:b,onUpdate:I((R,me)=>{me==="Dialog"&&le(R,{[qt.Add]:()=>h(he=>he+1),[qt.Remove]:()=>h(he=>he-1)})})},u.createElement(zt,{force:!0},u.createElement(Ht,null,u.createElement(mt.Provider,{value:we},u.createElement(Ht.Group,{target:b},u.createElement(zt,{force:!1},u.createElement(te,{slot:N,name:"Dialog.Description"},u.createElement(nt,{initialFocus:l,containers:L,features:V?le(W,{parent:nt.features.RestoreFocus,leaf:nt.features.All&~nt.features.FocusLock}):nt.features.None},u.createElement(Z,null,oe({ourProps:H,theirProps:d,slot:N,defaultTag:Si,features:Ti,visible:C===0,name:"Dialog"}))))))))),u.createElement(ae,null))}let Oi="div";function ji(e,n){let t=ve(),{id:r=`headlessui-dialog-overlay-${t}`,...o}=e,[{dialogState:i,close:l}]=ot("Dialog.Overlay"),s=ue(n),a=I(f=>{if(f.target===f.currentTarget){if(pt(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),l()}}),d=u.useMemo(()=>({open:i===0}),[i]);return oe({ourProps:{ref:s,id:r,"aria-hidden":!0,onClick:a},theirProps:o,slot:d,defaultTag:Oi,name:"Dialog.Overlay"})}let Ii="div";function ki(e,n){let t=ve(),{id:r=`headlessui-dialog-backdrop-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Backdrop"),s=ue(n);u.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let a=u.useMemo(()=>({open:i===0}),[i]);return u.createElement(zt,{force:!0},u.createElement(Ht,null,oe({ourProps:{ref:s,id:r,"aria-hidden":!0},theirProps:o,slot:a,defaultTag:Ii,name:"Dialog.Backdrop"})))}let Fi="div";function $i(e,n){let t=ve(),{id:r=`headlessui-dialog-panel-${t}`,...o}=e,[{dialogState:i},l]=ot("Dialog.Panel"),s=ue(n,l.panelRef),a=u.useMemo(()=>({open:i===0}),[i]),d=I(f=>{f.stopPropagation()});return oe({ourProps:{ref:s,id:r,onClick:d},theirProps:o,slot:a,defaultTag:Fi,name:"Dialog.Panel"})}let Pi="h2";function Ni(e,n){let t=ve(),{id:r=`headlessui-dialog-title-${t}`,...o}=e,[{dialogState:i,setTitleId:l}]=ot("Dialog.Title"),s=ue(n);u.useEffect(()=>(l(r),()=>l(null)),[r,l]);let a=u.useMemo(()=>({open:i===0}),[i]);return oe({ourProps:{ref:s,id:r},theirProps:o,slot:a,defaultTag:Pi,name:"Dialog.Title"})}let Mi=ie(Ci),Di=ie(ki),Ai=ie($i),Li=ie(ji),_i=ie(Ni),Un=Object.assign(Mi,{Backdrop:Di,Panel:Ai,Overlay:Li,Title:_i,Description:Hn}),Vn=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Yn(e){var n,t;let r=(n=e.innerText)!=null?n:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let l=i?(t=o.innerText)!=null?t:"":r;return Vn.test(l)&&(l=l.replace(Vn,"")),l}function Ri(e){let n=e.getAttribute("aria-label");if(typeof n=="string")return n.trim();let t=e.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(o=>{let i=document.getElementById(o);if(i){let l=i.getAttribute("aria-label");return typeof l=="string"?l.trim():Yn(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Yn(e).trim()}function Bi(e){let n=u.useRef(""),t=u.useRef("");return I(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(n.current===o)return t.current;let i=Ri(r).trim().toLowerCase();return n.current=o,t.current=i,i})}var zi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zi||{}),Wi=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Wi||{}),Hi=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Hi||{});function Kt(e,n=t=>t){let t=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=$t(n(e.items.slice()),i=>i.dataRef.current.domRef.current),o=t?r.indexOf(t):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let Ui={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,n)=>{var t;let r=Kt(e),o=Lt(n,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:(t=n.trigger)!=null?t:1}},3:(e,n)=>{let t=e.searchQuery!==""?0:1,r=e.searchQuery+n.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+t).concat(e.items.slice(0,e.activeItemIndex+t)):e.items).find(l=>{var s;return((s=l.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!l.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,n)=>{let t=Kt(e,r=>[...r,{id:n.id,dataRef:n.dataRef}]);return{...e,...t}},6:(e,n)=>{let t=Kt(e,r=>{let o=r.findIndex(i=>i.id===n.id);return o!==-1&&r.splice(o,1),r});return{...e,...t,activationTrigger:1}}},Zt=u.createContext(null);Zt.displayName="MenuContext";function ht(e){let n=u.useContext(Zt);if(n===null){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ht),t}return n}function Vi(e,n){return le(n.type,Ui,e,n)}let Yi=u.Fragment;function qi(e,n){let{__demoMode:t=!1,...r}=e,o=u.useReducer(Vi,{__demoMode:t,menuState:t?0:1,buttonRef:u.createRef(),itemsRef:u.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:i,itemsRef:l,buttonRef:s},a]=o,d=ue(n);Pt([s,l],(m,b)=>{var v;a({type:1}),Ft(b,kt.Loose)||(m.preventDefault(),(v=s.current)==null||v.focus())},i===0);let f=I(()=>{a({type:1})}),h=u.useMemo(()=>({open:i===0,close:f}),[i,f]),x={ref:d};return u.createElement(Zt.Provider,{value:o},u.createElement(At,{value:le(i,{0:ce.Open,1:ce.Closed})},oe({ourProps:x,theirProps:r,slot:h,defaultTag:Yi,name:"Menu"})))}let Ki="button";function Zi(e,n){var t;let r=ve(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[l,s]=ht("Menu.Button"),a=ue(l.buttonRef,n),d=Ie(),f=I(v=>{switch(v.key){case Y.Space:case Y.Enter:case Y.ArrowDown:v.preventDefault(),v.stopPropagation(),s({type:0}),d.nextFrame(()=>s({type:2,focus:X.First}));break;case Y.ArrowUp:v.preventDefault(),v.stopPropagation(),s({type:0}),d.nextFrame(()=>s({type:2,focus:X.Last}));break}}),h=I(v=>{switch(v.key){case Y.Space:v.preventDefault();break}}),x=I(v=>{if(pt(v.currentTarget))return v.preventDefault();e.disabled||(l.menuState===0?(s({type:1}),d.nextFrame(()=>{var g;return(g=l.buttonRef.current)==null?void 0:g.focus({preventScroll:!0})})):(v.preventDefault(),s({type:0})))}),m=u.useMemo(()=>({open:l.menuState===0}),[l]),b={ref:a,id:o,type:Nt(e,l.buttonRef),"aria-haspopup":"menu","aria-controls":(t=l.itemsRef.current)==null?void 0:t.id,"aria-expanded":l.menuState===0,onKeyDown:f,onKeyUp:h,onClick:x};return oe({ourProps:b,theirProps:i,slot:m,defaultTag:Ki,name:"Menu.Button"})}let Gi="div",Ji=Pe.RenderStrategy|Pe.Static;function Xi(e,n){var t,r;let o=ve(),{id:i=`headlessui-menu-items-${o}`,...l}=e,[s,a]=ht("Menu.Items"),d=ue(s.itemsRef,n),f=Ae(s.itemsRef),h=Ie(),x=Xe(),m=x!==null?(x&ce.Open)===ce.Open:s.menuState===0;u.useEffect(()=>{let w=s.itemsRef.current;w&&s.menuState===0&&w!==(f==null?void 0:f.activeElement)&&w.focus({preventScroll:!0})},[s.menuState,s.itemsRef,f]),On({container:s.itemsRef.current,enabled:s.menuState===0,accept(w){return w.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:w.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(w){w.setAttribute("role","none")}});let b=I(w=>{var C,O;switch(h.dispose(),w.key){case Y.Space:if(s.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),a({type:3,value:w.key});case Y.Enter:if(w.preventDefault(),w.stopPropagation(),a({type:1}),s.activeItemIndex!==null){let{dataRef:k}=s.items[s.activeItemIndex];(O=(C=k.current)==null?void 0:C.domRef.current)==null||O.click()}bn(s.buttonRef.current);break;case Y.ArrowDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:X.Next});case Y.ArrowUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:X.Previous});case Y.Home:case Y.PageUp:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:X.First});case Y.End:case Y.PageDown:return w.preventDefault(),w.stopPropagation(),a({type:2,focus:X.Last});case Y.Escape:w.preventDefault(),w.stopPropagation(),a({type:1}),Ee().nextFrame(()=>{var k;return(k=s.buttonRef.current)==null?void 0:k.focus({preventScroll:!0})});break;case Y.Tab:w.preventDefault(),w.stopPropagation(),a({type:1}),Ee().nextFrame(()=>{qr(s.buttonRef.current,w.shiftKey?ke.Previous:ke.Next)});break;default:w.key.length===1&&(a({type:3,value:w.key}),h.setTimeout(()=>a({type:4}),350));break}}),v=I(w=>{switch(w.key){case Y.Space:w.preventDefault();break}}),g=u.useMemo(()=>({open:s.menuState===0}),[s]),S={"aria-activedescendant":s.activeItemIndex===null||(t=s.items[s.activeItemIndex])==null?void 0:t.id,"aria-labelledby":(r=s.buttonRef.current)==null?void 0:r.id,id:i,onKeyDown:b,onKeyUp:v,role:"menu",tabIndex:0,ref:d};return oe({ourProps:S,theirProps:l,slot:g,defaultTag:Gi,features:Ji,visible:m,name:"Menu.Items"})}let Qi=u.Fragment;function el(e,n){let t=ve(),{id:r=`headlessui-menu-item-${t}`,disabled:o=!1,...i}=e,[l,s]=ht("Menu.Item"),a=l.activeItemIndex!==null?l.items[l.activeItemIndex].id===r:!1,d=u.useRef(null),f=ue(n,d);J(()=>{if(l.__demoMode||l.menuState!==0||!a||l.activationTrigger===0)return;let k=Ee();return k.requestAnimationFrame(()=>{var F,B;(B=(F=d.current)==null?void 0:F.scrollIntoView)==null||B.call(F,{block:"nearest"})}),k.dispose},[l.__demoMode,d,a,l.menuState,l.activationTrigger,l.activeItemIndex]);let h=Bi(d),x=u.useRef({disabled:o,domRef:d,get textValue(){return h()}});J(()=>{x.current.disabled=o},[x,o]),J(()=>(s({type:5,id:r,dataRef:x}),()=>s({type:6,id:r})),[x,r]);let m=I(()=>{s({type:1})}),b=I(k=>{if(o)return k.preventDefault();s({type:1}),bn(l.buttonRef.current)}),v=I(()=>{if(o)return s({type:2,focus:X.Nothing});s({type:2,focus:X.Specific,id:r})}),g=Cn(),S=I(k=>g.update(k)),w=I(k=>{g.wasMoved(k)&&(o||a||s({type:2,focus:X.Specific,id:r,trigger:0}))}),C=I(k=>{g.wasMoved(k)&&(o||a&&s({type:2,focus:X.Nothing}))}),O=u.useMemo(()=>({active:a,disabled:o,close:m}),[a,o,m]);return oe({ourProps:{id:r,ref:f,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,disabled:void 0,onClick:b,onFocus:v,onPointerEnter:S,onMouseEnter:S,onPointerMove:w,onMouseMove:w,onPointerLeave:C,onMouseLeave:C},theirProps:i,slot:O,defaultTag:Qi,name:"Menu.Item"})}let tl=ie(qi),nl=ie(Zi),rl=ie(Xi),ol=ie(el),vt=Object.assign(tl,{Button:nl,Items:rl,Item:ol}),qn=u.createContext(null);function Kn(){let e=u.useContext(qn);if(e===null){let n=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(n,Kn),n}return e}function il(){let[e,n]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(t){let r=I(i=>(n(l=>[...l,i]),()=>n(l=>{let s=l.slice(),a=s.indexOf(i);return a!==-1&&s.splice(a,1),s}))),o=u.useMemo(()=>({register:r,slot:t.slot,name:t.name,props:t.props}),[r,t.slot,t.name,t.props]);return u.createElement(qn.Provider,{value:o},t.children)},[n])]}let ll="label";function sl(e,n){let t=ve(),{id:r=`headlessui-label-${t}`,passive:o=!1,...i}=e,l=Kn(),s=ue(n);J(()=>l.register(r),[r,l.register]);let a={ref:s,...l.props,id:r};return o&&("onClick"in a&&(delete a.htmlFor,delete a.onClick),"onClick"in i&&delete i.onClick),oe({ourProps:a,theirProps:i,slot:l.slot||{},defaultTag:ll,name:l.name||"Label"})}let al=ie(sl),ul=Object.assign(al,{});function cl(e=0){let[n,t]=u.useState(e),r=et(),o=u.useCallback(a=>{r.current&&t(d=>d|a)},[n,r]),i=u.useCallback(a=>!!(n&a),[n]),l=u.useCallback(a=>{r.current&&t(d=>d&~a)},[t,r]),s=u.useCallback(a=>{r.current&&t(d=>d^a)},[t]);return{flags:n,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:s}}let Gt=u.createContext(null);Gt.displayName="GroupContext";let dl=u.Fragment;function fl(e){var n;let[t,r]=u.useState(null),[o,i]=il(),[l,s]=Wn(),a=u.useMemo(()=>({switch:t,setSwitch:r,labelledby:o,describedby:l}),[t,r,o,l]),d={},f=e;return u.createElement(s,{name:"Switch.Description"},u.createElement(i,{name:"Switch.Label",props:{htmlFor:(n=a.switch)==null?void 0:n.id,onClick(h){t&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),t.click(),t.focus({preventScroll:!0}))}}},u.createElement(Gt.Provider,{value:a},oe({ourProps:d,theirProps:f,defaultTag:dl,name:"Switch.Group"}))))}let pl="button";function ml(e,n){var t;let r=ve(),{id:o=`headlessui-switch-${r}`,checked:i,defaultChecked:l=!1,onChange:s,disabled:a=!1,name:d,value:f,form:h,...x}=e,m=u.useContext(Gt),b=u.useRef(null),v=ue(b,n,m===null?null:m.setSwitch),[g,S]=mn(i,s,l),w=I(()=>S==null?void 0:S(!g)),C=I(A=>{if(pt(A.currentTarget))return A.preventDefault();A.preventDefault(),w()}),O=I(A=>{A.key===Y.Space?(A.preventDefault(),w()):A.key===Y.Enter&&no(A.currentTarget)}),k=I(A=>A.preventDefault()),F=u.useMemo(()=>({checked:g}),[g]),B={id:o,ref:v,role:"switch",type:Nt(e,b),tabIndex:e.tabIndex===-1?0:(t=e.tabIndex)!=null?t:0,"aria-checked":g,"aria-labelledby":m==null?void 0:m.labelledby,"aria-describedby":m==null?void 0:m.describedby,disabled:a,onClick:C,onKeyUp:O,onKeyPress:k},V=Ie();return u.useEffect(()=>{var A;let D=(A=b.current)==null?void 0:A.closest("form");D&&l!==void 0&&V.addEventListener(D,"reset",()=>{S(l)})},[b,S]),u.createElement(u.Fragment,null,d!=null&&g&&u.createElement(Je,{features:We.Hidden,...ft({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:a,form:h,checked:g,name:d,value:f})}),oe({ourProps:B,theirProps:x,slot:F,defaultTag:pl,name:"Switch"}))}let hl=ie(ml),vl=fl,gl=Object.assign(hl,{Group:vl,Label:ul,Description:Hn});function bl(e){let n={called:!1};return(...t)=>{if(!n.called)return n.called=!0,e(...t)}}function Jt(e,...n){e&&n.length>0&&e.classList.add(...n)}function Xt(e,...n){e&&n.length>0&&e.classList.remove(...n)}function xl(e,n){let t=Ee();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(a=>{let[d=0]=a.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return d}),s=i+l;if(s!==0){t.group(d=>{d.setTimeout(()=>{n(),d.dispose()},s),d.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&d.dispose()})});let a=t.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(n(),a())})}else n();return t.add(()=>n()),t.dispose}function wl(e,n,t,r){let o=t?"enter":"leave",i=Ee(),l=r!==void 0?bl(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=le(o,{enter:()=>n.enter,leave:()=>n.leave}),a=le(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),d=le(o,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return Xt(e,...n.base,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),Jt(e,...n.base,...s,...d),i.nextFrame(()=>{Xt(e,...n.base,...s,...d),Jt(e,...n.base,...s,...a),xl(e,()=>(Xt(e,...n.base,...s),Jt(e,...n.base,...n.entered),l()))}),i.dispose}function yl({immediate:e,container:n,direction:t,classes:r,onStart:o,onStop:i}){let l=et(),s=Ie(),a=Te(t);J(()=>{e&&(a.current="enter")},[e]),J(()=>{let d=Ee();s.add(d.dispose);let f=n.current;if(f&&a.current!=="idle"&&l.current)return d.dispose(),o.current(a.current),d.add(wl(f,r.current,a.current==="enter",()=>{d.dispose(),i.current(a.current)})),d.dispose},[t])}function Me(e=""){return e.split(/\s+/).filter(n=>n.length>1)}let gt=u.createContext(null);gt.displayName="TransitionContext";var El=(e=>(e.Visible="visible",e.Hidden="hidden",e))(El||{});function Sl(){let e=u.useContext(gt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Tl(){let e=u.useContext(bt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let bt=u.createContext(null);bt.displayName="NestingContext";function xt(e){return"children"in e?xt(e.children):e.current.filter(({el:n})=>n.current!==null).filter(({state:n})=>n==="visible").length>0}function Zn(e,n){let t=Te(e),r=u.useRef([]),o=et(),i=Ie(),l=I((m,b=Ne.Hidden)=>{let v=r.current.findIndex(({el:g})=>g===m);v!==-1&&(le(b,{[Ne.Unmount](){r.current.splice(v,1)},[Ne.Hidden](){r.current[v].state="hidden"}}),i.microTask(()=>{var g;!xt(r)&&o.current&&((g=t.current)==null||g.call(t))}))}),s=I(m=>{let b=r.current.find(({el:v})=>v===m);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:m,state:"visible"}),()=>l(m,Ne.Unmount)}),a=u.useRef([]),d=u.useRef(Promise.resolve()),f=u.useRef({enter:[],leave:[],idle:[]}),h=I((m,b,v)=>{a.current.splice(0),n&&(n.chains.current[b]=n.chains.current[b].filter(([g])=>g!==m)),n==null||n.chains.current[b].push([m,new Promise(g=>{a.current.push(g)})]),n==null||n.chains.current[b].push([m,new Promise(g=>{Promise.all(f.current[b].map(([S,w])=>w)).then(()=>g())})]),b==="enter"?d.current=d.current.then(()=>n==null?void 0:n.wait.current).then(()=>v(b)):v(b)}),x=I((m,b,v)=>{Promise.all(f.current[b].splice(0).map(([g,S])=>S)).then(()=>{var g;(g=a.current.shift())==null||g()}).then(()=>v(b))});return u.useMemo(()=>({children:r,register:s,unregister:l,onStart:h,onStop:x,wait:d,chains:f}),[s,l,r,h,x,f,d])}function Cl(){}let Ol=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Gn(e){var n;let t={};for(let r of Ol)t[r]=(n=e[r])!=null?n:Cl;return t}function jl(e){let n=u.useRef(Gn(e));return u.useEffect(()=>{n.current=Gn(e)},[e]),n}let Il="div",Jn=Pe.RenderStrategy;function kl(e,n){var t,r;let{beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s,enter:a,enterFrom:d,enterTo:f,entered:h,leave:x,leaveFrom:m,leaveTo:b,...v}=e,g=u.useRef(null),S=ue(g,n),w=(t=v.unmount)==null||t?Ne.Unmount:Ne.Hidden,{show:C,appear:O,initial:k}=Sl(),[F,B]=u.useState(C?"visible":"hidden"),V=Tl(),{register:A,unregister:D}=V;u.useEffect(()=>A(g),[A,g]),u.useEffect(()=>{if(w===Ne.Hidden&&g.current){if(C&&F!=="visible"){B("visible");return}return le(F,{hidden:()=>D(g),visible:()=>A(g)})}},[F,g,A,D,C,w]);let _=Te({base:Me(v.className),enter:Me(a),enterFrom:Me(d),enterTo:Me(f),entered:Me(h),leave:Me(x),leaveFrom:Me(m),leaveTo:Me(b)}),Z=jl({beforeEnter:o,afterEnter:i,beforeLeave:l,afterLeave:s}),re=ze();u.useEffect(()=>{if(re&&F==="visible"&&g.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[g,F,re]);let L=k&&!O,E=O&&C&&k,ae=!re||L?"idle":C?"enter":"leave",W=cl(0),se=I(be=>le(be,{enter:()=>{W.addFlag(ce.Opening),Z.current.beforeEnter()},leave:()=>{W.addFlag(ce.Closing),Z.current.beforeLeave()},idle:()=>{}})),K=I(be=>le(be,{enter:()=>{W.removeFlag(ce.Opening),Z.current.afterEnter()},leave:()=>{W.removeFlag(ce.Closing),Z.current.afterLeave()},idle:()=>{}})),ee=Zn(()=>{B("hidden"),D(g)},V),pe=u.useRef(!1);yl({immediate:E,container:g,classes:_,direction:ae,onStart:Te(be=>{pe.current=!0,ee.onStart(g,be,se)}),onStop:Te(be=>{pe.current=!1,ee.onStop(g,be,K),be==="leave"&&!xt(ee)&&(B("hidden"),D(g))})});let ge=v,Ce={ref:S};return E?ge={...ge,className:ct(v.className,..._.current.enter,..._.current.enterFrom)}:pe.current&&(ge.className=ct(v.className,(r=g.current)==null?void 0:r.className),ge.className===""&&delete ge.className),u.createElement(bt.Provider,{value:ee},u.createElement(At,{value:le(F,{visible:ce.Open,hidden:ce.Closed})|W.flags},oe({ourProps:Ce,theirProps:ge,defaultTag:Il,features:Jn,visible:F==="visible",name:"Transition.Child"})))}function Fl(e,n){let{show:t,appear:r=!1,unmount:o=!0,...i}=e,l=u.useRef(null),s=ue(l,n);ze();let a=Xe();if(t===void 0&&a!==null&&(t=(a&ce.Open)===ce.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=u.useState(t?"visible":"hidden"),h=Zn(()=>{f("hidden")}),[x,m]=u.useState(!0),b=u.useRef([t]);J(()=>{x!==!1&&b.current[b.current.length-1]!==t&&(b.current.push(t),m(!1))},[b,t]);let v=u.useMemo(()=>({show:t,appear:r,initial:x}),[t,r,x]);u.useEffect(()=>{if(t)f("visible");else if(!xt(h))f("hidden");else{let C=l.current;if(!C)return;let O=C.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&f("hidden")}},[t,h]);let g={unmount:o},S=I(()=>{var C;x&&m(!1),(C=e.beforeEnter)==null||C.call(e)}),w=I(()=>{var C;x&&m(!1),(C=e.beforeLeave)==null||C.call(e)});return u.createElement(bt.Provider,{value:h},u.createElement(gt.Provider,{value:v},oe({ourProps:{...g,as:u.Fragment,children:u.createElement(Xn,{ref:s,...g,...i,beforeEnter:S,beforeLeave:w})},theirProps:{},defaultTag:u.Fragment,features:Jn,visible:d==="visible",name:"Transition"})))}function $l(e,n){let t=u.useContext(gt)!==null,r=Xe()!==null;return u.createElement(u.Fragment,null,!t&&r?u.createElement(Qt,{ref:n,...e}):u.createElement(Xn,{ref:n,...e}))}let Qt=ie(Fl),Xn=ie(kl),Pl=ie($l),Re=Object.assign(Qt,{Child:Pl,Root:Qt});const Qn=e=>{function n(r){if(typeof r!="object"||r===null)return r;const o=Array.isArray(r)?[]:{};for(const i in r)r.hasOwnProperty(i)&&(o[i]=n(r[i]));return o}return e.map(r=>n(r))},Nl=e=>/^(?:[^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*|"[^\n"]+")@(?:[^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,63}$/i.test(e);function $(...e){return e.filter(Boolean).join(" ")}function Ml({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M18 10a.75.75 0 0 1-.75.75H4.66l2.1 1.95a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 1 1 1.02 1.1l-2.1 1.95h12.59A.75.75 0 0 1 18 10Z",clipRule:"evenodd"}))}const Dl=T.forwardRef(Ml);function Al({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M2 10a.75.75 0 0 1 .75-.75h12.59l-2.1-1.95a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.1-1.95H2.75A.75.75 0 0 1 2 10Z",clipRule:"evenodd"}))}const Ll=T.forwardRef(Al);function _l({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))}const Rl=T.forwardRef(_l);function Bl({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const zl=T.forwardRef(Bl);function Wl({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))}const Hl=T.forwardRef(Wl);function Ul({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const er=T.forwardRef(Ul);function Vl({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const Yl=T.forwardRef(Vl);function ql({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"}))}const Kl=T.forwardRef(ql);function Zl({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))}const Gl=T.forwardRef(Zl),tr=()=>{const[e,n]=u.useState({width:0,height:0});return u.useEffect(()=>{const t=Math.min(window.innerWidth,window.outerWidth),r=Math.min(window.innerHeight,window.outerHeight);n({width:t,height:r})},[]),u.useEffect(()=>{let t=Math.min(window.innerWidth,window.outerWidth),r=Math.min(window.innerHeight,window.outerHeight);const o=()=>{t=Math.min(window.innerWidth,window.outerWidth),r=Math.min(window.innerHeight,window.outerHeight),n({width:t,height:r})};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),e},wt={warning:{color:"bg-yellow-50",icon:p.jsx(Yl,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"}),colorTitle:"text-yellow-800",colorText:"text-yellow-700"},error:{color:"bg-red-50",icon:p.jsx(Gl,{className:"h-5 w-5 text-red-400","aria-hidden":"true"}),colorTitle:"text-red-800",colorText:"text-red-700"},success:{color:"bg-green-50",icon:p.jsx(Rl,{className:"h-5 w-5 text-green-400","aria-hidden":"true"}),colorTitle:"text-green-800",colorText:"text-green-700"},info:{color:"bg-blue-50",icon:p.jsx(Kl,{className:"h-5 w-5 text-blue-400","aria-hidden":"true"}),colorTitle:"text-blue-800",colorText:"text-blue-700"}};let nr;const Jl=({type:e="info",title:n,message:t,active:r=!1,time:o=1e3,dispatch:i})=>{const{width:l}=tr(),[s,a]=u.useState(!1);return u.useEffect(()=>r?(nr=window.setTimeout(()=>{i({type:"ALERT",payload:{title:"",message:"",typeAlert:"",active:!1}})},o),a(!0)):()=>window.clearTimeout(nr),[r,i,o]),p.jsx("div",{className:"fixed top-2.5 w-80 3xs:w-96 z-50",style:{left:`calc(50% - ${l<=470?"160px":"192px"})`},children:p.jsx(Re,{as:u.Fragment,show:s,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:p.jsxs("div",{className:$("rounded-md p-4 text-center",wt[e].color),children:[p.jsxs("div",{className:"flex justify-center flex-shrink-0",children:[wt[e].icon,p.jsx("h3",{className:$("text-sm font-medium ml-3",wt[e].colorTitle),children:n})]}),p.jsx("div",{className:$("mt-2 text-sm",wt[e].colorText),children:p.jsx("p",{children:t})})]})})})};function Xl({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const Ql=T.forwardRef(Xl);function es({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5ZM2.25 10.5a8.25 8.25 0 1 1 14.59 5.28l4.69 4.69a.75.75 0 1 1-1.06 1.06l-4.69-4.69A8.25 8.25 0 0 1 2.25 10.5Z",clipRule:"evenodd"}))}const ts=T.forwardRef(es);function ns({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))}const rs=T.forwardRef(ns);function os({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const is=T.forwardRef(os),ls=({src:e,alt:n,width:t,height:r,priority:o=!1,className:i="",classNameIcon:l="",isIcon:s=!0,acronym:a=""})=>{function d(){if(typeof a!="string")return a;const f=a.toLowerCase(),h=f.split(" "),x=h[h.length-1];return f.charAt(0)+x.charAt(0)}return p.jsx(p.Fragment,{children:e?p.jsx("img",{src:e,alt:n,width:t,height:r,className:$(i!==""&&i),priority:o,sizes:"100vw",style:{width:t,height:r}}):s?p.jsx(rs,{className:$("bg-white text-default-5",l!==""?l:"w-7 h-7")}):p.jsx("div",{className:$("bg-gray-200 text-default-5 rounded-full font-bold uppercase flex justify-center items-center",l!==""?l:"w-7 h-7"),children:d()})})},ss=({steps:e,onClick:n})=>{const[t,r]=u.useState(0),o=i=>{r(i),n(i)};return p.jsx("nav",{className:"flex items-center justify-center w-full","aria-label":"Progress","data-testid":"bullets",children:p.jsx("ol",{role:"list",className:"flex items-center space-x-5",children:new Array(e).fill(1).map((i,l)=>p.jsx("li",{children:t!==l?p.jsx("div",{className:"cursor-pointer block h-2.5 w-2.5 rounded-full bg-gray-500 hover:bg-gray-600",onClick:()=>o(l),"data-testid":`step-${l}`,children:p.jsx("span",{className:"sr-only",children:"step"})}):p.jsxs("div",{className:"relative flex items-center justify-center cursor-pointer","aria-current":"step",children:[p.jsx("span",{className:"absolute flex h-5 w-5 p-px","aria-hidden":"true",children:p.jsx("span",{className:"h-full w-full rounded-full bg-gray-300"})}),p.jsx("span",{className:"relative block h-2.5 w-2.5 rounded-full bg-gray-500","aria-hidden":"true"}),p.jsx("span",{className:"sr-only",children:"step"})]})},l))})})};var rr={exports:{}};/*!
|
|
37
|
+
Copyright (c) 2018 Jed Watson.
|
|
38
|
+
Licensed under the MIT License (MIT), see
|
|
39
|
+
http://jedwatson.github.io/classnames
|
|
40
|
+
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)n.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(rr);var as=rr.exports;const De=Er(as),or=({className:e="text-sm w-full rounded-md",children:n,icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,id:s})=>{const a=De({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return p.jsxs("button",{className:$("flex justify-center items-center bg-white px-3 py-7px font-medium leading-6 text-white shadow-sm ring-1 ring-inset ring-gray-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 bg-gray-50",e),type:i,onClick:l,disabled:o,"data-testid":`button-outline-${s}`,id:`button-outline-${s}`,children:[r==="start"&&t!==null&&p.jsx("span",{children:t}),p.jsx("span",{className:$("flex",a),id:s,children:n}),r==="end"&&t!==null&&p.jsx("span",{children:t})]})},ir=({children:e,className:n="",icon:t=null,edge:r=null,disabled:o=!1,type:i="button",onClick:l,id:s})=>{const a=De({"ml-2":r==="start"&&t!==null,"mr-2":r==="end"&&t!==null});return p.jsxs("button",{className:`${n} flex justify-center items-center`,edge:r,type:i,onClick:l,disabled:o,"data-testid":`button-${s}`,children:[r==="start"&&t!==null&&p.jsx("span",{children:t}),p.jsx("span",{className:a,children:e}),r==="end"&&t!==null&&p.jsx("span",{children:t})]})},yt=({children:e,classNameButton:n="bg-indigo-600 hover:bg-indigo-700 focus-visible:outline-indigo-600 shadow-indigo-500 rounded font-semibold px-3 py-1.5 text-white w-full",classNameText:t="",icon:r=null,edge:o=null,disabled:i=!1,type:l="button",onClick:s,id:a,outline:d="0px 0px 0px 2px #6366F1, 0px 0px 0px 2px #FFF, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameContainer:f=""})=>{const[h,x]=u.useState(!1),m=De({"ml-2":o==="start"&&r!==null,"mr-2":o==="end"&&r!==null}),b=()=>{s&&s()};return p.jsx("div",{className:$("rounded-md p-0.5",f!==""&&f),style:{boxShadow:h?d:"0px 0px 0px 0px #6366F1, 0px 0px 0px 0px #FFF, 0px 0px 0px 0px rgba(0, 0, 0, 0.05)",transition:"box-shadow .1s ease-in-out"},"data-testid":"container-button",children:p.jsxs("button",{className:$("flex justify-center items-center text-sm leading-6 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",i&&"text-white bg-gray-300 rounded focus:outline-none cursor-default",i?n.replace(/\bbg-\w+\b/g,""):n),type:l,onClick:b,onFocus:()=>x(!0),onBlur:()=>x(!1),disabled:i,"data-testid":`button-solid-${a}`,children:[o==="start"&&r!==null&&p.jsx("span",{className:"flex",children:r}),p.jsx("span",{className:$(t.length===0&&m,t.length!==0&&t),children:e}),o==="end"&&r!==null&&p.jsx("span",{children:r})]})})},us=({label:e=null,checked:n=!1,onChange:t,id:r,className:o="",classNameCheckbox:i="h-4 w-4",style:l={},disabled:s=!1})=>{const[a,d]=u.useState(!1);return u.useEffect(()=>{d(n)},[n]),p.jsxs("div",{className:"flex items-center",style:l,"data-testid":`container-check-${r}`,children:[p.jsx("input",{checked:a,id:`${e}-${r}`,value:r,"aria-describedby":"comments-description",type:"checkbox",onChange:t,className:$("cursor-pointer rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",i!==""&&i),"data-testid":`checkbox-${r}`,disabled:s}),e!==null?p.jsx("label",{htmlFor:`${e}-${r}`,className:`ml-2.5 font-normal cursor-pointer ${o}`,id:`label-${r}`,"data-testid":"label",children:e}):null]})};function cs({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const ds=T.forwardRef(cs);function fs({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const ps=T.forwardRef(fs);function ms({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const hs=T.forwardRef(ms);function vs({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const gs=T.forwardRef(vs);function bs({title:e,titleId:n,...t},r){return T.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":n},t),e?T.createElement("title",{id:n},e):null,T.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const xs=T.forwardRef(bs);function lr({children:e,className:n="sm:max-w-sm w-11/12 sm:my-8",classNameContainer:t="",isOpen:r=!1,setIsOpen:o,showIconSuccess:i=!0,showButton:l=!0}){return p.jsxs(p.Fragment,{children:[p.jsx("style",{children:`
|
|
41
|
+
.bg-opacity-35 {
|
|
42
|
+
opacity: .35;
|
|
43
|
+
}
|
|
44
|
+
`}),p.jsx(Re.Root,{show:r,as:u.Fragment,children:p.jsxs(Un,{as:"div",className:"relative z-50 relative",onClose:o,"data-testid":"modal",children:[p.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:p.jsx("div",{className:"fixed inset-0 bg-opacity-35 bg-gray-900 transition-opacity","data-testid":"window-close",onClick:()=>o(!1)})}),p.jsx("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:p.jsx("div",{className:"flex min-h-full items-center justify-center xs:p-2 p-4 text-center sm:items-center sm:p-0",children:p.jsx(Re.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:p.jsxs(Un.Panel,{className:$("relative transform rounded-lg bg-white px-4 pb-3 pt-5 text-left shadow-xl transition-all sm:w-full sm:pt-3 sm:px-3",n!==""&&n),children:[i&&p.jsx("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-green-100",children:p.jsx(ds,{className:"h-6 w-6 text-green-600","aria-hidden":"true"})}),p.jsx("div",{className:$(t!==""&&t),"data-testid":"content",children:e}),l&&p.jsx("div",{className:"mt-5 sm:mt-6",children:p.jsx(yt,{id:"close-modal",onClick:()=>o(!1),children:"Cerrar"})}),p.jsx("button",{className:"opacity-0 absolute"})]})})})})]})})]})}const ws=({isOpenModalConfirmation:e,setIsOpenModalConfirmation:n,close:t,title:r="¿Estás seguro de abandonar la creación de la acción?",description:o="La información se perderá si no creas la acción",classNameTitle:i="",classNameDescription:l=""})=>{const s=()=>{n(!1),t()};return p.jsxs(lr,{isOpen:e,setIsOpen:()=>n(),showButton:!1,showIconSuccess:!1,children:[p.jsx("p",{className:$("text-center text-sm",i!==""&&i),children:r}),p.jsx("p",{className:$("text-center text-sm",l!==""&&l),children:o}),p.jsxs("div",{className:"flex w-full justify-center mt-5",children:[p.jsx(or,{className:"rounded-md bg-white text-gray-500 text-sm shadow-sm ring-1 ring-inset ring-gray-300 bg-gray-50 w-24 h-9 mr-6",onClick:()=>n(),id:"cancel",children:"Cancelar"}),p.jsx(yt,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 focus-visible:outline-secondary-2 shadow-secondary-2 rounded py-1.5 text-white w-full px-5",outline:"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",onClick:s,id:"confirmation",children:"Aceptar"})]})]})},ys=({className:e="",style:n={}})=>p.jsx("div",{className:$("w-px",e!==""&&e),style:n}),Es=({onClick:e,id:n="",className:t=""})=>p.jsxs("div",{className:$("flex items-center text-default-5",t!==""&&t),"data-testid":n,children:[p.jsx(Ql,{className:"w-3 h-3 3xs:w-4 3xs:h-4 stroke-current cursor-pointer","data-testid":"chevron-left-icon",onClick:e}),p.jsx("span",{onClick:e,className:"text-sm cursor-pointer","data-testid":"go-back",children:"Volver"})]}),en=({placeholder:e="",label:n="",htmlFor:t,type:r="text",name:o,handleChange:i,onClick:l=()=>{},value:s,isReadOnly:a=!1,isError:d=!1,helperText:f="",autocomplete:h="on",id:x,classNameLabel:m="",classNameContainerInput:b="",classNameContainer:v="",className:g="",icon:S=null,onKeyDown:w,onFocus:C})=>{const[O,k]=u.useState(!1),F=De({"ring-red-300 focus:ring-red-300 text-red-900":d||O,"focus:ring-indigo-600 text-gray-500":!d&&!O}),B=V=>{if(i&&i(V),r!=="email")return;const{value:A}=V.target,D=Nl(A);k(!D)};return p.jsxs("div",{"data-testid":`container-input-${x}`,className:v,children:[n!==""&&p.jsx("label",{htmlFor:t,className:$("block text-sm font-medium leading-6",m!==""?m:"text-gray-700"),"data-testid":`label-${x}`,children:n}),p.jsxs("div",{className:$("relative mt-1 rounded-md",b!==""&&b),children:[p.jsx("input",{id:x,name:o,type:r,autoComplete:h,placeholder:e,onChange:B,onClick:l,onKeyDown:w,onFocus:C,value:s,readOnly:a,"data-testid":`input-${x}`,className:$("block w-full rounded-md border-0 py-1.5 shadow-sm placeholder-gray-300 ring-1 ring-gray-300 ring-inset focus:ring-1 focus:ring-inset text-sm sm:leading-6",F,g!==""&&g)}),S!==null&&p.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:S}),d&&S===null&&p.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:p.jsx(er,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),f.length===0||!d?null:p.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:f})]})};function tn({className:e="w-6 h-6",color:n="#3730a3"}){return p.jsxs("svg",{className:$("fill-current animate-spin",e),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:n,strokeWidth:"4",fill:"none"}),p.jsx("path",{fill:n,d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Ss(){return p.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 w-full h-screen overflow-hidden bg-stone-600 opacity-75 flex flex-col items-center justify-center","data-testid":"spinner",style:{zIndex:60},children:[p.jsx("div",{className:"inline-block h-12 w-12 animate-[spinner-grow_0.75s_linear_infinite] rounded-full bg-current align-[-0.125em] opacity-0 motion-reduce:animate-[spinner-grow_1.5s_linear_infinite]",role:"status"}),p.jsx(tn,{className:"w-8 h-8 animate-spin"})]})}const sr=({height:e="36px",style:n={},label:t="",onChange:r,isReadOnly:o=!1,isError:i=!1,helperText:l="",name:s,id:a,className:d="",classNameLabel:f="",classNameInput:h="",options:x,value:m=-1,defaultValue:b={value:-1,label:"",iconStart:null,iconEnd:null},defaultLabel:v="label",defaultId:g="value",bgOptionSelect:S="bg-indigo-600",isSearch:w=!1,loading:C=!1})=>{const[O,k]=u.useState(""),[F,B]=u.useState(b),[V,A]=u.useState(!1);u.useEffect(()=>{if(m===-1||(x==null?void 0:x.length)===0)return;const L=x==null?void 0:x.find(E=>E[g]===m);L&&B(L)},[m,x,g]),u.useEffect(()=>{if(m==="clear")return B({value:-1,label:"",iconStart:null,iconEnd:null})},[m]);const D=O===""?x:x.filter(L=>L[v].toLowerCase().includes(O.toLowerCase())),_=De({"ring-red-300 focus:ring-red-300 text-red-900":i&&!o,"text-gray-500":!i,"focus:ring-indigo-600":!i&&!o}),Z=De({"text-red-400":i&&!o,"text-gray-400":!i}),re=L=>{B(L),r({target:{value:L,checked:!1,name:s,type:void 0,id:L[g]}})};return p.jsxs(Fe,{as:"div",value:F,onChange:re,children:[p.jsx(Fe.Label,{className:$("block text-sm font-medium leading-6 text-gray-500 mb-0.5",f!==""&&f),children:t}),p.jsxs("div",{className:$("relative",d!==""&&d),children:[p.jsxs(Fe.Button,{className:"w-full","data-testid":`listbox-button-${a}`,children:[F.iconStart&&p.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2",children:F.iconStart}),p.jsx(Fe.Input,{className:$("w-full rounded-md border-0 bg-white py-1.5 pr-10 text-gray-900 shadow-sm ring-1 ring-gray-300 sm:text-sm sm:leading-6 truncate block",!i&&!o&&"ring-inset focus:ring-inset focus:ring-2 focus:ring-indigo-600",o&&"focus:ring-gray-300",_,h!==""&&h),onChange:L=>k(L.target.value),displayValue:L=>{var E;return(E=L[v])==null?void 0:E.trim()},autoComplete:"false",readOnly:!w||o,style:{height:e,...n},"data-testid":"input-search",onClick:()=>A(o?!1:!V),onBlur:()=>A(!1)})]}),F.iconEnd&&p.jsx("span",{className:"absolute inset-y-0 right-4 flex items-center pr-4",children:F.iconEnd}),p.jsx(Fe.Button,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:()=>A(o?!1:!V),"data-testid":"arrow-button",children:V?p.jsx(Hl,{className:$("h-5 w-5",Z),"aria-hidden":"true"}):p.jsx(zl,{className:$("h-5 w-5",Z),"aria-hidden":"true"})}),!o&&p.jsx(p.Fragment,{children:C?p.jsx(Fe.Options,{className:"absolute z-10 mt-1 max-h-60 w-full rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none flex justify-center items-center py-2",children:p.jsx(tn,{})}):(D??[]).length>0?p.jsx(Fe.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden",children:D.map((L,E)=>p.jsx(Fe.Option,{value:L,className:$(L[g]===F[g]?`${S} text-white`:"text-gray-900",`relative cursor-default select-none p-2 hover:text-white hover:${S}`),"data-testid":`select-${a}-${L[g]}`,children:p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsxs("div",{className:"flex items-center",children:[L.iconStart&&p.jsx("span",{className:"mr-2","aria-hidden":"true",children:L.iconStart}),p.jsx("span",{className:"block font-normal break-all",children:L[v]})]}),L.iconEnd&&p.jsx("span",{className:"ml-2","aria-hidden":"true",children:L.iconEnd})]})},E))}):p.jsx(Fe.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm py-0.5 overflow-x-hidden flex justify-center items-center py-2",children:p.jsx("p",{"data-testid":"empty-options",children:"Sin opciones"})})})]}),l.length>0&&i&&p.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${a}`,children:l})]})},Ts=({placeholder:e="",label:n="",htmlFor:t,name:r,handleChange:o,onClick:i=()=>{},value:l,valueSelect:s,isReadOnly:a=!1,isError:d=!1,helperText:f="",autocomplete:h="on",id:x,classNameLabel:m="",classNameContainer:b="",className:v="",onKeyDown:g,options:S,idSelect:w})=>{const{width:C}=tr(),O=De({"ring-red-300 focus:ring-red-300 text-red-900":d,"focus:ring-indigo-600 text-gray-500":!d});return p.jsxs("div",{"data-testid":`container-input-${x}`,className:b,children:[n!==""&&p.jsx("label",{htmlFor:t,className:$("block text-sm font-medium leading-6",m!==""?m:"text-gray-700"),"data-testid":`label-${x}`,children:n}),p.jsxs("div",{className:"relative mt-1 rounded-md shadow-sm",children:[p.jsx("div",{className:"absolute inset-y-0 -top-0.5 flex items-center",style:{left:"2px"},children:p.jsx(sr,{name:w,onChange:k=>o(k),id:w,options:S,value:s,isReadOnly:a,className:"w-20",height:C<=640?"28px":"32px",classNameInput:"ml-3.5",style:{paddingRight:0,width:"45px",boxShadow:"none"},isDisabledFocus:!0})}),p.jsx("input",{id:x,name:r,type:"text",autoComplete:h,placeholder:e,readOnly:a,"data-testid":`input-${x}`,onClick:i,onKeyDown:g,onChange:k=>o(k),value:l,className:$("block w-full rounded-md border-0 py-1.5 pl-20 shadow-sm placeholder-gray-300 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset text-sm sm:leading-6",O,v!==""&&v)}),d&&p.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:p.jsx(er,{className:"h-5 w-5 text-red-500","aria-hidden":"true"})})]}),f.length===0||!d?null:p.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${x}`,children:f})]})},Cs=({setValuesDefault:e})=>{const[n,t]=u.useState(!1),r=()=>{t(!n),e("status",!n)};return p.jsxs("div",{className:"flex",children:[p.jsxs(gl,{checked:n,onChange:r,className:$("group relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-success-1 focus:ring-offset-2 mt-1",n?"bg-success-1":"bg-gray-200"),"data-testid":"switch",children:[p.jsx("span",{className:"sr-only",children:"Use setting"}),p.jsx("span",{"aria-hidden":"true",className:$("pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",n?"translate-x-full":"translate-x-0")})]}),p.jsx("p",{className:"text-sm font-medium text-gray-500 ml-2 self-end","data-testid":"text-switch",children:n?"Activo":"Inactivo"})]})};function Os({label:e="",id:n,htmlFor:t="",classNameLabel:r="",className:o="",rows:i=4,name:l,placeholder:s="",helperText:a="",isReadOnly:d=!1,isError:f=!1,onChange:h,value:x,idInput:m,nameInput:b,placeholderInput:v="",isReadOnlyInput:g=!1,valueInput:S,infoTop:w=null,infoBottom:C=null,classNameInfoTop:O="h-4",classNameInfoBottom:k="h-2",isInputTitle:F=!1,scrollHeightTest:B=!1}){const V=u.useRef(null),[A,D]=u.useState(0);u.useEffect(()=>{const{current:Z}=V;Z===null||B||D(Z.scrollHeight)},[V,x,B]),u.useEffect(()=>{B&&D(800)},[B]);const _=De({"ring-red-300 focus:ring-red-300 text-red-900":f,"focus:ring-indigo-600 text-gray-700":!f});return p.jsxs(p.Fragment,{children:[e!==""&&p.jsx("label",{htmlFor:t,className:$("leading-6 block text-sm",r!==""&&r),children:e}),p.jsxs("div",{className:"relative overflow-x-hidden",children:[w!==null&&p.jsx("div",{className:"absolute top-2 left-3 w-full",children:w}),p.jsxs("div",{className:$("overflow-hidden rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-indigo-600 placeholder:text-gray-400 bg-white",_),children:[w!==null&&p.jsx("div",{className:"py-2","aria-hidden":"true",children:p.jsx("div",{className:"py-px",children:p.jsx("div",{className:O})})}),F&&p.jsx("textarea",{name:b,id:m,className:"block w-full resize-none border-0 bg-transparent py-1.5 text-gray-400 placeholder:text-gray-400 focus:ring-0 text-sm",placeholder:v,value:S,onChange:h,rows:2,readOnly:g}),p.jsx("textarea",{style:{height:A>0?A:"auto"},placeholder:s,rows:i,name:l,id:n,className:$(F?"block w-full resize-none border-0 bg-transparent py-1.5 placeholder:text-gray-400 focus:ring-0":"block w-full rounded-md border-0 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset sm:leading-6",_,o!==""&&o),readOnly:d,onChange:h,value:x,"data-testid":`textarea-${n}`,ref:V}),C!==null&&p.jsx("div",{className:"py-2","aria-hidden":"true",children:p.jsx("div",{className:"py-px",children:p.jsx("div",{className:k})})})]}),C!==null&&p.jsx("div",{className:"absolute bottom-2 left-3 w-full",children:C})]}),a.length>0&&f&&p.jsx("p",{className:"text-red-600 text-sm text-left mt-1","data-testid":`helperText-${n}`,children:a})]})}const js=({className:e="",children:n,message:t=""})=>{const[r,o]=u.useState(!1),i=()=>{t!==""&&o(!0)},l=()=>{o(!1)};return p.jsx("div",{className:"relative",children:p.jsxs("div",{onMouseLeave:l.bind(null,r),"data-testid":"container-tooltip",children:[p.jsx("div",{className:`
|
|
45
|
+
${r?"":"text-opacity-90"}
|
|
46
|
+
text-white group bg-orange-700 rounded-md inline-flex items-center text-base font-medium hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,onMouseEnter:i.bind(null,r),onMouseLeave:l.bind(null,r),"data-testid":"open-tooltip",children:n}),p.jsx(Re,{as:u.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",show:r,children:p.jsx("div",{className:$("absolute z-20 px-4 mt-0 sm:px-0",e!==""&&e),children:p.jsx("div",{className:"bg-white p-2 text-center rounded-lg shadow-lg ring-1 ring-black ring-opacity-5",onMouseEnter:i.bind(null,r),onMouseLeave:l.bind(null,r),"data-testid":"message",children:t})})})]})})},Is=({children:e,data:n,className:t="",classNameTooltip:r="w-full",classNameMenu:o="",classNameMenuItems:i="",classNameContainerSearch:l="px-5",isSelectMultiple:s=!1,optionsSelect:a,propObject:d="name",propId:f="id",textNewItem:h="",defaultId:x=null,loading:m=!1,search:b=null,searchPlaceHolder:v="Buscar...",valueSearch:g=void 0,idsOptionSelect:S=null,isComponent:w,hiddenMenu:C=!1,id:O,onClick:k=()=>{},isRelative:F=!0,isMaxWidth:B=!1,isTag:V=!1,isClear:A=!1,clear:D=null,applyButton:_=null,applyButtonText:Z="Aplicar",tagsParent:re=[],isReadOnly:L,isDisabledApplyButton:E=!0,isOpenMenu:ae=void 0})=>{const[W,se]=u.useState(new Set),[K,ee]=u.useState(new Map);u.useEffect(()=>{S!==null&&se(new Set(new Set(S)))},[S]),u.useEffect(()=>{if(re.length===0)return;const P=new Map;re.forEach(q=>P.set(q.id,q)),ee(P)},[re]),u.useEffect(()=>{A&&(se(new Set),ee(new Map),D&&D())},[D,A]);const pe=P=>{let q=new Map(K),te=new Set(W),we=null;if(x!==null&&(P[f]===x&&(we=crypto.randomUUID()),we!==null&&(P[f]=we),we!==null&&(P[d]=P[d].replace(h,"").trim())),te.has(P[f])?te.delete(P[f]):te.add(P[f]),q.has(P[f])?q.delete(P[f]):q.set(P[f],P),!s){const N=Array.from(te),H=Array.from(q);N.shift(),H.shift(),te=te.size===2?new Set(N):te,q=q.size===2?new Map(H):q}a(P,Array.from(te),we!==null),se(te),ee(q)},ge=P=>{k(P===!0?-1:O)},Ce=P=>{const q=new Set(W),te=new Map(K);q.delete(P[f]),te.delete(P[f]),a(P,Array.from(q)),se(q),ee(te)};function be(P){if(typeof P!="string")return P;const q=P.toLowerCase();return q.charAt(0).toUpperCase()+q.slice(1)}return p.jsxs(vt,{as:"div",className:$("inline-block text-left",F&&"relative",o!==""&&o),onClick:()=>ge(!0),"data-testid":`menu-${O}`,id:O,children:[p.jsx("style",{children:`
|
|
47
|
+
.blue {
|
|
48
|
+
background-color: #3758F9;
|
|
49
|
+
}
|
|
50
|
+
.w-custom {
|
|
51
|
+
width: 320px;
|
|
52
|
+
}
|
|
53
|
+
@media(min-width: 375px) {
|
|
54
|
+
.w-custom {
|
|
55
|
+
width: 375px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
@media(min-width: 500px) {
|
|
59
|
+
.w-custom {
|
|
60
|
+
width: 414px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`}),p.jsx(vt.Button,{as:"div",onClick:()=>ge(C),"data-testid":`menu-button-${O}`,children:e}),p.jsx("div",{className:$("absolute right-0 z-10",r,C&&"hidden",m&&"w-full"),children:p.jsx(Re,{as:u.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",show:ae,children:p.jsx(vt.Items,{className:$("mt-1 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",m?"w-full":i===""&&"w-max",i!==""&&i),children:m?p.jsx("div",{className:"flex justify-center py-4",children:p.jsx(tn,{})}):p.jsxs("div",{className:$(!w&&"pb-1","divide-y divide-gray-100",t!==""&&t,B&&"w-custom"),"data-testid":"dropdown-menu",children:[p.jsxs("div",{className:"flex justify-between items-center sticky top-0 bg-white w-full",children:[b!==null&&p.jsx("div",{className:$("py-2 w-full",l),children:p.jsx(en,{htmlFor:"search",id:`dropdown-search-${O}`,name:"search",type:"text",placeholder:v,handleChange:P=>b(P,O),icon:v!==""&&p.jsx(ts,{className:"w-4 h-4 text-indigo-300"}),className:"pl-5 pr-4 h-8",classNameContainerInput:"w-full",value:g,onKeyDown:P=>P.key===" "&&P.stopPropagation()})}),_!==null&&p.jsx("div",{className:"pl-1 pr-2 pt-1.5",children:p.jsx(yt,{classNameButton:"bg-secondary-2 hover:bg-secondary-3 font-medium px-5 py-1.5 rounded-md",outline:W.size===0&&E?"":"0px 0px 0px 2px #3758F9, 0px 0px 0px 2px #243BBD, 0px 1px 2px 0px rgba(0, 0, 0, 0.05)",classNameText:"text-sm text-white text-center",id:"apply",disabled:W.size===0&&E,onClick:()=>_({id:O,items:Array.from(K.values())}),children:Z})})]}),V&&!L&&p.jsx("div",{className:"flex flex-wrap ml-7 pt-1",children:Array.from(K).map((P,q)=>p.jsx("div",{className:$(q>0&&"ml-1"),children:p.jsxs("span",{className:"inline-flex items-center gap-x-0.5 rounded-md bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600 mb-1",children:[P[1][d],p.jsx("button",{type:"button",className:"p-0.5 rounded-sm bg-gray-100 hover:bg-gray-300",onClick:()=>Ce(P[1]),"data-testid":`tag-${P[0]}`,children:p.jsx(is,{className:"h-2.5 w-2.5 stroke-gray-700/50 group-hover:stroke-gray-700/75"})})]})},P))}),(L?[]:n).map((P,q)=>p.jsx("div",{className:$(!w&&"py-1"),children:w?p.jsx("div",{onClick:te=>{te.preventDefault(),a()},"data-testid":`item-component-${q}`,children:P}):p.jsx(vt.Item,{children:p.jsx("span",{className:$(W.has(P[f])&&"blue text-white",!W.has(P[f])&&"text-gray-700 hover:bg-gray-100 hover:text-gray-900","block px-4 py-2 text-13 lg:text-sm cursor-pointer font-normal"),"data-testid":`item-${q}`,onClick:te=>{te.preventDefault(),pe(P)},children:be(P[d])})})},q))]})})})})]})},ks=50,Fs=({total:e,handleNext:n,handlePrev:t,handleSelectPage:r,page:o=null})=>{const[i,l]=u.useState(1),[s,a]=u.useState([]),[d,f]=u.useState([]),h=Math.ceil(e/ks);u.useEffect(()=>{const v=[];for(let g=1;g<=h;g++)v.push(g);f(v)},[h]),u.useEffect(()=>{let v=[];const g="...",S="... ",w=" ...";if(d.length<6)v=d;else if(i>=1&&i<=3)v=[1,2,3,4,g,d.length];else if(i===4)v=[...d.slice(0,5),g,d.length];else if(i>4&&i<d.length-2){const C=d.slice(i-2,i),O=d.slice(i,i+1);v=[1,S,...C,...O,w,d.length]}else if(i>d.length-3){const C=d.slice(d.length-4);v=[1,S,...C]}a(v)},[i,d]),u.useEffect(()=>{o!==null&&o!==i&&l(o)},[o,i]);const x=v=>{l(v),r(v)},m=()=>{l(i===1?i:i-1),i>1&&t(i-1)},b=()=>{i===d.length?l(i):l(i+1),i<d.length&&n(i+1)};return p.jsxs("nav",{className:"flex items-center justify-between border-t border-gray-200 px-4 sm:px-0",children:[p.jsx("div",{className:"-mt-px flex w-0 flex-1",children:p.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pr-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:m,"data-testid":"prev",children:[p.jsx(Dl,{className:"mr-3 h-5 w-5 text-gray-400","aria-hidden":"true"}),"Anterior"]})}),p.jsx("div",{className:"hidden md:-mt-px md:flex",children:s.map((v,g)=>p.jsx(ir,{className:$("inline-flex items-center border-t-2 px-4 pt-4 text-sm font-medium",i===v?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700"),"aria-current":"page",onClick:()=>v!=="..."&&v!==" ..."&&v!=="... "&&x(v),id:`page-${g+1}`,children:v},g))}),p.jsx("div",{className:"-mt-px flex w-0 flex-1 justify-end",children:p.jsxs("span",{className:"inline-flex items-center border-t-2 border-transparent pl-1 pt-4 text-sm font-medium text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer",onClick:b,"data-testid":"next",children:["Siguiente",p.jsx(Ll,{className:"ml-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]})})]})},$s=({openDefault:e=!1,setForm:n,setValuesDefault:t,title:r,type:o,data:i,setData:l,Component:s,id:a,defaultData:d,dispatch:f,isAdd:h=!0,search:x=null,isPadding:m=!0})=>{const[b,v]=u.useState(!1);u.useEffect(()=>{v(e)},[e]);const g=({e:C,index:O})=>{const k=Qn(i),{name:F,value:B}=C.target;k[O][F]=B,l(k),t(a,k),n(V=>({...V,[a]:k}))},S=()=>{if(i.some(O=>Object.values(O).some(B=>B.value===-1))||i.length===0)return f({type:"ALERT",payload:{title:"",message:"Todos los campos son requeridos",typeAlert:"warning",active:!0}});n(O=>({...O,data:i})),t(a,i),l([...i,d])},w=C=>{if(C===i.length-1)return;const O=Qn(i);O.splice(C,1),n(k=>({...k,copyData:O})),t(a,O),l(O)};return p.jsxs("div",{className:"divide-y divide-gray-200 rounded-lg bg-white shadow mt-7",children:[p.jsxs("div",{className:"px-4 py-3.5 sm:px-6 flex justify-between items-center cursor-pointer",onClick:()=>v(!b),"data-testid":"open-accordion",children:[p.jsx("p",{className:"text-gray-500 uppercase text-xs font-bold",children:r}),p.jsxs("div",{className:"flex items-center",children:[x&&p.jsx(en,{htmlFor:"search",id:"search",name:"search",type:"text",autoComplete:"search",placeholder:"Buscar...",handleChange:x,icon:p.jsx(gs,{className:"w-6 h-6 text-indigo-300"}),className:"h-9",classNameContainerInput:"w-52 2xs:w-64 max-w-64 mr-8 hidden sm:block",value:"",onClick:C=>C.stopPropagation(),onFocus:()=>v(!0)}),b?p.jsx(hs,{className:"w-5 h-5 text-default-5"}):p.jsx(ps,{className:"w-5 h-5 text-default-5"})]})]}),p.jsx(Re,{as:u.Fragment,show:b,enter:"transition duration-[400ms]",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"duration-200 transition ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:p.jsxs("div",{className:$("sm:mt-2.5 py-3.5",m&&"px-4 sm:p-6"),children:[i.map((C,O)=>p.jsxs("div",{className:$("flex flex-col 3xs:flex-row mb-4",m&&"ml-0 3xs:ml-3"),children:[p.jsx(s,{item:C,index:O,handleChange:g}),h&&p.jsx("div",{style:{backgroundColor:"#B0B8BF",width:"25px",height:"25px"},className:$("rounded-full flex justify-center items-center mt-4 3xs:mt-7 ml-2 3xs:ml-5 self-start 3xs:self-center",O===i.length-1&&"3xs:opacity-0"),children:p.jsx(xs,{className:$("w-6 h-4",O!==i.length-1&&"cursor-pointer"),style:{color:"#637381"},strokeWidth:2.5,onClick:()=>w(O),"data-testid":`delete-data-${O}`})})]},O)),h&&p.jsx("p",{className:"text-secondary-2 text-sm font-medium ml-3 cursor-pointer",onClick:S,"data-testid":"add",children:`+ Añadir ${o}`})]})})]})};Q.Accordion=$s,Q.Alert=Jl,Q.Avatar=ls,Q.Bullets=ss,Q.ButtonOutline=or,Q.ButtonPagination=ir,Q.ButtonSolid=yt,Q.Checkbox=us,Q.ConfirmationAbandoningCreation=ws,Q.Divider=ys,Q.Dropdown=Is,Q.GoBack=Es,Q.Input=en,Q.InputDropdown=Ts,Q.Modal=lr,Q.Pagination=Fs,Q.Select=sr,Q.Spinner=Ss,Q.Switch=Cs,Q.Textarea=Os,Q.Tooltip=js,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cemtrik-dependencies",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
|
+
"main": "dist/index.js",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "vite",
|
|
6
7
|
"build": "vite build",
|
|
@@ -49,5 +50,8 @@
|
|
|
49
50
|
},
|
|
50
51
|
"lint-staged": {
|
|
51
52
|
"*.(js|ts)": "npm run lint"
|
|
52
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist/**/*"
|
|
56
|
+
]
|
|
53
57
|
}
|
package/hooks.js
DELETED
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Vite + React</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="root"></div>
|
|
11
|
-
<script type="module" src="/src/main.js"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/index.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import Alert from "./src/components/atoms/Alert";
|
|
2
|
-
import Avatar from "./src/components/atoms/Avatar";
|
|
3
|
-
import Bullets from "./src/components/atoms/Bullets";
|
|
4
|
-
import ButtonOutline from "./src/components/atoms/ButtonOutline";
|
|
5
|
-
import ButtonPagination from "./src/components/atoms/ButtonPagination";
|
|
6
|
-
import ButtonSolid from "./src/components/atoms/ButtonSolid";
|
|
7
|
-
import Checkbox from "./src/components/atoms/Checkbox";
|
|
8
|
-
import ConfirmationAbandoningCreation from "./src/components/atoms/ConfirmationAbandoningCreation";
|
|
9
|
-
import Divider from "./src/components/atoms/Divider";
|
|
10
|
-
import GoBack from "./src/components/atoms/GoBack";
|
|
11
|
-
import Input from "./src/components/atoms/Input";
|
|
12
|
-
import InputDropdown from "./src/components/atoms/InputDropdown";
|
|
13
|
-
import Select from "./src/components/atoms/Select";
|
|
14
|
-
import Spinner from "./src/components/atoms/Spinner";
|
|
15
|
-
import Switch from "./src/components/atoms/Switch";
|
|
16
|
-
import Textarea from "./src/components/atoms/Textarea";
|
|
17
|
-
import Tooltip from "./src/components/atoms/Tooltip";
|
|
18
|
-
import Dropdown from "./src/components/molecules/Dropdown";
|
|
19
|
-
import Modal from "./src/components/molecules/Modal";
|
|
20
|
-
import Pagination from "./src/components/molecules/Pagination";
|
|
21
|
-
import Accordion from "./src/components/templates/Accordion";
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
Alert,
|
|
25
|
-
Avatar,
|
|
26
|
-
Bullets,
|
|
27
|
-
ButtonOutline,
|
|
28
|
-
ButtonPagination,
|
|
29
|
-
ButtonSolid,
|
|
30
|
-
Checkbox,
|
|
31
|
-
ConfirmationAbandoningCreation,
|
|
32
|
-
Divider,
|
|
33
|
-
GoBack,
|
|
34
|
-
Input,
|
|
35
|
-
InputDropdown,
|
|
36
|
-
Select,
|
|
37
|
-
Spinner,
|
|
38
|
-
Switch,
|
|
39
|
-
Textarea,
|
|
40
|
-
Tooltip,
|
|
41
|
-
Dropdown,
|
|
42
|
-
Modal,
|
|
43
|
-
Pagination,
|
|
44
|
-
Accordion,
|
|
45
|
-
};
|
package/postcss.config.js
DELETED
package/public/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/src/App.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
|
2
|
-
|
|
3
|
-
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/docs/#local-fonts
|
|
4
|
-
|
|
5
|
-
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
|
6
|
-
|
|
7
|
-
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|