@dipusevilla/componentes-iu 1.0.8
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/README.md +93 -0
- package/dist/index.cjs.js +54 -0
- package/dist/index.css +1 -0
- package/dist/index.es.js +6148 -0
- package/dist/index.umd.js +55 -0
- package/dist/types/components/Button.d.ts +15 -0
- package/dist/types/components/Checkbox.d.ts +18 -0
- package/dist/types/components/CollapsibleSection.d.ts +8 -0
- package/dist/types/components/DateInput.d.ts +22 -0
- package/dist/types/components/DropdownMenu.d.ts +14 -0
- package/dist/types/components/FileUploader.d.ts +20 -0
- package/dist/types/components/FormFieldInput.d.ts +22 -0
- package/dist/types/components/FormPageLayout.d.ts +13 -0
- package/dist/types/components/FormRenderer.d.ts +5 -0
- package/dist/types/components/Header.d.ts +21 -0
- package/dist/types/components/Icon.d.ts +11 -0
- package/dist/types/components/IconButton.d.ts +18 -0
- package/dist/types/components/InfoButton.d.ts +12 -0
- package/dist/types/components/Input.d.ts +30 -0
- package/dist/types/components/InputGroup.d.ts +21 -0
- package/dist/types/components/LoadingScreen.d.ts +8 -0
- package/dist/types/components/Modal.d.ts +10 -0
- package/dist/types/components/OptionGroup.d.ts +26 -0
- package/dist/types/components/PageLayout.d.ts +13 -0
- package/dist/types/components/Select.d.ts +33 -0
- package/dist/types/components/Sidebar.d.ts +23 -0
- package/dist/types/components/SidebarNav.d.ts +15 -0
- package/dist/types/components/SkeletonLoader.d.ts +28 -0
- package/dist/types/components/Table.d.ts +29 -0
- package/dist/types/components/Tabs.d.ts +12 -0
- package/dist/types/components/TextArea.d.ts +20 -0
- package/dist/types/components/ThemeToggle.d.ts +7 -0
- package/dist/types/components/Toast.d.ts +10 -0
- package/dist/types/components/ToastContainer.d.ts +10 -0
- package/dist/types/components/ToggleSwitch.d.ts +18 -0
- package/dist/types/hooks/useAsyncSelectOptions.d.ts +6 -0
- package/dist/types/hooks/useDisabledMap.d.ts +10 -0
- package/dist/types/hooks/useDynamicYupSchema.d.ts +16 -0
- package/dist/types/hooks/useFieldsMap.d.ts +2 -0
- package/dist/types/index.d.ts +58 -0
- package/dist/types/theme/ThemeProvider.d.ts +11 -0
- package/dist/types/types/FormTypes.d.ts +187 -0
- package/dist/types/utils/scrollToFirstError.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +94 -0
package/README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Componentes IU
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
+
|
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
+
|
|
11
|
+
## Add your files
|
|
12
|
+
|
|
13
|
+
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
+
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
cd existing_repo
|
|
18
|
+
git remote add origin http://lxrepos.dipusevilla.es/gitlab/INPRO/componentes-iu.git
|
|
19
|
+
git branch -M main
|
|
20
|
+
git push -uf origin main
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Integrate with your tools
|
|
24
|
+
|
|
25
|
+
- [ ] [Set up project integrations](http://lxrepos.dipusevilla.es/gitlab/INPRO/componentes-iu/-/settings/integrations)
|
|
26
|
+
|
|
27
|
+
## Collaborate with your team
|
|
28
|
+
|
|
29
|
+
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
+
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
+
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
+
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
+
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
+
|
|
35
|
+
## Test and Deploy
|
|
36
|
+
|
|
37
|
+
Use the built-in continuous integration in GitLab.
|
|
38
|
+
|
|
39
|
+
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
+
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
+
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
+
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
+
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
# Editing this README
|
|
48
|
+
|
|
49
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
+
|
|
51
|
+
## Suggestions for a good README
|
|
52
|
+
|
|
53
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
54
|
+
|
|
55
|
+
## Name
|
|
56
|
+
Choose a self-explaining name for your project.
|
|
57
|
+
|
|
58
|
+
## Description
|
|
59
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
+
|
|
61
|
+
## Badges
|
|
62
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
+
|
|
64
|
+
## Visuals
|
|
65
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
+
|
|
67
|
+
## Installation
|
|
68
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
+
|
|
73
|
+
## Support
|
|
74
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
+
|
|
76
|
+
## Roadmap
|
|
77
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
+
|
|
79
|
+
## Contributing
|
|
80
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
+
|
|
82
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
+
|
|
84
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
+
|
|
86
|
+
## Authors and acknowledgment
|
|
87
|
+
Show your appreciation to those who have contributed to the project.
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
For open source projects, say how it is licensed.
|
|
91
|
+
|
|
92
|
+
## Project status
|
|
93
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),Ar=require("react-dom");function Vs(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const R=Vs(v);function Ms(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var rt={exports:{}},We={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Jt;function Ls(){if(Jt)return We;Jt=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(s,n,a){var i=null;if(a!==void 0&&(i=""+a),n.key!==void 0&&(i=""+n.key),"key"in n){a={};for(var l in n)l!=="key"&&(a[l]=n[l])}else a=n;return n=a.ref,{$$typeof:r,type:s,key:i,ref:n!==void 0?n:null,props:a}}return We.Fragment=e,We.jsx=t,We.jsxs=t,We}var qe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Kt;function Is(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){function r(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===G?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case j:return"Fragment";case w:return"Profiler";case N:return"StrictMode";case C:return"Suspense";case z:return"SuspenseList";case B:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case k:return"Portal";case T:return(h.displayName||"Context")+".Provider";case g:return(h._context.displayName||"Context")+".Consumer";case V:var D=h.render;return h=h.displayName,h||(h=D.displayName||D.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case W:return D=h.displayName||null,D!==null?D:r(h.type)||"Memo";case I:D=h._payload,h=h._init;try{return r(h(D))}catch{}}return null}function e(h){return""+h}function t(h){try{e(h);var D=!1}catch{D=!0}if(D){D=console;var Z=D.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return Z.call(D,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),e(h)}}function s(h){if(h===j)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===I)return"<...>";try{var D=r(h);return D?"<"+D+">":"<...>"}catch{return"<...>"}}function n(){var h=M.A;return h===null?null:h.getOwner()}function a(){return Error("react-stack-top-frame")}function i(h){if(P.call(h,"key")){var D=Object.getOwnPropertyDescriptor(h,"key").get;if(D&&D.isReactWarning)return!1}return h.key!==void 0}function l(h,D){function Z(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",D))}Z.isReactWarning=!0,Object.defineProperty(h,"key",{get:Z,configurable:!0})}function c(){var h=r(this.type);return Y[h]||(Y[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function d(h,D,Z,X,ne,oe,Te,je){return Z=oe.ref,h={$$typeof:y,type:h,key:D,props:oe,_owner:ne},(Z!==void 0?Z:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:c}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function f(h,D,Z,X,ne,oe,Te,je){var te=D.children;if(te!==void 0)if(X)if(_(te)){for(X=0;X<te.length;X++)p(te[X]);Object.freeze&&Object.freeze(te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(te);if(P.call(D,"key")){te=r(h);var H=Object.keys(D).filter(function(ke){return ke!=="key"});X=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",q[te+X]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,X,te,H,te),q[te+X]=!0)}if(te=null,Z!==void 0&&(t(Z),te=""+Z),i(D)&&(t(D.key),te=""+D.key),"key"in D){Z={};for(var fe in D)fe!=="key"&&(Z[fe]=D[fe])}else Z=D;return te&&l(Z,typeof h=="function"?h.displayName||h.name||"Unknown":h),d(h,te,oe,ne,n(),Z,Te,je)}function p(h){typeof h=="object"&&h!==null&&h.$$typeof===y&&h._store&&(h._store.validated=1)}var m=v,y=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),T=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),M=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,_=Array.isArray,$=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(h){return h()}};var U,Y={},ee=m["react-stack-bottom-frame"].bind(m,a)(),we=$(s(a)),q={};qe.Fragment=j,qe.jsx=function(h,D,Z,X,ne){var oe=1e4>M.recentlyCreatedOwnerStacks++;return f(h,D,Z,!1,X,ne,oe?Error("react-stack-top-frame"):ee,oe?$(s(h)):we)},qe.jsxs=function(h,D,Z,X,ne){var oe=1e4>M.recentlyCreatedOwnerStacks++;return f(h,D,Z,!0,X,ne,oe?Error("react-stack-top-frame"):ee,oe?$(s(h)):we)}}()),qe}var Qt;function Ps(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?rt.exports=Ls():rt.exports=Is()),rt.exports}var o=Ps();function $r(r){var e,t,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(e=0;e<n;e++)r[e]&&(t=$r(r[e]))&&(s&&(s+=" "),s+=t)}else for(t in r)r[t]&&(s&&(s+=" "),s+=t);return s}function A(){for(var r,e,t=0,s="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=$r(r))&&(s&&(s+=" "),s+=e);return s}const Us={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-10 h-10",full:"w-full h-full"};function De({component:r,size:e="sm",className:t,...s}){return o.jsx(r,{className:A(Us[e],t),"aria-hidden":s["aria-label"]?void 0:!0,...s})}const Bs="inline-flex items-center justify-center box-border font-[var(--font-primary)] font-medium rounded-lg transition focus:outline-none",Zs={primary:"bg-[var(--color-ds-button-primary-bg)] text-[var(--color-ds-button-primary-text)] hover:bg-[var(--color-ds-button-hover-bg)]",outline:"bg-transparent text-[var(--color-ds-text-primary)] ring-1 ring-inset ring-[var(--color-ds-border-default)] hover:bg-[var(--color-ds-background-accent)] hover:text-[var(--color-ds-text-on-accent)]",ghost:"bg-transparent text-[var(--color-ds-text-primary)] hover:animate-pulse"},zs={sm:"text-ds-sm h-6 px-2",md:"text-ds-md h-10 px-2.5",lg:"text-ds-lg h-12 px-3"},Ws={sm:"h-6 w-6 p-0",md:"h-10 w-10 p-0",lg:"h-12 w-12 p-0"},qs="disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-[var(--color-ds-background-disabled)] disabled:text-[var(--color-ds-text-on-accent)] disabled:ring-1 disabled:ring-inset disabled:ring-[var(--color-ds-border-muted)]";function $e({variant:r="primary",size:e="sm",width:t,disabled:s=!1,icon:n,iconPosition:a="left",ariaLabel:i,children:l,onClick:c}){const d=!!n,f=d&&!l,p=f?Ws[e]:zs[e];return o.jsxs("button",{onClick:c,disabled:s,"aria-label":f?i:void 0,style:t?{width:t}:void 0,className:A(Bs,Zs[r],p,qs,d&&l&&"gap-2"),children:[n&&a==="left"&&o.jsx(De,{component:n,size:e}),l,n&&a==="right"&&o.jsx(De,{component:n,size:e})]})}function Hs({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Ys=R.forwardRef(Hs);function Gs({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Rr=R.forwardRef(Gs);function Xs({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Js=R.forwardRef(Xs);function Ks({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const Qs=R.forwardRef(Ks);function en({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"}))}const tn=R.forwardRef(en);function rn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const er=R.forwardRef(rn);function sn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const nn=R.forwardRef(sn);function an({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Dr=R.forwardRef(an);function on({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"}))}const ln=R.forwardRef(on);function cn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const un=R.forwardRef(cn);function dn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const fn=R.forwardRef(dn);function hn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"}))}const mn=R.forwardRef(hn);function xn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const pn=R.forwardRef(xn);function gn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.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 bn=R.forwardRef(gn);function yn({title:r,titleId:e,...t},s){return R.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:s,"aria-labelledby":e},t),r?R.createElement("title",{id:e},r):null,R.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Dt=R.forwardRef(yn);function Vr({title:r,children:e,defaultOpen:t=!0,className:s}){const[n,a]=v.useState(t),i=v.useRef(null),l=v.useRef(null),[c,d]=v.useState(0),f=()=>{if(l.current){const p=l.current.scrollHeight;d(p)}};return v.useLayoutEffect(()=>{f()},[n]),v.useEffect(()=>{const p=l.current;if(!p)return;const m=new ResizeObserver(()=>{f()});return m.observe(p),()=>{m.disconnect()}},[]),o.jsxs("div",{className:A("flex flex-col w-full gap-3",s),children:[o.jsxs("button",{type:"button",onClick:()=>a(p=>!p),className:"flex items-center justify-between w-full hover:bg-[var(--color-ds-surface-hover)] transition-colors",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"block w-1 h-5 bg-[var(--color-ds-background-accent)] rounded-sm"}),o.jsx("span",{className:"font-semibold text-[var(--color-ds-text-primary)]",children:r})]}),n?o.jsx(Qs,{className:"w-5 h-5 text-[var(--color-ds-text-primary)]"}):o.jsx(Rr,{className:"w-5 h-5 text-[var(--color-ds-text-primary)]"})]}),o.jsx("div",{className:"box-border w-full rounded-lg bg-[var(--color-ds-background-surface)] overflow-hidden",children:o.jsx("div",{className:"px-6",children:o.jsx("div",{ref:i,className:A("overflow-hidden transition-all duration-300 ease-in-out",n?"opacity-100":"opacity-0"),style:{maxHeight:n?`${c}px`:"0px"},children:o.jsx("div",{ref:l,className:"py-4",children:e})})})})]})}var Qe=r=>r.type==="checkbox",Ve=r=>r instanceof Date,de=r=>r==null;const Mr=r=>typeof r=="object";var se=r=>!de(r)&&!Array.isArray(r)&&Mr(r)&&!Ve(r),Lr=r=>se(r)&&r.target?Qe(r.target)?r.target.checked:r.target.value:r,vn=r=>r.substring(0,r.search(/\.\d+(\.|$)/))||r,Ir=(r,e)=>r.has(vn(e)),wn=r=>{const e=r.constructor&&r.constructor.prototype;return se(e)&&e.hasOwnProperty("isPrototypeOf")},Vt=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ce(r){let e;const t=Array.isArray(r),s=typeof FileList<"u"?r instanceof FileList:!1;if(r instanceof Date)e=new Date(r);else if(r instanceof Set)e=new Set(r);else if(!(Vt&&(r instanceof Blob||s))&&(t||se(r)))if(e=t?[]:{},!t&&!wn(r))e=r;else for(const n in r)r.hasOwnProperty(n)&&(e[n]=ce(r[n]));else return r;return e}var bt=r=>Array.isArray(r)?r.filter(Boolean):[],re=r=>r===void 0,S=(r,e,t)=>{if(!e||!se(r))return t;const s=bt(e.split(/[,[\].]+?/)).reduce((n,a)=>de(n)?n:n[a],r);return re(s)||s===r?re(r[e])?t:r[e]:s},xe=r=>typeof r=="boolean",Mt=r=>/^\w*$/.test(r),Pr=r=>bt(r.replace(/["|']|\]/g,"").split(/\.|\[/)),J=(r,e,t)=>{let s=-1;const n=Mt(e)?[e]:Pr(e),a=n.length,i=a-1;for(;++s<a;){const l=n[s];let c=t;if(s!==i){const d=r[l];c=se(d)||Array.isArray(d)?d:isNaN(+n[s+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;r[l]=c,r=r[l]}};const dt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},be={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ne={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ur=v.createContext(null),yt=()=>v.useContext(Ur),jn=r=>{const{children:e,...t}=r;return v.createElement(Ur.Provider,{value:t},e)};var Br=(r,e,t,s=!0)=>{const n={defaultValues:e._defaultValues};for(const a in r)Object.defineProperty(n,a,{get:()=>{const i=a;return e._proxyFormState[i]!==be.all&&(e._proxyFormState[i]=!s||be.all),t&&(t[i]=!0),r[i]}});return n};const Lt=typeof window<"u"?R.useLayoutEffect:R.useEffect;function kn(r){const e=yt(),{control:t=e.control,disabled:s,name:n,exact:a}=r||{},[i,l]=v.useState(t._formState),c=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Lt(()=>t._subscribe({name:n,formState:c.current,exact:a,callback:d=>{!s&&l({...t._formState,...d})}}),[n,s,a]),v.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),v.useMemo(()=>Br(i,t,c.current,!1),[i,t])}var _e=r=>typeof r=="string",Zr=(r,e,t,s,n)=>_e(r)?(s&&e.watch.add(r),S(t,r,n)):Array.isArray(r)?r.map(a=>(s&&e.watch.add(a),S(t,a))):(s&&(e.watchAll=!0),t);function zr(r){const e=yt(),{control:t=e.control,name:s,defaultValue:n,disabled:a,exact:i}=r||{},l=v.useRef(n),[c,d]=v.useState(t._getWatch(s,l.current));return Lt(()=>t._subscribe({name:s,formState:{values:!0},exact:i,callback:f=>!a&&d(Zr(s,t._names,f.values||t._formValues,!1,l.current))}),[s,t,a,i]),v.useEffect(()=>t._removeUnmounted()),c}function En(r){const e=yt(),{name:t,disabled:s,control:n=e.control,shouldUnregister:a}=r,i=Ir(n._names.array,t),l=zr({control:n,name:t,defaultValue:S(n._formValues,t,S(n._defaultValues,t,r.defaultValue)),exact:!0}),c=kn({control:n,name:t,exact:!0}),d=v.useRef(r),f=v.useRef(n.register(t,{...r.rules,value:l,...xe(r.disabled)?{disabled:r.disabled}:{}})),p=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!S(c.errors,t)},isDirty:{enumerable:!0,get:()=>!!S(c.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!S(c.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!S(c.validatingFields,t)},error:{enumerable:!0,get:()=>S(c.errors,t)}}),[c,t]),m=v.useCallback(N=>f.current.onChange({target:{value:Lr(N),name:t},type:dt.CHANGE}),[t]),y=v.useCallback(()=>f.current.onBlur({target:{value:S(n._formValues,t),name:t},type:dt.BLUR}),[t,n._formValues]),k=v.useCallback(N=>{const w=S(n._fields,t);w&&N&&(w._f.ref={focus:()=>N.focus(),select:()=>N.select(),setCustomValidity:g=>N.setCustomValidity(g),reportValidity:()=>N.reportValidity()})},[n._fields,t]),j=v.useMemo(()=>({name:t,value:l,...xe(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:m,onBlur:y,ref:k}),[t,s,c.disabled,m,y,k,l]);return v.useEffect(()=>{const N=n._options.shouldUnregister||a;n.register(t,{...d.current.rules,...xe(d.current.disabled)?{disabled:d.current.disabled}:{}});const w=(g,T)=>{const V=S(n._fields,g);V&&V._f&&(V._f.mount=T)};if(w(t,!0),N){const g=ce(S(n._options.defaultValues,t));J(n._defaultValues,t,g),re(S(n._formValues,t))&&J(n._formValues,t,g)}return!i&&n.register(t),()=>{(i?N&&!n._state.action:N)?n.unregister(t):w(t,!1)}},[t,n,i,a]),v.useEffect(()=>{n._setDisabledField({disabled:s,name:t})},[s,t,n]),v.useMemo(()=>({field:j,formState:c,fieldState:p}),[j,c,p])}const ve=r=>r.render(En(r));var Wr=(r,e,t,s,n)=>e?{...t[r],types:{...t[r]&&t[r].types?t[r].types:{},[s]:n||!0}}:{},Ge=r=>Array.isArray(r)?r:[r],tr=()=>{let r=[];return{get observers(){return r},next:n=>{for(const a of r)a.next&&a.next(n)},subscribe:n=>(r.push(n),{unsubscribe:()=>{r=r.filter(a=>a!==n)}}),unsubscribe:()=>{r=[]}}},St=r=>de(r)||!Mr(r);function Ae(r,e){if(St(r)||St(e))return r===e;if(Ve(r)&&Ve(e))return r.getTime()===e.getTime();const t=Object.keys(r),s=Object.keys(e);if(t.length!==s.length)return!1;for(const n of t){const a=r[n];if(!s.includes(n))return!1;if(n!=="ref"){const i=e[n];if(Ve(a)&&Ve(i)||se(a)&&se(i)||Array.isArray(a)&&Array.isArray(i)?!Ae(a,i):a!==i)return!1}}return!0}var ue=r=>se(r)&&!Object.keys(r).length,It=r=>r.type==="file",ye=r=>typeof r=="function",ft=r=>{if(!Vt)return!1;const e=r?r.ownerDocument:0;return r instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},qr=r=>r.type==="select-multiple",Pt=r=>r.type==="radio",_n=r=>Pt(r)||Qe(r),jt=r=>ft(r)&&r.isConnected;function Nn(r,e){const t=e.slice(0,-1).length;let s=0;for(;s<t;)r=re(r)?s++:r[e[s++]];return r}function Fn(r){for(const e in r)if(r.hasOwnProperty(e)&&!re(r[e]))return!1;return!0}function ie(r,e){const t=Array.isArray(e)?e:Mt(e)?[e]:Pr(e),s=t.length===1?r:Nn(r,t),n=t.length-1,a=t[n];return s&&delete s[a],n!==0&&(se(s)&&ue(s)||Array.isArray(s)&&Fn(s))&&ie(r,t.slice(0,-1)),r}var Hr=r=>{for(const e in r)if(ye(r[e]))return!0;return!1};function ht(r,e={}){const t=Array.isArray(r);if(se(r)||t)for(const s in r)Array.isArray(r[s])||se(r[s])&&!Hr(r[s])?(e[s]=Array.isArray(r[s])?[]:{},ht(r[s],e[s])):de(r[s])||(e[s]=!0);return e}function Yr(r,e,t){const s=Array.isArray(r);if(se(r)||s)for(const n in r)Array.isArray(r[n])||se(r[n])&&!Hr(r[n])?re(e)||St(t[n])?t[n]=Array.isArray(r[n])?ht(r[n],[]):{...ht(r[n])}:Yr(r[n],de(e)?{}:e[n],t[n]):t[n]=!Ae(r[n],e[n]);return t}var He=(r,e)=>Yr(r,e,ht(e));const rr={value:!1,isValid:!1},sr={value:!0,isValid:!0};var Gr=r=>{if(Array.isArray(r)){if(r.length>1){const e=r.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:e,isValid:!!e.length}}return r[0].checked&&!r[0].disabled?r[0].attributes&&!re(r[0].attributes.value)?re(r[0].value)||r[0].value===""?sr:{value:r[0].value,isValid:!0}:sr:rr}return rr},Xr=(r,{valueAsNumber:e,valueAsDate:t,setValueAs:s})=>re(r)?r:e?r===""?NaN:r&&+r:t&&_e(r)?new Date(r):s?s(r):r;const nr={isValid:!1,value:null};var Jr=r=>Array.isArray(r)?r.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,nr):nr;function ar(r){const e=r.ref;return It(e)?e.files:Pt(e)?Jr(r.refs).value:qr(e)?[...e.selectedOptions].map(({value:t})=>t):Qe(e)?Gr(r.refs).value:Xr(re(e.value)?r.ref.value:e.value,r)}var Sn=(r,e,t,s)=>{const n={};for(const a of r){const i=S(e,a);i&&J(n,a,i._f)}return{criteriaMode:t,names:[...r],fields:n,shouldUseNativeValidation:s}},mt=r=>r instanceof RegExp,Ye=r=>re(r)?r:mt(r)?r.source:se(r)?mt(r.value)?r.value.source:r.value:r,ir=r=>({isOnSubmit:!r||r===be.onSubmit,isOnBlur:r===be.onBlur,isOnChange:r===be.onChange,isOnAll:r===be.all,isOnTouch:r===be.onTouched});const or="AsyncFunction";var Tn=r=>!!r&&!!r.validate&&!!(ye(r.validate)&&r.validate.constructor.name===or||se(r.validate)&&Object.values(r.validate).find(e=>e.constructor.name===or)),On=r=>r.mount&&(r.required||r.min||r.max||r.maxLength||r.minLength||r.pattern||r.validate),lr=(r,e,t)=>!t&&(e.watchAll||e.watch.has(r)||[...e.watch].some(s=>r.startsWith(s)&&/^\.\w+/.test(r.slice(s.length))));const Xe=(r,e,t,s)=>{for(const n of t||Object.keys(r)){const a=S(r,n);if(a){const{_f:i,...l}=a;if(i){if(i.refs&&i.refs[0]&&e(i.refs[0],n)&&!s)return!0;if(i.ref&&e(i.ref,i.name)&&!s)return!0;if(Xe(l,e))break}else if(se(l)&&Xe(l,e))break}}};function cr(r,e,t){const s=S(r,t);if(s||Mt(t))return{error:s,name:t};const n=t.split(".");for(;n.length;){const a=n.join("."),i=S(e,a),l=S(r,a);if(i&&!Array.isArray(i)&&t!==a)return{name:t};if(l&&l.type)return{name:a,error:l};n.pop()}return{name:t}}var Cn=(r,e,t,s)=>{t(r);const{name:n,...a}=r;return ue(a)||Object.keys(a).length>=Object.keys(e).length||Object.keys(a).find(i=>e[i]===(!s||be.all))},An=(r,e,t)=>!r||!e||r===e||Ge(r).some(s=>s&&(t?s===e:s.startsWith(e)||e.startsWith(s))),$n=(r,e,t,s,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(e||r):(t?s.isOnBlur:n.isOnBlur)?!r:(t?s.isOnChange:n.isOnChange)?r:!0,Rn=(r,e)=>!bt(S(r,e)).length&&ie(r,e),Dn=(r,e,t)=>{const s=Ge(S(r,t));return J(s,"root",e[t]),J(r,t,s),r},ot=r=>_e(r);function ur(r,e,t="validate"){if(ot(r)||Array.isArray(r)&&r.every(ot)||xe(r)&&!r)return{type:t,message:ot(r)?r:"",ref:e}}var Ue=r=>se(r)&&!mt(r)?r:{value:r,message:""},dr=async(r,e,t,s,n,a)=>{const{ref:i,refs:l,required:c,maxLength:d,minLength:f,min:p,max:m,pattern:y,validate:k,name:j,valueAsNumber:N,mount:w}=r._f,g=S(t,j);if(!w||e.has(j))return{};const T=l?l[0]:i,V=P=>{n&&T.reportValidity&&(T.setCustomValidity(xe(P)?"":P||""),T.reportValidity())},C={},z=Pt(i),W=Qe(i),I=z||W,B=(N||It(i))&&re(i.value)&&re(g)||ft(i)&&i.value===""||g===""||Array.isArray(g)&&!g.length,G=Wr.bind(null,j,s,C),M=(P,_,$,U=Ne.maxLength,Y=Ne.minLength)=>{const ee=P?_:$;C[j]={type:P?U:Y,message:ee,ref:i,...G(P?U:Y,ee)}};if(a?!Array.isArray(g)||!g.length:c&&(!I&&(B||de(g))||xe(g)&&!g||W&&!Gr(l).isValid||z&&!Jr(l).isValid)){const{value:P,message:_}=ot(c)?{value:!!c,message:c}:Ue(c);if(P&&(C[j]={type:Ne.required,message:_,ref:T,...G(Ne.required,_)},!s))return V(_),C}if(!B&&(!de(p)||!de(m))){let P,_;const $=Ue(m),U=Ue(p);if(!de(g)&&!isNaN(g)){const Y=i.valueAsNumber||g&&+g;de($.value)||(P=Y>$.value),de(U.value)||(_=Y<U.value)}else{const Y=i.valueAsDate||new Date(g),ee=h=>new Date(new Date().toDateString()+" "+h),we=i.type=="time",q=i.type=="week";_e($.value)&&g&&(P=we?ee(g)>ee($.value):q?g>$.value:Y>new Date($.value)),_e(U.value)&&g&&(_=we?ee(g)<ee(U.value):q?g<U.value:Y<new Date(U.value))}if((P||_)&&(M(!!P,$.message,U.message,Ne.max,Ne.min),!s))return V(C[j].message),C}if((d||f)&&!B&&(_e(g)||a&&Array.isArray(g))){const P=Ue(d),_=Ue(f),$=!de(P.value)&&g.length>+P.value,U=!de(_.value)&&g.length<+_.value;if(($||U)&&(M($,P.message,_.message),!s))return V(C[j].message),C}if(y&&!B&&_e(g)){const{value:P,message:_}=Ue(y);if(mt(P)&&!g.match(P)&&(C[j]={type:Ne.pattern,message:_,ref:i,...G(Ne.pattern,_)},!s))return V(_),C}if(k){if(ye(k)){const P=await k(g,t),_=ur(P,T);if(_&&(C[j]={..._,...G(Ne.validate,_.message)},!s))return V(_.message),C}else if(se(k)){let P={};for(const _ in k){if(!ue(P)&&!s)break;const $=ur(await k[_](g,t),T,_);$&&(P={...$,...G(_,$.message)},V($.message),s&&(C[j]=P))}if(!ue(P)&&(C[j]={ref:T,...P},!s))return C}}return V(!0),C};const Vn={mode:be.onSubmit,reValidateMode:be.onChange,shouldFocusError:!0};function Mn(r={}){let e={...Vn,...r},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:ye(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1};const s={};let n=se(e.defaultValues)||se(e.values)?ce(e.defaultValues||e.values)||{}:{},a=e.shouldUnregister?{}:ce(n),i={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...f};const m={array:tr(),state:tr()},y=e.criteriaMode===be.all,k=u=>x=>{clearTimeout(d),d=setTimeout(u,x)},j=async u=>{if(!e.disabled&&(f.isValid||p.isValid||u)){const x=e.resolver?ue((await W()).errors):await B(s,!0);x!==t.isValid&&m.state.next({isValid:x})}},N=(u,x)=>{!e.disabled&&(f.isValidating||f.validatingFields||p.isValidating||p.validatingFields)&&((u||Array.from(l.mount)).forEach(b=>{b&&(x?J(t.validatingFields,b,x):ie(t.validatingFields,b))}),m.state.next({validatingFields:t.validatingFields,isValidating:!ue(t.validatingFields)}))},w=(u,x=[],b,O,F=!0,E=!0)=>{if(O&&b&&!e.disabled){if(i.action=!0,E&&Array.isArray(S(s,u))){const L=b(S(s,u),O.argA,O.argB);F&&J(s,u,L)}if(E&&Array.isArray(S(t.errors,u))){const L=b(S(t.errors,u),O.argA,O.argB);F&&J(t.errors,u,L),Rn(t.errors,u)}if((f.touchedFields||p.touchedFields)&&E&&Array.isArray(S(t.touchedFields,u))){const L=b(S(t.touchedFields,u),O.argA,O.argB);F&&J(t.touchedFields,u,L)}(f.dirtyFields||p.dirtyFields)&&(t.dirtyFields=He(n,a)),m.state.next({name:u,isDirty:M(u,x),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else J(a,u,x)},g=(u,x)=>{J(t.errors,u,x),m.state.next({errors:t.errors})},T=u=>{t.errors=u,m.state.next({errors:t.errors,isValid:!1})},V=(u,x,b,O)=>{const F=S(s,u);if(F){const E=S(a,u,re(b)?S(n,u):b);re(E)||O&&O.defaultChecked||x?J(a,u,x?E:ar(F._f)):$(u,E),i.mount&&j()}},C=(u,x,b,O,F)=>{let E=!1,L=!1;const K={name:u};if(!e.disabled){if(!b||O){(f.isDirty||p.isDirty)&&(L=t.isDirty,t.isDirty=K.isDirty=M(),E=L!==K.isDirty);const Q=Ae(S(n,u),x);L=!!S(t.dirtyFields,u),Q?ie(t.dirtyFields,u):J(t.dirtyFields,u,!0),K.dirtyFields=t.dirtyFields,E=E||(f.dirtyFields||p.dirtyFields)&&L!==!Q}if(b){const Q=S(t.touchedFields,u);Q||(J(t.touchedFields,u,b),K.touchedFields=t.touchedFields,E=E||(f.touchedFields||p.touchedFields)&&Q!==b)}E&&F&&m.state.next(K)}return E?K:{}},z=(u,x,b,O)=>{const F=S(t.errors,u),E=(f.isValid||p.isValid)&&xe(x)&&t.isValid!==x;if(e.delayError&&b?(c=k(()=>g(u,b)),c(e.delayError)):(clearTimeout(d),c=null,b?J(t.errors,u,b):ie(t.errors,u)),(b?!Ae(F,b):F)||!ue(O)||E){const L={...O,...E&&xe(x)?{isValid:x}:{},errors:t.errors,name:u};t={...t,...L},m.state.next(L)}},W=async u=>{N(u,!0);const x=await e.resolver(a,e.context,Sn(u||l.mount,s,e.criteriaMode,e.shouldUseNativeValidation));return N(u),x},I=async u=>{const{errors:x}=await W(u);if(u)for(const b of u){const O=S(x,b);O?J(t.errors,b,O):ie(t.errors,b)}else t.errors=x;return x},B=async(u,x,b={valid:!0})=>{for(const O in u){const F=u[O];if(F){const{_f:E,...L}=F;if(E){const K=l.array.has(E.name),Q=F._f&&Tn(F._f);Q&&f.validatingFields&&N([O],!0);const pe=await dr(F,l.disabled,a,y,e.shouldUseNativeValidation&&!x,K);if(Q&&f.validatingFields&&N([O]),pe[E.name]&&(b.valid=!1,x))break;!x&&(S(pe,E.name)?K?Dn(t.errors,pe,E.name):J(t.errors,E.name,pe[E.name]):ie(t.errors,E.name))}!ue(L)&&await B(L,x,b)}}return b.valid},G=()=>{for(const u of l.unMount){const x=S(s,u);x&&(x._f.refs?x._f.refs.every(b=>!jt(b)):!jt(x._f.ref))&&je(u)}l.unMount=new Set},M=(u,x)=>!e.disabled&&(u&&x&&J(a,u,x),!Ae(h(),n)),P=(u,x,b)=>Zr(u,l,{...i.mount?a:re(x)?n:_e(u)?{[u]:x}:x},b,x),_=u=>bt(S(i.mount?a:n,u,e.shouldUnregister?S(n,u,[]):[])),$=(u,x,b={})=>{const O=S(s,u);let F=x;if(O){const E=O._f;E&&(!E.disabled&&J(a,u,Xr(x,E)),F=ft(E.ref)&&de(x)?"":x,qr(E.ref)?[...E.ref.options].forEach(L=>L.selected=F.includes(L.value)):E.refs?Qe(E.ref)?E.refs.forEach(L=>{(!L.defaultChecked||!L.disabled)&&(Array.isArray(F)?L.checked=!!F.find(K=>K===L.value):L.checked=F===L.value||!!F)}):E.refs.forEach(L=>L.checked=L.value===F):It(E.ref)?E.ref.value="":(E.ref.value=F,E.ref.type||m.state.next({name:u,values:ce(a)})))}(b.shouldDirty||b.shouldTouch)&&C(u,F,b.shouldTouch,b.shouldDirty,!0),b.shouldValidate&&q(u)},U=(u,x,b)=>{for(const O in x){if(!x.hasOwnProperty(O))return;const F=x[O],E=`${u}.${O}`,L=S(s,E);(l.array.has(u)||se(F)||L&&!L._f)&&!Ve(F)?U(E,F,b):$(E,F,b)}},Y=(u,x,b={})=>{const O=S(s,u),F=l.array.has(u),E=ce(x);J(a,u,E),F?(m.array.next({name:u,values:ce(a)}),(f.isDirty||f.dirtyFields||p.isDirty||p.dirtyFields)&&b.shouldDirty&&m.state.next({name:u,dirtyFields:He(n,a),isDirty:M(u,E)})):O&&!O._f&&!de(E)?U(u,E,b):$(u,E,b),lr(u,l)&&m.state.next({...t}),m.state.next({name:i.mount?u:void 0,values:ce(a)})},ee=async u=>{i.mount=!0;const x=u.target;let b=x.name,O=!0;const F=S(s,b),E=Q=>{O=Number.isNaN(Q)||Ve(Q)&&isNaN(Q.getTime())||Ae(Q,S(a,b,Q))},L=ir(e.mode),K=ir(e.reValidateMode);if(F){let Q,pe;const tt=x.type?ar(F._f):Lr(u),Oe=u.type===dt.BLUR||u.type===dt.FOCUS_OUT,$s=!On(F._f)&&!e.resolver&&!S(t.errors,b)&&!F._f.deps||$n(Oe,S(t.touchedFields,b),t.isSubmitted,K,L),vt=lr(b,l,Oe);J(a,b,tt),Oe?(F._f.onBlur&&F._f.onBlur(u),c&&c(0)):F._f.onChange&&F._f.onChange(u);const wt=C(b,tt,Oe),Rs=!ue(wt)||vt;if(!Oe&&m.state.next({name:b,type:u.type,values:ce(a)}),$s)return(f.isValid||p.isValid)&&(e.mode==="onBlur"?Oe&&j():Oe||j()),Rs&&m.state.next({name:b,...vt?{}:wt});if(!Oe&&vt&&m.state.next({...t}),e.resolver){const{errors:Gt}=await W([b]);if(E(tt),O){const Ds=cr(t.errors,s,b),Xt=cr(Gt,s,Ds.name||b);Q=Xt.error,b=Xt.name,pe=ue(Gt)}}else N([b],!0),Q=(await dr(F,l.disabled,a,y,e.shouldUseNativeValidation))[b],N([b]),E(tt),O&&(Q?pe=!1:(f.isValid||p.isValid)&&(pe=await B(s,!0)));O&&(F._f.deps&&q(F._f.deps),z(b,pe,Q,wt))}},we=(u,x)=>{if(S(t.errors,x)&&u.focus)return u.focus(),1},q=async(u,x={})=>{let b,O;const F=Ge(u);if(e.resolver){const E=await I(re(u)?u:F);b=ue(E),O=u?!F.some(L=>S(E,L)):b}else u?(O=(await Promise.all(F.map(async E=>{const L=S(s,E);return await B(L&&L._f?{[E]:L}:L)}))).every(Boolean),!(!O&&!t.isValid)&&j()):O=b=await B(s);return m.state.next({...!_e(u)||(f.isValid||p.isValid)&&b!==t.isValid?{}:{name:u},...e.resolver||!u?{isValid:b}:{},errors:t.errors}),x.shouldFocus&&!O&&Xe(s,we,u?F:l.mount),O},h=u=>{const x={...i.mount?a:n};return re(u)?x:_e(u)?S(x,u):u.map(b=>S(x,b))},D=(u,x)=>({invalid:!!S((x||t).errors,u),isDirty:!!S((x||t).dirtyFields,u),error:S((x||t).errors,u),isValidating:!!S(t.validatingFields,u),isTouched:!!S((x||t).touchedFields,u)}),Z=u=>{u&&Ge(u).forEach(x=>ie(t.errors,x)),m.state.next({errors:u?t.errors:{}})},X=(u,x,b)=>{const O=(S(s,u,{_f:{}})._f||{}).ref,F=S(t.errors,u)||{},{ref:E,message:L,type:K,...Q}=F;J(t.errors,u,{...Q,...x,ref:O}),m.state.next({name:u,errors:t.errors,isValid:!1}),b&&b.shouldFocus&&O&&O.focus&&O.focus()},ne=(u,x)=>ye(u)?m.state.subscribe({next:b=>u(P(void 0,x),b)}):P(u,x,!0),oe=u=>m.state.subscribe({next:x=>{An(u.name,x.name,u.exact)&&Cn(x,u.formState||f,As,u.reRenderRoot)&&u.callback({values:{...a},...t,...x})}}).unsubscribe,Te=u=>(i.mount=!0,p={...p,...u.formState},oe({...u,formState:p})),je=(u,x={})=>{for(const b of u?Ge(u):l.mount)l.mount.delete(b),l.array.delete(b),x.keepValue||(ie(s,b),ie(a,b)),!x.keepError&&ie(t.errors,b),!x.keepDirty&&ie(t.dirtyFields,b),!x.keepTouched&&ie(t.touchedFields,b),!x.keepIsValidating&&ie(t.validatingFields,b),!e.shouldUnregister&&!x.keepDefaultValue&&ie(n,b);m.state.next({values:ce(a)}),m.state.next({...t,...x.keepDirty?{isDirty:M()}:{}}),!x.keepIsValid&&j()},te=({disabled:u,name:x})=>{(xe(u)&&i.mount||u||l.disabled.has(x))&&(u?l.disabled.add(x):l.disabled.delete(x))},H=(u,x={})=>{let b=S(s,u);const O=xe(x.disabled)||xe(e.disabled);return J(s,u,{...b||{},_f:{...b&&b._f?b._f:{ref:{name:u}},name:u,mount:!0,...x}}),l.mount.add(u),b?te({disabled:xe(x.disabled)?x.disabled:e.disabled,name:u}):V(u,!0,x.value),{...O?{disabled:x.disabled||e.disabled}:{},...e.progressive?{required:!!x.required,min:Ye(x.min),max:Ye(x.max),minLength:Ye(x.minLength),maxLength:Ye(x.maxLength),pattern:Ye(x.pattern)}:{},name:u,onChange:ee,onBlur:ee,ref:F=>{if(F){H(u,x),b=S(s,u);const E=re(F.value)&&F.querySelectorAll&&F.querySelectorAll("input,select,textarea")[0]||F,L=_n(E),K=b._f.refs||[];if(L?K.find(Q=>Q===E):E===b._f.ref)return;J(s,u,{_f:{...b._f,...L?{refs:[...K.filter(jt),E,...Array.isArray(S(n,u))?[{}]:[]],ref:{type:E.type,name:u}}:{ref:E}}}),V(u,!1,void 0,E)}else b=S(s,u,{}),b._f&&(b._f.mount=!1),(e.shouldUnregister||x.shouldUnregister)&&!(Ir(l.array,u)&&i.action)&&l.unMount.add(u)}}},fe=()=>e.shouldFocusError&&Xe(s,we,l.mount),ke=u=>{xe(u)&&(m.state.next({disabled:u}),Xe(s,(x,b)=>{const O=S(s,b);O&&(x.disabled=O._f.disabled||u,Array.isArray(O._f.refs)&&O._f.refs.forEach(F=>{F.disabled=O._f.disabled||u}))},0,!1))},ae=(u,x)=>async b=>{let O;b&&(b.preventDefault&&b.preventDefault(),b.persist&&b.persist());let F=ce(a);if(m.state.next({isSubmitting:!0}),e.resolver){const{errors:E,values:L}=await W();t.errors=E,F=L}else await B(s);if(l.disabled.size)for(const E of l.disabled)J(F,E,void 0);if(ie(t.errors,"root"),ue(t.errors)){m.state.next({errors:{}});try{await u(F,b)}catch(E){O=E}}else x&&await x({...t.errors},b),fe(),setTimeout(fe);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ue(t.errors)&&!O,submitCount:t.submitCount+1,errors:t.errors}),O)throw O},Pe=(u,x={})=>{S(s,u)&&(re(x.defaultValue)?Y(u,ce(S(n,u))):(Y(u,x.defaultValue),J(n,u,ce(x.defaultValue))),x.keepTouched||ie(t.touchedFields,u),x.keepDirty||(ie(t.dirtyFields,u),t.isDirty=x.defaultValue?M(u,ce(S(n,u))):M()),x.keepError||(ie(t.errors,u),f.isValid&&j()),m.state.next({...t}))},ze=(u,x={})=>{const b=u?ce(u):n,O=ce(b),F=ue(u),E=F?n:O;if(x.keepDefaultValues||(n=b),!x.keepValues){if(x.keepDirtyValues){const L=new Set([...l.mount,...Object.keys(He(n,a))]);for(const K of Array.from(L))S(t.dirtyFields,K)?J(E,K,S(a,K)):Y(K,S(E,K))}else{if(Vt&&re(u))for(const L of l.mount){const K=S(s,L);if(K&&K._f){const Q=Array.isArray(K._f.refs)?K._f.refs[0]:K._f.ref;if(ft(Q)){const pe=Q.closest("form");if(pe){pe.reset();break}}}}for(const L of l.mount)Y(L,S(E,L))}a=ce(E),m.array.next({values:{...E}}),m.state.next({values:{...E}})}l={mount:x.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!f.isValid||!!x.keepIsValid||!!x.keepDirtyValues,i.watch=!!e.shouldUnregister,m.state.next({submitCount:x.keepSubmitCount?t.submitCount:0,isDirty:F?!1:x.keepDirty?t.isDirty:!!(x.keepDefaultValues&&!Ae(u,n)),isSubmitted:x.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:F?{}:x.keepDirtyValues?x.keepDefaultValues&&a?He(n,a):t.dirtyFields:x.keepDefaultValues&&u?He(n,u):x.keepDirty?t.dirtyFields:{},touchedFields:x.keepTouched?t.touchedFields:{},errors:x.keepErrors?t.errors:{},isSubmitSuccessful:x.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},Ht=(u,x)=>ze(ye(u)?u(a):u,x),Cs=(u,x={})=>{const b=S(s,u),O=b&&b._f;if(O){const F=O.refs?O.refs[0]:O.ref;F.focus&&(F.focus(),x.shouldSelect&&ye(F.select)&&F.select())}},As=u=>{t={...t,...u}},Yt={control:{register:H,unregister:je,getFieldState:D,handleSubmit:ae,setError:X,_subscribe:oe,_runSchema:W,_getWatch:P,_getDirty:M,_setValid:j,_setFieldArray:w,_setDisabledField:te,_setErrors:T,_getFieldArray:_,_reset:ze,_resetDefaultValues:()=>ye(e.defaultValues)&&e.defaultValues().then(u=>{Ht(u,e.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:G,_disableForm:ke,_subjects:m,_proxyFormState:f,get _fields(){return s},get _formValues(){return a},get _state(){return i},set _state(u){i=u},get _defaultValues(){return n},get _names(){return l},set _names(u){l=u},get _formState(){return t},get _options(){return e},set _options(u){e={...e,...u}}},subscribe:Te,trigger:q,register:H,handleSubmit:ae,watch:ne,setValue:Y,getValues:h,reset:Ht,resetField:Pe,clearErrors:Z,unregister:je,setError:X,setFocus:Cs,getFieldState:D};return{...Yt,formControl:Yt}}function Ln(r={}){const e=v.useRef(void 0),t=v.useRef(void 0),[s,n]=v.useState({isDirty:!1,isValidating:!1,isLoading:ye(r.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1,isReady:!1,defaultValues:ye(r.defaultValues)?void 0:r.defaultValues});e.current||(e.current={...r.formControl?r.formControl:Mn(r),formState:s},r.formControl&&r.defaultValues&&!ye(r.defaultValues)&&r.formControl.reset(r.defaultValues,r.resetOptions));const a=e.current.control;return a._options=r,Lt(()=>{const i=a._subscribe({formState:a._proxyFormState,callback:()=>n({...a._formState}),reRenderRoot:!0});return n(l=>({...l,isReady:!0})),a._formState.isReady=!0,i},[a]),v.useEffect(()=>a._disableForm(r.disabled),[a,r.disabled]),v.useEffect(()=>{r.mode&&(a._options.mode=r.mode),r.reValidateMode&&(a._options.reValidateMode=r.reValidateMode),r.errors&&!ue(r.errors)&&a._setErrors(r.errors)},[a,r.errors,r.mode,r.reValidateMode]),v.useEffect(()=>{r.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,r.shouldUnregister]),v.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==s.isDirty&&a._subjects.state.next({isDirty:i})}},[a,s.isDirty]),v.useEffect(()=>{r.values&&!Ae(r.values,t.current)?(a._reset(r.values,a._options.resetOptions),t.current=r.values,n(i=>({...i}))):a._resetDefaultValues()},[a,r.values]),v.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),e.current.formState=Br(s,a),e.current}const Kr={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"},In={sm:"h-6",md:"h-10",lg:"h-12"},Pn={sm:"px-2",md:"px-2.5",lg:"px-3"};function fr(r,e,t,s,n,a,i){const l=e?"datetime-local":"date";return o.jsxs(o.Fragment,{children:[o.jsx("input",{id:r,type:l,disabled:n,...s,className:A("box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition text-[var(--color-ds-text-primary)] font-[var(--font-primary)]",Kr[t],In[t],Pn[t],a?"border-[var(--color-ds-border-error)]":"border-[var(--color-ds-border-default)]",n?"bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed":"text-[var(--color-ds-text-primary)]",i)}),o.jsx("div",{children:a!=null&&a.message?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:a.message}):o.jsx("span",{"aria-hidden":"true",children:" "})})]})}function Qr(r){const{control:e,name:t,rules:s,defaultValue:n,showTime:a=!1,size:i="sm",width:l="100%",label:c,labelHidden:d=!1,hasError:f=!1,errorMessage:p="",disabled:m=!1,className:y,onChange:k}=r,j=v.useId(),N=t||j;return o.jsxs("div",{className:A("flex flex-col",y),style:{width:l,maxWidth:"100%"},children:[c&&o.jsx("label",{htmlFor:N,className:A("pb-2 text-[var(--color-ds-text-primary)]",Kr[i],d&&"sr-only"),children:c}),e&&t?o.jsx(ve,{name:t,control:e,rules:s,defaultValue:n,render:({field:w,fieldState:g})=>fr(N,a,i,{value:w.value,onChange:w.onChange,onBlur:w.onBlur},m,g.error,y)}):fr(N,a,i,{defaultValue:n,onChange:k},m,f?{message:p}:void 0,y)]})}const Un=({trigger:r,items:e,align:t="left",className:s})=>{const[n,a]=v.useState(!1),i=v.useRef(null),l=v.useRef([]);v.useEffect(()=>{const d=f=>{i.current&&!i.current.contains(f.target)&&a(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]);const c=d=>{var p,m;const f=l.current.findIndex(y=>y===document.activeElement);if(d.key==="Escape")a(!1);else if(d.key==="ArrowDown"){d.preventDefault();const y=(f+1)%e.length;(p=l.current[y])==null||p.focus()}else if(d.key==="ArrowUp"){d.preventDefault();const y=(f-1+e.length)%e.length;(m=l.current[y])==null||m.focus()}};return o.jsxs("div",{className:A("relative inline-block",s),ref:i,children:[o.jsx("button",{type:"button",onClick:()=>a(d=>!d),className:"inline-flex items-center focus:outline-none","aria-haspopup":"menu","aria-expanded":n,children:r}),n&&o.jsx("div",{role:"menu","aria-orientation":"vertical",className:A("absolute mt-2 min-w-[160px] bg-[var(--color-ds-background-page)]","border border-[var(--color-ds-border-muted)] rounded shadow-lg z-10",t==="right"?"right-0":"left-0"),onKeyDown:c,children:e.map((d,f)=>{const{label:p,onSelect:m,disabled:y,icon:k}=d;return o.jsxs("button",{role:"menuitem",type:"button",disabled:y,ref:j=>{l.current[f]=j},className:A("w-full flex items-center px-4 py-2 text-[var(--color-ds-text-primary)] text-ds-md transition-colors",y?"opacity-50 cursor-not-allowed":"hover:bg-[var(--color-ds-background-surface)]"),onClick:()=>{y||(m(),a(!1))},children:[k&&o.jsx(k,{className:"w-5 h-5 mr-2 text-[var(--color-ds-text-secondary)]"}),p]},f)})})]})},Bn=(r,e,t,s)=>{var a,i,l,c;const n=[t,{code:e,...s||{}}];if((i=(a=r==null?void 0:r.services)==null?void 0:a.logger)!=null&&i.forward)return r.services.logger.forward(n,"warn","react-i18next::",!0);Me(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),(c=(l=r==null?void 0:r.services)==null?void 0:l.logger)!=null&&c.warn?r.services.logger.warn(...n):console!=null&&console.warn&&console.warn(...n)},hr={},Tt=(r,e,t,s)=>{Me(t)&&hr[t]||(Me(t)&&(hr[t]=new Date),Bn(r,e,t,s))},es=(r,e)=>()=>{if(r.isInitialized)e();else{const t=()=>{setTimeout(()=>{r.off("initialized",t)},0),e()};r.on("initialized",t)}},Ot=(r,e,t)=>{r.loadNamespaces(e,es(r,t))},mr=(r,e,t,s)=>{if(Me(t)&&(t=[t]),r.options.preload&&r.options.preload.indexOf(e)>-1)return Ot(r,t,s);t.forEach(n=>{r.options.ns.indexOf(n)<0&&r.options.ns.push(n)}),r.loadLanguages(e,es(r,s))},Zn=(r,e,t={})=>!e.languages||!e.languages.length?(Tt(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(r,{lng:t.lng,precheck:(s,n)=>{var a;if(((a=t.bindI18n)==null?void 0:a.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!n(s.isLanguageChangingTo,r))return!1}}),Me=r=>typeof r=="string",zn=r=>typeof r=="object"&&r!==null,Wn=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Hn=r=>qn[r],Yn=r=>r.replace(Wn,Hn);let Gn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Yn};const Xn=()=>Gn;let Jn;const Kn=()=>Jn,Qn=v.createContext();class ea{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ta=(r,e)=>{const t=v.useRef();return v.useEffect(()=>{t.current=r},[r,e]),t.current},ts=(r,e,t,s)=>r.getFixedT(e,t,s),ra=(r,e,t,s)=>v.useCallback(ts(r,e,t,s),[r,e,t,s]),Ut=(r,e={})=>{var V,C,z,W;const{i18n:t}=e,{i18n:s,defaultNS:n}=v.useContext(Qn)||{},a=t||s||Kn();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new ea),!a){Tt(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const I=(G,M)=>Me(M)?M:zn(M)&&Me(M.defaultValue)?M.defaultValue:Array.isArray(G)?G[G.length-1]:G,B=[I,{},!1];return B.t=I,B.i18n={},B.ready=!1,B}(V=a.options.react)!=null&&V.wait&&Tt(a,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...Xn(),...a.options.react,...e},{useSuspense:l,keyPrefix:c}=i;let d=n||((C=a.options)==null?void 0:C.defaultNS);d=Me(d)?[d]:d||["translation"],(W=(z=a.reportNamespaces).addUsedNamespaces)==null||W.call(z,d);const f=(a.isInitialized||a.initializedStoreOnce)&&d.every(I=>Zn(I,a,i)),p=ra(a,e.lng||null,i.nsMode==="fallback"?d:d[0],c),m=()=>p,y=()=>ts(a,e.lng||null,i.nsMode==="fallback"?d:d[0],c),[k,j]=v.useState(m);let N=d.join();e.lng&&(N=`${e.lng}${N}`);const w=ta(N),g=v.useRef(!0);v.useEffect(()=>{const{bindI18n:I,bindI18nStore:B}=i;g.current=!0,!f&&!l&&(e.lng?mr(a,e.lng,d,()=>{g.current&&j(y)}):Ot(a,d,()=>{g.current&&j(y)})),f&&w&&w!==N&&g.current&&j(y);const G=()=>{g.current&&j(y)};return I&&(a==null||a.on(I,G)),B&&(a==null||a.store.on(B,G)),()=>{g.current=!1,a&&(I==null||I.split(" ").forEach(M=>a.off(M,G))),B&&a&&B.split(" ").forEach(M=>a.store.off(M,G))}},[a,N]),v.useEffect(()=>{g.current&&f&&j(m)},[a,c,f]);const T=[k,a,f];if(T.t=k,T.i18n=a,T.ready=f,f||!f&&!l)return T;throw new Promise(I=>{e.lng?mr(a,e.lng,d,()=>I()):Ot(a,d,()=>I())})},Ct={sm:"text-sm",md:"text-base",lg:"text-lg"};function xr(r,e,t,s,n,a,i,l,c){const{t:d}=Ut(),f=v.useRef(null),p=typeof s=="number"&&e.length>=s,m=()=>{var g;!i&&!p&&((g=f.current)==null||g.click())},y=g=>{const T=g.target.files;if(!T)return;const V=Array.from(T);let C=e.concat(V);s&&(C=C.slice(0,s)),t(C),g.target.value=""},k=g=>{if(g.preventDefault(),i||p)return;const T=Array.from(g.dataTransfer.files);let V=e.concat(T);s&&(V=V.slice(0,s)),t(V)},j=g=>{g.preventDefault()},N=g=>{const T=URL.createObjectURL(g);window.open(T)},w=g=>{const T=e.filter((V,C)=>C!==g);t(T)};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"self-start mb-4 w-auto",children:o.jsx($e,{variant:"outline",size:a,icon:er,onClick:m,disabled:i||p,children:d("ds.fileUploader.browse","Browse files")})}),!p&&o.jsxs("div",{className:A("relative flex bg-[var(--color-ds-background-page)] flex-col items-center justify-center border-2 border-dashed border-[var(--color-ds-border-muted)] rounded-lg p-4",i?"opacity-50 cursor-not-allowed":"hover:border-[var(--color-ds-border-default)]",Ct[a],c),onDrop:k,onDragOver:j,children:[o.jsx("input",{id:r,type:"file",ref:f,className:"hidden",multiple:s!==1,accept:n,onChange:y,disabled:i}),o.jsx(De,{component:tn,size:"lg",className:"w-10 h-10 text-[var(--color-ds-text-secondary)]"}),o.jsx("p",{className:"mt-3 text-[var(--color-ds-text-secondary)] text-center",children:d("ds.fileUploader.dragDrop","Drag & drop your files here or click to browse")})]}),e.length>0&&o.jsx("ul",{className:"mt-4 space-y-1",children:e.map((g,T)=>o.jsxs("li",{className:"flex items-center justify-between text-[var(--color-ds-text-secondary)] text-sm",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx(er,{className:"w-4 h-4 mr-2","aria-hidden":"true"}),o.jsx("span",{className:"truncate pr-2",children:g.name})]}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx($e,{variant:"ghost",size:"sm",icon:Dr,ariaLabel:d("ds.fileUploader.view","View"),onClick:()=>N(g)}),o.jsx($e,{variant:"ghost",size:"sm",icon:Dt,ariaLabel:d("ds.fileUploader.remove","Remove"),onClick:()=>w(T)})]})]},T))}),o.jsx("div",{className:"pt-[5px] min-h-[18px] w-full",children:l!=null&&l.message?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:l.message}):o.jsx("span",{"aria-hidden":"true",children:" "})})]})}function rs(r){const{control:e,name:t,rules:s,defaultValue:n,maxFiles:a,accept:i,size:l="sm",width:c="100%",label:d,labelHidden:f=!1,disabled:p=!1,hasError:m=!1,errorMessage:y="",className:k}=r,j=v.useId(),N=t||j;if(e&&t)return o.jsxs("div",{className:A("flex flex-col",k),style:{width:c},children:[d&&o.jsx("label",{htmlFor:N,className:A("pb-[10px] text-[var(--color-ds-text-primary)]",Ct[l],f&&"sr-only"),children:d}),o.jsx(ve,{name:t,control:e,rules:s,defaultValue:n instanceof FileList?Array.from(n):n||[],render:({field:T,fieldState:V})=>xr(N,T.value,C=>T.onChange(C),a,i,l,p,V.error,k)})]});const[w,g]=v.useState(n instanceof FileList?Array.from(n):n||[]);return o.jsxs("div",{className:A("flex flex-col",k),style:{width:c},children:[d&&o.jsx("label",{htmlFor:N,className:A("pb-[10px] text-[var(--color-ds-text-primary)]",Ct[l],f&&"sr-only"),children:d}),xr(N,w,g,a,i,l,p,m?{message:y}:void 0,k)]})}const Je=({count:r=1,width:e,height:t="1em",variant:s="rect",className:n})=>{const a=Array.from({length:r});return o.jsx(o.Fragment,{children:a.map((i,l)=>o.jsx("span",{role:"status","aria-label":"Cargando...",className:A("bg-[var(--color-ds-border-muted)] animate-pulse inline-block",s==="circle"?"rounded-full":"rounded",n),style:{width:e??"auto",height:t}},l))})},kt={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"},sa={sm:"h-6",md:"h-10",lg:"h-12"},na={sm:"px-2",md:"px-2.5",lg:"px-3"},aa={sm:"pl-2",md:"pl-2.5",lg:"pl-3"},ia={sm:"1.5rem",md:"2.5rem",lg:"3rem"};function Ke({id:r,type:e="text",size:t="sm",width:s="100%",label:n,labelHidden:a=!1,hasError:i=!1,errorMessage:l="",prefixIcon:c,suffixIcon:d,separator:f,suffixButton:p,disabled:m=!1,control:y,name:k,rules:j,defaultValue:N,loading:w=!1,className:g,...T}){const V=v.useId(),[C,z]=v.useState(!1),W=r||V,I=e==="password",G=c??(e==="number"?ln:void 0),M=I?C?nn:Dr:d;if(w)return o.jsxs("div",{className:A("flex flex-col",g),style:{width:s,maxWidth:"100%"},children:[n&&!a&&o.jsx("label",{htmlFor:W,className:A("pb-2 text-[var(--color-ds-text-primary)]",kt[t]),children:n}),o.jsx(Je,{width:"100%",height:ia[t],variant:"rect",className:"rounded-lg"}),o.jsx("div",{className:"min-h-[18px] w-full",children:o.jsx("span",{"aria-hidden":"true",children:" "})})]});if(y&&k)return o.jsx(ve,{name:k,control:y,rules:j,defaultValue:N,render:({field:$,fieldState:U})=>{var Y;return o.jsx(Ke,{id:r,type:e,size:t,width:s,label:n,labelHidden:a,hasError:!!U.error,errorMessage:(Y=U.error)==null?void 0:Y.message,prefixIcon:c,suffixIcon:d,separator:f,suffixButton:p,disabled:m,className:g,...$})}});const P=I?C?"text":"password":e,_=A("box-border w-full rounded-lg border placeholder-[var(--color-ds-text-secondary)] outline-none transition font-[var(--font-primary)] appearance-none",kt[t],sa[t],na[t],i?"border-[var(--color-ds-border-error)]":"border-[var(--color-ds-border-default)]","bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)]","disabled:bg-[var(--color-ds-background-disabled)]","disabled:border-[var(--color-ds-border-muted)]","disabled:text-[var(--color-ds-text-disabled)]","disabled:cursor-not-allowed");return o.jsxs("div",{className:A("flex flex-col",g),style:{width:s},children:[n&&o.jsx("label",{htmlFor:W,className:A("pb-2 text-[var(--color-ds-text-primary)]",kt[t],a&&"sr-only"),children:n}),o.jsxs("div",{className:"relative flex items-center w-full",children:[G&&o.jsx("div",{className:A("absolute left-0 flex items-center h-full",aa[t]),children:o.jsx(De,{component:G,size:t,className:"text-[var(--color-ds-text-secondary)]"})}),o.jsx("input",{id:W,onInvalid:$=>$.preventDefault(),type:P,disabled:m,"aria-invalid":i,style:I&&!C?{WebkitTextSecurity:"disc",MozTextSecurity:"disc"}:void 0,className:A(_,G&&"pl-9",M&&"pr-9"),...T}),f&&o.jsx("div",{className:"flex items-center h-full",children:f}),p&&o.jsx("div",{className:"flex items-center h-full pr-2",children:p}),M&&o.jsx("button",{type:"button",onClick:()=>I&&z($=>!$),className:"absolute right-0 flex items-center h-full pr-2",tabIndex:-1,children:o.jsx(De,{component:M,size:t,className:"text-[var(--color-ds-text-secondary)]"})})]}),o.jsx("div",{className:"min-h-[18px]",children:i&&l?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:l}):o.jsx("span",{"aria-hidden":"true",children:" "})})]})}const oa={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},Et=400,st=8,ss=({children:r,size:e="sm",position:t="top",className:s})=>{const[n,a]=v.useState(!1),[i,l]=v.useState({x:0,y:0}),c=v.useRef(null),d=v.useId();v.useEffect(()=>{if(n&&c.current){const m=c.current.getBoundingClientRect();let y=0,k=0;switch(t){case"top":y=m.left+m.width/2-Et/2,k=m.top-st;break;case"bottom":y=m.left+m.width/2-Et/2,k=m.bottom+st;break;case"left":y=m.left-Et-st,k=m.top+m.height/2;break;case"right":y=m.right+st,k=m.top+m.height/2;break}l({x:y,y:k})}},[n,t]);const f=()=>typeof r=="string"?o.jsx("div",{dangerouslySetInnerHTML:{__html:r}}):o.jsx(o.Fragment,{children:r}),p=n?o.jsx("div",{id:d,role:"tooltip",className:A("fixed z-50 w-[250px] bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)] text-ds-sm rounded p-2 shadow-lg","pointer-events-none"),style:{top:`${i.y}px`,left:`${i.x}px`,transform:t==="left"||t==="right"?"translateY(-50%)":t==="top"?"translateY(-100%)":void 0},children:f()}):null;return o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button","aria-describedby":d,ref:c,className:A("inline-flex items-center justify-center focus:outline-none",oa[e],"text-[var(--color-ds-text-secondary)] hover:text-[var(--color-ds-text-primary)]",s),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1),children:o.jsx(un,{className:"w-full h-full"})}),Ar.createPortal(p,document.body)]})};function la({name:r,label:e,type:t="text",size:s="sm",width:n,placeholder:a,validation:i,loadingDefaults:l,disabled:c,info:d}){var N;const{control:f,formState:{errors:p}}=yt(),m=!!p[r],y=((N=p[r])==null?void 0:N.message)||"",k="relative",j=n??"w-full";return o.jsxs("div",{className:k,children:[o.jsx(ve,{name:r,control:f,rules:i,render:({field:w})=>o.jsx(Ke,{label:e,size:s,width:j,placeholder:a,hasError:m,errorMessage:y,loading:l,type:t,...w,disabled:c})}),d&&o.jsx(ss,{size:s,position:"left",className:"absolute top-1/2 right-2 -translate-y-1/2",children:d})]})}const Bt=v.memo(la);Bt.displayName="FormFieldInput";function ca({title:r,headerButtons:e,children:t,className:s}){return o.jsxs("div",{className:A("flex flex-col h-full",s),children:[o.jsxs("div",{className:"flex items-center justify-between py-4",children:[o.jsx("div",{className:`bg-[var(--color-ds-background-accent)] \r
|
|
23
|
+
text-[var(--color-ds-text-on-accent)] \r
|
|
24
|
+
rounded-tr-[20px] \r
|
|
25
|
+
pl-4 pr-10\r
|
|
26
|
+
text-ds-lg`,children:r}),e&&o.jsx("div",{className:"flex items-center space-x-2",children:e})]}),o.jsx("main",{className:"flex-1 overflow-auto",children:t})]})}function ns({options:r,value:e,onChange:t,children:s}){const n=v.useRef(null),[a,i]=v.useState({left:0,width:0});return v.useLayoutEffect(()=>{const l=n.current;if(!l)return;const c=()=>{const d=r.findIndex(N=>N.value===e);if(d<0)return;const f=l.children[d],p=f.querySelector("span"),m=(p==null?void 0:p.offsetWidth)??f.offsetWidth,y=f.offsetWidth,j=f.offsetLeft+(y-m)/2;i({left:j,width:m})};return c(),window.addEventListener("resize",c),l.addEventListener("scroll",c),()=>{window.removeEventListener("resize",c),l.removeEventListener("scroll",c)}},[e,r]),o.jsxs("div",{children:[o.jsxs("div",{className:"relative",children:[o.jsx("ul",{ref:n,role:"tablist",className:"flex justify-center overflow-x-auto border-b border-[var(--color-ds-border-default-50)]",children:r.map(l=>{const c=l.value===e;return o.jsx("li",{role:"tab","aria-selected":c,onClick:()=>t(l.value),className:A("cursor-pointer whitespace-nowrap px-4 py-2 transition-colors duration-150 ease-in-out",c?"text-[var(--color-ds-background-accent)]":"text-[var(--color-ds-text-primary)]"),children:o.jsx("span",{className:"inline-block",children:l.label})},l.value)})}),o.jsx("span",{className:"absolute bottom-0 h-1 bg-[var(--color-ds-background-accent)] transition-all duration-200 ease-in-out rounded-t-full",style:{left:a.left,width:a.width}})]}),o.jsx("div",{className:"mt-4 pb-4 border-b border-[var(--color-ds-border-default-50)]",children:s[e]})]})}const as={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"},ua={sm:"h-6",md:"h-10",lg:"h-12"},da={sm:"px-2",md:"px-2.5",lg:"px-3"},fa={sm:"1.5rem",md:"2.5rem",lg:"3rem"};function pr(r,e,t,s,n,a,i,l,c){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"relative flex items-center w-full",children:[o.jsx("select",{id:r,...s,disabled:n,className:A("box-border w-full rounded-lg border bg-[var(--color-ds-background-page)] outline-none transition font-[var(--font-primary)]",as[t],ua[t],da[t],a?"border-[var(--color-ds-border-error)]":"border-[var(--color-ds-border-default)]",n?"bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed":"text-[var(--color-ds-text-primary)]",l),children:e.map(d=>o.jsx("option",{value:d.value,className:"bg-[var(--color-ds-background-page)] text-[var(--color-ds-text-primary)]",children:d.label},d.value))}),c&&o.jsx("div",{className:"flex items-center h-full pr-2",children:c})]}),!i&&o.jsx("div",{className:"min-h-[18px] w-full",children:a!=null&&a.message?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:a.message}):o.jsx("span",{"aria-hidden":"true",children:" "})})]})}function xt(r){const{control:e,name:t,rules:s,defaultValue:n,options:a=[],loadOptions:i,value:l,onChange:c,size:d="sm",width:f="100%",label:p,labelHidden:m=!1,hasError:y=!1,errorMessage:k="",disableErrorPlaceholder:j=!1,disabled:N=!1,className:w,suffixButton:g}=r,T=v.useId(),V=t||T,[C,z]=v.useState(a),[W,I]=v.useState(!!i);return v.useEffect(()=>{i&&(I(!0),i().then(B=>z(B)).finally(()=>I(!1)))},[i]),o.jsxs("div",{className:A("flex flex-col",w),style:{width:f,maxWidth:"100%"},children:[p&&o.jsx("label",{htmlFor:V,className:A("pb-2 text-[var(--color-ds-text-primary)]",as[d],m&&"sr-only"),children:p}),W?o.jsx(Je,{width:"100%",height:fa[d],variant:"rect",className:"rounded-lg"}):e&&t?o.jsx(ve,{name:t,control:e,rules:s,defaultValue:n,render:({field:B,fieldState:G})=>pr(V,C,d,{value:B.value,onChange:M=>B.onChange(M.target.value)},N,G.error,j,w,g)}):pr(V,C,d,{value:l,onChange:B=>c==null?void 0:c(B.target.value)},N,y?{message:k}:void 0,j,w,g)]})}const gr={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"};function is({groupLabel:r,inputs:e,separator:t=o.jsx("span",{className:"px-1 text-[var(--color-ds-text-secondary)] select-none",children:"/"}),useSeparator:s=!0,className:n,showVisibleLabel:a=!0,size:i="sm"}){return o.jsxs("div",{className:A("flex flex-col",n),children:[o.jsx("label",{className:A("pb-2 text-[var(--color-ds-text-primary)] sr-only",gr[i]),children:r}),a&&o.jsx("label",{className:A("pb-2 text-[var(--color-ds-text-primary)]",gr[i]),children:r}),o.jsx("div",{className:"flex flex-nowrap items-center",children:e.map((l,c)=>{const{width:d,className:f,label:p,...m}=l,y=p||"";return typeof d=="string"&&d.startsWith("w-")?o.jsx("div",{className:A("flex-shrink-0",d),children:o.jsx(Ke,{...m,labelHidden:!0,"aria-label":y,width:"100%",className:f,separator:s&&c<e.length-1?t:void 0})},c):o.jsx("div",{className:"flex-shrink-0",style:d?{width:d}:void 0,children:o.jsx(Ke,{...m,labelHidden:!0,"aria-label":y,width:"100%",className:f,separator:s&&c<e.length-1?t:void 0})},c)})})]})}const br={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"},ha={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function os({groupLabel:r,options:e,control:t,name:s,rules:n,defaultValue:a,multiple:i=!0,size:l="sm",vertical:c=!0,className:d,showVisibleLabel:f=!0}){return o.jsx(ve,{name:s,control:t,rules:n,defaultValue:a,render:({field:p,fieldState:m})=>{const{value:y,onChange:k}=p;m.error;const j=w=>i?Array.isArray(y)&&y.includes(w):y===w,N=w=>{if(i){const g=Array.isArray(y)?[...y]:[],T=g.indexOf(w);T>=0?g.splice(T,1):g.push(w),k(g)}else k(w)};return o.jsxs("div",{className:A("w-full",d),children:[o.jsx("label",{className:A("sr-only pb-2 text-[var(--color-ds-text-primary)]",br[l]),children:r}),f&&o.jsx("label",{className:A("block pb-2 text-[var(--color-ds-text-primary)]",br[l]),children:r}),o.jsx("div",{className:A(c?"flex flex-col gap-2":"flex flex-wrap gap-4"),children:e.map(w=>o.jsxs("label",{className:"inline-flex items-center space-x-2 cursor-pointer select-none",children:[o.jsx("input",{type:i?"checkbox":"radio",name:s,value:w.value,checked:j(w.value),onChange:()=>N(w.value),className:A(ha[l],"text-[var(--color-ds-button-primary-bg)]","border-[var(--color-ds-border-default)]")}),o.jsx("span",{className:"text-[var(--color-ds-text-primary)] text-ds-md",children:w.label})]},w.value))})]})}})}function ma(r){function e(i){var l,c;for(const d of Object.keys(i)){if((l=i[d])!=null&&l.types||(c=i[d])!=null&&c.message)return d;if(typeof i[d]=="object"){const f=e(i[d]);if(f)return`${d}.${f}`}}return null}const t=e(r);if(!t)return;const s=`[name="${t}"]`,n=`[name^="${t}["], [name^="${t}."]`,a=document.querySelector(s)??document.querySelector(n);a&&(a.scrollIntoView({behavior:"smooth",block:"center"}),a.focus({preventScroll:!0}))}const xa={success:"bg-green-100 border-green-500 text-green-800",error:"bg-red-100 border-red-500 text-red-800",info:"bg-blue-100 border-blue-500 text-blue-800",warning:"bg-yellow-100 border-yellow-500 text-yellow-800"},ls=({id:r,message:e,variant:t="info",duration:s=5e3,onClose:n})=>(v.useEffect(()=>{const a=setTimeout(()=>n(r),s);return()=>clearTimeout(a)},[r,s,n]),o.jsxs("div",{className:A("w-80 max-w-full border-l-4 rounded shadow-md p-4 mb-2 flex justify-between items-start",xa[t]),role:"alert","aria-live":"assertive",children:[o.jsx("span",{className:"flex-1",children:e}),o.jsx("button",{onClick:()=>n(r),className:"ml-4 text-xl font-bold leading-none focus:outline-none",children:"×"})]}));let nt;const pa=new Uint8Array(16);function ga(){if(!nt&&(nt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nt(pa)}const le=[];for(let r=0;r<256;++r)le.push((r+256).toString(16).slice(1));function ba(r,e=0){return le[r[e+0]]+le[r[e+1]]+le[r[e+2]]+le[r[e+3]]+"-"+le[r[e+4]]+le[r[e+5]]+"-"+le[r[e+6]]+le[r[e+7]]+"-"+le[r[e+8]]+le[r[e+9]]+"-"+le[r[e+10]]+le[r[e+11]]+le[r[e+12]]+le[r[e+13]]+le[r[e+14]]+le[r[e+15]]}const ya=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),yr={randomUUID:ya};function va(r,e,t){if(yr.randomUUID&&!r)return yr.randomUUID();r=r||{};const s=r.random||(r.rng||ga)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,ba(s)}const cs=v.createContext(null),us=()=>{const r=v.useContext(cs);if(!r)throw new Error("useToast debe usarse dentro de <ToastProvider>");return r},wa=({children:r})=>{const[e,t]=v.useState([]),s=(a,i="info",l=5e3)=>{const c=va();t(d=>[...d,{id:c,message:a,variant:i,duration:l}])},n=a=>{t(i=>i.filter(l=>l.id!==a))};return o.jsxs(cs.Provider,{value:{show:s},children:[r,o.jsx("div",{className:"fixed top-4 right-4 z-50 flex flex-col items-end",children:e.map(a=>o.jsx(ls,{id:a.id,message:a.message,variant:a.variant,duration:a.duration,onClose:n},a.id))})]})},vr=(r,e,t)=>{if(r&&"reportValidity"in r){const s=S(t,e);r.setCustomValidity(s&&s.message||""),r.reportValidity()}},ds=(r,e)=>{for(const t in e.fields){const s=e.fields[t];s&&s.ref&&"reportValidity"in s.ref?vr(s.ref,t,r):s&&s.refs&&s.refs.forEach(n=>vr(n,t,r))}},ja=(r,e)=>{e.shouldUseNativeValidation&&ds(r,e);const t={};for(const s in r){const n=S(e.fields,s),a=Object.assign(r[s]||{},{ref:n&&n.ref});if(ka(e.names||Object.keys(r),s)){const i=Object.assign({},S(t,s));J(i,"root",a),J(t,s,i)}else J(t,s,a)}return t},ka=(r,e)=>{const t=wr(e);return r.some(s=>wr(s).match(`^${t}\\.\\d+`))};function wr(r){return r.replace(/\]|\[/g,"")}function jr(r,e,t){return t===void 0&&(t={}),function(s,n,a){try{return Promise.resolve(function(i,l){try{var c=(e!=null&&e.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(r[t.mode==="sync"?"validateSync":"validate"](s,Object.assign({abortEarly:!1},e,{context:n}))).then(function(d){return a.shouldUseNativeValidation&&ds({},a),{values:t.raw?Object.assign({},s):d,errors:{}}}))}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(i){if(!i.inner)throw i;return{values:{},errors:ja((l=i,c=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(l.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var p=d[f.path].types,m=p&&p[f.type];d[f.path]=Wr(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),a)};var l,c}))}catch(i){return Promise.reject(i)}}}var _t,kr;function Ea(){if(kr)return _t;kr=1;function r(w){this._maxSize=w,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(w){return this._values[w]},r.prototype.set=function(w,g){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=g};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,t=/^\d+$/,s=/^\d/,n=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,i=512,l=new r(i),c=new r(i),d=new r(i);_t={Cache:r,split:p,normalizePath:f,setter:function(w){var g=f(w);return c.get(w)||c.set(w,function(V,C){for(var z=0,W=g.length,I=V;z<W-1;){var B=g[z];if(B==="__proto__"||B==="constructor"||B==="prototype")return V;I=I[g[z++]]}I[g[z]]=C})},getter:function(w,g){var T=f(w);return d.get(w)||d.set(w,function(C){for(var z=0,W=T.length;z<W;)if(C!=null||!g)C=C[T[z++]];else return;return C})},join:function(w){return w.reduce(function(g,T){return g+(y(T)||t.test(T)?"["+T+"]":(g?".":"")+T)},"")},forEach:function(w,g,T){m(Array.isArray(w)?w:p(w),g,T)}};function f(w){return l.get(w)||l.set(w,p(w).map(function(g){return g.replace(a,"$2")}))}function p(w){return w.match(e)||[""]}function m(w,g,T){var V=w.length,C,z,W,I;for(z=0;z<V;z++)C=w[z],C&&(N(C)&&(C='"'+C+'"'),I=y(C),W=!I&&/^\d+$/.test(C),g.call(T,C,I,W,z,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function k(w){return w.match(s)&&!w.match(t)}function j(w){return n.test(w)}function N(w){return!y(w)&&(k(w)||j(w))}return _t}var Le=Ea(),Nt,Er;function _a(){if(Er)return Nt;Er=1;const r=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(r)||[],t=f=>f[0].toUpperCase()+f.slice(1),s=(f,p)=>e(f).join(p).toLowerCase(),n=f=>e(f).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return Nt={words:e,upperFirst:t,camelCase:n,pascalCase:f=>t(n(f)),snakeCase:f=>s(f,"_"),kebabCase:f=>s(f,"-"),sentenceCase:f=>t(s(f," ")),titleCase:f=>e(f).map(t).join(" ")},Nt}var Ft=_a(),at={exports:{}},_r;function Na(){if(_r)return at.exports;_r=1,at.exports=function(n){return r(e(n),n)},at.exports.array=r;function r(n,a){var i=n.length,l=new Array(i),c={},d=i,f=t(a),p=s(n);for(a.forEach(function(y){if(!p.has(y[0])||!p.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)c[d]||m(n[d],d,new Set);return l;function m(y,k,j){if(j.has(y)){var N;try{N=", node was:"+JSON.stringify(y)}catch{N=""}throw new Error("Cyclic dependency"+N)}if(!p.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!c[k]){c[k]=!0;var w=f.get(y)||new Set;if(w=Array.from(w),k=w.length){j.add(y);do{var g=w[--k];m(g,p.get(g),j)}while(k);j.delete(y)}l[--i]=y}}}function e(n){for(var a=new Set,i=0,l=n.length;i<l;i++){var c=n[i];a.add(c[0]),a.add(c[1])}return Array.from(a)}function t(n){for(var a=new Map,i=0,l=n.length;i<l;i++){var c=n[i];a.has(c[0])||a.set(c[0],new Set),a.has(c[1])||a.set(c[1],new Set),a.get(c[0]).add(c[1])}return a}function s(n){for(var a=new Map,i=0,l=n.length;i<l;i++)a.set(n[i],i);return a}return at.exports}var Fa=Na();const Sa=Ms(Fa),Ta=Object.prototype.toString,Oa=Error.prototype.toString,Ca=RegExp.prototype.toString,Aa=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",$a=/^Symbol\((.*)\)(.*)$/;function Ra(r){return r!=+r?"NaN":r===0&&1/r<0?"-0":""+r}function Nr(r,e=!1){if(r==null||r===!0||r===!1)return""+r;const t=typeof r;if(t==="number")return Ra(r);if(t==="string")return e?`"${r}"`:r;if(t==="function")return"[Function "+(r.name||"anonymous")+"]";if(t==="symbol")return Aa.call(r).replace($a,"Symbol($1)");const s=Ta.call(r).slice(8,-1);return s==="Date"?isNaN(r.getTime())?""+r:r.toISOString(r):s==="Error"||r instanceof Error?"["+Oa.call(r)+"]":s==="RegExp"?Ca.call(r):null}function Re(r,e){let t=Nr(r,e);return t!==null?t:JSON.stringify(r,function(s,n){let a=Nr(this[s],e);return a!==null?a:n},2)}function fs(r){return r==null?[]:[].concat(r)}let hs,ms,xs,Da=/\$\{\s*(\w+)\s*\}/g;hs=Symbol.toStringTag;class Fr{constructor(e,t,s,n){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[hs]="Error",this.name="ValidationError",this.value=t,this.path=s,this.type=n,this.errors=[],this.inner=[],fs(e).forEach(a=>{if(me.isError(a)){this.errors.push(...a.errors);const i=a.inner.length?a.inner:[a];this.inner.push(...i)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}ms=Symbol.hasInstance;xs=Symbol.toStringTag;class me extends Error{static formatError(e,t){const s=t.label||t.path||"this";return t=Object.assign({},t,{path:s,originalPath:t.path}),typeof e=="string"?e.replace(Da,(n,a)=>Re(t[a])):typeof e=="function"?e(t):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,t,s,n,a){const i=new Fr(e,t,s,n);if(a)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[xs]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,me)}static[ms](e){return Fr[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Ee={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:r,type:e,value:t,originalValue:s})=>{const n=s!=null&&s!==t?` (cast from the value \`${Re(s,!0)}\`).`:".";return e!=="mixed"?`${r} must be a \`${e}\` type, but the final value was: \`${Re(t,!0)}\``+n:`${r} must match the configured type. The validated value was: \`${Re(t,!0)}\``+n}},he={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ce={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},At={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Va={isValue:"${path} field must be ${value}"},lt={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ma={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},La={notType:r=>{const{path:e,value:t,spec:s}=r,n=s.types.length;if(Array.isArray(t)){if(t.length<n)return`${e} tuple value has too few items, expected a length of ${n} but got ${t.length} for value: \`${Re(t,!0)}\``;if(t.length>n)return`${e} tuple value has too many items, expected a length of ${n} but got ${t.length} for value: \`${Re(t,!0)}\``}return me.formatError(Ee.notType,r)}};Object.assign(Object.create(null),{mixed:Ee,string:he,number:Ce,date:At,object:lt,array:Ma,boolean:Va,tuple:La});const Zt=r=>r&&r.__isYupSchema__;class pt{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:s,then:n,otherwise:a}=t,i=typeof s=="function"?s:(...l)=>l.every(c=>c===s);return new pt(e,(l,c)=>{var d;let f=i(...l)?n:a;return(d=f==null?void 0:f(c))!=null?d:c})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let s=this.refs.map(a=>a.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),n=this.fn(s,e,t);if(n===void 0||n===e)return e;if(!Zt(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}}const it={context:"$",value:"."};class Ie{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===it.context,this.isValue=this.key[0]===it.value,this.isSibling=!this.isContext&&!this.isValue;let s=this.isContext?it.context:this.isValue?it.value:"";this.path=this.key.slice(s.length),this.getter=this.path&&Le.getter(this.path,!0),this.map=t.map}getValue(e,t,s){let n=this.isContext?s:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,t==null?void 0:t.parent,t==null?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Ie.prototype.__isYupRef=!0;const Se=r=>r==null;function Be(r){function e({value:t,path:s="",options:n,originalValue:a,schema:i},l,c){const{name:d,test:f,params:p,message:m,skipAbsent:y}=r;let{parent:k,context:j,abortEarly:N=i.spec.abortEarly,disableStackTrace:w=i.spec.disableStackTrace}=n;function g(M){return Ie.isRef(M)?M.getValue(t,k,j):M}function T(M={}){const P=Object.assign({value:t,originalValue:a,label:i.spec.label,path:M.path||s,spec:i.spec,disableStackTrace:M.disableStackTrace||w},p,M.params);for(const $ of Object.keys(P))P[$]=g(P[$]);const _=new me(me.formatError(M.message||m,P),t,P.path,M.type||d,P.disableStackTrace);return _.params=P,_}const V=N?l:c;let C={path:s,parent:k,type:d,from:n.from,createError:T,resolve:g,options:n,originalValue:a,schema:i};const z=M=>{me.isError(M)?V(M):M?c(null):V(T())},W=M=>{me.isError(M)?V(M):l(M)};if(y&&Se(t))return z(!0);let B;try{var G;if(B=f.call(C,t,C),typeof((G=B)==null?void 0:G.then)=="function"){if(n.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(B).then(z,W)}}catch(M){W(M);return}z(B)}return e.OPTIONS=r,e}function Ia(r,e,t,s=t){let n,a,i;return e?(Le.forEach(e,(l,c,d)=>{let f=c?l.slice(1,l.length-1):l;r=r.resolve({context:s,parent:n,value:t});let p=r.type==="tuple",m=d?parseInt(f,10):0;if(r.innerType||p){if(p&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${i}" must contain an index to the tuple element, e.g. "${i}[0]"`);if(t&&m>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${e}. because there is no value at that index. `);n=t,t=t&&t[m],r=p?r.spec.types[m]:r.innerType}if(!d){if(!r.fields||!r.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${i} which is a type: "${r.type}")`);n=t,t=t&&t[f],r=r.fields[f]}a=f,i=c?"["+l+"]":"."+l}),{schema:r,parent:n,parentPath:a}):{parent:n,parentPath:e,schema:r}}class gt extends Set{describe(){const e=[];for(const t of this.values())e.push(Ie.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const s of this.values())t.push(e(s));return t}clone(){return new gt(this.values())}merge(e,t){const s=this.clone();return e.forEach(n=>s.add(n)),t.forEach(n=>s.delete(n)),s}}function Ze(r,e=new Map){if(Zt(r)||!r||typeof r!="object")return r;if(e.has(r))return e.get(r);let t;if(r instanceof Date)t=new Date(r.getTime()),e.set(r,t);else if(r instanceof RegExp)t=new RegExp(r),e.set(r,t);else if(Array.isArray(r)){t=new Array(r.length),e.set(r,t);for(let s=0;s<r.length;s++)t[s]=Ze(r[s],e)}else if(r instanceof Map){t=new Map,e.set(r,t);for(const[s,n]of r.entries())t.set(s,Ze(n,e))}else if(r instanceof Set){t=new Set,e.set(r,t);for(const s of r)t.add(Ze(s,e))}else if(r instanceof Object){t={},e.set(r,t);for(const[s,n]of Object.entries(r))t[s]=Ze(n,e)}else throw Error(`Unable to clone ${r}`);return t}class ge{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gt,this._blacklist=new gt,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ee.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(t=>{t.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Ze(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(e.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let s=e(this);return this._mutate=t,s}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,s=e.clone();const n=Object.assign({},t.spec,s.spec);return s.spec=n,s.internalTests=Object.assign({},t.internalTests,s.internalTests),s._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),s._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),s.tests=t.tests,s.exclusiveTests=t.exclusiveTests,s.withMutation(a=>{e.tests.forEach(i=>{a.test(i.OPTIONS)})}),s.transforms=[...t.transforms,...s.transforms],s}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let s=t.conditions;t=t.clone(),t.conditions=[],t=s.reduce((n,a)=>a.resolve(n,e),t),t=t.resolve(e)}return t}resolveOptions(e){var t,s,n,a;return Object.assign({},e,{from:e.from||[],strict:(t=e.strict)!=null?t:this.spec.strict,abortEarly:(s=e.abortEarly)!=null?s:this.spec.abortEarly,recursive:(n=e.recursive)!=null?n:this.spec.recursive,disableStackTrace:(a=e.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(e,t={}){let s=this.resolve(Object.assign({value:e},t)),n=t.assert==="ignore-optionality",a=s._cast(e,t);if(t.assert!==!1&&!s.isType(a)){if(n&&Se(a))return a;let i=Re(e),l=Re(a);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${s.type}".
|
|
27
|
+
|
|
28
|
+
attempted value: ${i}
|
|
29
|
+
`+(l!==i?`result of cast: ${l}`:""))}return a}_cast(e,t){let s=e===void 0?e:this.transforms.reduce((n,a)=>a.call(this,n,e,this),e);return s===void 0&&(s=this.getDefault(t)),s}_validate(e,t={},s,n){let{path:a,originalValue:i=e,strict:l=this.spec.strict}=t,c=e;l||(c=this._cast(c,Object.assign({assert:!1},t)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:a,value:c,originalValue:i,options:t,tests:d},s,f=>{if(f.length)return n(f,c);this.runTests({path:a,value:c,originalValue:i,options:t,tests:this.tests},s,n)})}runTests(e,t,s){let n=!1,{tests:a,value:i,originalValue:l,path:c,options:d}=e,f=j=>{n||(n=!0,t(j,i))},p=j=>{n||(n=!0,s(j,i))},m=a.length,y=[];if(!m)return p([]);let k={value:i,originalValue:l,path:c,options:d,schema:this};for(let j=0;j<a.length;j++){const N=a[j];N(k,f,function(g){g&&(Array.isArray(g)?y.push(...g):y.push(g)),--m<=0&&p(y)})}}asNestedTest({key:e,index:t,parent:s,parentPath:n,originalParent:a,options:i}){const l=e??t;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const c=typeof l=="number";let d=s[l];const f=Object.assign({},i,{strict:!0,parent:s,value:d,originalValue:a[l],key:void 0,[c?"index":"key"]:l,path:c||l.includes(".")?`${n||""}[${c?l:`"${l}"`}]`:(n?`${n}.`:"")+e});return(p,m,y)=>this.resolve(f)._validate(d,f,m,y)}validate(e,t){var s;let n=this.resolve(Object.assign({},t,{value:e})),a=(s=t==null?void 0:t.disableStackTrace)!=null?s:n.spec.disableStackTrace;return new Promise((i,l)=>n._validate(e,t,(c,d)=>{me.isError(c)&&(c.value=d),l(c)},(c,d)=>{c.length?l(new me(c,d,void 0,void 0,a)):i(d)}))}validateSync(e,t){var s;let n=this.resolve(Object.assign({},t,{value:e})),a,i=(s=t==null?void 0:t.disableStackTrace)!=null?s:n.spec.disableStackTrace;return n._validate(e,Object.assign({},t,{sync:!0}),(l,c)=>{throw me.isError(l)&&(l.value=c),l},(l,c)=>{if(l.length)throw new me(l,e,void 0,void 0,i);a=c}),a}isValid(e,t){return this.validate(e,t).then(()=>!0,s=>{if(me.isError(s))return!1;throw s})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(s){if(me.isError(s))return!1;throw s}}_getDefault(e){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this,e):Ze(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){const s=this.clone({nullable:e});return s.internalTests.nullable=Be({message:t,name:"nullable",test(n){return n===null?this.schema.spec.nullable:!0}}),s}optionality(e,t){const s=this.clone({optional:e});return s.internalTests.optionality=Be({message:t,name:"optionality",test(n){return n===void 0?this.schema.spec.optional:!0}}),s}optional(){return this.optionality(!0)}defined(e=Ee.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ee.notNull){return this.nullability(!1,e)}required(e=Ee.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(e.length===1?typeof e[0]=="function"?t={test:e[0]}:t=e[0]:e.length===2?t={name:e[0],test:e[1]}:t={name:e[0],message:e[1],test:e[2]},t.message===void 0&&(t.message=Ee.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let s=this.clone(),n=Be(t),a=t.exclusive||t.name&&s.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(s.exclusiveTests[t.name]=!!t.exclusive),s.tests=s.tests.filter(i=>!(i.OPTIONS.name===t.name&&(a||i.OPTIONS.test===n.OPTIONS.test))),s.tests.push(n),s}when(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=".");let s=this.clone(),n=fs(e).map(a=>new Ie(a));return n.forEach(a=>{a.isSibling&&s.deps.push(a.key)}),s.conditions.push(typeof t=="function"?new pt(n,t):pt.fromOptions(n,t)),s}typeError(e){let t=this.clone();return t.internalTests.typeError=Be({message:e,name:"typeError",skipAbsent:!0,test(s){return this.schema._typeCheck(s)?!0:this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=Ee.oneOf){let s=this.clone();return e.forEach(n=>{s._whitelist.add(n),s._blacklist.delete(n)}),s.internalTests.whiteList=Be({message:t,name:"oneOf",skipAbsent:!0,test(n){let a=this.schema._whitelist,i=a.resolveAll(this.resolve);return i.includes(n)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:i}})}}),s}notOneOf(e,t=Ee.notOneOf){let s=this.clone();return e.forEach(n=>{s._blacklist.add(n),s._whitelist.delete(n)}),s.internalTests.blacklist=Be({message:t,name:"notOneOf",test(n){let a=this.schema._blacklist,i=a.resolveAll(this.resolve);return i.includes(n)?this.createError({params:{values:Array.from(a).join(", "),resolved:i}}):!0}}),s}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:s,meta:n,optional:a,nullable:i}=t.spec;return{meta:n,label:s,optional:a,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,f)=>f.findIndex(p=>p.name===c.name)===d)}}}ge.prototype.__isYupSchema__=!0;for(const r of["validate","validateSync"])ge.prototype[`${r}At`]=function(e,t,s={}){const{parent:n,parentPath:a,schema:i}=Ia(this,e,t,s.context);return i[r](n&&n[a],Object.assign({},s,{parent:n,path:e}))};for(const r of["equals","is"])ge.prototype[r]=ge.prototype.oneOf;for(const r of["not","nope"])ge.prototype[r]=ge.prototype.notOneOf;const Pa=()=>!0;function $t(r){return new ps(r)}class ps extends ge{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:Pa},e))}}$t.prototype=ps.prototype;const Ua=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ba(r){const e=Rt(r);if(!e)return Date.parse?Date.parse(r):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let t=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(t=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(t=0-t)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+t,e.second,e.millisecond)}function Rt(r){var e,t;const s=Ua.exec(r);return s?{year:Fe(s[1]),month:Fe(s[2],1)-1,day:Fe(s[3],1),hour:Fe(s[4]),minute:Fe(s[5]),second:Fe(s[6]),millisecond:s[7]?Fe(s[7].substring(0,3)):0,precision:(e=(t=s[7])==null?void 0:t.length)!=null?e:void 0,z:s[8]||void 0,plusMinus:s[9]||void 0,hourOffset:Fe(s[10]),minuteOffset:Fe(s[11])}:null}function Fe(r,e=0){return Number(r)||e}let Za=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,za=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Wa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,qa="^\\d{4}-\\d{2}-\\d{2}",Ha="\\d{2}:\\d{2}:\\d{2}",Ya="(([+-]\\d{2}(:?\\d{2})?)|Z)",Ga=new RegExp(`${qa}T${Ha}(\\.\\d+)?${Ya}$`),Xa=r=>Se(r)||r===r.trim(),Ja={}.toString();function gs(){return new bs}class bs extends ge{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,t,s)=>{if(!s.spec.coerce||s.isType(e)||Array.isArray(e))return e;const n=e!=null&&e.toString?e.toString():e;return n===Ja?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||Ee.required,name:"required",skipAbsent:!0,test:s=>!!s.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(t=>t.OPTIONS.name!=="required"),e))}length(e,t=he.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(s){return s.length===this.resolve(e)}})}min(e,t=he.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(s){return s.length>=this.resolve(e)}})}max(e,t=he.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(s){return s.length<=this.resolve(e)}})}matches(e,t){let s=!1,n,a;return t&&(typeof t=="object"?{excludeEmptyString:s=!1,message:n,name:a}=t:n=t),this.test({name:a||"matches",message:n||he.matches,params:{regex:e},skipAbsent:!0,test:i=>i===""&&s||i.search(e)!==-1})}email(e=he.email){return this.matches(Za,{name:"email",message:e,excludeEmptyString:!0})}url(e=he.url){return this.matches(za,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=he.uuid){return this.matches(Wa,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t="",s,n;return e&&(typeof e=="object"?{message:t="",allowOffset:s=!1,precision:n=void 0}=e:t=e),this.matches(Ga,{name:"datetime",message:t||he.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:t||he.datetime_offset,params:{allowOffset:s},skipAbsent:!0,test:a=>{if(!a||s)return!0;const i=Rt(a);return i?!!i.z:!1}}).test({name:"datetime_precision",message:t||he.datetime_precision,params:{precision:n},skipAbsent:!0,test:a=>{if(!a||n==null)return!0;const i=Rt(a);return i?i.precision===n:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=he.trim){return this.transform(t=>t!=null?t.trim():t).test({message:e,name:"trim",test:Xa})}lowercase(e=he.lowercase){return this.transform(t=>Se(t)?t:t.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>Se(t)||t===t.toLowerCase()})}uppercase(e=he.uppercase){return this.transform(t=>Se(t)?t:t.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:t=>Se(t)||t===t.toUpperCase()})}}gs.prototype=bs.prototype;let Ka=r=>r!=+r;function ys(){return new vs}class vs extends ge{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!Ka(e)}}),this.withMutation(()=>{this.transform((e,t,s)=>{if(!s.spec.coerce)return e;let n=e;if(typeof n=="string"){if(n=n.replace(/\s/g,""),n==="")return NaN;n=+n}return s.isType(n)||n===null?n:parseFloat(n)})})}min(e,t=Ce.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(s){return s>=this.resolve(e)}})}max(e,t=Ce.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(s){return s<=this.resolve(e)}})}lessThan(e,t=Ce.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(s){return s<this.resolve(e)}})}moreThan(e,t=Ce.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(s){return s>this.resolve(e)}})}positive(e=Ce.positive){return this.moreThan(0,e)}negative(e=Ce.negative){return this.lessThan(0,e)}integer(e=Ce.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:t=>Number.isInteger(t)})}truncate(){return this.transform(e=>Se(e)?e:e|0)}round(e){var t;let s=["ceil","floor","round","trunc"];if(e=((t=e)==null?void 0:t.toLowerCase())||"round",e==="trunc")return this.truncate();if(s.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+s.join(", "));return this.transform(n=>Se(n)?n:Math[e](n))}}ys.prototype=vs.prototype;let ws=new Date(""),Qa=r=>Object.prototype.toString.call(r)==="[object Date]";function zt(){return new et}class et extends ge{constructor(){super({type:"date",check(e){return Qa(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,t,s)=>!s.spec.coerce||s.isType(e)||e===null?e:(e=Ba(e),isNaN(e)?et.INVALID_DATE:new Date(e)))})}prepareParam(e,t){let s;if(Ie.isRef(e))s=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);s=n}return s}min(e,t=At.min){let s=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(n){return n>=this.resolve(s)}})}max(e,t=At.max){let s=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(n){return n<=this.resolve(s)}})}}et.INVALID_DATE=ws;zt.prototype=et.prototype;zt.INVALID_DATE=ws;function ei(r,e=[]){let t=[],s=new Set,n=new Set(e.map(([i,l])=>`${i}-${l}`));function a(i,l){let c=Le.split(i)[0];s.add(c),n.has(`${l}-${c}`)||t.push([l,c])}for(const i of Object.keys(r)){let l=r[i];s.add(i),Ie.isRef(l)&&l.isSibling?a(l.path,i):Zt(l)&&"deps"in l&&l.deps.forEach(c=>a(c,i))}return Sa.array(Array.from(s),t).reverse()}function Sr(r,e){let t=1/0;return r.some((s,n)=>{var a;if((a=e.path)!=null&&a.includes(s))return t=n,!0}),t}function js(r){return(e,t)=>Sr(r,e)-Sr(r,t)}const ti=(r,e,t)=>{if(typeof r!="string")return r;let s=r;try{s=JSON.parse(r)}catch{}return t.isType(s)?s:r};function ct(r){if("fields"in r){const e={};for(const[t,s]of Object.entries(r.fields))e[t]=ct(s);return r.setFields(e)}if(r.type==="array"){const e=r.optional();return e.innerType&&(e.innerType=ct(e.innerType)),e}return r.type==="tuple"?r.optional().clone({types:r.spec.types.map(ct)}):"optional"in r?r.optional():r}const ri=(r,e)=>{const t=[...Le.normalizePath(e)];if(t.length===1)return t[0]in r;let s=t.pop(),n=Le.getter(Le.join(t),!0)(r);return!!(n&&s in n)};let Tr=r=>Object.prototype.toString.call(r)==="[object Object]";function Or(r,e){let t=Object.keys(r.fields);return Object.keys(e).filter(s=>t.indexOf(s)===-1)}const si=js([]);function ks(r){return new Es(r)}class Es extends ge{constructor(e){super({type:"object",check(t){return Tr(t)||typeof t=="function"}}),this.fields=Object.create(null),this._sortErrors=si,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var s;let n=super._cast(e,t);if(n===void 0)return this.getDefault(t);if(!this._typeCheck(n))return n;let a=this.fields,i=(s=t.stripUnknown)!=null?s:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(n).filter(p=>!this._nodes.includes(p))),c={},d=Object.assign({},t,{parent:c,__validating:t.__validating||!1}),f=!1;for(const p of l){let m=a[p],y=p in n;if(m){let k,j=n[p];d.path=(t.path?`${t.path}.`:"")+p,m=m.resolve({value:j,context:t.context,parent:c});let N=m instanceof ge?m.spec:void 0,w=N==null?void 0:N.strict;if(N!=null&&N.strip){f=f||p in n;continue}k=!t.__validating||!w?m.cast(n[p],d):n[p],k!==void 0&&(c[p]=k)}else y&&!i&&(c[p]=n[p]);(y!==p in c||c[p]!==n[p])&&(f=!0)}return f?c:n}_validate(e,t={},s,n){let{from:a=[],originalValue:i=e,recursive:l=this.spec.recursive}=t;t.from=[{schema:this,value:i},...a],t.__validating=!0,t.originalValue=i,super._validate(e,t,s,(c,d)=>{if(!l||!Tr(d)){n(c,d);return}i=i||d;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||Ie.isRef(m)||f.push(m.asNestedTest({options:t,key:p,parent:d,parentPath:t.path,originalParent:i}))}this.runTests({tests:f,value:d,originalValue:i,options:t},s,p=>{n(p.sort(this._sortErrors).concat(c),d)})})}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),s=t.fields;for(let[n,a]of Object.entries(this.fields)){const i=s[n];s[n]=i===void 0?a:i}return t.withMutation(n=>n.setFields(s,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(s=>{var n;const a=this.fields[s];let i=e;(n=i)!=null&&n.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[s]})),t[s]=a&&"getDefault"in a?a.getDefault(i):void 0}),t}setFields(e,t){let s=this.clone();return s.fields=e,s._nodes=ei(e,t),s._sortErrors=js(Object.keys(e)),t&&(s._excludedEdges=t),s}shape(e,t=[]){return this.clone().withMutation(s=>{let n=s._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...s._excludedEdges,...t]),s.setFields(Object.assign(s.fields,e),n)})}partial(){const e={};for(const[t,s]of Object.entries(this.fields))e[t]="optional"in s&&s.optional instanceof Function?s.optional():s;return this.setFields(e)}deepPartial(){return ct(this)}pick(e){const t={};for(const s of e)this.fields[s]&&(t[s]=this.fields[s]);return this.setFields(t,this._excludedEdges.filter(([s,n])=>e.includes(s)&&e.includes(n)))}omit(e){const t=[];for(const s of Object.keys(this.fields))e.includes(s)||t.push(s);return this.pick(t)}from(e,t,s){let n=Le.getter(e,!0);return this.transform(a=>{if(!a)return a;let i=a;return ri(a,e)&&(i=Object.assign({},a),s||delete i[e],i[t]=n(a)),i})}json(){return this.transform(ti)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||lt.exact,test(t){if(t==null)return!0;const s=Or(this.schema,t);return s.length===0||this.createError({params:{properties:s.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,t=lt.noUnknown){typeof e!="boolean"&&(t=e,e=!0);let s=this.test({name:"noUnknown",exclusive:!0,message:t,test(n){if(n==null)return!0;const a=Or(this.schema,n);return!e||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return s.spec.noUnknown=e,s}unknown(e=!0,t=lt.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;const s={};for(const n of Object.keys(t))s[e(n)]=t[n];return s})}camelCase(){return this.transformKeys(Ft.camelCase)}snakeCase(){return this.transformKeys(Ft.snakeCase)}constantCase(){return this.transformKeys(e=>Ft.snakeCase(e).toUpperCase())}describe(e){const t=(e?this.resolve(e):this).clone(),s=super.describe(e);s.fields={};for(const[a,i]of Object.entries(t.fields)){var n;let l=e;(n=l)!=null&&n.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[a]})),s.fields[a]=i.describe(l)}return s}}ks.prototype=Es.prototype;function ni({fields:r,explicitSchema:e}){return v.useMemo(()=>{if(e)return jr(e);const t={};r.forEach(n=>{var i,l,c,d,f,p,m;let a;switch(n.type){case"text":case"password":case"email":if(a=gs(),(i=n.validation)!=null&&i.required){const y=typeof n.validation.required=="string"?n.validation.required:"Campo obligatorio";a=a.required(y)}(l=n.validation)!=null&&l.minLength&&(a=a.min(n.validation.minLength.value,n.validation.minLength.message)),(c=n.validation)!=null&&c.maxLength&&(a=a.max(n.validation.maxLength.value,n.validation.maxLength.message)),(d=n.validation)!=null&&d.pattern&&(a=a.matches(n.validation.pattern.value,n.validation.pattern.message)),n.type==="email"&&(a=a.email("Email inválido"));break;case"number":if(a=ys(),(f=n.validation)!=null&&f.required){const y=typeof n.validation.required=="string"?n.validation.required:"Campo obligatorio";a=a.required(y)}break;case"select":case"optionGroup":if(a=$t(),(p=n.validation)!=null&&p.required){const y=typeof n.validation.required=="string"?n.validation.required:"Campo obligatorio";a=a.required(y)}break;case"date":if(a=zt(),(m=n.validation)!=null&&m.required){const y=typeof n.validation.required=="string"?n.validation.required:"Campo obligatorio";a=a.required(y)}break;default:a=$t()}t[n.name]=a});const s=ks().shape(t);return jr(s)},[r,e])}function ai(r){return v.useMemo(()=>{const e={};return r.forEach(t=>{e[t.name]=t}),e},[r])}function ii(r){const e=v.useMemo(()=>r.filter(i=>i.type==="select"&&i.loadOptions),[r]),[t,s]=v.useState(e.length),[n,a]=v.useState({});return v.useEffect(()=>{e.length!==0&&e.forEach(i=>{i.loadOptions().then(l=>a(c=>({...c,[i.name]:l}))).finally(()=>s(l=>Math.max(0,l-1)))})},[e]),{loadingCount:t,optionsMap:n}}function oi(r,e){const t=v.useMemo(()=>r.filter(i=>i.disabledWhen),[r]),s=v.useMemo(()=>t.map(i=>i.disabledWhen.watchField),[t]),n=zr({control:e,name:s}),a={};return t.forEach(i=>{const l=s.indexOf(i.disabledWhen.watchField),c=n[l];a[i.name]=c===i.disabledWhen.watchValue}),a}const Cr={sm:"text-ds-sm",md:"text-ds-md",lg:"text-ds-lg"},li={sm:"px-2 py-1",md:"px-3 py-2",lg:"px-4 py-3"};function Wt({control:r,name:e,rules:t,defaultValue:s,size:n="sm",width:a="100%",label:i,labelHidden:l=!1,hasError:c=!1,errorMessage:d="",maxLength:f,showCounter:p=!1,className:m,...y}){const k=v.useId(),j=e||k,[N,w]=v.useState(s||"");if(r&&e)return o.jsx(ve,{name:e,control:r,rules:t,defaultValue:s||"",render:({field:T,fieldState:V})=>{var C;return o.jsx(Wt,{...y,size:n,width:a,label:i,labelHidden:l,hasError:!!V.error,errorMessage:((C=V.error)==null?void 0:C.message)||"",maxLength:f,showCounter:p,className:m,value:T.value,onChange:T.onChange})}});v.useEffect(()=>{w(s||"")},[s]);const g=T=>{var V;f!==void 0&&T.target.value.length>f||(w(T.target.value),(V=y.onChange)==null||V.call(y,T))};return o.jsxs("div",{className:A("flex flex-col",m),style:{width:a},children:[i&&o.jsx("label",{htmlFor:j,className:A("pb-2 text-[var(--color-ds-text-primary)]",Cr[n],l&&"sr-only"),children:i}),o.jsx("textarea",{id:j,className:A("box-border w-full resize vertical rounded-lg border outline-none transition font-[var(--font-primary)]",Cr[n],li[n],c?"border-[var(--color-ds-border-error)]":"border-[var(--color-ds-border-default)]",y.disabled?"bg-[var(--color-ds-background-disabled)] border-[var(--color-ds-border-muted)] text-[var(--color-ds-text-secondary)] cursor-not-allowed":"bg-transparent text-[var(--color-ds-text-primary)]"),value:N,onChange:g,maxLength:f,...y}),o.jsxs("div",{className:"flex justify-between pt-1 min-h-[18px]",children:[c&&d?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:d}):o.jsx("span",{"aria-hidden":"true",children:" "}),p&&f!==void 0&&o.jsxs("span",{className:"text-xs text-[var(--color-ds-text-secondary)]",children:[N.length,"/",f]})]})]})}const ci={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"};function ui({control:r,name:e,rules:t,defaultValue:s=!1,label:n,labelHidden:a=!1,disabled:i=!1,size:l="sm",className:c,hasError:d=!1,errorMessage:f=""}){return o.jsx("div",{className:A("flex flex-col",c),children:o.jsx(ve,{name:e,control:r,rules:t,defaultValue:s,render:({field:p,fieldState:m})=>{const y=m.error;return o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("input",{id:e,type:"checkbox",className:A(ci[l],"text-[var(--color-ds-button-primary-bg)]","border-[var(--color-ds-border-default)]",i&&"opacity-50 cursor-not-allowed"),checked:p.value,onChange:k=>p.onChange(k.target.checked),disabled:i}),o.jsx("span",{className:A("text-[var(--color-ds-text-primary)] text-ds-md",i&&"text-[var(--color-ds-text-secondary)]"),children:n}),d&&(y==null?void 0:y.message)&&o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:y.message})]})}})})}function di({schema:r}){const{layout:e,fields:t,onSubmit:s,successMessage:n,errorMessage:a,footerButtons:i,defaultValues:l,loadDefaultValues:c,validationSchema:d}=r,{show:f}=us(),{t:p}=Ut(),m=ni({fields:t,explicitSchema:d}),y=Ln({resolver:m,mode:"onBlur",reValidateMode:"onChange",defaultValues:l??{}}),{control:k,reset:j,watch:N,handleSubmit:w,formState:{errors:g,isSubmitting:T}}=y,[V,C]=v.useState(!1);v.useEffect(()=>{c&&(C(!0),c().then(q=>j(q)).finally(()=>C(!1)))},[c,j]);const{loadingCount:z,optionsMap:W}=ii(t),I=ai(t),B=oi(t,k),G=v.useMemo(()=>{const q={};return e.forEach((h,D)=>{h.type==="tabs"&&(q[D]=h.tabs[0].key)}),q},[e]),[M,P]=v.useState(G),_=v.useCallback(q=>{const h=N(),{watchField:D,watchValue:Z}=q;return typeof Z=="function"?Z(h):h[D]===Z},[N]),$=v.useCallback(q=>{var oe,Te,je,te;let h;if(typeof q=="string"){if(h=I[q],!h)return null}else h=q;if("visibleWhen"in h&&h.visibleWhen&&!_(h.visibleWhen))return null;let D=!!h.disabled;if("disabledWhen"in h&&h.disabledWhen&&_(h.disabledWhen)&&(D=!0),!D&&B[h.name]&&(D=!0),h.type==="inputGroup"){const H=h,fe=H.inputs.map(ke=>{var ze;let ae;if(typeof ke=="string"?ae=I[ke]:ae=ke,!ae)return{};let Pe=!!ae.disabled;return ae.disabledWhen&&_(ae.disabledWhen)&&(Pe=!0),!Pe&&B[ae.name]&&(Pe=!0),{name:ae.name,control:k,rules:ae.validation,defaultValue:void 0,label:ae.label,size:ae.size,width:ae.width,placeholder:ae.placeholder,hasError:!!g[ae.name],errorMessage:((ze=g[ae.name])==null?void 0:ze.message)||"",loading:V,type:ae.type,disabled:Pe,suffixButton:ae.suffixButton}});return o.jsx(is,{groupLabel:H.groupLabel,inputs:fe,separator:H.separator,useSeparator:H.useSeparator,className:H.className,showVisibleLabel:H.showVisibleLabel,size:H.size},`inputGroup_${H.groupLabel}`)}if(h.type==="button"){const H=h;return o.jsx("div",{className:"self-center",children:o.jsx($e,{type:"button",variant:H.variant,size:H.size,width:H.width,icon:H.icon,iconPosition:H.iconPosition,ariaLabel:H.ariaLabel,onClick:H.onClick,disabled:D||T,children:H.label})},H.name)}const Z=h.suffixButton;let X;typeof Z=="string"?X=$(Z):X=Z;const ne={name:h.name,control:k,disabled:D||T,label:h.label,size:h.size,width:h.width,placeholder:h.placeholder,info:h.info,suffixButton:X};switch(h.type){case"select":return o.jsx(ve,{name:h.name,control:k,render:({field:H})=>{var fe;return o.jsx(xt,{...ne,value:H.value,onChange:H.onChange,options:h.options??W[h.name]??[],loadOptions:h.options?void 0:h.loadOptions,hasError:!!g[h.name],errorMessage:(fe=g[h.name])==null?void 0:fe.message,suffixButton:X})}},h.name);case"textarea":return o.jsx(ve,{name:h.name,control:k,render:({field:H,fieldState:fe})=>{var ke;return o.jsx(Wt,{...ne,value:H.value,onChange:H.onChange,maxLength:h.maxLength,showCounter:!!h.showCounter,hasError:!!fe.error,errorMessage:((ke=fe.error)==null?void 0:ke.message)||""})}},h.name);case"file":return o.jsx(rs,{...ne,defaultValue:[],maxFiles:h.maxFiles,accept:h.accept,hasError:!!g[h.name],errorMessage:(oe=g[h.name])==null?void 0:oe.message},h.name);case"checkbox":return o.jsx(ui,{...ne,defaultValue:!1,hasError:!!g[h.name],errorMessage:(Te=g[h.name])==null?void 0:Te.message},h.name);case"date":return o.jsx(Qr,{...ne,defaultValue:"",showTime:!!h.showTime,hasError:!!g[h.name],errorMessage:(je=g[h.name])==null?void 0:je.message},h.name);case"optionGroup":return o.jsx(os,{...ne,options:h.options||[],multiple:h.multiple,vertical:h.vertical,groupLabel:h.groupLabel,defaultValue:void 0,className:h.width?void 0:"w-full"},h.name);default:return o.jsx(Bt,{...ne,type:h.type,loadingDefaults:V,hasError:!!g[h.name],errorMessage:(te=g[h.name])==null?void 0:te.message,suffixButton:X},h.name)}},[I,k,g,T,V,W,_,B]);function U(q){return q.map((h,D)=>{var X;const Z=`${h.width??"flex-1"} px-2 flex flex-col`;return h.cols?o.jsx("div",{className:Z,children:o.jsx("div",{className:"flex flex-wrap -mx-2",children:U(h.cols)})},D):h.rows?o.jsx("div",{className:Z,children:Y(h.rows)},D):o.jsx("div",{className:Z,children:o.jsx("div",{className:"space-y-4",children:(X=h.fields)==null?void 0:X.map((ne,oe)=>o.jsx(v.Fragment,{children:$(ne)},oe))})},D)})}function Y(q){return q.map((h,D)=>o.jsxs("div",{children:[h.title&&o.jsx("h2",{className:"mb-2 text-lg text-[var(--color-ds-text-primary)]",children:h.title}),o.jsx("div",{className:"flex flex-wrap -mx-2",children:U(h.columns)})]},D))}const ee=v.useCallback(q=>q.map((h,D)=>o.jsx("div",{className:"mb-6",children:o.jsx(Vr,{title:h.sectionTitle,defaultOpen:h.defaultOpen,children:Y(h.rows)})},D)),[]),we=v.useCallback(()=>e.map((q,h)=>{if(q.type==="rows")return o.jsx(v.Fragment,{children:ee(q.sections)},h);const D=M[h];return o.jsx(ns,{options:q.tabs.map(Z=>({label:Z.label,value:Z.key})),value:D,onChange:Z=>P(X=>({...X,[h]:Z})),children:Object.fromEntries(q.tabs.map(Z=>[Z.key,o.jsx("div",{className:"space-y-6",children:ee(Z.sections)},Z.key)]))},h)}),[e,M,ee]);return o.jsx(jn,{...y,children:o.jsxs("form",{noValidate:!0,onSubmit:w(async q=>{await s(q),f(n??p("ds.form.saveSuccess"),"success")},q=>{ma(q),f(a??p("ds.form.saveError"),"error")}),className:"space-y-6",children:[we(),o.jsx("footer",{className:"py-4 w-full flex justify-center space-x-4",children:i??o.jsx($e,{type:"submit",variant:"primary",icon:Ys,size:"sm",disabled:T||V||z>0,children:p(T?"ds.form.sending":"ds.form.submit")})})]})})}const fi={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"};function ut({icon:r,size:e="md",ariaLabel:t,disabled:s=!1,onClick:n,...a}){return o.jsx("button",{type:"button","aria-label":t,disabled:s,onClick:n,className:A("inline-flex items-center justify-center","rounded-full","bg-transparent","text-[var(--color-ds-text-primary)]","transition-transform","focus:outline-none",fi[e],s?"opacity-50 cursor-not-allowed":["hover:scale-110","hover:animate-pulse"]),...a,children:o.jsx(r,{className:A(e==="sm"?"h-4 w-4":e==="md"?"h-5 w-5":"h-6 w-6")})})}function _s({dark:r,onToggle:e}){return o.jsx("button",{type:"button","aria-pressed":r,"aria-label":r?"Cambiar a modo claro":"Cambiar a modo oscuro",onClick:e,className:A("relative inline-flex items-center transition-colors focus:outline-none duration-200 ease-in-out","bg-[var(--color-ds-background-accent)]","h-6 w-12 rounded-full"),children:o.jsxs("div",{className:A("absolute bg-[var(--color-ds-background-page)] flex items-center justify-center rounded-full transition-transform duration-200 ease-in-out","h-5 w-5",r?"translate-x-6":"translate-x-1"),children:[o.jsx(De,{component:pn,size:"sm",className:A("absolute transition-opacity duration-200 ease-in-out",r?"opacity-0":"opacity-100 text-[var(--color-ds-background-accent)]")}),o.jsx(De,{component:fn,size:"sm",className:A("absolute transition-opacity duration-200 ease-in-out",r?"opacity-100 text-[var(--color-ds-background-accent)]":"opacity-0")})]})})}const Ns=v.createContext({theme:"light",toggle:()=>{}});function hi({children:r}){const[e,t]=v.useState(!1),[s,n]=v.useState("light");v.useEffect(()=>{if(typeof window>"u")return;const i=localStorage.getItem("ds-theme");i==="light"||i==="dark"?n(i):window.matchMedia("(prefers-color-scheme: dark)").matches&&n("dark"),t(!0)},[]),v.useEffect(()=>{e&&(document.documentElement.classList.toggle("dark",s==="dark"),s==="dark"?localStorage.setItem("ds-theme","dark"):localStorage.removeItem("ds-theme"))},[s,e]);const a=()=>n(i=>i==="light"?"dark":"light");return e?o.jsx(Ns.Provider,{value:{theme:s,toggle:a},children:r}):null}const Fs=()=>v.useContext(Ns),Ss=({pinnedPages:r,onRemovePinned:e,onBack:t,dark:s,locale:n,languageOptions:a,onChangeLocale:i,profile:l,profileOptions:c,onChangeProfile:d})=>{const f=r.slice(0,3),{toggle:p}=Fs(),{t:m,i18n:y}=Ut(),k=j=>{y.changeLanguage(j),i(j)};return o.jsxs("header",{className:"flex items-center bg-[var(--color-ds-background-page)] py-2",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx(ut,{icon:mn,size:"sm",ariaLabel:m("back"),onClick:t}),o.jsx(ut,{icon:bn,size:"sm",ariaLabel:m("clearPins"),onClick:()=>r.forEach(j=>e(j.id))}),f.map(j=>o.jsxs("div",{className:"flex items-center space-x-1",children:[o.jsx("a",{href:j.href,className:A("inline-flex items-center rounded-lg","px-2 py-1 my-1 text-ds-sm","bg-transparent text-[var(--color-ds-text-primary)]","transition-colors duration-200 ease-in-out","hover:bg-[var(--color-ds-border-muted)] hover:animate-pulse"),children:j.label}),o.jsx(ut,{icon:Dt,size:"sm",ariaLabel:`${m("remove")} ${j.label}`,onClick:()=>e(j.id)})]},j.id))]}),o.jsx("div",{className:"flex-grow"}),o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx(xt,{size:"sm",width:"auto",options:a,value:n,onChange:k,disableErrorPlaceholder:!0}),o.jsx(xt,{size:"sm",width:"auto",options:c,value:l,onChange:d,disableErrorPlaceholder:!0}),o.jsx(_s,{dark:s,onToggle:p})]})]})},mi=({loading:r=!1,ariaLabel:e="Cargando..."})=>r?o.jsxs("div",{className:`\r
|
|
30
|
+
fixed inset-0\r
|
|
31
|
+
flex items-center justify-center\r
|
|
32
|
+
bg-[var(--color-ds-background-surface)]/90\r
|
|
33
|
+
z-50\r
|
|
34
|
+
`,role:"status","aria-live":"polite","aria-label":e,children:[o.jsx("div",{className:`\r
|
|
35
|
+
w-12 h-12\r
|
|
36
|
+
border-4 rounded-full\r
|
|
37
|
+
border-gray-200\r
|
|
38
|
+
border-t-[var(--color-ds-button-primary-bg)]\r
|
|
39
|
+
animate-spin\r
|
|
40
|
+
`}),o.jsx("span",{className:"sr-only",children:e})]}):null,xi=({isOpen:r,onClose:e,title:t,children:s,footer:n})=>(v.useEffect(()=>{const a=i=>i.key==="Escape"&&e();return r&&(document.addEventListener("keydown",a),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",a),document.body.style.overflow=""}},[r,e]),r?Ar.createPortal(o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"fixed inset-0 bg-[var(--color-ds-text-primary)]/50 z-40",onClick:e}),o.jsx("div",{className:"fixed inset-0 flex items-center justify-center px-4 z-50",children:o.jsxs("div",{className:`\r
|
|
41
|
+
relative\r
|
|
42
|
+
bg-[var(--color-ds-background-page)]\r
|
|
43
|
+
dark:bg-[var(--color-ds-background-surface)]\r
|
|
44
|
+
rounded-xl\r
|
|
45
|
+
shadow-2xl\r
|
|
46
|
+
w-full max-w-lg\r
|
|
47
|
+
overflow-hidden\r
|
|
48
|
+
`,children:[o.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[var(--color-ds-border-muted)]",children:[t?o.jsx("h3",{className:"text-ds-lg font-semibold text-[var(--color-ds-text-primary)]",children:t}):o.jsx("div",{}),o.jsxs("button",{onClick:e,className:`\r
|
|
49
|
+
p-1 rounded-full\r
|
|
50
|
+
bg-[var(--color-ds-background-page)]\r
|
|
51
|
+
dark:bg-[var(--color-ds-background-surface)]\r
|
|
52
|
+
hover:bg-[var(--color-ds-background-accent)]/10\r
|
|
53
|
+
focus:outline-none\r
|
|
54
|
+
`,children:[o.jsx(Dt,{className:"w-5 h-5 text-[var(--color-ds-text-secondary)] hover:text-[var(--color-ds-text-primary)]"}),o.jsx("span",{className:"sr-only",children:"Cerrar modal"})]})]}),o.jsx("div",{className:"px-6 py-6 text-[var(--color-ds-text-primary)]",children:s}),n&&o.jsx("div",{className:"px-6 py-4 border-t border-[var(--color-ds-border-muted)] bg-[var(--color-ds-background-surface)]",children:n})]})})]}),document.body):null),qt=({items:r,selected:e,onSelect:t,level:s=0})=>{const[n,a]=v.useState(new Set),i=l=>{const c=new Set(n);s===0?(c.clear(),n.has(l)||c.add(l)):c.has(l)?c.delete(l):c.add(l),a(c),t(l)};return o.jsx("ul",{className:A(s>0?"mt-1":"mt-0"),children:r.map(l=>{const c=l.value===e,d=n.has(l.value),f=["pl-2","pl-2","pl-2"][s]||"pl-4",p=s===0?d||c?"bg-[var(--color-ds-background-accent)] text-[var(--color-ds-text-on-accent)] rounded-r-lg":"text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]":c?"bg-[var(--color-ds-background-surface)] text-[var(--color-ds-text-primary)]":"text-[var(--color-ds-text-primary)] hover:bg-[var(--color-ds-background-surface)]",m=s===0&&(d||c)?"text-[var(--color-ds-text-on-accent)]":"text-[var(--color-ds-text-secondary)]";return o.jsxs("li",{children:[o.jsxs("button",{onClick:()=>l.children?i(l.value):t(l.value),className:A("w-full flex items-center justify-between h-8 transition-colors",f,p),children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[s===0&&l.icon&&o.jsx(l.icon,{className:"w-5 h-5 ml-2"}),o.jsx("span",{className:"text-ds-sm",children:l.label})]}),l.children&&(d?o.jsx(Rr,{className:A("w-4 h-4 ",m)}):o.jsx(Js,{className:A("w-4 h-4",m)}))]}),l.children&&o.jsx("div",{className:A("overflow-hidden transition-[max-height] duration-300 ease-in-out","border-l-1 border-[var(--color-ds-background-accent)] ml-6",d?"max-h-screen":"max-h-0"),children:o.jsx(qt,{items:l.children,selected:e,onSelect:t,level:s+1})})]},l.value)})})},pi="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23FFFFFF;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e",gi="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20viewBox='0%200%20250%20250'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.0%20Build%20186)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20%23005751;%20}%20%3c/style%3e%3c/defs%3e%3cpath%20class='st0'%20d='M101.7,82.72c1.6.57,3.25,1.09,4.98,1.53,11.93,3.07,17.85,7.44,17.85,13.01,0,2.72-1.14,5-3.43,6.86-2.29,1.86-5.14,2.79-8.57,2.79s-6.49-1.13-8.9-3.36c-2.62,6.82-6.19,13.16-10.51,18.91,5.53,3.09,11.9,4.68,19.13,4.68,10.14,0,18.64-3,25.43-9.01,3.7-3.24,6.35-6.96,8.02-11.11,1.77,3.2,4.03,6.17,6.81,8.9,7.64,7.51,17.28,11.22,28.78,11.22,9.14,0,17.21-2.43,24.21-7.22,2.24-1.55,4.24-3.27,6.05-5.14l-14.05-13.73h-.14c-2.57,4.29-8.57,7.44-15.64,7.44-8.78,0-15.5-5.22-17.85-13.58h57.06c.36-1.57.57-3.79.57-6.58,0-11.37-3.86-20.73-11.5-28.24-7.71-7.44-17.28-11.15-28.71-11.15s-21.14,3.72-28.78,11.15c-5.19,5.09-8.59,11.03-10.26,17.78-1.11-1.42-2.37-2.71-3.78-3.83-6.07-4.79-12.07-7.36-20.64-9.73-11-2.93-16.5-7.08-16.5-12.58,0-2.51,1-4.65,3.07-6.37,2.07-1.71,4.57-2.57,7.57-2.57,3.21,0,5.93,1,8,3,2.07,2,3.14,4.5,3.14,7.5h23.21c0-8.79-3.29-16.08-9.78-21.95-6.5-5.86-14.71-8.79-24.57-8.79s-17.44,2.77-23.89,8.31C74.82,12.54,53.44.47,29.27,0v24.08c27.07.77,48.86,23.04,48.86,50.32s-21.79,49.55-48.86,50.32v24.08c37.54-.72,68.34-29.42,72.44-66.08ZM181.29,67.38c8.21,0,15,5.08,17.21,13.3h-34.5c2.57-8.22,8.93-13.3,17.28-13.3Z'/%3e%3cpath%20class='st0'%20d='M29.35,160.65v29.07h10.94c4.12,0,7.57-1.38,10.31-4.16,2.74-2.76,4.12-6.21,4.12-10.39s-1.38-7.61-4.12-10.39c-2.74-2.76-6.19-4.14-10.31-4.14h-10.94ZM52.1,175.17c0,3.46-1.14,6.34-3.39,8.64-2.25,2.3-5.07,3.46-8.46,3.46h-8.36v-24.17h8.36c3.39,0,6.21,1.15,8.46,3.46,2.25,2.3,3.39,5.18,3.39,8.62Z'/%3e%3cpath%20class='st0'%20d='M60.61,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3crect%20class='st0'%20x='57.63'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M64.15,168.24v29.48h2.41v-13.19c.85,1.77,2.09,3.17,3.69,4.18,1.6,1.01,3.41,1.52,5.44,1.52,3.11,0,5.7-1.07,7.75-3.23,2.05-2.16,3.07-4.83,3.07-8.04s-1.04-5.86-3.09-8.02c-2.05-2.14-4.63-3.21-7.73-3.21-2.03,0-3.84.49-5.44,1.5-1.6,1.01-2.84,2.41-3.69,4.18v-5.16h-2.41ZM69.06,172.62c1.64-1.69,3.73-2.53,6.23-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36c-1.66,1.71-3.73,2.55-6.23,2.55s-4.59-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33Z'/%3e%3cpath%20class='st0'%20d='M107.73,189.71v-21.48h-2.42v12.59c0,2.1-.65,3.79-1.97,5.08-1.32,1.3-3.05,1.95-5.18,1.95s-3.69-.64-4.93-1.91c-1.26-1.28-1.89-2.96-1.89-5.04v-12.67h-2.4v13.35c0,2.61.79,4.69,2.35,6.27,1.56,1.58,3.61,2.37,6.15,2.37,3.65-.02,6.27-1.52,7.85-4.53v4.01h2.42Z'/%3e%3cpolygon%20class='st0'%20points='117.35%20189.71%20117.35%20170.46%20122.55%20170.46%20122.55%20168.24%20117.35%20168.24%20117.35%20161.9%20114.94%20162.38%20114.94%20168.24%20110.01%20168.24%20110.01%20170.46%20114.94%20170.46%20114.94%20189.71%20117.35%20189.71'/%3e%3cpath%20class='st0'%20d='M144.27,189.71v-21.48h-2.42v5.12c-.87-1.75-2.13-3.13-3.73-4.14-1.6-1.01-3.41-1.5-5.4-1.5-3.08,0-5.64,1.07-7.69,3.21-2.05,2.16-3.09,4.83-3.09,8.02s1.04,5.88,3.09,8.04c2.05,2.16,4.63,3.23,7.69,3.23,1.99,0,3.79-.51,5.4-1.52,1.6-1.01,2.84-2.39,3.73-4.13v5.14h2.42ZM139.36,185.31c-1.66,1.71-3.73,2.55-6.23,2.55s-4.53-.84-6.19-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.19-2.53s4.57.84,6.23,2.53c1.66,1.71,2.5,3.8,2.5,6.33s-.83,4.65-2.5,6.36Z'/%3e%3cpath%20class='st0'%20d='M158.18,170.09c2.09,0,3.9.62,5.46,1.85,1.54,1.23,2.56,2.84,3.02,4.83h2.5c-.47-2.63-1.73-4.79-3.73-6.5-2.03-1.71-4.44-2.55-7.25-2.55-3.19,0-5.84,1.07-8,3.21-2.15,2.16-3.23,4.83-3.23,8.02s1.08,5.88,3.23,8.04c2.13,2.16,4.81,3.23,8,3.23,2.8,0,5.22-.84,7.25-2.55,2.01-1.71,3.27-3.87,3.73-6.52h-2.5c-.47,2-1.48,3.62-3.02,4.85-1.56,1.23-3.37,1.85-5.46,1.85-2.5,0-4.57-.84-6.23-2.55-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3crect%20class='st0'%20x='171.72'%20y='168.24'%20width='2.42'%20height='21.48'/%3e%3cpath%20class='st0'%20d='M174.71,161.41c0-.97-.79-1.73-1.79-1.73s-1.75.76-1.75,1.73.79,1.77,1.75,1.77,1.79-.76,1.79-1.77Z'/%3e%3cpath%20class='st0'%20d='M176.86,178.95c0,3.21,1.08,5.88,3.23,8.04,2.15,2.16,4.83,3.23,8.02,3.23s5.85-1.07,7.98-3.23c2.13-2.16,3.19-4.83,3.19-8.04s-1.06-5.86-3.19-8.02c-2.13-2.14-4.79-3.21-7.98-3.21s-5.86,1.07-8.02,3.21c-2.15,2.16-3.23,4.83-3.23,8.02ZM188.09,170.09c2.5,0,4.57.84,6.21,2.53,1.64,1.71,2.48,3.8,2.48,6.33s-.83,4.65-2.48,6.36c-1.64,1.71-3.71,2.55-6.21,2.55s-4.57-.84-6.23-2.55c-1.66-1.71-2.5-3.83-2.5-6.36s.83-4.63,2.5-6.33c1.66-1.69,3.73-2.53,6.23-2.53Z'/%3e%3cpolygon%20class='st0'%20points='194.03%20160.01%20190.83%20160.01%20186.46%20165.15%20189.08%20165.15%20194.03%20160.01'/%3e%3cpath%20class='st0'%20d='M221.5,189.71v-13.02c0-2.69-.81-4.86-2.44-6.5-1.64-1.65-3.79-2.47-6.45-2.47-3.75,0-6.68,1.67-8.22,4.71v-4.2h-2.42v21.48h2.42v-12.22c0-2.22.69-4.01,2.07-5.37,1.38-1.36,3.19-2.04,5.44-2.04s3.92.66,5.24,2c1.32,1.34,1.97,3.11,1.97,5.33v12.3h2.4Z'/%3e%3cpath%20class='st0'%20d='M57.27,225.24c-2.82-2.23-5.61-3.43-9.59-4.53-5.11-1.37-7.66-3.3-7.66-5.87,0-1.17.46-2.17,1.43-2.97.96-.8,2.12-1.2,3.52-1.2,1.49,0,2.75.47,3.72,1.4.96.93,1.46,2.1,1.46,3.5h10.78c0-4.1-1.53-7.5-4.55-10.23-3.02-2.73-6.83-4.1-11.42-4.1s-8.23,1.33-11.25,4c-3.02,2.67-4.51,6-4.51,10s1.26,7.4,3.75,9.73c2.49,2.37,5.68,4.03,9.56,5.03,5.54,1.43,8.29,3.47,8.29,6.06,0,1.27-.53,2.33-1.59,3.2-1.06.87-2.39,1.3-3.98,1.3s-3.05-.53-4.18-1.6c-1.16-1.07-1.73-2.37-1.73-3.93h-10.82c0,4.3,1.59,7.86,4.78,10.7,3.15,2.83,7.1,4.26,11.81,4.26s8.66-1.4,11.81-4.2c3.15-2.77,4.71-6.26,4.71-10.43,0-4.43-1.56-7.9-4.35-10.13Z'/%3e%3cpolygon%20class='st0'%20points='118.26%20236.54%20110.23%20214.38%2098.88%20214.38%20113.02%20249.17%20123.21%20249.17%20137.28%20214.38%20126.19%20214.38%20118.26%20236.54'/%3e%3crect%20class='st0'%20x='139.25'%20y='214.38'%20width='9.92'%20height='34.79'/%3e%3cpath%20class='st0'%20d='M144.2,199.53c-1.72,0-3.18.57-4.35,1.73-1.16,1.17-1.76,2.6-1.76,4.33s.6,3.23,1.76,4.4c1.16,1.17,2.62,1.73,4.35,1.73s3.25-.57,4.45-1.73c1.16-1.17,1.76-2.63,1.76-4.4s-.6-3.17-1.76-4.33c-1.19-1.17-2.69-1.73-4.45-1.73Z'/%3e%3crect%20class='st0'%20x='154.93'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3crect%20class='st0'%20x='170.61'%20y='200.02'%20width='9.92'%20height='49.15'/%3e%3cpath%20class='st0'%20d='M211.58,214.38v3.8c-2.82-3.1-6.34-4.63-10.49-4.63-4.75,0-8.73,1.73-11.91,5.2-3.22,3.5-4.81,7.83-4.81,13s1.59,9.53,4.81,13.03c3.19,3.5,7.17,5.23,11.91,5.23,4.18-.03,7.67-1.57,10.49-4.67v3.83h9.92v-34.79h-9.92ZM209.19,237.9c-1.63,1.63-3.65,2.47-6.11,2.47s-4.41-.83-6.01-2.47c-1.63-1.63-2.42-3.7-2.42-6.17s.8-4.5,2.42-6.13c1.59-1.63,3.58-2.43,6.01-2.43s4.45.8,6.07,2.43c1.63,1.63,2.42,3.7,2.42,6.13s-.8,4.53-2.39,6.17Z'/%3e%3cpath%20class='st0'%20d='M82.34,213.54c-5.34,0-9.82,1.73-13.37,5.2-3.55,3.5-5.34,7.83-5.34,13s1.79,9.53,5.34,13.03c3.55,3.5,8.03,5.23,13.37,5.23,4.25,0,8-1.13,11.25-3.37,1.05-.73,1.99-1.55,2.84-2.43l-6.5-6.37h-.13c-1.19,2-3.98,3.47-7.27,3.47-4.08,0-7.2-2.43-8.29-6.33h26.51c.17-.73.27-1.77.27-3.07,0-5.3-1.79-9.66-5.34-13.16-3.58-3.47-8.03-5.2-13.34-5.2ZM74.31,228.34c1.19-3.83,4.15-6.2,8.03-6.2s6.97,2.37,8,6.2h-16.03Z'/%3e%3c/svg%3e",Ts=({appName:r,orgName:e,username:t,footerText:s,navItems:n,selectedNav:a,onSelectNav:i,width:l="200px"})=>{const{theme:c}=Fs(),d=c==="dark"?pi:gi;return o.jsxs("aside",{className:"flex flex-col h-screen bg-[var(--color-ds-background-page)]",style:{width:l},children:[o.jsxs("div",{className:"flex gap-1 flex-col items-center py-4 space-y-1",children:[o.jsx("img",{src:d,alt:"Logo Diputación",className:"w-20 h-20"}),o.jsx("span",{className:"text-[var(--color-ds-text-primary)] text-ds-lg ",children:r}),o.jsx("span",{className:"text-ds-sm text-[var(--color-ds-text-secondary)]",children:e}),o.jsx("span",{className:"text-ds-sm text-[var(--color-ds-text-secondary)]",children:t}),o.jsx("div",{className:"w-1/5 h-0.5 rounded-full bg-[var(--color-ds-background-accent)] mt-2"})]}),o.jsx("nav",{className:"flex-1 overflow-auto pt-6",children:o.jsx(qt,{items:n,selected:a,onSelect:i})}),o.jsx("div",{className:"px-4 w-full py-3",children:o.jsx("span",{className:"text-ds-sm w-full text-center text-[var(--color-ds-text-secondary)]",children:s})})]})};function bi({sidebar:r,header:e,children:t}){return o.jsxs("div",{className:"flex h-screen overflow-hidden bg-[var(--color-ds-background-page)]",children:[o.jsx(Ts,{...r}),o.jsxs("div",{className:"flex-1 flex flex-col overflow-auto px-10 [scrollbar-gutter:stable_both-edges]",children:[o.jsx(Ss,{...e}),o.jsx("main",{className:"flex-1 ",children:t})]})]})}function yi({columns:r,data:e=[],loadData:t,idAccessor:s,multiSelect:n=!1,onSelectionChange:a,pageSize:i=10,initialSort:l,onSort:c,className:d}){const[f,p]=v.useState(e),[m,y]=v.useState(!!t);v.useEffect(()=>{t&&(y(!0),t().then(_=>p(_)).finally(()=>y(!1)))},[t]);const[k,j]=v.useState(new Set),[N,w]=v.useState(1),[g,T]=v.useState(l==null?void 0:l.sortBy),[V,C]=v.useState((l==null?void 0:l.sortDir)??"asc"),z=v.useMemo(()=>{if(!g)return[...f];const _=V==="asc"?1:-1;return[...f].sort(($,U)=>{const Y=$[g],ee=U[g];return Y==null?-_:ee==null||Y>ee?_:Y<ee?-_:0})},[f,g,V]),W=Math.max(1,Math.ceil(z.length/i)),I=v.useMemo(()=>{const _=(N-1)*i;return z.slice(_,_+i)},[z,N,i]),B=_=>{const $=new Set(k);$.has(_)?$.delete(_):$.add(_),j($),a==null||a(f.filter(U=>$.has(U[s])))},G=()=>{const _=I.every(U=>k.has(U[s])),$=new Set(k);_?I.forEach(U=>$.delete(U[s])):I.forEach(U=>$.add(U[s])),j($),a==null||a(f.filter(U=>$.has(U[s])))},M=_=>{const $=typeof _.accessor=="string"?_.accessor:_.sortKey;if(g===$){const U=V==="asc"?"desc":"asc";C(U),c==null||c($,U)}else T($),C("asc"),c==null||c($,"asc");w(1)},P=()=>m?o.jsx("tbody",{children:Array.from({length:i}).map((_,$)=>o.jsxs("tr",{children:[n&&o.jsx("td",{className:"px-4 py-2",children:o.jsx(Je,{width:"1rem",height:"1rem",variant:"circle"})}),r.map((U,Y)=>o.jsx("td",{className:"px-4 py-2",children:o.jsx(Je,{width:"100%",height:"1em",variant:"rect"})},Y))]},$))}):I.length===0?o.jsx("tbody",{children:o.jsx("tr",{children:o.jsx("td",{colSpan:n?r.length+1:r.length,className:"px-4 py-8 text-center text-gray-500",children:"No hay datos"})})}):o.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:I.map(_=>{const $=_[s];return o.jsxs("tr",{className:"hover:bg-gray-50",children:[n&&o.jsx("td",{className:"px-4 py-2",children:o.jsx("input",{type:"checkbox",checked:k.has($),onChange:()=>B($)})}),r.map((U,Y)=>{const ee=U.render?U.render(_):typeof U.accessor=="function"?U.accessor(_):_[U.accessor];return o.jsx("td",{className:"px-4 py-2 whitespace-nowrap text-sm text-gray-800",children:ee},Y)})]},$)})});return o.jsxs("div",{className:A("w-full overflow-auto",d),children:[o.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[o.jsx("thead",{className:"bg-gray-50",children:o.jsxs("tr",{children:[n&&o.jsx("th",{className:"px-4 py-2 text-left",children:o.jsx("input",{type:"checkbox",checked:I.length>0&&I.every(_=>k.has(_[s])),onChange:G})}),r.map(_=>{const $=typeof _.accessor=="string"?_.accessor:_.header,U=_.sortable&&!!_.accessor,Y=g===_.accessor;return o.jsx("th",{className:A("px-4 py-2 text-left text-sm font-medium text-gray-700",_.width),onClick:()=>U&&M(_),children:o.jsxs("div",{className:"inline-flex items-center space-x-1 cursor-pointer select-none",children:[o.jsx("span",{children:_.header}),U&&o.jsx("span",{className:"text-xs",children:Y?V==="asc"?"▲":"▼":"⇵"})]})},$)})]})}),P()]}),o.jsxs("div",{className:"flex items-center justify-between py-2 px-4",children:[o.jsx("div",{className:"text-sm text-gray-700",children:m?"Cargando datos...":`Página ${N} de ${W}`}),o.jsxs("div",{className:"space-x-2",children:[o.jsx($e,{size:"sm",variant:"outline",disabled:m||N<=1,onClick:()=>w(_=>Math.max(1,_-1)),children:"Prev"}),o.jsx($e,{size:"sm",variant:"outline",disabled:m||N>=W,onClick:()=>w(_=>Math.min(W,_+1)),children:"Next"})]})]})]})}function Os({control:r,name:e,rules:t,defaultValue:s=!1,checked:n,onChange:a,disabled:i=!1,label:l,labelPosition:c="right",errorMessage:d="",className:f}){const p=v.useId();if(r&&e)return o.jsx(ve,{name:e,control:r,rules:t,defaultValue:s,render:({field:y,fieldState:k})=>{var j;return o.jsx(Os,{checked:y.value,onChange:y.onChange,disabled:i,label:l,labelPosition:c,errorMessage:((j=k.error)==null?void 0:j.message)||"",className:f})}});const m=!!n;return o.jsxs("div",{className:A("flex flex-col",f),children:[o.jsxs("label",{className:A("inline-flex items-center space-x-3 select-none",i&&"opacity-50 cursor-not-allowed"),htmlFor:p,children:[l&&c==="left"&&o.jsx("span",{className:"text-ds-md text-[var(--color-ds-text-primary)]",children:l}),o.jsx("button",{id:p,type:"button",role:"switch","aria-checked":m,disabled:i,onClick:()=>!i&&(a==null?void 0:a(!m)),className:A("relative inline-flex items-center h-8 w-16","bg-[var(--color-ds-background-accent)] rounded-full transition-colors duration-200","focus:outline-none "),children:o.jsx("div",{className:A("absolute h-6 w-6 bg-[var(--color-ds-background-page)] rounded-full shadow transform transition-transform duration-200",m?"translate-x-9":"translate-x-1")})}),l&&c==="right"&&o.jsx("span",{className:"text-ds-md text-[var(--color-ds-text-primary)]",children:l})]}),o.jsx("div",{className:"pt-1 min-h-[18px] w-full",children:d?o.jsx("span",{className:"text-xs text-[var(--color-ds-text-error)]",children:d}):o.jsx("span",{"aria-hidden":"true",children:" "})})]})}exports.Button=$e;exports.CollapsibleSection=Vr;exports.DateInput=Qr;exports.DropdownMenu=Un;exports.FileUploader=rs;exports.FormFieldInput=Bt;exports.FormPageLayout=ca;exports.FormRenderer=di;exports.Header=Ss;exports.Icon=De;exports.IconButton=ut;exports.InfoButton=ss;exports.Input=Ke;exports.InputGroup=is;exports.LoadingScreen=mi;exports.Modal=xi;exports.OptionGroup=os;exports.PageLayout=bi;exports.Select=xt;exports.Sidebar=Ts;exports.SidebarNav=qt;exports.SkeletonLoader=Je;exports.Table=yi;exports.Tabs=ns;exports.TextArea=Wt;exports.ThemeProvider=hi;exports.ThemeToggle=_s;exports.Toast=ls;exports.ToastProvider=wa;exports.ToggleSwitch=Os;exports.useToast=us;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-500:oklch(63.7% .237 25.331);--color-red-800:oklch(44.4% .177 26.899);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-800:oklch(44.8% .119 151.328);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-primary:"IBM Plex Sans",sans-serif;--font-size-sm:100px;--font-size-md:16px;--font-size-lg:18px;--color-ds-background-page:#fff;--color-ds-background-surface:#e0e8e7;--color-ds-background-accent:#0a4642;--color-ds-background-disabled:#6c7778;--color-ds-text-primary:#1a1a1a;--color-ds-text-secondary:#5f5f5f;--color-ds-text-error:#c62828;--color-ds-text-on-accent:#fff;--color-ds-text-disabled:#fff;--color-ds-border-default:#267358;--color-ds-border-error:#c62828;--color-ds-border-muted:#70908e;--color-ds-button-primary-bg:#0a4642;--color-ds-button-primary-text:#fff;--color-ds-button-hover-bg:#244d3a;--color-ds-border-default-50:#26735880}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-ds-border-default-50:color-mix(in srgb,var(--color-ds-border-default)50%,transparent 50%)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--font-size-sm:12px;--font-size-md:15px;--font-size-lg:17px;--scrollbar-track:var(--color-ds-background-surface);--scrollbar-thumb:var(--color-ds-button-primary-bg);--scrollbar-thumb-hover:var(--color-ds-button-hover-bg);--scrollbar-size:8px;--scrollbar-radius:4px}html{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb)var(--scrollbar-track)}html::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}html::-webkit-scrollbar-track{background:var(--scrollbar-track)}html::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-radius);border:2px solid var(--scrollbar-track)}html::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover)}.custom-scroll{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb)var(--scrollbar-track)}.custom-scroll::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}.custom-scroll::-webkit-scrollbar-track{background:var(--scrollbar-track)}.custom-scroll::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-radius);border:2px solid var(--scrollbar-track)}.custom-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover)}:scope:where(.dark,.dark *){--color-ds-background-page:#0a4642;--color-ds-background-surface:#265c59;--color-ds-background-accent:#fff;--color-ds-background-disabled:#6c7778;--color-ds-text-primary:#fff;--color-ds-text-secondary:#ccc;--color-ds-text-error:#ff7575;--color-ds-text-on-accent:#1a1a1a;--color-ds-text-disabled:#fff;--color-ds-border-default:#fff;--color-ds-border-default-50:#26735880;--color-ds-border-error:red;--color-ds-border-muted:#70908e}@supports (color:color-mix(in lab,red,red)){:scope:where(.dark,.dark *){--color-ds-border-default-50:color-mix(in srgb,var(--color-ds-border-default)50%,transparent 50%)}}:scope:where(.dark,.dark *){--color-ds-button-primary-bg:#fff;--color-ds-button-primary-text:#1a1a1a;--color-ds-button-hover-bg:#6ee7b7;--color-ds-logo-dipusevilla:#fff}:scope:where(.dark,.dark *) ::-webkit-calendar-picker-indicator{filter:invert()}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.my-1{margin-block:calc(var(--spacing)*1)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-6{margin-left:calc(var(--spacing)*6)}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-0\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-20{height:calc(var(--spacing)*20)}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-screen{max-height:100vh}.min-h-\[18px\]{min-height:18px}.w-1{width:calc(var(--spacing)*1)}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.6667%}.w-1\/12{width:8.33333%}.w-2\/5{width:40%}.w-3\/4{width:75%}.w-3\/6{width:50%}.w-4{width:calc(var(--spacing)*4)}.w-4\/6{width:66.6667%}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-6\/12{width:50%}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-64{width:calc(var(--spacing)*64)}.w-80{width:calc(var(--spacing)*80)}.w-100{width:calc(var(--spacing)*100)}.w-\[250px\]{width:250px}.w-auto{width:auto}.w-full{width:100%}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.min-w-\[160px\]{min-width:160px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-x-1{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing)*6);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-9{--tw-translate-x:calc(var(--spacing)*9);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*6)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-center{align-self:center}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-full{border-top-left-radius:3.40282e38px;border-top-right-radius:3.40282e38px}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.rounded-tr-\[20px\]{border-top-right-radius:20px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-1{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--color-ds-background-accent\)\]{border-color:var(--color-ds-background-accent)}.border-\[var\(--color-ds-border-default\)\]{border-color:var(--color-ds-border-default)}.border-\[var\(--color-ds-border-default-50\)\]{border-color:var(--color-ds-border-default-50)}.border-\[var\(--color-ds-border-error\)\]{border-color:var(--color-ds-border-error)}.border-\[var\(--color-ds-border-muted\)\]{border-color:var(--color-ds-border-muted)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-green-500{border-color:var(--color-green-500)}.border-red-500{border-color:var(--color-red-500)}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-\[var\(--color-ds-button-primary-bg\)\]{border-top-color:var(--color-ds-button-primary-bg)}.bg-\[var\(--color-ds-background-accent\)\]{background-color:var(--color-ds-background-accent)}.bg-\[var\(--color-ds-background-disabled\)\]{background-color:var(--color-ds-background-disabled)}.bg-\[var\(--color-ds-background-page\)\]{background-color:var(--color-ds-background-page)}.bg-\[var\(--color-ds-background-surface\)\]{background-color:var(--color-ds-background-surface)}.bg-\[var\(--color-ds-background-surface\)\]\/90{background-color:#e0e8e7e6}@supports (color:color-mix(in lab,red,red)){.bg-\[var\(--color-ds-background-surface\)\]\/90{background-color:color-mix(in oklab,var(--color-ds-background-surface)90%,transparent)}}.bg-\[var\(--color-ds-border-muted\)\]{background-color:var(--color-ds-border-muted)}.bg-\[var\(--color-ds-button-primary-bg\)\]{background-color:var(--color-ds-button-primary-bg)}.bg-\[var\(--color-ds-text-primary\)\]\/50{background-color:#1a1a1a80}@supports (color:color-mix(in lab,red,red)){.bg-\[var\(--color-ds-text-primary\)\]\/50{background-color:color-mix(in oklab,var(--color-ds-text-primary)50%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-ds-button-primary-bg{background-color:var(--color-ds-button-primary-bg)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-red-100{background-color:var(--color-red-100)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-10{padding:calc(var(--spacing)*10)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-\[5px\]{padding-top:5px}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-\[10px\]{padding-bottom:10px}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-9{padding-left:calc(var(--spacing)*9)}.text-center{text-align:center}.text-left{text-align:left}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-\[var\(--font-primary\)\]{--tw-font-weight:var(--font-primary);font-weight:var(--font-primary)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\[var\(--color-ds-background-accent\)\]{color:var(--color-ds-background-accent)}.text-\[var\(--color-ds-button-primary-bg\)\]{color:var(--color-ds-button-primary-bg)}.text-\[var\(--color-ds-button-primary-text\)\]{color:var(--color-ds-button-primary-text)}.text-\[var\(--color-ds-text-error\)\]{color:var(--color-ds-text-error)}.text-\[var\(--color-ds-text-on-accent\)\]{color:var(--color-ds-text-on-accent)}.text-\[var\(--color-ds-text-primary\)\]{color:var(--color-ds-text-primary)}.text-\[var\(--color-ds-text-secondary\)\]{color:var(--color-ds-text-secondary)}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-ds-button-primary-text{color:var(--color-ds-button-primary-text)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-800{color:var(--color-green-800)}.text-red-800{color:var(--color-red-800)}.text-yellow-800{color:var(--color-yellow-800)}.underline{text-decoration-line:underline}.placeholder-\[var\(--color-ds-text-secondary\)\]::-moz-placeholder{color:var(--color-ds-text-secondary)}.placeholder-\[var\(--color-ds-text-secondary\)\]::placeholder{color:var(--color-ds-text-secondary)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\[var\(--color-ds-border-default\)\]{--tw-ring-color:var(--color-ds-border-default)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[max-height\]{transition-property:max-height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\[scrollbar-gutter\:stable_both-edges\]{scrollbar-gutter:stable both-edges}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:animate-pulse:hover{animation:var(--animate-pulse)}.hover\:border-\[var\(--color-ds-border-default\)\]:hover{border-color:var(--color-ds-border-default)}.hover\:bg-\[var\(--color-ds-background-accent\)\]:hover{background-color:var(--color-ds-background-accent)}.hover\:bg-\[var\(--color-ds-background-accent\)\]\/10:hover{background-color:#0a46421a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-\[var\(--color-ds-background-accent\)\]\/10:hover{background-color:color-mix(in oklab,var(--color-ds-background-accent)10%,transparent)}}.hover\:bg-\[var\(--color-ds-background-surface\)\]:hover{background-color:var(--color-ds-background-surface)}.hover\:bg-\[var\(--color-ds-border-muted\)\]:hover{background-color:var(--color-ds-border-muted)}.hover\:bg-\[var\(--color-ds-button-hover-bg\)\]:hover{background-color:var(--color-ds-button-hover-bg)}.hover\:bg-\[var\(--color-ds-surface-hover\)\]:hover{background-color:var(--color-ds-surface-hover)}.hover\:bg-ds-button-hover-bg:hover{background-color:var(--color-ds-button-hover-bg)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:text-\[var\(--color-ds-text-on-accent\)\]:hover{color:var(--color-ds-text-on-accent)}.hover\:text-\[var\(--color-ds-text-primary\)\]:hover{color:var(--color-ds-text-primary)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-\[var\(--color-ds-border-muted\)\]:disabled{border-color:var(--color-ds-border-muted)}.disabled\:bg-\[var\(--color-ds-background-disabled\)\]:disabled{background-color:var(--color-ds-background-disabled)}.disabled\:text-\[var\(--color-ds-text-disabled\)\]:disabled{color:var(--color-ds-text-disabled)}.disabled\:text-\[var\(--color-ds-text-on-accent\)\]:disabled{color:var(--color-ds-text-on-accent)}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:ring-1:disabled{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.disabled\:ring-\[var\(--color-ds-border-muted\)\]:disabled{--tw-ring-color:var(--color-ds-border-muted)}.disabled\:ring-inset:disabled{--tw-ring-inset:inset}@media (min-width:40rem){.sm\:w-1\/2{width:50%}.sm\:w-1\/3{width:33.3333%}.sm\:w-full{width:100%}}@media (min-width:48rem){.md\:w-1\/2{width:50%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:64rem){.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.3333%}.lg\:w-1\/4{width:25%}.lg\:w-2\/12{width:16.6667%}.lg\:w-3\/12{width:25%}.lg\:w-4\/12{width:33.3333%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.dark\:bg-\[var\(--color-ds-background-surface\)\]:where(.dark,.dark *){background-color:var(--color-ds-background-surface)}.text-ds-sm{font-size:var(--font-size-sm)!important}.text-ds-md{font-size:var(--font-size-md)!important}.text-ds-lg{font-size:var(--font-size-lg)!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|