lawgic-dev-kit 0.10.2 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +2 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +3 -2
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/atoms/Button/Button.styles.js +1 -1
- package/dist/components/atoms/IconButton/IconButton.styles.js +1 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.js +1 -1
- package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +1 -1
- package/dist/components/atoms/TextButton/TextButton.styles.js +1 -1
- package/dist/components/molecules/Dropdown/Dropdown.js +1 -1
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +4 -4
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/package.json +1 -1
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +0 -10
- package/dist/src/components/atoms/SidebarButton/index.d.ts +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -33
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var t = r();
|
|
4
|
-
const s = /* @__PURE__ */ o(t);
|
|
1
|
+
import { __require as r } from "../node_modules/property-expr/index.js";
|
|
2
|
+
var e = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
e as p
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
|
@@ -19,7 +19,7 @@ const i = {
|
|
|
19
19
|
transparent: "bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",
|
|
20
20
|
outline: "bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",
|
|
21
21
|
invisible: "text-gray-500 hover:text-gray-600 active:text-gray-700"
|
|
22
|
-
}, l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-
|
|
22
|
+
}, l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", s = {
|
|
23
23
|
lg: "gap-12 px-24 py-8 text-lg",
|
|
24
24
|
base: "gap-8 px-20 py-7",
|
|
25
25
|
md: "gap-8 px-16 py-6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clsx as a } from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
2
|
import { grayVariants as m, redVariants as t, aquaVariants as p, blueVariants as r } from "../Button/Button.styles.js";
|
|
3
|
-
const l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-
|
|
3
|
+
const l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", h = {
|
|
4
4
|
lg: "min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",
|
|
5
5
|
base: "min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",
|
|
6
6
|
md: "min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",
|
|
@@ -12,7 +12,7 @@ const r = ({
|
|
|
12
12
|
style: { width: `${s}%` }
|
|
13
13
|
}
|
|
14
14
|
) }),
|
|
15
|
-
l && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-
|
|
15
|
+
l && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-500", children: [
|
|
16
16
|
s,
|
|
17
17
|
"%"
|
|
18
18
|
] })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clsx as t } from "../../../../node_modules/clsx/dist/clsx.js";
|
|
2
|
-
const s = "w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-
|
|
2
|
+
const s = "w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent", o = {
|
|
3
3
|
true: "bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50",
|
|
4
4
|
false: "text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"
|
|
5
5
|
}, r = (e = !1) => t(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clsx as e } from "../../../../node_modules/clsx/dist/clsx.js";
|
|
2
|
-
const s = "w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-
|
|
2
|
+
const s = "w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-600 bg-transparent", n = {
|
|
3
3
|
true: "text-blue-500",
|
|
4
4
|
false: "text-gray-800 hover:text-blue-500 active:text-blue-500"
|
|
5
5
|
}, o = "bg-transparent p-16", r = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clsx as e } from "../../../node_modules/clsx/dist/clsx.js";
|
|
2
|
-
const a = "transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-
|
|
2
|
+
const a = "transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300", r = {
|
|
3
3
|
blue: "text-blue-500 hover:text-blue-600 active:text-blue-700",
|
|
4
4
|
aqua: "text-aqua-500 hover:text-aqua-600 active:text-aqua-700",
|
|
5
5
|
red: "text-red-500 hover:text-red-600 active:text-red-700",
|
|
@@ -45,7 +45,7 @@ const i = {
|
|
|
45
45
|
transition-all duration-200 ease-in-out ${d} focus:outline-none hover:bg-gray-50/50
|
|
46
46
|
flex items-center gap-2 group w-full justify-between`,
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */ e.jsx("span", { className: "truncate text-nowrap text-lg md:text-xl font-
|
|
48
|
+
/* @__PURE__ */ e.jsx("span", { className: "truncate text-nowrap text-lg md:text-xl font-700", children: x(t) }),
|
|
49
49
|
/* @__PURE__ */ e.jsxs("div", { className: "flex gap-10 items-center", children: [
|
|
50
50
|
/* @__PURE__ */ e.jsx("span", { className: "text-gray-500 font-normal text-base md:text-lg", children: l }),
|
|
51
51
|
/* @__PURE__ */ e.jsx(y, { isOpen: o })
|
package/dist/lawgic-dev-kit.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */@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-50:oklch(.971 .013 17.38);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-500:oklch(.795 .184 86.047);--color-green-50:oklch(.982 .018 155.826);--color-green-500:oklch(.723 .219 149.579);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-4xl:56rem;--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);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-normal:1.5;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear 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)}}@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;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}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::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}input::placeholder,textarea::placeholder{color:var(--color-gray-400)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-8{top:calc(var(--spacing)*8)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-\[28px\]{bottom:28px}.left-1\/2{left:50%}.left-8{left:calc(var(--spacing)*8)}.left-\[13px\]{left:13px}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-9999{z-index:9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container{margin-inline:auto;padding-inline:2rem}.mx-16{margin-inline:calc(var(--spacing)*16)}.mx-auto{margin-inline:auto}.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-10{margin-top:calc(var(--spacing)*10)}.mt-\[0\.5rem\]{margin-top:.5rem}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-8{margin-left:calc(var(--spacing)*8)}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.table{display:table}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}.size-\[40px\]{width:40px;height:40px}.\!h-auto{height:auto!important}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-8{height:calc(var(--spacing)*8)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-36{height:calc(var(--spacing)*36)}.h-40{height:calc(var(--spacing)*40)}.h-76{height:calc(var(--spacing)*76)}.h-\[40px\]{height:40px}.h-\[87px\]{height:87px}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.max-h-1{max-height:calc(var(--spacing)*1)}.max-h-12{max-height:calc(var(--spacing)*12)}.max-h-16{max-height:calc(var(--spacing)*16)}.max-h-200{max-height:calc(var(--spacing)*200)}.max-h-\[12px\]{max-height:12px}.max-h-\[15px\]{max-height:15px}.max-h-\[20px\]{max-height:20px}.max-h-\[28px\]{max-height:28px}.max-h-\[40px\]{max-height:40px}.max-h-\[46px\]{max-height:46px}.max-h-\[150px\]{max-height:150px}.min-h-1{min-height:calc(var(--spacing)*1)}.min-h-12{min-height:calc(var(--spacing)*12)}.min-h-14{min-height:calc(var(--spacing)*14)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-24{min-height:calc(var(--spacing)*24)}.min-h-28{min-height:calc(var(--spacing)*28)}.min-h-36{min-height:calc(var(--spacing)*36)}.min-h-\[12px\]{min-height:12px}.min-h-\[15px\]{min-height:15px}.min-h-\[20px\]{min-height:20px}.min-h-\[28px\]{min-height:28px}.min-h-\[40px\]{min-height:40px}.min-h-\[46px\]{min-height:46px}.min-h-screen{min-height:100vh}.\!w-full{width:100%!important}.w-0{width:calc(var(--spacing)*0)}.w-4{width:calc(var(--spacing)*4)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-32{width:calc(var(--spacing)*32)}.w-40{width:calc(var(--spacing)*40)}.w-72{width:calc(var(--spacing)*72)}.w-76{width:calc(var(--spacing)*76)}.w-80{width:calc(var(--spacing)*80)}.w-\[0px\]{width:0}.w-\[1\.5px\]{width:1.5px}.w-\[40px\]{width:40px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[320px\]{width:320px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-1{max-width:calc(var(--spacing)*1)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-12{max-width:calc(var(--spacing)*12)}.max-w-120{max-width:calc(var(--spacing)*120)}.max-w-160{max-width:calc(var(--spacing)*160)}.max-w-\[12px\]{max-width:12px}.max-w-\[16px\]{max-width:16px}.max-w-\[28px\]{max-width:28px}.max-w-\[40px\]{max-width:40px}.max-w-\[46px\]{max-width:46px}.max-w-\[300px\]{max-width:300px}.max-w-lg{max-width:var(--container-lg)}.max-w-sm{max-width:var(--container-sm)}.min-w-1{min-width:calc(var(--spacing)*1)}.min-w-12{min-width:calc(var(--spacing)*12)}.min-w-14{min-width:calc(var(--spacing)*14)}.min-w-20{min-width:calc(var(--spacing)*20)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-28{min-width:calc(var(--spacing)*28)}.min-w-36{min-width:calc(var(--spacing)*36)}.min-w-\[12px\]{min-width:12px}.min-w-\[16px\]{min-width:16px}.min-w-\[18rem\]{min-width:18rem}.min-w-\[28px\]{min-width:28px}.min-w-\[40px\]{min-width:40px}.min-w-\[46px\]{min-width:46px}.flex-grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row\!{flex-direction:row!important}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-evenly{justify-content:space-evenly}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-10{gap:calc(var(--spacing)*10)}.gap-12{gap:calc(var(--spacing)*12)}.gap-16{gap:calc(var(--spacing)*16)}.gap-20{gap:calc(var(--spacing)*20)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-full{border-top-left-radius:3.40282e38px;border-bottom-left-radius:3.40282e38px}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.border,.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\[1\.4px\]{border-style:var(--tw-border-style);border-width:1.4px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-\[1px\]{border-style:var(--tw-border-style);border-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-\[1\.3px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.3px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none\!{--tw-border-style:none!important;border-style:none!important}.\!border-blue-500{border-color:var(--color-blue-500)!important}.\!border-red-500{border-color:var(--color-red-500)!important}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-500\!{border-color:var(--color-blue-500)!important}.border-blue-800{border-color:var(--color-blue-800)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-green-500{border-color:var(--color-green-500)}.border-red-500{border-color:var(--color-red-500)}.border-red-500\!{border-color:var(--color-red-500)!important}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.border-r-blue-300{border-right-color:var(--color-blue-300)}.border-b-blue-200{border-bottom-color:var(--color-blue-200)}.border-b-blue-500{border-bottom-color:var(--color-blue-500)}.border-b-gray-700{border-bottom-color:var(--color-gray-700)}.border-l-blue-400{border-left-color:var(--color-blue-400)}.\!bg-gray-100{background-color:var(--color-gray-100)!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#ECF1FD\]{background-color:#ecf1fd}.bg-\[rgb\(243\,244\,246\)\]{background-color:#f3f4f6}.bg-black{background-color:var(--color-black)}.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-100\/50{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\!{background-color:var(--color-gray-100)!important}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\[rgb\(243\,244\,246\)\]{--tw-gradient-to:#f3f4f6;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.\!p-0,.p-0\!{padding:calc(var(--spacing)*0)!important}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-16{padding:calc(var(--spacing)*16)}.p-20{padding:calc(var(--spacing)*20)}.p-24{padding:calc(var(--spacing)*24)}.p-32{padding:calc(var(--spacing)*32)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.px-14{padding-inline:calc(var(--spacing)*14)}.px-16{padding-inline:calc(var(--spacing)*16)}.px-20{padding-inline:calc(var(--spacing)*20)}.px-24{padding-inline:calc(var(--spacing)*24)}.px-32{padding-inline:calc(var(--spacing)*32)}.px-\[12\.3px\]{padding-inline:12.3px}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-7{padding-block:calc(var(--spacing)*7)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-10\!{padding-block:calc(var(--spacing)*10)!important}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-16{padding-top:calc(var(--spacing)*16)}.pt-28{padding-top:calc(var(--spacing)*28)}.pr-\[10px\]{padding-right:10px}.pb-16{padding-bottom:calc(var(--spacing)*16)}.text-center{text-align:center}.text-start{text-align:start}.indent-\[10000px\]{text-indent:10000px}.align-middle{vertical-align:middle}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.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-lg\!{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.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}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.font-\[500\]{--tw-font-weight:500;font-weight:500}.font-\[600\]{--tw-font-weight:600;font-weight:600}.font-\[700\]{--tw-font-weight:700;font-weight:700}.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-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-nowrap{text-wrap:nowrap}.\!text-gray-300{color:var(--color-gray-300)!important}.\!text-red-500{color:var(--color-red-500)!important}.text-\[\#4570EB\]{color:#4570eb}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-500\!{color:var(--color-blue-500)!important}.text-blue-600{color:var(--color-blue-600)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-red-500{color:var(--color-red-500)}.text-red-500\!{color:var(--color-red-500)!important}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.\!caret-transparent{caret-color:#0000!important}.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-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)}.shadow-sm{--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)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.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;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-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-100{--tw-duration:.1s;transition-duration:.1s}.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)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.\!select-none{-webkit-user-select:none!important;user-select:none!important}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-focus-within\:border-blue-500:is(:where(.group):focus-within *){border-color:var(--color-blue-500)}.group-focus-within\:text-blue-500:is(:where(.group):focus-within *){color:var(--color-blue-500)}@media (hover:hover){.group-hover\:border-blue-300:is(:where(.group):hover *){border-color:var(--color-blue-300)}.group-hover\:\!bg-blue-100:is(:where(.group):hover *){background-color:var(--color-blue-100)!important}.group-hover\:\!text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)!important}.group-hover\:text-blue-300:is(:where(.group):hover *){color:var(--color-blue-300)}.group-hover\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}}.group-disabled\:bg-gray-500:is(:where(.group):disabled *){background-color:var(--color-gray-500)}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\:\!cursor-pointer:hover{cursor:pointer!important}.hover\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\:border-blue-500:hover{border-color:var(--color-blue-500)}.hover\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\:border-gray-600:hover{border-color:var(--color-gray-600)}.hover\:border-red-600:hover{border-color:var(--color-red-600)}.hover\:bg-\[\#ECF1FD\]:hover{background-color:#ecf1fd}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-100\/40:hover{background-color:color-mix(in oklab,var(--color-blue-100)40%,transparent)}.hover\:bg-blue-100\/50:hover{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.hover\:bg-blue-100\/80:hover{background-color:color-mix(in oklab,var(--color-blue-100)80%,transparent)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-50\/50:hover{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-red-500\/30:hover{background-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-white:hover{color:var(--color-white)}.hover\:opacity-80:hover{opacity:.8}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:border-blue-700:active{border-color:var(--color-blue-700)}.active\:border-gray-700:active{border-color:var(--color-gray-700)}.active\:border-red-700:active{border-color:var(--color-red-700)}.active\:bg-blue-100\/20:active{background-color:color-mix(in oklab,var(--color-blue-100)20%,transparent)}.active\:bg-blue-100\/50:active{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.active\:bg-blue-300\/80:active{background-color:color-mix(in oklab,var(--color-blue-300)80%,transparent)}.active\:bg-blue-700:active{background-color:var(--color-blue-700)}.active\:bg-gray-300:active{background-color:var(--color-gray-300)}.active\:bg-gray-700:active{background-color:var(--color-gray-700)}.active\:bg-red-700:active{background-color:var(--color-red-700)}.active\:bg-red-700\/40:active{background-color:color-mix(in oklab,var(--color-red-700)40%,transparent)}.active\:text-blue-500:active{color:var(--color-blue-500)}.active\:text-blue-700:active{color:var(--color-blue-700)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-red-700:active{color:var(--color-red-700)}.active\:text-white:active{color:var(--color-white)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\:text-gray-300:disabled,.disabled\:placeholder\:text-gray-300:disabled::placeholder{color:var(--color-gray-300)}@media (width>=48rem){.md\:gap-24{gap:calc(var(--spacing)*24)}.md\:p-32{padding:calc(var(--spacing)*32)}.md\:px-0{padding-inline:calc(var(--spacing)*0)}.md\:pt-0{padding-top:calc(var(--spacing)*0)}.md\:pt-4{padding-top:calc(var(--spacing)*4)}.md\:pb-0{padding-bottom:calc(var(--spacing)*0)}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}}@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;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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}@keyframes spin{to{transform:rotate(360deg)}}
|
|
1
|
+
/*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */@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-50:oklch(.971 .013 17.38);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-500:oklch(.795 .184 86.047);--color-green-50:oklch(.982 .018 155.826);--color-green-500:oklch(.723 .219 149.579);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-4xl:56rem;--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);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-normal:1.5;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear 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)}}@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;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}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::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}input::placeholder,textarea::placeholder{color:var(--color-gray-400)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-4{top:calc(var(--spacing)*4)}.top-8{top:calc(var(--spacing)*8)}.right-0{right:calc(var(--spacing)*0)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-8{bottom:calc(var(--spacing)*8)}.bottom-\[28px\]{bottom:28px}.left-1\/2{left:50%}.left-8{left:calc(var(--spacing)*8)}.left-\[13px\]{left:13px}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-9999{z-index:9999}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container{margin-inline:auto;padding-inline:2rem}.mx-16{margin-inline:calc(var(--spacing)*16)}.mx-auto{margin-inline:auto}.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-10{margin-top:calc(var(--spacing)*10)}.mt-\[0\.5rem\]{margin-top:.5rem}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-8{margin-left:calc(var(--spacing)*8)}.ml-auto{margin-left:auto}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.table{display:table}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-24{width:calc(var(--spacing)*24);height:calc(var(--spacing)*24)}.size-\[40px\]{width:40px;height:40px}.\!h-auto{height:auto!important}.h-2{height:calc(var(--spacing)*2)}.h-4{height:calc(var(--spacing)*4)}.h-8{height:calc(var(--spacing)*8)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-36{height:calc(var(--spacing)*36)}.h-40{height:calc(var(--spacing)*40)}.h-76{height:calc(var(--spacing)*76)}.h-\[40px\]{height:40px}.h-\[87px\]{height:87px}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.max-h-1{max-height:calc(var(--spacing)*1)}.max-h-12{max-height:calc(var(--spacing)*12)}.max-h-16{max-height:calc(var(--spacing)*16)}.max-h-200{max-height:calc(var(--spacing)*200)}.max-h-\[12px\]{max-height:12px}.max-h-\[15px\]{max-height:15px}.max-h-\[20px\]{max-height:20px}.max-h-\[28px\]{max-height:28px}.max-h-\[40px\]{max-height:40px}.max-h-\[46px\]{max-height:46px}.max-h-\[150px\]{max-height:150px}.min-h-1{min-height:calc(var(--spacing)*1)}.min-h-12{min-height:calc(var(--spacing)*12)}.min-h-14{min-height:calc(var(--spacing)*14)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-20{min-height:calc(var(--spacing)*20)}.min-h-24{min-height:calc(var(--spacing)*24)}.min-h-28{min-height:calc(var(--spacing)*28)}.min-h-36{min-height:calc(var(--spacing)*36)}.min-h-\[12px\]{min-height:12px}.min-h-\[15px\]{min-height:15px}.min-h-\[20px\]{min-height:20px}.min-h-\[28px\]{min-height:28px}.min-h-\[40px\]{min-height:40px}.min-h-\[46px\]{min-height:46px}.min-h-screen{min-height:100vh}.\!w-full{width:100%!important}.w-0{width:calc(var(--spacing)*0)}.w-4{width:calc(var(--spacing)*4)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-32{width:calc(var(--spacing)*32)}.w-40{width:calc(var(--spacing)*40)}.w-72{width:calc(var(--spacing)*72)}.w-76{width:calc(var(--spacing)*76)}.w-80{width:calc(var(--spacing)*80)}.w-\[0px\]{width:0}.w-\[1\.5px\]{width:1.5px}.w-\[40px\]{width:40px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[320px\]{width:320px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-1{max-width:calc(var(--spacing)*1)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-12{max-width:calc(var(--spacing)*12)}.max-w-120{max-width:calc(var(--spacing)*120)}.max-w-160{max-width:calc(var(--spacing)*160)}.max-w-\[12px\]{max-width:12px}.max-w-\[16px\]{max-width:16px}.max-w-\[28px\]{max-width:28px}.max-w-\[40px\]{max-width:40px}.max-w-\[46px\]{max-width:46px}.max-w-\[300px\]{max-width:300px}.max-w-lg{max-width:var(--container-lg)}.max-w-sm{max-width:var(--container-sm)}.min-w-1{min-width:calc(var(--spacing)*1)}.min-w-12{min-width:calc(var(--spacing)*12)}.min-w-14{min-width:calc(var(--spacing)*14)}.min-w-20{min-width:calc(var(--spacing)*20)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-28{min-width:calc(var(--spacing)*28)}.min-w-36{min-width:calc(var(--spacing)*36)}.min-w-\[12px\]{min-width:12px}.min-w-\[16px\]{min-width:16px}.min-w-\[18rem\]{min-width:18rem}.min-w-\[28px\]{min-width:28px}.min-w-\[40px\]{min-width:40px}.min-w-\[46px\]{min-width:46px}.flex-grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-45{rotate:45deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row\!{flex-direction:row!important}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-evenly{justify-content:space-evenly}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-10{gap:calc(var(--spacing)*10)}.gap-12{gap:calc(var(--spacing)*12)}.gap-16{gap:calc(var(--spacing)*16)}.gap-20{gap:calc(var(--spacing)*20)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-full{border-top-left-radius:3.40282e38px;border-bottom-left-radius:3.40282e38px}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.border,.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\[1\.4px\]{border-style:var(--tw-border-style);border-width:1.4px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-\[1px\]{border-style:var(--tw-border-style);border-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-\[1\.3px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1.3px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none\!{--tw-border-style:none!important;border-style:none!important}.\!border-blue-500{border-color:var(--color-blue-500)!important}.\!border-red-500{border-color:var(--color-red-500)!important}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-400{border-color:var(--color-blue-400)}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-500\!{border-color:var(--color-blue-500)!important}.border-blue-800{border-color:var(--color-blue-800)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-green-500{border-color:var(--color-green-500)}.border-red-500{border-color:var(--color-red-500)}.border-red-500\!{border-color:var(--color-red-500)!important}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:var(--color-blue-500)}.border-r-blue-300{border-right-color:var(--color-blue-300)}.border-b-blue-200{border-bottom-color:var(--color-blue-200)}.border-b-blue-500{border-bottom-color:var(--color-blue-500)}.border-b-gray-700{border-bottom-color:var(--color-gray-700)}.border-l-blue-400{border-left-color:var(--color-blue-400)}.\!bg-gray-100{background-color:var(--color-gray-100)!important}.\!bg-transparent{background-color:#0000!important}.bg-\[\#ECF1FD\]{background-color:#ecf1fd}.bg-\[rgb\(243\,244\,246\)\]{background-color:#f3f4f6}.bg-black{background-color:var(--color-black)}.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-100\/50{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-50\/50{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-100\!{background-color:var(--color-gray-100)!important}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-\[rgb\(243\,244\,246\)\]{--tw-gradient-to:#f3f4f6;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.\!p-0,.p-0\!{padding:calc(var(--spacing)*0)!important}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-12{padding:calc(var(--spacing)*12)}.p-16{padding:calc(var(--spacing)*16)}.p-20{padding:calc(var(--spacing)*20)}.p-24{padding:calc(var(--spacing)*24)}.p-32{padding:calc(var(--spacing)*32)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.px-14{padding-inline:calc(var(--spacing)*14)}.px-16{padding-inline:calc(var(--spacing)*16)}.px-20{padding-inline:calc(var(--spacing)*20)}.px-24{padding-inline:calc(var(--spacing)*24)}.px-32{padding-inline:calc(var(--spacing)*32)}.px-\[12\.3px\]{padding-inline:12.3px}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-7{padding-block:calc(var(--spacing)*7)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-10\!{padding-block:calc(var(--spacing)*10)!important}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-16{padding-top:calc(var(--spacing)*16)}.pt-28{padding-top:calc(var(--spacing)*28)}.pr-\[10px\]{padding-right:10px}.pb-16{padding-bottom:calc(var(--spacing)*16)}.text-center{text-align:center}.text-start{text-align:start}.indent-\[10000px\]{text-indent:10000px}.align-middle{vertical-align:middle}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.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-lg\!{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.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}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.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-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-nowrap{text-wrap:nowrap}.\!text-gray-300{color:var(--color-gray-300)!important}.\!text-red-500{color:var(--color-red-500)!important}.text-\[\#4570EB\]{color:#4570eb}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-500\!{color:var(--color-blue-500)!important}.text-blue-600{color:var(--color-blue-600)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-red-500{color:var(--color-red-500)}.text-red-500\!{color:var(--color-red-500)!important}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.\!caret-transparent{caret-color:#0000!important}.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-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)}.shadow-sm{--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)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.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;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-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-100{--tw-duration:.1s;transition-duration:.1s}.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)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.\!select-none{-webkit-user-select:none!important;user-select:none!important}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-focus-within\:border-blue-500:is(:where(.group):focus-within *){border-color:var(--color-blue-500)}.group-focus-within\:text-blue-500:is(:where(.group):focus-within *){color:var(--color-blue-500)}@media (hover:hover){.group-hover\:border-blue-300:is(:where(.group):hover *){border-color:var(--color-blue-300)}.group-hover\:\!bg-blue-100:is(:where(.group):hover *){background-color:var(--color-blue-100)!important}.group-hover\:\!text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)!important}.group-hover\:text-blue-300:is(:where(.group):hover *){color:var(--color-blue-300)}.group-hover\:text-blue-500:is(:where(.group):hover *){color:var(--color-blue-500)}}.group-disabled\:bg-gray-500:is(:where(.group):disabled *){background-color:var(--color-gray-500)}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\:\!cursor-pointer:hover{cursor:pointer!important}.hover\:border-blue-400:hover{border-color:var(--color-blue-400)}.hover\:border-blue-500:hover{border-color:var(--color-blue-500)}.hover\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\:border-gray-600:hover{border-color:var(--color-gray-600)}.hover\:border-red-600:hover{border-color:var(--color-red-600)}.hover\:bg-\[\#ECF1FD\]:hover{background-color:#ecf1fd}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-100\/40:hover{background-color:color-mix(in oklab,var(--color-blue-100)40%,transparent)}.hover\:bg-blue-100\/50:hover{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.hover\:bg-blue-100\/80:hover{background-color:color-mix(in oklab,var(--color-blue-100)80%,transparent)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-gray-50\/50:hover{background-color:color-mix(in oklab,var(--color-gray-50)50%,transparent)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-red-500\/30:hover{background-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:text-blue-500:hover{color:var(--color-blue-500)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-gray-500:hover{color:var(--color-gray-500)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-white:hover{color:var(--color-white)}.hover\:opacity-80:hover{opacity:.8}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:border-blue-700:active{border-color:var(--color-blue-700)}.active\:border-gray-700:active{border-color:var(--color-gray-700)}.active\:border-red-700:active{border-color:var(--color-red-700)}.active\:bg-blue-100\/20:active{background-color:color-mix(in oklab,var(--color-blue-100)20%,transparent)}.active\:bg-blue-100\/50:active{background-color:color-mix(in oklab,var(--color-blue-100)50%,transparent)}.active\:bg-blue-300\/80:active{background-color:color-mix(in oklab,var(--color-blue-300)80%,transparent)}.active\:bg-blue-700:active{background-color:var(--color-blue-700)}.active\:bg-gray-300:active{background-color:var(--color-gray-300)}.active\:bg-gray-700:active{background-color:var(--color-gray-700)}.active\:bg-red-700:active{background-color:var(--color-red-700)}.active\:bg-red-700\/40:active{background-color:color-mix(in oklab,var(--color-red-700)40%,transparent)}.active\:text-blue-500:active{color:var(--color-blue-500)}.active\:text-blue-700:active{color:var(--color-blue-700)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-red-700:active{color:var(--color-red-700)}.active\:text-white:active{color:var(--color-white)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:var(--color-gray-100)}.disabled\:text-gray-300:disabled,.disabled\:placeholder\:text-gray-300:disabled::placeholder{color:var(--color-gray-300)}@media (width>=48rem){.md\:gap-24{gap:calc(var(--spacing)*24)}.md\:p-32{padding:calc(var(--spacing)*32)}.md\:px-0{padding-inline:calc(var(--spacing)*0)}.md\:pt-0{padding-top:calc(var(--spacing)*0)}.md\:pt-4{padding-top:calc(var(--spacing)*4)}.md\:pb-0{padding-bottom:calc(var(--spacing)*0)}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}}@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;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@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-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -687,13 +687,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
687
687
|
`,children:[E&&E,U.jsx("input",{...C,id:o,name:o,disabled:v,placeholder:h,value:i,onChange:R=>{n(R.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${S&&"pointer-events-none !select-none !caret-transparent"}`}),A&&A]}),U.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:u&&M(u||"",{x:M(o)})})]})},cq=({control:t,name:n,showTimeSelector:i=!1,label:o,placeholder:u})=>{const{field:{value:h=new Date,onChange:g,onBlur:v},fieldState:{error:S}}=qh.useController({name:n,control:t}),{t:E}=za(),A=E(n),[C,M]=J.useState(!1);return U.jsx(xb,{open:C,strategy:"fixed",padding:0,offset:0,onClose:()=>M(!1),className:"!p-0",component:U.jsx(K5,{date:h||new Date,onDateChange:R=>{g(R)},showTimeSelector:i}),children:U.jsx(Q5,{onBlur:v,name:A,label:o,onFocus:R=>{R.preventDefault(),M(!0)},value:h&&v4(h)||"",disabledInput:!0,onChange:()=>{},onSelect:()=>{},onSelectCapture:()=>{},placeholder:u,error:S==null?void 0:S.message,rightSide:h&&U.jsx(fn,{icon:Lj,className:"text-gray-500 cursor-pointer",onClick:()=>g(null)})})})},W5=({title:t,description:n,open:i,onClose:o,onConfirm:u,onCancel:h,icon:g=tG})=>{const v={hidden:{opacity:0},visible:{opacity:1}},S={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},E=()=>{u(),o()},A=()=>{h==null||h(),o()},{t:C}=za();return U.jsx(nm,{children:i&&U.jsx(U.Fragment,{children:U.jsx(ha.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:v,onClick:o,children:U.jsx(ha.div,{className:"w-full max-w-sm mx-16 z-50",variants:S,initial:"hidden",animate:"visible",exit:"exit",onClick:M=>M.stopPropagation(),children:U.jsxs(Wy,{className:"flex flex-col gap-20 p-32",children:[U.jsxs("div",{className:"flex flex-col",children:[U.jsx("div",{className:"flex justify-end",children:U.jsx(fn,{icon:mT,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:o})}),U.jsx("div",{className:"flex justify-center",children:U.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:U.jsx(fn,{icon:g,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:o})})})]}),U.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[U.jsxs("div",{className:"text-center w-full",children:[U.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:t}),U.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:n})]}),U.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!h&&U.jsx(Eb,{size:"lg",onClick:A,variant:"transparent",children:C("cancel")}),U.jsx(Eb,{size:"lg",onClick:E,children:C("confirm")})]})]})]})})})})})},J5={duration:.3,ease:[.32,.72,0,1]},fq={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},dq=({isOpen:t})=>U.jsx(ha.div,{animate:{rotate:t?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:U.jsx(fn,{icon:WY,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),hq=({label:t,children:n,subtitle:i,open:o,onClick:u,className:h="",labelClassName:g=""})=>{const{t:v}=za(),[S,E]=J.useState(!1),A=o!==void 0?o:S,C=u||(()=>E(!S));return U.jsxs(ha.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[U.jsxs("button",{onClick:C,className:`py-24 px-32 text-black font-semibold border-b
|
|
688
688
|
${A?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
689
689
|
transition-all duration-200 ease-in-out ${g} focus:outline-none hover:bg-gray-50/50
|
|
690
|
-
flex items-center gap-2 group w-full justify-between`,children:[U.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-[700]",children:v(t)}),U.jsxs("div",{className:"flex gap-10 items-center",children:[U.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:i}),U.jsx(dq,{isOpen:A})]})]}),U.jsx(nm,{mode:"wait",children:A&&U.jsx(ha.div,{...fq,transition:{height:{duration:J5.duration,ease:J5.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${h}`,children:n})})]})},zo={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},mq=({file:t,onDelete:n,onRetry:i,uploadDuration:o=4e3})=>{const{t:u}=za(),h=()=>t.error?zo.ERROR:t.loading?zo.LOADING:zo.COMPLETE,[g,v]=J.useState(h()),[S,E]=J.useState(0),[A,C]=J.useState(10);J.useEffect(()=>{const L=h();v(L);let P;if(L===zo.LOADING&&S<100){const G=100/(o/100);P=setInterval(()=>{E(ne=>{const Y=Math.min(ne+G,99),oe=Math.max(0,Math.round((100-Y)/10));return C(oe),Y})},100)}else L===zo.COMPLETE&&S<100&&E(100);return()=>{P&&clearInterval(P)}},[t.loading,t.error,o,h,S]);const M=()=>{switch(g){case zo.LOADING:return`${Math.round(S)}% (${A} ${u("seconds_left")})`;case zo.COMPLETE:return u("file_uploaded");case zo.ERROR:return u("upload_error");default:return""}},R=()=>{switch(g){case zo.COMPLETE:return"text-green-500 font-600";case zo.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},j=()=>{if(!(t!=null&&t.file_size))return u("unknown");const L=t.file_size/1024;return L<1024?`${L.toFixed(1)} KB`:`${(L/1024).toFixed(1)} MB`};return U.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[U.jsxs("div",{className:"flex items-center justify-between",children:[U.jsxs("div",{className:"flex items-center gap-4",children:[U.jsx(fn,{icon:eL,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),U.jsx("span",{className:"text-gray-500 text-sm",children:t.user_file_name})]}),g===zo.COMPLETE&&U.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:U.jsx(fn,{icon:J7})}),g===zo.ERROR&&U.jsx("button",{onClick:i,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:U.jsx(fn,{icon:Q7})})]}),U.jsx("div",{className:"flex items-center mt-2",children:t!=null&&t.analyzing?U.jsxs("div",{className:"flex items-center gap-6",children:[U.jsx(ha.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),U.jsxs("span",{className:"text-sm text-gray-500",children:[u("analyzing_file_with_ai"),"..."]})]}):U.jsxs("div",{className:"text-sm",children:[U.jsxs("span",{className:"text-gray-500",children:[j()," |"]})," ",U.jsx("span",{className:R(),children:M()})]})}),g===zo.LOADING&&U.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:U.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${S}%`}})})]})},Wy=({children:t,className:n,element:i="div"})=>{const o=i;return U.jsx(o,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${n||""}`,children:t})},pq=({isOpen:t,onClose:n})=>{const i={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return U.jsx(nm,{children:t&&U.jsx(U.Fragment,{children:U.jsx(ha.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:i,onClick:n,children:U.jsx(ha.div,{className:"w-full max-w-4xl mx-16 z-50",variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:U.jsx(Wy,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:U.jsx(U.Fragment,{})})})})})})},gq=({status:t,label:n,shouldAnimate:i})=>{const{t:o}=za(),u=t==="done",h=t==="focus";return U.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[U.jsx(ha.div,{initial:i?!1:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},animate:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},transition:{duration:i?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:U.jsx(ha.div,{initial:i?!1:{color:u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:u||h?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:i?.2:0},className:"flex items-center justify-center",children:U.jsx(nm,{mode:"wait",children:u||h?U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:aM,className:"w-14 h-14 min-w-14 min-h-14 text-blue-500"})},"check"):U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:nM,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),U.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${u?"text-black":"text-gray-400"}`,children:o(n)})]})},yq=({status:t,label:n,shouldAnimate:i})=>{const{t:o}=za(),u=t==="done",h=t==="focus";return U.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[U.jsx(ha.div,{initial:i?!1:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},animate:{backgroundColor:u?"#C7D8FF":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},transition:{duration:i?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:U.jsx(ha.div,{initial:i?!1:{color:h||u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:h||u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:i?.2:0},className:"flex items-center justify-center",children:U.jsx(nm,{mode:"wait",children:u||h?U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:aM,className:"w-14 h-14 min-w-14 min-h-14 text-blue-500"})},"check"):U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:nM,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),U.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${u||h?"text-black":"text-gray-400"}`,children:o(n)})]})},vq=({steps:t,direction:n="horizontal"})=>{const[i,o]=J.useState([]),[u,h]=J.useState(null),[g,v]=J.useState(!1),S=t.findIndex(M=>!M.completed),E=M=>S===M;J.useEffect(()=>{const M=t.map((R,j)=>E(j)?"focus":R.completed?"done":"pending");if(!g)o(M),v(!0),h(null);else{const R=M.findIndex((j,L)=>j!==i[L]);h(R!==-1?R:null),o(M)}},[t,S]);const A=()=>U.jsx("div",{className:"flex flex-col gap-16 relative",children:t.map((M,R)=>{var V;const j=E(R-1)?"focus":(V=t[R-1])!=null&&V.completed?"done":"pending",L=E(R)?"focus":M.completed?"done":"pending",P=g&&u===R;return U.jsxs("div",{className:"flex items-center gap-10 relative",children:[R!==0&&U.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${L==="done"||L==="focus"?"bg-blue-500":j==="done"||j==="focus"?"bg-gradient-to-b from-blue-500 to-[rgb(243,244,246)]":"bg-[rgb(243,244,246)]"}`}),U.jsx(gq,{status:L,shouldAnimate:P,label:M.label})]},R)})}),C=()=>U.jsx("div",{className:"w-full flex items-center gap-12",children:t.map((M,R)=>{const j=E(R)?"focus":M.completed?"done":"pending",L=g&&u===R;return U.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:U.jsx(yq,{status:j,shouldAnimate:L,label:M.label})},R)})});return n==="horizontal"?U.jsx(C,{}):U.jsx(A,{})},bq=({variant:t="underline",color:n="blue",tabs:i,activeTab:o,onTabChange:u,className:h="",direction:g="row",showLabel:v=!0})=>{const S=J.useRef([]),[E,A]=J.useState({left:0,width:0}),C=J.useRef(null),{defaultColorScheme:M}=za(),R=n||M,j=()=>{const L=i.findIndex(P=>P.id===o);if(L>=0&&S.current[L]){const P=S.current[L];if(P&&C.current){const V=C.current.getBoundingClientRect(),F=P.getBoundingClientRect();A({left:F.left-V.left,width:F.width})}}};return J.useEffect(()=>{j()},[o,i]),J.useEffect(()=>{const L=()=>{j()};return window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}},[o,i]),U.jsxs("div",{ref:C,className:`flex items-center relative ${h}`,children:[i.map((L,P)=>U.jsx(CE.div,{ref:V=>{S.current[P]=V},className:"w-full",children:U.jsx(M_,{href:L.href,label:v?L.label:"",icon:L.icon,direction:g,isSelected:o===L.id,onClick:()=>u(L.id),variant:t})},L.id)),U.jsx(CE.div,{className:`absolute bottom-0 h-2 bg-${R}-500`,initial:!1,animate:{left:E.left,width:E.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Sq=()=>{const[t,n]=J.useState([]),i=J.useRef([]),o=J.useCallback(h=>{const g={...h,id:(h==null?void 0:h.id)||T4.uniqueId(),open:!0,type:(h==null?void 0:h.type)||"center",props:{...h.props,open:!0,onClose:()=>u(h.id||T4.uniqueId())}};i.current=[...i.current,g],n(i.current)},[]),u=J.useCallback(h=>{i.current=i.current.map(g=>g.id===h?{...g,open:!1}:g),n(i.current),setTimeout(()=>{i.current=i.current.filter(g=>g.id!==h),n(i.current)},150)},[]);return J.useEffect(()=>{window.openModal=o,window.closeModal=u},[o,u]),U.jsx(U.Fragment,{children:t.map(h=>{if(h.type==="dialog"){const{props:v}=h;return U.jsx(W5,{...v,open:h.open,onClose:()=>u(h.id)},h.id)}if(h.type==="alert"){const{props:v}=h;return U.jsx(b5,{...v,open:h.open,onClose:()=>u(h.id)},h.id)}const{props:g}=h;return U.jsx(c_,{...g,open:h.open,onClose:()=>u(h.id),children:typeof g.children=="function"?g.children(()=>u(h.id)):g.children},h.id)})})};function xq(t){var n;(n=window==null?void 0:window.openModal)==null||n.call(window,t)}function Tq(t){var n;(n=window==null?void 0:window.closeModal)==null||n.call(window,t)}function Eq(t,n,i){const o=n[t];if(J.isValidElement(o)&&typeof o.type!="string")return J.cloneElement(o,i);if(typeof o=="function"){const u=o;return U.jsx(u,{...i})}return o??U.jsx("div",{children:"no content"})}const iw=[];function e_(t="bottom-center"){var n;if(!iw.find(i=>i.id===t)){const i=document.createElement("div");switch(i.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),t){case"top-left":i.classList.add("top-8","left-8");break;case"top-right":i.classList.add("top-8","right-8");break;case"bottom-left":i.classList.add("bottom-8","left-8");break;case"bottom-right":i.classList.add("bottom-8","right-8");break;case"top-center":i.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:i.classList.add("bottom-8","left-1/2","-translate-x-1/2")}iw.push({id:t,element:i}),document.body.appendChild(i)}return(n=iw.find(i=>i.id===t))==null?void 0:n.element}function t_({container:t,children:n,onMount:i}){return J.useEffect(()=>{const o=setTimeout(()=>{t.firstChild instanceof HTMLElement&&t.firstChild.classList.add("mt-[0.5rem]")},10);return i&&i(),()=>clearTimeout(o)},[t,i]),mS.createPortal(n,t)}function Rx(t,n="success",{position:i="top-right",duration:o=3e3}={}){const u=e_(i);if(!u)return;const h=document.createElement("div");u.prepend(h);const g=()=>{const[S,E]=J.useState(!0),A=()=>{E(!1),setTimeout(()=>{h.parentNode===u&&u.removeChild(h)},300)};return S?U.jsx(t_,{container:h,children:U.jsx(OE,{content:t,type:n,duration:o,onClose:A})}):null},v=document.createElement("div");h.appendChild(v),Promise.resolve().then(()=>j_).then(({createRoot:S})=>{S(v).render(U.jsx(g,{}))})}const rw=(t,n,i={})=>{const o=e_(i.position);if(!o)return;const u=document.createElement("div");o.prepend(u);const h=()=>{const[v,S]=J.useState(!0),E=()=>{S(!1),setTimeout(()=>{u.parentNode===o&&o.removeChild(u)},300)};return v?U.jsx(t_,{container:u,children:U.jsx(J3,{promise:t,messages:n,options:i,onClose:E})}):null},g=document.createElement("div");u.appendChild(g),Promise.resolve().then(()=>j_).then(({createRoot:v})=>{v(g).render(U.jsx(h,{}))})},n_=(t,n={})=>{let i=()=>{},o=()=>{};const u=new Promise((h,g)=>{i=h,o=g});return rw(u,t,n),{resolve:i,reject:o}},Aq={success:(t,n={})=>Rx(t,"success",n),error:(t,n={})=>Rx(t,"error",n),warning:(t,n={})=>Rx(t,"warning",n),info:(t,n={})=>Rx(t,"info",n),async:(t,n,i={})=>rw(t,n,i),loading:(t,n={})=>n_(t,n)},a_=({containerProps:t={},imageProps:n={},src:i="",alt:o="",size:u=30,user:h=null})=>{const{className:g=" ",...v}=t,{className:S=" ",...E}=n,A=u+"px",C=u*.5+"px",M=u*.4+"px",[R,j]=J.useState(!1),L=()=>o?ME(o):h?ME(h!=null&&h.first_name||h!=null&&h.last_name?((h==null?void 0:h.first_name)||"")+" "+((h==null?void 0:h.last_name)||""):h==null?void 0:h.email):"#9CA1B6",P=Y=>{try{return Y?(new URL(Y),!0):!1}catch(oe){return console.log(oe),!1}},V=()=>P(i)?i:h!=null&&h.image&&P(h.image)?h.image:h!=null&&h.image?S4(h.image):"",F=()=>o?U.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:M},children:o}):h?U.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:M},children:h!=null&&h.first_name||h!=null&&h.last_name?((h==null?void 0:h.first_name)||" ")[0]+((h==null?void 0:h.last_name)||" ")[0]:((h==null?void 0:h.email)||" ")[0]}):U.jsx(fn,{style:{maxWidth:C,maxHeight:C,minWidth:C,minHeight:C},icon:Nj,className:"w-full text-white"}),G=()=>{j(!0)},ne=V();return U.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+g,style:{maxWidth:A,maxHeight:A,minWidth:A,minHeight:A,backgroundColor:L()},...v,children:[ne&&!R&&U.jsx("img",{src:ne,alt:o,className:`
|
|
690
|
+
flex items-center gap-2 group w-full justify-between`,children:[U.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:v(t)}),U.jsxs("div",{className:"flex gap-10 items-center",children:[U.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:i}),U.jsx(dq,{isOpen:A})]})]}),U.jsx(nm,{mode:"wait",children:A&&U.jsx(ha.div,{...fq,transition:{height:{duration:J5.duration,ease:J5.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${h}`,children:n})})]})},zo={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},mq=({file:t,onDelete:n,onRetry:i,uploadDuration:o=4e3})=>{const{t:u}=za(),h=()=>t.error?zo.ERROR:t.loading?zo.LOADING:zo.COMPLETE,[g,v]=J.useState(h()),[S,E]=J.useState(0),[A,C]=J.useState(10);J.useEffect(()=>{const L=h();v(L);let P;if(L===zo.LOADING&&S<100){const G=100/(o/100);P=setInterval(()=>{E(ne=>{const Y=Math.min(ne+G,99),oe=Math.max(0,Math.round((100-Y)/10));return C(oe),Y})},100)}else L===zo.COMPLETE&&S<100&&E(100);return()=>{P&&clearInterval(P)}},[t.loading,t.error,o,h,S]);const M=()=>{switch(g){case zo.LOADING:return`${Math.round(S)}% (${A} ${u("seconds_left")})`;case zo.COMPLETE:return u("file_uploaded");case zo.ERROR:return u("upload_error");default:return""}},R=()=>{switch(g){case zo.COMPLETE:return"text-green-500 font-600";case zo.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},j=()=>{if(!(t!=null&&t.file_size))return u("unknown");const L=t.file_size/1024;return L<1024?`${L.toFixed(1)} KB`:`${(L/1024).toFixed(1)} MB`};return U.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[U.jsxs("div",{className:"flex items-center justify-between",children:[U.jsxs("div",{className:"flex items-center gap-4",children:[U.jsx(fn,{icon:eL,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),U.jsx("span",{className:"text-gray-500 text-sm",children:t.user_file_name})]}),g===zo.COMPLETE&&U.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:U.jsx(fn,{icon:J7})}),g===zo.ERROR&&U.jsx("button",{onClick:i,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:U.jsx(fn,{icon:Q7})})]}),U.jsx("div",{className:"flex items-center mt-2",children:t!=null&&t.analyzing?U.jsxs("div",{className:"flex items-center gap-6",children:[U.jsx(ha.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),U.jsxs("span",{className:"text-sm text-gray-500",children:[u("analyzing_file_with_ai"),"..."]})]}):U.jsxs("div",{className:"text-sm",children:[U.jsxs("span",{className:"text-gray-500",children:[j()," |"]})," ",U.jsx("span",{className:R(),children:M()})]})}),g===zo.LOADING&&U.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:U.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${S}%`}})})]})},Wy=({children:t,className:n,element:i="div"})=>{const o=i;return U.jsx(o,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${n||""}`,children:t})},pq=({isOpen:t,onClose:n})=>{const i={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return U.jsx(nm,{children:t&&U.jsx(U.Fragment,{children:U.jsx(ha.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:i,onClick:n,children:U.jsx(ha.div,{className:"w-full max-w-4xl mx-16 z-50",variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:U.jsx(Wy,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:U.jsx(U.Fragment,{})})})})})})},gq=({status:t,label:n,shouldAnimate:i})=>{const{t:o}=za(),u=t==="done",h=t==="focus";return U.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[U.jsx(ha.div,{initial:i?!1:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},animate:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},transition:{duration:i?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:U.jsx(ha.div,{initial:i?!1:{color:u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:u||h?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:i?.2:0},className:"flex items-center justify-center",children:U.jsx(nm,{mode:"wait",children:u||h?U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:aM,className:"w-14 h-14 min-w-14 min-h-14 text-blue-500"})},"check"):U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:nM,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),U.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${u?"text-black":"text-gray-400"}`,children:o(n)})]})},yq=({status:t,label:n,shouldAnimate:i})=>{const{t:o}=za(),u=t==="done",h=t==="focus";return U.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[U.jsx(ha.div,{initial:i?!1:{backgroundColor:u?"#DDF6F5":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},animate:{backgroundColor:u?"#C7D8FF":"white",borderWidth:h||!u?"1px":"0px",borderColor:h?"#4570EB":"#ABACAF70"},transition:{duration:i?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:U.jsx(ha.div,{initial:i?!1:{color:h||u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:h||u?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:i?.2:0},className:"flex items-center justify-center",children:U.jsx(nm,{mode:"wait",children:u||h?U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:aM,className:"w-14 h-14 min-w-14 min-h-14 text-blue-500"})},"check"):U.jsx(ha.div,{initial:i?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:i?.3:0},className:"flex items-center justify-center",children:U.jsx(fn,{icon:nM,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),U.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${u||h?"text-black":"text-gray-400"}`,children:o(n)})]})},vq=({steps:t,direction:n="horizontal"})=>{const[i,o]=J.useState([]),[u,h]=J.useState(null),[g,v]=J.useState(!1),S=t.findIndex(M=>!M.completed),E=M=>S===M;J.useEffect(()=>{const M=t.map((R,j)=>E(j)?"focus":R.completed?"done":"pending");if(!g)o(M),v(!0),h(null);else{const R=M.findIndex((j,L)=>j!==i[L]);h(R!==-1?R:null),o(M)}},[t,S]);const A=()=>U.jsx("div",{className:"flex flex-col gap-16 relative",children:t.map((M,R)=>{var V;const j=E(R-1)?"focus":(V=t[R-1])!=null&&V.completed?"done":"pending",L=E(R)?"focus":M.completed?"done":"pending",P=g&&u===R;return U.jsxs("div",{className:"flex items-center gap-10 relative",children:[R!==0&&U.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${L==="done"||L==="focus"?"bg-blue-500":j==="done"||j==="focus"?"bg-gradient-to-b from-blue-500 to-[rgb(243,244,246)]":"bg-[rgb(243,244,246)]"}`}),U.jsx(gq,{status:L,shouldAnimate:P,label:M.label})]},R)})}),C=()=>U.jsx("div",{className:"w-full flex items-center gap-12",children:t.map((M,R)=>{const j=E(R)?"focus":M.completed?"done":"pending",L=g&&u===R;return U.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:U.jsx(yq,{status:j,shouldAnimate:L,label:M.label})},R)})});return n==="horizontal"?U.jsx(C,{}):U.jsx(A,{})},bq=({variant:t="underline",color:n="blue",tabs:i,activeTab:o,onTabChange:u,className:h="",direction:g="row",showLabel:v=!0})=>{const S=J.useRef([]),[E,A]=J.useState({left:0,width:0}),C=J.useRef(null),{defaultColorScheme:M}=za(),R=n||M,j=()=>{const L=i.findIndex(P=>P.id===o);if(L>=0&&S.current[L]){const P=S.current[L];if(P&&C.current){const V=C.current.getBoundingClientRect(),F=P.getBoundingClientRect();A({left:F.left-V.left,width:F.width})}}};return J.useEffect(()=>{j()},[o,i]),J.useEffect(()=>{const L=()=>{j()};return window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}},[o,i]),U.jsxs("div",{ref:C,className:`flex items-center relative ${h}`,children:[i.map((L,P)=>U.jsx(CE.div,{ref:V=>{S.current[P]=V},className:"w-full",children:U.jsx(M_,{href:L.href,label:v?L.label:"",icon:L.icon,direction:g,isSelected:o===L.id,onClick:()=>u(L.id),variant:t})},L.id)),U.jsx(CE.div,{className:`absolute bottom-0 h-2 bg-${R}-500`,initial:!1,animate:{left:E.left,width:E.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Sq=()=>{const[t,n]=J.useState([]),i=J.useRef([]),o=J.useCallback(h=>{const g={...h,id:(h==null?void 0:h.id)||T4.uniqueId(),open:!0,type:(h==null?void 0:h.type)||"center",props:{...h.props,open:!0,onClose:()=>u(h.id||T4.uniqueId())}};i.current=[...i.current,g],n(i.current)},[]),u=J.useCallback(h=>{i.current=i.current.map(g=>g.id===h?{...g,open:!1}:g),n(i.current),setTimeout(()=>{i.current=i.current.filter(g=>g.id!==h),n(i.current)},150)},[]);return J.useEffect(()=>{window.openModal=o,window.closeModal=u},[o,u]),U.jsx(U.Fragment,{children:t.map(h=>{if(h.type==="dialog"){const{props:v}=h;return U.jsx(W5,{...v,open:h.open,onClose:()=>u(h.id)},h.id)}if(h.type==="alert"){const{props:v}=h;return U.jsx(b5,{...v,open:h.open,onClose:()=>u(h.id)},h.id)}const{props:g}=h;return U.jsx(c_,{...g,open:h.open,onClose:()=>u(h.id),children:typeof g.children=="function"?g.children(()=>u(h.id)):g.children},h.id)})})};function xq(t){var n;(n=window==null?void 0:window.openModal)==null||n.call(window,t)}function Tq(t){var n;(n=window==null?void 0:window.closeModal)==null||n.call(window,t)}function Eq(t,n,i){const o=n[t];if(J.isValidElement(o)&&typeof o.type!="string")return J.cloneElement(o,i);if(typeof o=="function"){const u=o;return U.jsx(u,{...i})}return o??U.jsx("div",{children:"no content"})}const iw=[];function e_(t="bottom-center"){var n;if(!iw.find(i=>i.id===t)){const i=document.createElement("div");switch(i.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),t){case"top-left":i.classList.add("top-8","left-8");break;case"top-right":i.classList.add("top-8","right-8");break;case"bottom-left":i.classList.add("bottom-8","left-8");break;case"bottom-right":i.classList.add("bottom-8","right-8");break;case"top-center":i.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:i.classList.add("bottom-8","left-1/2","-translate-x-1/2")}iw.push({id:t,element:i}),document.body.appendChild(i)}return(n=iw.find(i=>i.id===t))==null?void 0:n.element}function t_({container:t,children:n,onMount:i}){return J.useEffect(()=>{const o=setTimeout(()=>{t.firstChild instanceof HTMLElement&&t.firstChild.classList.add("mt-[0.5rem]")},10);return i&&i(),()=>clearTimeout(o)},[t,i]),mS.createPortal(n,t)}function Rx(t,n="success",{position:i="top-right",duration:o=3e3}={}){const u=e_(i);if(!u)return;const h=document.createElement("div");u.prepend(h);const g=()=>{const[S,E]=J.useState(!0),A=()=>{E(!1),setTimeout(()=>{h.parentNode===u&&u.removeChild(h)},300)};return S?U.jsx(t_,{container:h,children:U.jsx(OE,{content:t,type:n,duration:o,onClose:A})}):null},v=document.createElement("div");h.appendChild(v),Promise.resolve().then(()=>j_).then(({createRoot:S})=>{S(v).render(U.jsx(g,{}))})}const rw=(t,n,i={})=>{const o=e_(i.position);if(!o)return;const u=document.createElement("div");o.prepend(u);const h=()=>{const[v,S]=J.useState(!0),E=()=>{S(!1),setTimeout(()=>{u.parentNode===o&&o.removeChild(u)},300)};return v?U.jsx(t_,{container:u,children:U.jsx(J3,{promise:t,messages:n,options:i,onClose:E})}):null},g=document.createElement("div");u.appendChild(g),Promise.resolve().then(()=>j_).then(({createRoot:v})=>{v(g).render(U.jsx(h,{}))})},n_=(t,n={})=>{let i=()=>{},o=()=>{};const u=new Promise((h,g)=>{i=h,o=g});return rw(u,t,n),{resolve:i,reject:o}},Aq={success:(t,n={})=>Rx(t,"success",n),error:(t,n={})=>Rx(t,"error",n),warning:(t,n={})=>Rx(t,"warning",n),info:(t,n={})=>Rx(t,"info",n),async:(t,n,i={})=>rw(t,n,i),loading:(t,n={})=>n_(t,n)},a_=({containerProps:t={},imageProps:n={},src:i="",alt:o="",size:u=30,user:h=null})=>{const{className:g=" ",...v}=t,{className:S=" ",...E}=n,A=u+"px",C=u*.5+"px",M=u*.4+"px",[R,j]=J.useState(!1),L=()=>o?ME(o):h?ME(h!=null&&h.first_name||h!=null&&h.last_name?((h==null?void 0:h.first_name)||"")+" "+((h==null?void 0:h.last_name)||""):h==null?void 0:h.email):"#9CA1B6",P=Y=>{try{return Y?(new URL(Y),!0):!1}catch(oe){return console.log(oe),!1}},V=()=>P(i)?i:h!=null&&h.image&&P(h.image)?h.image:h!=null&&h.image?S4(h.image):"",F=()=>o?U.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:M},children:o}):h?U.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:M},children:h!=null&&h.first_name||h!=null&&h.last_name?((h==null?void 0:h.first_name)||" ")[0]+((h==null?void 0:h.last_name)||" ")[0]:((h==null?void 0:h.email)||" ")[0]}):U.jsx(fn,{style:{maxWidth:C,maxHeight:C,minWidth:C,minHeight:C},icon:Nj,className:"w-full text-white"}),G=()=>{j(!0)},ne=V();return U.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+g,style:{maxWidth:A,maxHeight:A,minWidth:A,minHeight:A,backgroundColor:L()},...v,children:[ne&&!R&&U.jsx("img",{src:ne,alt:o,className:`
|
|
691
691
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
692
692
|
z-10
|
|
693
693
|
${S}
|
|
694
694
|
`,onError:G,...E}),U.jsx("div",{className:`
|
|
695
695
|
flex items-center justify-center leading-none text-center absolute
|
|
696
|
-
`,style:{maxWidth:C,maxHeight:C,minWidth:C,minHeight:C},children:F()})]})};function i_(t){var n,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(i=i_(t[n]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fd(){for(var t,n,i=0,o="",u=arguments.length;i<u;i++)(t=arguments[i])&&(n=i_(t))&&(o&&(o+=" "),o+=n);return o}const r_={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},l_={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},o_={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},s_={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},wq="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-[600] text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",Cq={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},Oq=(t="filled",n="blue",i="base")=>{const o=fd(wq,Cq[i]),u={blue:r_[t],aqua:l_[t],red:o_[t],gray:s_[t]}[n];return fd(o,u)},Mq="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-[600] leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",Dq={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},Rq={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},_q=(t="filled",n="blue",i="base",o="none")=>{const u=fd(Mq,Dq[i],Rq[o]),h={blue:r_[t],aqua:l_[t],red:o_[t],gray:s_[t]}[n];return fd(u,h)},Nq={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Tb=(t="base")=>Nq[t],Eb=({icon:t,rightIcon:n,color:i,variant:o="filled",size:u="base",children:h,className:g,...v})=>{const{defaultColorScheme:S}=za(),E=i||S;return U.jsxs("button",{type:"button",className:Oq(o,E,u)+" "+g,...v,children:[t&&U.jsx(fn,{icon:t,className:Tb(u)}),h,n&&U.jsx(fn,{icon:n,className:Tb(u)})]})},u_=({className:t="",direction:n="horizontal"})=>n==="horizontal"?U.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${t}`}):U.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${t}`}),c_=({open:t,onClose:n,title:i,children:o})=>{const u={hidden:{opacity:0},visible:{opacity:1}},h={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return U.jsx(nm,{children:t&&U.jsx(U.Fragment,{children:U.jsx(ha.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:n,children:U.jsx(ha.div,{className:"w-full max-w-lg mx-16 z-50",variants:h,initial:"hidden",animate:"visible",exit:"exit",onClick:g=>g.stopPropagation(),children:U.jsxs(Wy,{className:"flex flex-col gap-16 md:gap-24 p-0!",children:[U.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 md:pb-0",children:[U.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[i&&U.jsx("h2",{className:"text-black font-700 text-2xl",children:i}),U.jsx(fn,{icon:mT,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:n})]}),i&&U.jsx(u_,{className:"bg-gray-100!"})]}),U.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof o=="function"?o(n):o})]})})})})})},zq=({active:t,color:n="blue",variant:i="rounded",className:o,...u})=>{const h={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[n],g={rounded:"rounded-full",square:"rounded-md"}[i];return U.jsx("div",{className:`transition-colors ease-in-out duration-150 flex items-center justify-center ${g} border-[1.5px] bg-white ${t?h:"border-gray-400"} ${o}`,...u,children:U.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${g} size-12 ${t?h:""}`})})};var lw,f_;function Lq(){if(f_)return lw;f_=1;function t(V){this._maxSize=V,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(V){return this._values[V]},t.prototype.set=function(V,F){return this._size>=this._maxSize&&this.clear(),V in this._values||this._size++,this._values[V]=F};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,u=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,h=/^\s*(['"]?)(.*?)(\1)\s*$/,g=512,v=new t(g),S=new t(g),E=new t(g);lw={Cache:t,split:C,normalizePath:A,setter:function(V){var F=A(V);return S.get(V)||S.set(V,function(ne,Y){for(var oe=0,me=F.length,pe=ne;oe<me-1;){var ve=F[oe];if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return ne;pe=pe[F[oe++]]}pe[F[oe]]=Y})},getter:function(V,F){var G=A(V);return E.get(V)||E.set(V,function(Y){for(var oe=0,me=G.length;oe<me;)if(Y!=null||!F)Y=Y[G[oe++]];else return;return Y})},join:function(V){return V.reduce(function(F,G){return F+(R(G)||i.test(G)?"["+G+"]":(F?".":"")+G)},"")},forEach:function(V,F,G){M(Array.isArray(V)?V:C(V),F,G)}};function A(V){return v.get(V)||v.set(V,C(V).map(function(F){return F.replace(h,"$2")}))}function C(V){return V.match(n)||[""]}function M(V,F,G){var ne=V.length,Y,oe,me,pe;for(oe=0;oe<ne;oe++)Y=V[oe],Y&&(P(Y)&&(Y='"'+Y+'"'),pe=R(Y),me=!pe&&/^\d+$/.test(Y),F.call(G,Y,pe,me,oe,V))}function R(V){return typeof V=="string"&&V&&["'",'"'].indexOf(V.charAt(0))!==-1}function j(V){return V.match(o)&&!V.match(i)}function L(V){return u.test(V)}function P(V){return!R(V)&&(j(V)||L(V))}return lw}var Cg=Lq(),ow,d_;function Uq(){if(d_)return ow;d_=1;const t=/[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,n=A=>A.match(t)||[],i=A=>A[0].toUpperCase()+A.slice(1),o=(A,C)=>n(A).join(C).toLowerCase(),u=A=>n(A).reduce((C,M)=>`${C}${C?M[0].toUpperCase()+M.slice(1).toLowerCase():M.toLowerCase()}`,"");return ow={words:n,upperFirst:i,camelCase:u,pascalCase:A=>i(u(A)),snakeCase:A=>o(A,"_"),kebabCase:A=>o(A,"-"),sentenceCase:A=>i(o(A," ")),titleCase:A=>n(A).map(i).join(" ")},ow}var sw=Uq(),_x={exports:{}},h_;function Vq(){if(h_)return _x.exports;h_=1,_x.exports=function(u){return t(n(u),u)},_x.exports.array=t;function t(u,h){var g=u.length,v=new Array(g),S={},E=g,A=i(h),C=o(u);for(h.forEach(function(R){if(!C.has(R[0])||!C.has(R[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});E--;)S[E]||M(u[E],E,new Set);return v;function M(R,j,L){if(L.has(R)){var P;try{P=", node was:"+JSON.stringify(R)}catch{P=""}throw new Error("Cyclic dependency"+P)}if(!C.has(R))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(R));if(!S[j]){S[j]=!0;var V=A.get(R)||new Set;if(V=Array.from(V),j=V.length){L.add(R);do{var F=V[--j];M(F,C.get(F),L)}while(j);L.delete(R)}v[--g]=R}}}function n(u){for(var h=new Set,g=0,v=u.length;g<v;g++){var S=u[g];h.add(S[0]),h.add(S[1])}return Array.from(h)}function i(u){for(var h=new Map,g=0,v=u.length;g<v;g++){var S=u[g];h.has(S[0])||h.set(S[0],new Set),h.has(S[1])||h.set(S[1],new Set),h.get(S[0]).add(S[1])}return h}function o(u){for(var h=new Map,g=0,v=u.length;g<v;g++)h.set(u[g],g);return h}return _x.exports}var jq=Vq();const Bq=MC(jq),$q=Object.prototype.toString,Hq=Error.prototype.toString,Pq=RegExp.prototype.toString,kq=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Yq=/^Symbol\((.*)\)(.*)$/;function Gq(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function m_(t,n=!1){if(t==null||t===!0||t===!1)return""+t;const i=typeof t;if(i==="number")return Gq(t);if(i==="string")return n?`"${t}"`:t;if(i==="function")return"[Function "+(t.name||"anonymous")+"]";if(i==="symbol")return kq.call(t).replace(Yq,"Symbol($1)");const o=$q.call(t).slice(8,-1);return o==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):o==="Error"||t instanceof Error?"["+Hq.call(t)+"]":o==="RegExp"?Pq.call(t):null}function fm(t,n){let i=m_(t,n);return i!==null?i:JSON.stringify(t,function(o,u){let h=m_(this[o],n);return h!==null?h:u},2)}function p_(t){return t==null?[]:[].concat(t)}let g_,y_,v_,qq=/\$\{\s*(\w+)\s*\}/g;g_=Symbol.toStringTag;class b_{constructor(n,i,o,u){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[g_]="Error",this.name="ValidationError",this.value=i,this.path=o,this.type=u,this.errors=[],this.inner=[],p_(n).forEach(h=>{if(Pl.isError(h)){this.errors.push(...h.errors);const g=h.inner.length?h.inner:[h];this.inner.push(...g)}else this.errors.push(h)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}y_=Symbol.hasInstance,v_=Symbol.toStringTag;class Pl extends Error{static formatError(n,i){const o=i.label||i.path||"this";return i=Object.assign({},i,{path:o,originalPath:i.path}),typeof n=="string"?n.replace(qq,(u,h)=>fm(i[h])):typeof n=="function"?n(i):n}static isError(n){return n&&n.name==="ValidationError"}constructor(n,i,o,u,h){const g=new b_(n,i,o,u);if(h)return g;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[v_]="Error",this.name=g.name,this.message=g.message,this.type=g.type,this.value=g.value,this.path=g.path,this.errors=g.errors,this.inner=g.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Pl)}static[y_](n){return b_[Symbol.hasInstance](n)||super[Symbol.hasInstance](n)}}let Bc={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:t,type:n,value:i,originalValue:o})=>{const u=o!=null&&o!==i?` (cast from the value \`${fm(o,!0)}\`).`:".";return n!=="mixed"?`${t} must be a \`${n}\` type, but the final value was: \`${fm(i,!0)}\``+u:`${t} must match the configured type. The validated value was: \`${fm(i,!0)}\``+u}},kl={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"},Iq={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"},uw={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Fq={isValue:"${path} field must be ${value}"},Nx={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bc,string:kl,number:Iq,date:uw,object:Nx,array:{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"},boolean:Fq,tuple:{notType:t=>{const{path:n,value:i,spec:o}=t,u=o.types.length;if(Array.isArray(i)){if(i.length<u)return`${n} tuple value has too few items, expected a length of ${u} but got ${i.length} for value: \`${fm(i,!0)}\``;if(i.length>u)return`${n} tuple value has too many items, expected a length of ${u} but got ${i.length} for value: \`${fm(i,!0)}\``}return Pl.formatError(Bc.notType,t)}}});const cw=t=>t&&t.__isYupSchema__;class zx{static fromOptions(n,i){if(!i.then&&!i.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:u,otherwise:h}=i,g=typeof o=="function"?o:(...v)=>v.every(S=>S===o);return new zx(n,(v,S)=>{var E;let A=g(...v)?u:h;return(E=A==null?void 0:A(S))!=null?E:S})}constructor(n,i){this.fn=void 0,this.refs=n,this.refs=n,this.fn=i}resolve(n,i){let o=this.refs.map(h=>h.getValue(i==null?void 0:i.value,i==null?void 0:i.parent,i==null?void 0:i.context)),u=this.fn(o,n,i);if(u===void 0||u===n)return n;if(!cw(u))throw new TypeError("conditions must return a schema object");return u.resolve(i)}}const Lx={context:"$",value:"."};class Og{constructor(n,i={}){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 n!="string")throw new TypeError("ref must be a string, got: "+n);if(this.key=n.trim(),n==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Lx.context,this.isValue=this.key[0]===Lx.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Lx.context:this.isValue?Lx.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Cg.getter(this.path,!0),this.map=i.map}getValue(n,i,o){let u=this.isContext?o:this.isValue?n:i;return this.getter&&(u=this.getter(u||{})),this.map&&(u=this.map(u)),u}cast(n,i){return this.getValue(n,i==null?void 0:i.parent,i==null?void 0:i.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(n){return n&&n.__isYupRef}}Og.prototype.__isYupRef=!0;const Mg=t=>t==null;function Jy(t){function n({value:i,path:o="",options:u,originalValue:h,schema:g},v,S){const{name:E,test:A,params:C,message:M,skipAbsent:R}=t;let{parent:j,context:L,abortEarly:P=g.spec.abortEarly,disableStackTrace:V=g.spec.disableStackTrace}=u;function F(je){return Og.isRef(je)?je.getValue(i,j,L):je}function G(je={}){const Pe=Object.assign({value:i,originalValue:h,label:g.spec.label,path:je.path||o,spec:g.spec,disableStackTrace:je.disableStackTrace||V},C,je.params);for(const Xe of Object.keys(Pe))Pe[Xe]=F(Pe[Xe]);const Qe=new Pl(Pl.formatError(je.message||M,Pe),i,Pe.path,je.type||E,Pe.disableStackTrace);return Qe.params=Pe,Qe}const ne=P?v:S;let Y={path:o,parent:j,type:E,from:u.from,createError:G,resolve:F,options:u,originalValue:h,schema:g};const oe=je=>{Pl.isError(je)?ne(je):je?S(null):ne(G())},me=je=>{Pl.isError(je)?ne(je):v(je)};if(R&&Mg(i))return oe(!0);let ve;try{var He;if(ve=A.call(Y,i,Y),typeof((He=ve)==null?void 0:He.then)=="function"){if(u.sync)throw new Error(`Validation test of type: "${Y.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ve).then(oe,me)}}catch(je){me(je);return}oe(ve)}return n.OPTIONS=t,n}function Xq(t,n,i,o=i){let u,h,g;return n?(Cg.forEach(n,(v,S,E)=>{let A=S?v.slice(1,v.length-1):v;t=t.resolve({context:o,parent:u,value:i});let C=t.type==="tuple",M=E?parseInt(A,10):0;if(t.innerType||C){if(C&&!E)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${g}" must contain an index to the tuple element, e.g. "${g}[0]"`);if(i&&M>=i.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${v}, in the path: ${n}. because there is no value at that index. `);u=i,i=i&&i[M],t=C?t.spec.types[M]:t.innerType}if(!E){if(!t.fields||!t.fields[A])throw new Error(`The schema does not contain the path: ${n}. (failed at: ${g} which is a type: "${t.type}")`);u=i,i=i&&i[A],t=t.fields[A]}h=A,g=S?"["+v+"]":"."+v}),{schema:t,parent:u,parentPath:h}):{parent:u,parentPath:n,schema:t}}class Ux extends Set{describe(){const n=[];for(const i of this.values())n.push(Og.isRef(i)?i.describe():i);return n}resolveAll(n){let i=[];for(const o of this.values())i.push(n(o));return i}clone(){return new Ux(this.values())}merge(n,i){const o=this.clone();return n.forEach(u=>o.add(u)),i.forEach(u=>o.delete(u)),o}}function ev(t,n=new Map){if(cw(t)||!t||typeof t!="object")return t;if(n.has(t))return n.get(t);let i;if(t instanceof Date)i=new Date(t.getTime()),n.set(t,i);else if(t instanceof RegExp)i=new RegExp(t),n.set(t,i);else if(Array.isArray(t)){i=new Array(t.length),n.set(t,i);for(let o=0;o<t.length;o++)i[o]=ev(t[o],n)}else if(t instanceof Map){i=new Map,n.set(t,i);for(const[o,u]of t.entries())i.set(o,ev(u,n))}else if(t instanceof Set){i=new Set,n.set(t,i);for(const o of t)i.add(ev(o,n))}else if(t instanceof Object){i={},n.set(t,i);for(const[o,u]of Object.entries(t))i[o]=ev(u,n)}else throw Error(`Unable to clone ${t}`);return i}class $c{constructor(n){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 Ux,this._blacklist=new Ux,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bc.notType)}),this.type=n.type,this._typeCheck=n.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},n==null?void 0:n.spec),this.withMutation(i=>{i.nonNullable()})}get _type(){return this.type}clone(n){if(this._mutate)return n&&Object.assign(this.spec,n),this;const i=Object.create(Object.getPrototypeOf(this));return i.type=this.type,i._typeCheck=this._typeCheck,i._whitelist=this._whitelist.clone(),i._blacklist=this._blacklist.clone(),i.internalTests=Object.assign({},this.internalTests),i.exclusiveTests=Object.assign({},this.exclusiveTests),i.deps=[...this.deps],i.conditions=[...this.conditions],i.tests=[...this.tests],i.transforms=[...this.transforms],i.spec=ev(Object.assign({},this.spec,n)),i}label(n){let i=this.clone();return i.spec.label=n,i}meta(...n){if(n.length===0)return this.spec.meta;let i=this.clone();return i.spec.meta=Object.assign(i.spec.meta||{},n[0]),i}withMutation(n){let i=this._mutate;this._mutate=!0;let o=n(this);return this._mutate=i,o}concat(n){if(!n||n===this)return this;if(n.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${n.type}`);let i=this,o=n.clone();const u=Object.assign({},i.spec,o.spec);return o.spec=u,o.internalTests=Object.assign({},i.internalTests,o.internalTests),o._whitelist=i._whitelist.merge(n._whitelist,n._blacklist),o._blacklist=i._blacklist.merge(n._blacklist,n._whitelist),o.tests=i.tests,o.exclusiveTests=i.exclusiveTests,o.withMutation(h=>{n.tests.forEach(g=>{h.test(g.OPTIONS)})}),o.transforms=[...i.transforms,...o.transforms],o}isType(n){return n==null?!!(this.spec.nullable&&n===null||this.spec.optional&&n===void 0):this._typeCheck(n)}resolve(n){let i=this;if(i.conditions.length){let o=i.conditions;i=i.clone(),i.conditions=[],i=o.reduce((u,h)=>h.resolve(u,n),i),i=i.resolve(n)}return i}resolveOptions(n){var i,o,u,h;return Object.assign({},n,{from:n.from||[],strict:(i=n.strict)!=null?i:this.spec.strict,abortEarly:(o=n.abortEarly)!=null?o:this.spec.abortEarly,recursive:(u=n.recursive)!=null?u:this.spec.recursive,disableStackTrace:(h=n.disableStackTrace)!=null?h:this.spec.disableStackTrace})}cast(n,i={}){let o=this.resolve(Object.assign({value:n},i)),u=i.assert==="ignore-optionality",h=o._cast(n,i);if(i.assert!==!1&&!o.isType(h)){if(u&&Mg(h))return h;let g=fm(n),v=fm(h);throw new TypeError(`The value of ${i.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
|
|
696
|
+
`,style:{maxWidth:C,maxHeight:C,minWidth:C,minHeight:C},children:F()})]})};function i_(t){var n,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(i=i_(t[n]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function fd(){for(var t,n,i=0,o="",u=arguments.length;i<u;i++)(t=arguments[i])&&(n=i_(t))&&(o&&(o+=" "),o+=n);return o}const r_={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},l_={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},o_={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},s_={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},wq="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",Cq={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},Oq=(t="filled",n="blue",i="base")=>{const o=fd(wq,Cq[i]),u={blue:r_[t],aqua:l_[t],red:o_[t],gray:s_[t]}[n];return fd(o,u)},Mq="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",Dq={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},Rq={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},_q=(t="filled",n="blue",i="base",o="none")=>{const u=fd(Mq,Dq[i],Rq[o]),h={blue:r_[t],aqua:l_[t],red:o_[t],gray:s_[t]}[n];return fd(u,h)},Nq={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Tb=(t="base")=>Nq[t],Eb=({icon:t,rightIcon:n,color:i,variant:o="filled",size:u="base",children:h,className:g,...v})=>{const{defaultColorScheme:S}=za(),E=i||S;return U.jsxs("button",{type:"button",className:Oq(o,E,u)+" "+g,...v,children:[t&&U.jsx(fn,{icon:t,className:Tb(u)}),h,n&&U.jsx(fn,{icon:n,className:Tb(u)})]})},u_=({className:t="",direction:n="horizontal"})=>n==="horizontal"?U.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${t}`}):U.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${t}`}),c_=({open:t,onClose:n,title:i,children:o})=>{const u={hidden:{opacity:0},visible:{opacity:1}},h={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return U.jsx(nm,{children:t&&U.jsx(U.Fragment,{children:U.jsx(ha.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:n,children:U.jsx(ha.div,{className:"w-full max-w-lg mx-16 z-50",variants:h,initial:"hidden",animate:"visible",exit:"exit",onClick:g=>g.stopPropagation(),children:U.jsxs(Wy,{className:"flex flex-col gap-16 md:gap-24 p-0!",children:[U.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 md:pb-0",children:[U.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[i&&U.jsx("h2",{className:"text-black font-700 text-2xl",children:i}),U.jsx(fn,{icon:mT,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:n})]}),i&&U.jsx(u_,{className:"bg-gray-100!"})]}),U.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof o=="function"?o(n):o})]})})})})})},zq=({active:t,color:n="blue",variant:i="rounded",className:o,...u})=>{const h={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[n],g={rounded:"rounded-full",square:"rounded-md"}[i];return U.jsx("div",{className:`transition-colors ease-in-out duration-150 flex items-center justify-center ${g} border-[1.5px] bg-white ${t?h:"border-gray-400"} ${o}`,...u,children:U.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${g} size-12 ${t?h:""}`})})};var lw,f_;function Lq(){if(f_)return lw;f_=1;function t(V){this._maxSize=V,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(V){return this._values[V]},t.prototype.set=function(V,F){return this._size>=this._maxSize&&this.clear(),V in this._values||this._size++,this._values[V]=F};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,o=/^\d/,u=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,h=/^\s*(['"]?)(.*?)(\1)\s*$/,g=512,v=new t(g),S=new t(g),E=new t(g);lw={Cache:t,split:C,normalizePath:A,setter:function(V){var F=A(V);return S.get(V)||S.set(V,function(ne,Y){for(var oe=0,me=F.length,pe=ne;oe<me-1;){var ve=F[oe];if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return ne;pe=pe[F[oe++]]}pe[F[oe]]=Y})},getter:function(V,F){var G=A(V);return E.get(V)||E.set(V,function(Y){for(var oe=0,me=G.length;oe<me;)if(Y!=null||!F)Y=Y[G[oe++]];else return;return Y})},join:function(V){return V.reduce(function(F,G){return F+(R(G)||i.test(G)?"["+G+"]":(F?".":"")+G)},"")},forEach:function(V,F,G){M(Array.isArray(V)?V:C(V),F,G)}};function A(V){return v.get(V)||v.set(V,C(V).map(function(F){return F.replace(h,"$2")}))}function C(V){return V.match(n)||[""]}function M(V,F,G){var ne=V.length,Y,oe,me,pe;for(oe=0;oe<ne;oe++)Y=V[oe],Y&&(P(Y)&&(Y='"'+Y+'"'),pe=R(Y),me=!pe&&/^\d+$/.test(Y),F.call(G,Y,pe,me,oe,V))}function R(V){return typeof V=="string"&&V&&["'",'"'].indexOf(V.charAt(0))!==-1}function j(V){return V.match(o)&&!V.match(i)}function L(V){return u.test(V)}function P(V){return!R(V)&&(j(V)||L(V))}return lw}var Cg=Lq(),ow,d_;function Uq(){if(d_)return ow;d_=1;const t=/[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,n=A=>A.match(t)||[],i=A=>A[0].toUpperCase()+A.slice(1),o=(A,C)=>n(A).join(C).toLowerCase(),u=A=>n(A).reduce((C,M)=>`${C}${C?M[0].toUpperCase()+M.slice(1).toLowerCase():M.toLowerCase()}`,"");return ow={words:n,upperFirst:i,camelCase:u,pascalCase:A=>i(u(A)),snakeCase:A=>o(A,"_"),kebabCase:A=>o(A,"-"),sentenceCase:A=>i(o(A," ")),titleCase:A=>n(A).map(i).join(" ")},ow}var sw=Uq(),_x={exports:{}},h_;function Vq(){if(h_)return _x.exports;h_=1,_x.exports=function(u){return t(n(u),u)},_x.exports.array=t;function t(u,h){var g=u.length,v=new Array(g),S={},E=g,A=i(h),C=o(u);for(h.forEach(function(R){if(!C.has(R[0])||!C.has(R[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});E--;)S[E]||M(u[E],E,new Set);return v;function M(R,j,L){if(L.has(R)){var P;try{P=", node was:"+JSON.stringify(R)}catch{P=""}throw new Error("Cyclic dependency"+P)}if(!C.has(R))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(R));if(!S[j]){S[j]=!0;var V=A.get(R)||new Set;if(V=Array.from(V),j=V.length){L.add(R);do{var F=V[--j];M(F,C.get(F),L)}while(j);L.delete(R)}v[--g]=R}}}function n(u){for(var h=new Set,g=0,v=u.length;g<v;g++){var S=u[g];h.add(S[0]),h.add(S[1])}return Array.from(h)}function i(u){for(var h=new Map,g=0,v=u.length;g<v;g++){var S=u[g];h.has(S[0])||h.set(S[0],new Set),h.has(S[1])||h.set(S[1],new Set),h.get(S[0]).add(S[1])}return h}function o(u){for(var h=new Map,g=0,v=u.length;g<v;g++)h.set(u[g],g);return h}return _x.exports}var jq=Vq();const Bq=MC(jq),$q=Object.prototype.toString,Hq=Error.prototype.toString,Pq=RegExp.prototype.toString,kq=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Yq=/^Symbol\((.*)\)(.*)$/;function Gq(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function m_(t,n=!1){if(t==null||t===!0||t===!1)return""+t;const i=typeof t;if(i==="number")return Gq(t);if(i==="string")return n?`"${t}"`:t;if(i==="function")return"[Function "+(t.name||"anonymous")+"]";if(i==="symbol")return kq.call(t).replace(Yq,"Symbol($1)");const o=$q.call(t).slice(8,-1);return o==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):o==="Error"||t instanceof Error?"["+Hq.call(t)+"]":o==="RegExp"?Pq.call(t):null}function fm(t,n){let i=m_(t,n);return i!==null?i:JSON.stringify(t,function(o,u){let h=m_(this[o],n);return h!==null?h:u},2)}function p_(t){return t==null?[]:[].concat(t)}let g_,y_,v_,qq=/\$\{\s*(\w+)\s*\}/g;g_=Symbol.toStringTag;class b_{constructor(n,i,o,u){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[g_]="Error",this.name="ValidationError",this.value=i,this.path=o,this.type=u,this.errors=[],this.inner=[],p_(n).forEach(h=>{if(Pl.isError(h)){this.errors.push(...h.errors);const g=h.inner.length?h.inner:[h];this.inner.push(...g)}else this.errors.push(h)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}y_=Symbol.hasInstance,v_=Symbol.toStringTag;class Pl extends Error{static formatError(n,i){const o=i.label||i.path||"this";return i=Object.assign({},i,{path:o,originalPath:i.path}),typeof n=="string"?n.replace(qq,(u,h)=>fm(i[h])):typeof n=="function"?n(i):n}static isError(n){return n&&n.name==="ValidationError"}constructor(n,i,o,u,h){const g=new b_(n,i,o,u);if(h)return g;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[v_]="Error",this.name=g.name,this.message=g.message,this.type=g.type,this.value=g.value,this.path=g.path,this.errors=g.errors,this.inner=g.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Pl)}static[y_](n){return b_[Symbol.hasInstance](n)||super[Symbol.hasInstance](n)}}let Bc={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:t,type:n,value:i,originalValue:o})=>{const u=o!=null&&o!==i?` (cast from the value \`${fm(o,!0)}\`).`:".";return n!=="mixed"?`${t} must be a \`${n}\` type, but the final value was: \`${fm(i,!0)}\``+u:`${t} must match the configured type. The validated value was: \`${fm(i,!0)}\``+u}},kl={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"},Iq={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"},uw={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Fq={isValue:"${path} field must be ${value}"},Nx={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bc,string:kl,number:Iq,date:uw,object:Nx,array:{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"},boolean:Fq,tuple:{notType:t=>{const{path:n,value:i,spec:o}=t,u=o.types.length;if(Array.isArray(i)){if(i.length<u)return`${n} tuple value has too few items, expected a length of ${u} but got ${i.length} for value: \`${fm(i,!0)}\``;if(i.length>u)return`${n} tuple value has too many items, expected a length of ${u} but got ${i.length} for value: \`${fm(i,!0)}\``}return Pl.formatError(Bc.notType,t)}}});const cw=t=>t&&t.__isYupSchema__;class zx{static fromOptions(n,i){if(!i.then&&!i.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:u,otherwise:h}=i,g=typeof o=="function"?o:(...v)=>v.every(S=>S===o);return new zx(n,(v,S)=>{var E;let A=g(...v)?u:h;return(E=A==null?void 0:A(S))!=null?E:S})}constructor(n,i){this.fn=void 0,this.refs=n,this.refs=n,this.fn=i}resolve(n,i){let o=this.refs.map(h=>h.getValue(i==null?void 0:i.value,i==null?void 0:i.parent,i==null?void 0:i.context)),u=this.fn(o,n,i);if(u===void 0||u===n)return n;if(!cw(u))throw new TypeError("conditions must return a schema object");return u.resolve(i)}}const Lx={context:"$",value:"."};class Og{constructor(n,i={}){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 n!="string")throw new TypeError("ref must be a string, got: "+n);if(this.key=n.trim(),n==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Lx.context,this.isValue=this.key[0]===Lx.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Lx.context:this.isValue?Lx.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Cg.getter(this.path,!0),this.map=i.map}getValue(n,i,o){let u=this.isContext?o:this.isValue?n:i;return this.getter&&(u=this.getter(u||{})),this.map&&(u=this.map(u)),u}cast(n,i){return this.getValue(n,i==null?void 0:i.parent,i==null?void 0:i.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(n){return n&&n.__isYupRef}}Og.prototype.__isYupRef=!0;const Mg=t=>t==null;function Jy(t){function n({value:i,path:o="",options:u,originalValue:h,schema:g},v,S){const{name:E,test:A,params:C,message:M,skipAbsent:R}=t;let{parent:j,context:L,abortEarly:P=g.spec.abortEarly,disableStackTrace:V=g.spec.disableStackTrace}=u;function F(je){return Og.isRef(je)?je.getValue(i,j,L):je}function G(je={}){const Pe=Object.assign({value:i,originalValue:h,label:g.spec.label,path:je.path||o,spec:g.spec,disableStackTrace:je.disableStackTrace||V},C,je.params);for(const Xe of Object.keys(Pe))Pe[Xe]=F(Pe[Xe]);const Qe=new Pl(Pl.formatError(je.message||M,Pe),i,Pe.path,je.type||E,Pe.disableStackTrace);return Qe.params=Pe,Qe}const ne=P?v:S;let Y={path:o,parent:j,type:E,from:u.from,createError:G,resolve:F,options:u,originalValue:h,schema:g};const oe=je=>{Pl.isError(je)?ne(je):je?S(null):ne(G())},me=je=>{Pl.isError(je)?ne(je):v(je)};if(R&&Mg(i))return oe(!0);let ve;try{var He;if(ve=A.call(Y,i,Y),typeof((He=ve)==null?void 0:He.then)=="function"){if(u.sync)throw new Error(`Validation test of type: "${Y.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ve).then(oe,me)}}catch(je){me(je);return}oe(ve)}return n.OPTIONS=t,n}function Xq(t,n,i,o=i){let u,h,g;return n?(Cg.forEach(n,(v,S,E)=>{let A=S?v.slice(1,v.length-1):v;t=t.resolve({context:o,parent:u,value:i});let C=t.type==="tuple",M=E?parseInt(A,10):0;if(t.innerType||C){if(C&&!E)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${g}" must contain an index to the tuple element, e.g. "${g}[0]"`);if(i&&M>=i.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${v}, in the path: ${n}. because there is no value at that index. `);u=i,i=i&&i[M],t=C?t.spec.types[M]:t.innerType}if(!E){if(!t.fields||!t.fields[A])throw new Error(`The schema does not contain the path: ${n}. (failed at: ${g} which is a type: "${t.type}")`);u=i,i=i&&i[A],t=t.fields[A]}h=A,g=S?"["+v+"]":"."+v}),{schema:t,parent:u,parentPath:h}):{parent:u,parentPath:n,schema:t}}class Ux extends Set{describe(){const n=[];for(const i of this.values())n.push(Og.isRef(i)?i.describe():i);return n}resolveAll(n){let i=[];for(const o of this.values())i.push(n(o));return i}clone(){return new Ux(this.values())}merge(n,i){const o=this.clone();return n.forEach(u=>o.add(u)),i.forEach(u=>o.delete(u)),o}}function ev(t,n=new Map){if(cw(t)||!t||typeof t!="object")return t;if(n.has(t))return n.get(t);let i;if(t instanceof Date)i=new Date(t.getTime()),n.set(t,i);else if(t instanceof RegExp)i=new RegExp(t),n.set(t,i);else if(Array.isArray(t)){i=new Array(t.length),n.set(t,i);for(let o=0;o<t.length;o++)i[o]=ev(t[o],n)}else if(t instanceof Map){i=new Map,n.set(t,i);for(const[o,u]of t.entries())i.set(o,ev(u,n))}else if(t instanceof Set){i=new Set,n.set(t,i);for(const o of t)i.add(ev(o,n))}else if(t instanceof Object){i={},n.set(t,i);for(const[o,u]of Object.entries(t))i[o]=ev(u,n)}else throw Error(`Unable to clone ${t}`);return i}class $c{constructor(n){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 Ux,this._blacklist=new Ux,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bc.notType)}),this.type=n.type,this._typeCheck=n.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},n==null?void 0:n.spec),this.withMutation(i=>{i.nonNullable()})}get _type(){return this.type}clone(n){if(this._mutate)return n&&Object.assign(this.spec,n),this;const i=Object.create(Object.getPrototypeOf(this));return i.type=this.type,i._typeCheck=this._typeCheck,i._whitelist=this._whitelist.clone(),i._blacklist=this._blacklist.clone(),i.internalTests=Object.assign({},this.internalTests),i.exclusiveTests=Object.assign({},this.exclusiveTests),i.deps=[...this.deps],i.conditions=[...this.conditions],i.tests=[...this.tests],i.transforms=[...this.transforms],i.spec=ev(Object.assign({},this.spec,n)),i}label(n){let i=this.clone();return i.spec.label=n,i}meta(...n){if(n.length===0)return this.spec.meta;let i=this.clone();return i.spec.meta=Object.assign(i.spec.meta||{},n[0]),i}withMutation(n){let i=this._mutate;this._mutate=!0;let o=n(this);return this._mutate=i,o}concat(n){if(!n||n===this)return this;if(n.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${n.type}`);let i=this,o=n.clone();const u=Object.assign({},i.spec,o.spec);return o.spec=u,o.internalTests=Object.assign({},i.internalTests,o.internalTests),o._whitelist=i._whitelist.merge(n._whitelist,n._blacklist),o._blacklist=i._blacklist.merge(n._blacklist,n._whitelist),o.tests=i.tests,o.exclusiveTests=i.exclusiveTests,o.withMutation(h=>{n.tests.forEach(g=>{h.test(g.OPTIONS)})}),o.transforms=[...i.transforms,...o.transforms],o}isType(n){return n==null?!!(this.spec.nullable&&n===null||this.spec.optional&&n===void 0):this._typeCheck(n)}resolve(n){let i=this;if(i.conditions.length){let o=i.conditions;i=i.clone(),i.conditions=[],i=o.reduce((u,h)=>h.resolve(u,n),i),i=i.resolve(n)}return i}resolveOptions(n){var i,o,u,h;return Object.assign({},n,{from:n.from||[],strict:(i=n.strict)!=null?i:this.spec.strict,abortEarly:(o=n.abortEarly)!=null?o:this.spec.abortEarly,recursive:(u=n.recursive)!=null?u:this.spec.recursive,disableStackTrace:(h=n.disableStackTrace)!=null?h:this.spec.disableStackTrace})}cast(n,i={}){let o=this.resolve(Object.assign({value:n},i)),u=i.assert==="ignore-optionality",h=o._cast(n,i);if(i.assert!==!1&&!o.isType(h)){if(u&&Mg(h))return h;let g=fm(n),v=fm(h);throw new TypeError(`The value of ${i.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
|
|
697
697
|
|
|
698
698
|
attempted value: ${g}
|
|
699
699
|
`+(v!==g?`result of cast: ${v}`:""))}return h}_cast(n,i){let o=n===void 0?n:this.transforms.reduce((u,h)=>h.call(this,u,n,this),n);return o===void 0&&(o=this.getDefault(i)),o}_validate(n,i={},o,u){let{path:h,originalValue:g=n,strict:v=this.spec.strict}=i,S=n;v||(S=this._cast(S,Object.assign({assert:!1},i)));let E=[];for(let A of Object.values(this.internalTests))A&&E.push(A);this.runTests({path:h,value:S,originalValue:g,options:i,tests:E},o,A=>{if(A.length)return u(A,S);this.runTests({path:h,value:S,originalValue:g,options:i,tests:this.tests},o,u)})}runTests(n,i,o){let u=!1,{tests:h,value:g,originalValue:v,path:S,options:E}=n,A=L=>{u||(u=!0,i(L,g))},C=L=>{u||(u=!0,o(L,g))},M=h.length,R=[];if(!M)return C([]);let j={value:g,originalValue:v,path:S,options:E,schema:this};for(let L=0;L<h.length;L++){const P=h[L];P(j,A,function(F){F&&(Array.isArray(F)?R.push(...F):R.push(F)),--M<=0&&C(R)})}}asNestedTest({key:n,index:i,parent:o,parentPath:u,originalParent:h,options:g}){const v=n??i;if(v==null)throw TypeError("Must include `key` or `index` for nested validations");const S=typeof v=="number";let E=o[v];const A=Object.assign({},g,{strict:!0,parent:o,value:E,originalValue:h[v],key:void 0,[S?"index":"key"]:v,path:S||v.includes(".")?`${u||""}[${S?v:`"${v}"`}]`:(u?`${u}.`:"")+n});return(C,M,R)=>this.resolve(A)._validate(E,A,M,R)}validate(n,i){var o;let u=this.resolve(Object.assign({},i,{value:n})),h=(o=i==null?void 0:i.disableStackTrace)!=null?o:u.spec.disableStackTrace;return new Promise((g,v)=>u._validate(n,i,(S,E)=>{Pl.isError(S)&&(S.value=E),v(S)},(S,E)=>{S.length?v(new Pl(S,E,void 0,void 0,h)):g(E)}))}validateSync(n,i){var o;let u=this.resolve(Object.assign({},i,{value:n})),h,g=(o=i==null?void 0:i.disableStackTrace)!=null?o:u.spec.disableStackTrace;return u._validate(n,Object.assign({},i,{sync:!0}),(v,S)=>{throw Pl.isError(v)&&(v.value=S),v},(v,S)=>{if(v.length)throw new Pl(v,n,void 0,void 0,g);h=S}),h}isValid(n,i){return this.validate(n,i).then(()=>!0,o=>{if(Pl.isError(o))return!1;throw o})}isValidSync(n,i){try{return this.validateSync(n,i),!0}catch(o){if(Pl.isError(o))return!1;throw o}}_getDefault(n){let i=this.spec.default;return i==null?i:typeof i=="function"?i.call(this,n):ev(i)}getDefault(n){return this.resolve(n||{})._getDefault(n)}default(n){return arguments.length===0?this._getDefault():this.clone({default:n})}strict(n=!0){return this.clone({strict:n})}nullability(n,i){const o=this.clone({nullable:n});return o.internalTests.nullable=Jy({message:i,name:"nullable",test(u){return u===null?this.schema.spec.nullable:!0}}),o}optionality(n,i){const o=this.clone({optional:n});return o.internalTests.optionality=Jy({message:i,name:"optionality",test(u){return u===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(n=Bc.defined){return this.optionality(!1,n)}nullable(){return this.nullability(!0)}nonNullable(n=Bc.notNull){return this.nullability(!1,n)}required(n=Bc.required){return this.clone().withMutation(i=>i.nonNullable(n).defined(n))}notRequired(){return this.clone().withMutation(n=>n.nullable().optional())}transform(n){let i=this.clone();return i.transforms.push(n),i}test(...n){let i;if(n.length===1?typeof n[0]=="function"?i={test:n[0]}:i=n[0]:n.length===2?i={name:n[0],test:n[1]}:i={name:n[0],message:n[1],test:n[2]},i.message===void 0&&(i.message=Bc.default),typeof i.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),u=Jy(i),h=i.exclusive||i.name&&o.exclusiveTests[i.name]===!0;if(i.exclusive&&!i.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return i.name&&(o.exclusiveTests[i.name]=!!i.exclusive),o.tests=o.tests.filter(g=>!(g.OPTIONS.name===i.name&&(h||g.OPTIONS.test===u.OPTIONS.test))),o.tests.push(u),o}when(n,i){!Array.isArray(n)&&typeof n!="string"&&(i=n,n=".");let o=this.clone(),u=p_(n).map(h=>new Og(h));return u.forEach(h=>{h.isSibling&&o.deps.push(h.key)}),o.conditions.push(typeof i=="function"?new zx(u,i):zx.fromOptions(u,i)),o}typeError(n){let i=this.clone();return i.internalTests.typeError=Jy({message:n,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),i}oneOf(n,i=Bc.oneOf){let o=this.clone();return n.forEach(u=>{o._whitelist.add(u),o._blacklist.delete(u)}),o.internalTests.whiteList=Jy({message:i,name:"oneOf",skipAbsent:!0,test(u){let h=this.schema._whitelist,g=h.resolveAll(this.resolve);return g.includes(u)?!0:this.createError({params:{values:Array.from(h).join(", "),resolved:g}})}}),o}notOneOf(n,i=Bc.notOneOf){let o=this.clone();return n.forEach(u=>{o._blacklist.add(u),o._whitelist.delete(u)}),o.internalTests.blacklist=Jy({message:i,name:"notOneOf",test(u){let h=this.schema._blacklist,g=h.resolveAll(this.resolve);return g.includes(u)?this.createError({params:{values:Array.from(h).join(", "),resolved:g}}):!0}}),o}strip(n=!0){let i=this.clone();return i.spec.strip=n,i}describe(n){const i=(n?this.resolve(n):this).clone(),{label:o,meta:u,optional:h,nullable:g}=i.spec;return{meta:u,label:o,optional:h,nullable:g,default:i.getDefault(n),type:i.type,oneOf:i._whitelist.describe(),notOneOf:i._blacklist.describe(),tests:i.tests.map(S=>({name:S.OPTIONS.name,params:S.OPTIONS.params})).filter((S,E,A)=>A.findIndex(C=>C.name===S.name)===E)}}}$c.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])$c.prototype[`${t}At`]=function(n,i,o={}){const{parent:u,parentPath:h,schema:g}=Xq(this,n,i,o.context);return g[t](u&&u[h],Object.assign({},o,{parent:u,path:n}))};for(const t of["equals","is"])$c.prototype[t]=$c.prototype.oneOf;for(const t of["not","nope"])$c.prototype[t]=$c.prototype.notOneOf;const Zq=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Kq(t){const n=fw(t);if(!n)return Date.parse?Date.parse(t):Number.NaN;if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let i=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(i=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(i=0-i)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+i,n.second,n.millisecond)}function fw(t){var n,i;const o=Zq.exec(t);return o?{year:dd(o[1]),month:dd(o[2],1)-1,day:dd(o[3],1),hour:dd(o[4]),minute:dd(o[5]),second:dd(o[6]),millisecond:o[7]?dd(o[7].substring(0,3)):0,precision:(n=(i=o[7])==null?void 0:i.length)!=null?n:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:dd(o[10]),minuteOffset:dd(o[11])}:null}function dd(t,n=0){return Number(t)||n}let Qq=/^[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])?)*$/,Wq=/^((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,Jq=/^(?:[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,eI="^\\d{4}-\\d{2}-\\d{2}",tI="\\d{2}:\\d{2}:\\d{2}",nI="(([+-]\\d{2}(:?\\d{2})?)|Z)",aI=new RegExp(`${eI}T${tI}(\\.\\d+)?${nI}$`),iI=t=>Mg(t)||t===t.trim(),rI={}.toString();function dm(){return new S_}class S_ extends $c{constructor(){super({type:"string",check(n){return n instanceof String&&(n=n.valueOf()),typeof n=="string"}}),this.withMutation(()=>{this.transform((n,i,o)=>{if(!o.spec.coerce||o.isType(n)||Array.isArray(n))return n;const u=n!=null&&n.toString?n.toString():n;return u===rI?n:u})})}required(n){return super.required(n).withMutation(i=>i.test({message:n||Bc.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(n=>(n.tests=n.tests.filter(i=>i.OPTIONS.name!=="required"),n))}length(n,i=kl.length){return this.test({message:i,name:"length",exclusive:!0,params:{length:n},skipAbsent:!0,test(o){return o.length===this.resolve(n)}})}min(n,i=kl.min){return this.test({message:i,name:"min",exclusive:!0,params:{min:n},skipAbsent:!0,test(o){return o.length>=this.resolve(n)}})}max(n,i=kl.max){return this.test({name:"max",exclusive:!0,message:i,params:{max:n},skipAbsent:!0,test(o){return o.length<=this.resolve(n)}})}matches(n,i){let o=!1,u,h;return i&&(typeof i=="object"?{excludeEmptyString:o=!1,message:u,name:h}=i:u=i),this.test({name:h||"matches",message:u||kl.matches,params:{regex:n},skipAbsent:!0,test:g=>g===""&&o||g.search(n)!==-1})}email(n=kl.email){return this.matches(Qq,{name:"email",message:n,excludeEmptyString:!0})}url(n=kl.url){return this.matches(Wq,{name:"url",message:n,excludeEmptyString:!0})}uuid(n=kl.uuid){return this.matches(Jq,{name:"uuid",message:n,excludeEmptyString:!1})}datetime(n){let i="",o,u;return n&&(typeof n=="object"?{message:i="",allowOffset:o=!1,precision:u=void 0}=n:i=n),this.matches(aI,{name:"datetime",message:i||kl.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:i||kl.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:h=>{if(!h||o)return!0;const g=fw(h);return g?!!g.z:!1}}).test({name:"datetime_precision",message:i||kl.datetime_precision,params:{precision:u},skipAbsent:!0,test:h=>{if(!h||u==null)return!0;const g=fw(h);return g?g.precision===u:!1}})}ensure(){return this.default("").transform(n=>n===null?"":n)}trim(n=kl.trim){return this.transform(i=>i!=null?i.trim():i).test({message:n,name:"trim",test:iI})}lowercase(n=kl.lowercase){return this.transform(i=>Mg(i)?i:i.toLowerCase()).test({message:n,name:"string_case",exclusive:!0,skipAbsent:!0,test:i=>Mg(i)||i===i.toLowerCase()})}uppercase(n=kl.uppercase){return this.transform(i=>Mg(i)?i:i.toUpperCase()).test({message:n,name:"string_case",exclusive:!0,skipAbsent:!0,test:i=>Mg(i)||i===i.toUpperCase()})}}dm.prototype=S_.prototype;let lI=new Date(""),oI=t=>Object.prototype.toString.call(t)==="[object Date]";class dw extends $c{constructor(){super({type:"date",check(n){return oI(n)&&!isNaN(n.getTime())}}),this.withMutation(()=>{this.transform((n,i,o)=>!o.spec.coerce||o.isType(n)||n===null?n:(n=Kq(n),isNaN(n)?dw.INVALID_DATE:new Date(n)))})}prepareParam(n,i){let o;if(Og.isRef(n))o=n;else{let u=this.cast(n);if(!this._typeCheck(u))throw new TypeError(`\`${i}\` must be a Date or a value that can be \`cast()\` to a Date`);o=u}return o}min(n,i=uw.min){let o=this.prepareParam(n,"min");return this.test({message:i,name:"min",exclusive:!0,params:{min:n},skipAbsent:!0,test(u){return u>=this.resolve(o)}})}max(n,i=uw.max){let o=this.prepareParam(n,"max");return this.test({message:i,name:"max",exclusive:!0,params:{max:n},skipAbsent:!0,test(u){return u<=this.resolve(o)}})}}dw.INVALID_DATE=lI;function sI(t,n=[]){let i=[],o=new Set,u=new Set(n.map(([g,v])=>`${g}-${v}`));function h(g,v){let S=Cg.split(g)[0];o.add(S),u.has(`${v}-${S}`)||i.push([v,S])}for(const g of Object.keys(t)){let v=t[g];o.add(g),Og.isRef(v)&&v.isSibling?h(v.path,g):cw(v)&&"deps"in v&&v.deps.forEach(S=>h(S,g))}return Bq.array(Array.from(o),i).reverse()}function x_(t,n){let i=1/0;return t.some((o,u)=>{var h;if((h=n.path)!=null&&h.includes(o))return i=u,!0}),i}function T_(t){return(n,i)=>x_(t,n)-x_(t,i)}const uI=(t,n,i)=>{if(typeof t!="string")return t;let o=t;try{o=JSON.parse(t)}catch{}return i.isType(o)?o:t};function Vx(t){if("fields"in t){const n={};for(const[i,o]of Object.entries(t.fields))n[i]=Vx(o);return t.setFields(n)}if(t.type==="array"){const n=t.optional();return n.innerType&&(n.innerType=Vx(n.innerType)),n}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(Vx)}):"optional"in t?t.optional():t}const cI=(t,n)=>{const i=[...Cg.normalizePath(n)];if(i.length===1)return i[0]in t;let o=i.pop(),u=Cg.getter(Cg.join(i),!0)(t);return!!(u&&o in u)};let E_=t=>Object.prototype.toString.call(t)==="[object Object]";function A_(t,n){let i=Object.keys(t.fields);return Object.keys(n).filter(o=>i.indexOf(o)===-1)}const fI=T_([]);function hw(t){return new w_(t)}class w_ extends $c{constructor(n){super({type:"object",check(i){return E_(i)||typeof i=="function"}}),this.fields=Object.create(null),this._sortErrors=fI,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{n&&this.shape(n)})}_cast(n,i={}){var o;let u=super._cast(n,i);if(u===void 0)return this.getDefault(i);if(!this._typeCheck(u))return u;let h=this.fields,g=(o=i.stripUnknown)!=null?o:this.spec.noUnknown,v=[].concat(this._nodes,Object.keys(u).filter(C=>!this._nodes.includes(C))),S={},E=Object.assign({},i,{parent:S,__validating:i.__validating||!1}),A=!1;for(const C of v){let M=h[C],R=C in u;if(M){let j,L=u[C];E.path=(i.path?`${i.path}.`:"")+C,M=M.resolve({value:L,context:i.context,parent:S});let P=M instanceof $c?M.spec:void 0,V=P==null?void 0:P.strict;if(P!=null&&P.strip){A=A||C in u;continue}j=!i.__validating||!V?M.cast(u[C],E):u[C],j!==void 0&&(S[C]=j)}else R&&!g&&(S[C]=u[C]);(R!==C in S||S[C]!==u[C])&&(A=!0)}return A?S:u}_validate(n,i={},o,u){let{from:h=[],originalValue:g=n,recursive:v=this.spec.recursive}=i;i.from=[{schema:this,value:g},...h],i.__validating=!0,i.originalValue=g,super._validate(n,i,o,(S,E)=>{if(!v||!E_(E)){u(S,E);return}g=g||E;let A=[];for(let C of this._nodes){let M=this.fields[C];!M||Og.isRef(M)||A.push(M.asNestedTest({options:i,key:C,parent:E,parentPath:i.path,originalParent:g}))}this.runTests({tests:A,value:E,originalValue:g,options:i},o,C=>{u(C.sort(this._sortErrors).concat(S),E)})})}clone(n){const i=super.clone(n);return i.fields=Object.assign({},this.fields),i._nodes=this._nodes,i._excludedEdges=this._excludedEdges,i._sortErrors=this._sortErrors,i}concat(n){let i=super.concat(n),o=i.fields;for(let[u,h]of Object.entries(this.fields)){const g=o[u];o[u]=g===void 0?h:g}return i.withMutation(u=>u.setFields(o,[...this._excludedEdges,...n._excludedEdges]))}_getDefault(n){if("default"in this.spec)return super._getDefault(n);if(!this._nodes.length)return;let i={};return this._nodes.forEach(o=>{var u;const h=this.fields[o];let g=n;(u=g)!=null&&u.value&&(g=Object.assign({},g,{parent:g.value,value:g.value[o]})),i[o]=h&&"getDefault"in h?h.getDefault(g):void 0}),i}setFields(n,i){let o=this.clone();return o.fields=n,o._nodes=sI(n,i),o._sortErrors=T_(Object.keys(n)),i&&(o._excludedEdges=i),o}shape(n,i=[]){return this.clone().withMutation(o=>{let u=o._excludedEdges;return i.length&&(Array.isArray(i[0])||(i=[i]),u=[...o._excludedEdges,...i]),o.setFields(Object.assign(o.fields,n),u)})}partial(){const n={};for(const[i,o]of Object.entries(this.fields))n[i]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(n)}deepPartial(){return Vx(this)}pick(n){const i={};for(const o of n)this.fields[o]&&(i[o]=this.fields[o]);return this.setFields(i,this._excludedEdges.filter(([o,u])=>n.includes(o)&&n.includes(u)))}omit(n){const i=[];for(const o of Object.keys(this.fields))n.includes(o)||i.push(o);return this.pick(i)}from(n,i,o){let u=Cg.getter(n,!0);return this.transform(h=>{if(!h)return h;let g=h;return cI(h,n)&&(g=Object.assign({},h),o||delete g[n],g[i]=u(h)),g})}json(){return this.transform(uI)}exact(n){return this.test({name:"exact",exclusive:!0,message:n||Nx.exact,test(i){if(i==null)return!0;const o=A_(this.schema,i);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(n=!0,i=Nx.noUnknown){typeof n!="boolean"&&(i=n,n=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:i,test(u){if(u==null)return!0;const h=A_(this.schema,u);return!n||h.length===0||this.createError({params:{unknown:h.join(", ")}})}});return o.spec.noUnknown=n,o}unknown(n=!0,i=Nx.noUnknown){return this.noUnknown(!n,i)}transformKeys(n){return this.transform(i=>{if(!i)return i;const o={};for(const u of Object.keys(i))o[n(u)]=i[u];return o})}camelCase(){return this.transformKeys(sw.camelCase)}snakeCase(){return this.transformKeys(sw.snakeCase)}constantCase(){return this.transformKeys(n=>sw.snakeCase(n).toUpperCase())}describe(n){const i=(n?this.resolve(n):this).clone(),o=super.describe(n);o.fields={};for(const[h,g]of Object.entries(i.fields)){var u;let v=n;(u=v)!=null&&u.value&&(v=Object.assign({},v,{parent:v.value,value:v.value[h]})),o.fields[h]=g.describe(v)}return o}}hw.prototype=w_.prototype,hw().shape({labelES:dm().required(),label:dm().required(),code:dm().required(),codeISO2:dm().required(),phone:dm().required()});const C_=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],dI=({countries:t=C_,name:n,control:i,label:o="select_a_country",placeholder:u="type_to_search",language:h="en",className:g="",translateKey:v})=>{var yt,un,qe;const{t:S}=za(),{field:E,fieldState:A}=qh.useController({name:n,control:i,rules:{validate:{}},defaultValue:null}),[C,M]=J.useState(!1),[R,j]=J.useState(""),[L,P]=J.useState(E.value||null),V=J.useRef(null),F=J.useRef(null),G=J.useRef(null),{x:ne,y:Y,strategy:oe,refs:me,context:pe,placement:ve,middlewareData:He}=vb({open:C,onOpenChange:M,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:nt,elements:Jt}){Object.assign(Jt.floating.style,{maxHeight:`${Math.min(nt-10,300)}px`})},padding:8}),Mx({element:F})],placement:"bottom-start",whileElementsMounted:db}),je=gb(pe),Pe=yb(pe),{getReferenceProps:Qe,getFloatingProps:Xe}=bb([je,Pe]),{isMounted:Ge,styles:I}=Sb(pe,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(Array.isArray(t)?t:[]).filter(nt=>{if(!R.trim())return!0;const Jt=h==="es"&&nt.labelES?nt.labelES.toLowerCase():nt.label.toLowerCase(),Aa=nt.code?nt.code.toLowerCase():"";return Jt.includes(R.toLowerCase())||Aa.includes(R.toLowerCase())}),Me=nt=>{P(nt),M(!1),j(""),E.onChange(nt)},X=()=>{M(!C),!C&&V.current&&setTimeout(()=>{var nt;(nt=V.current)==null||nt.focus()},100)},fe=()=>{setTimeout(()=>{C||E.onBlur()},200)};J.useEffect(()=>{P(E.value)},[E.value]),J.useEffect(()=>{const nt=Jt=>{G.current&&!G.current.contains(Jt.target)&&E.onBlur()};return document.addEventListener("mousedown",nt),()=>{document.removeEventListener("mousedown",nt)}},[E]);const Ae=nt=>{var Jt;return nt?nt.codeISO2?nt.codeISO2.toLowerCase():((Jt=nt.code)==null?void 0:Jt.toLowerCase())||"":""},Be=(yt=He.arrow)==null?void 0:yt.x,Ye=(un=He.arrow)==null?void 0:un.y,Le={top:"bottom",right:"left",bottom:"top",left:"right"}[ve.split("-")[0]],Ue=Qe({onClick:X,onBlur:fe}),et=S(o),We=S(u),it=(qe=A.error)==null?void 0:qe.message;return U.jsxs("div",{ref:G,className:`w-full relative flex flex-col gap-8 ${g}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${it&&"!text-red-500"} text-label`,children:et}),U.jsxs("div",{ref:me.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${it&&"border-red-500 hover:border-red-600"} ${Ge?"border-blue-400":"border-blue-100"}`,...Ue,tabIndex:0,children:[L!=null&&L.code?U.jsxs("div",{className:"flex items-center w-full",children:[Ae(L)&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Ae(L)}.png`,srcSet:`https://flagcdn.com/w40/${Ae(L)}.png 2x`,alt:L.label,onError:nt=>{nt.currentTarget.style.display="none"}}),U.jsxs("span",{className:"flex-grow",children:[h==="es"&&L.labelES?L.labelES:L.label,L.code?` (${L.code})`:S("select_country")]})]}):U.jsx("span",{className:"text-gray-500",children:We}),U.jsx("svg",{className:`w-16 h-16 transition-transform ${C?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),it&&U.jsx("p",{className:"mt-1 text-sm text-red-600",children:S(it,{x:S(v||"")||S(n)})}),Ge&&U.jsxs("div",{ref:me.setFloating,style:{position:oe,top:Y??0,left:ne??0,...I},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...Xe(),children:[U.jsx("div",{ref:F,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Be!=null?`${Be}px`:"",top:Ye!=null?`${Ye}px`:"",right:"",bottom:"",[Le]:"-2px",borderRight:Le==="left"?"1px solid":"none",borderBottom:Le==="top"?"1px solid":"none",borderLeft:Le==="right"?"1px solid":"none",borderTop:Le==="bottom"?"1px solid":"none"}}),U.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:U.jsx("input",{ref:V,type:"text",className:"w-full p-16",placeholder:S("search")+"...",value:R,onChange:nt=>j(nt.target.value),onClick:nt=>nt.stopPropagation(),onBlur:nt=>{nt.stopPropagation()},autoFocus:!0})}),U.jsx("div",{children:le.length>0?U.jsx("ul",{className:"flex flex-col",children:le.map((nt,Jt)=>{var pr;const Aa=nt.codeISO2?nt.codeISO2.toLowerCase():((pr=nt.code)==null?void 0:pr.toLowerCase())||"";return U.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:gn=>{gn.stopPropagation(),Me(nt)},children:[Aa&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Aa}.png`,srcSet:`https://flagcdn.com/w40/${Aa}.png 2x`,alt:nt.label,onError:gn=>{gn.currentTarget.style.display="none"}}),U.jsxs("span",{children:[h==="es"&&nt.labelES?nt.labelES:nt.label,nt.code?` (${nt.code})`:"Country not found"]})]},`${nt.code}-${Jt}`)})}):U.jsx("div",{className:"px-3 py-2 text-gray-500",children:S("no_countries_found")})})]})]})},hI=({country:t})=>{const n=i=>{var o;return i?i.codeISO2?i.codeISO2.toLowerCase():((o=i.code)==null?void 0:o.toLowerCase())||"":""};return U.jsxs("div",{className:"flex items-center gap-8",children:[U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${n(t)}.png`,srcSet:`https://flagcdn.com/w40/${n(t)}.png 2x`,alt:t.label,onError:i=>{i.currentTarget.style.display="none"}}),U.jsx("p",{className:"text-body-s text-gray-600",children:t.label})]})},mI=({countries:t,name:n,control:i,label:o="select_a_country",placeholder:u="type_to_search",language:h="en",className:g=""})=>{const{t:v}=za();return U.jsx(qh.Controller,{name:n,control:i,render:({field:{onChange:S,value:E},fieldState:{error:A}})=>U.jsx(pI,{countries:t,value:E,onChange:S,label:v(o),placeholder:v(u),language:h,error:A==null?void 0:A.message,className:g})})},pI=({countries:t,value:n,onChange:i,label:o="select_a_country",placeholder:u="type_to_search",language:h="en",error:g,className:v=""})=>{var Be,Ye;const{t:S}=za(),[E,A]=J.useState(!1),[C,M]=J.useState(""),[R,j]=J.useState(n||null),L=J.useRef(null),P=J.useRef(null),{x:V,y:F,strategy:G,refs:ne,context:Y,placement:oe,middlewareData:me}=vb({open:E,onOpenChange:A,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:Le,elements:Ue}){Object.assign(Ue.floating.style,{maxHeight:`${Math.min(Le-10,300)}px`})},padding:8}),Mx({element:P})],placement:"bottom-start",whileElementsMounted:db}),pe=gb(Y),ve=yb(Y),{getReferenceProps:He,getFloatingProps:je}=bb([pe,ve]),{isMounted:Pe,styles:Qe}=Sb(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Ge=(Array.isArray(t)?t:[]).filter(Le=>{if(!C.trim())return!0;const Ue=h==="es"&&Le.labelES?Le.labelES.toLowerCase():Le.label.toLowerCase(),et=Le.code?Le.code.toLowerCase():"";return Ue.includes(C.toLowerCase())||et.includes(C.toLowerCase())}),I=Le=>{j(Le),A(!1),M(""),i(Le)},te=()=>{A(!E),!E&&L.current&&setTimeout(()=>{var Le;(Le=L.current)==null||Le.focus()},100)};J.useEffect(()=>{j(n)},[n]);const le=Le=>{var Ue;return Le?Le.codeISO2?Le.codeISO2.toLowerCase():((Ue=Le.code)==null?void 0:Ue.toLowerCase())||"":""},Me=(Be=me.arrow)==null?void 0:Be.x,X=(Ye=me.arrow)==null?void 0:Ye.y,fe={top:"bottom",right:"left",bottom:"top",left:"right"}[oe.split("-")[0]],Ae=He({onClick:te});return U.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${v}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${g&&"!text-red-500"} text-label`,children:o}),U.jsxs("div",{ref:ne.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${g&&"border-red-500 hover:border-red-600"} ${Pe?"border-blue-400":"border-blue-100"}`,...Ae,children:[R!=null&&R.code?U.jsxs("div",{className:"flex items-center w-full",children:[le(R)&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${le(R)}.png`,srcSet:`https://flagcdn.com/w40/${le(R)}.png 2x`,alt:R.label,onError:Le=>{Le.currentTarget.style.display="none"}}),U.jsxs("span",{className:"flex-grow",children:[h==="es"&&R.labelES?R.labelES:R.label,R.code?` (${R.code})`:S("select_country")]})]}):U.jsx("span",{className:"text-gray-500",children:u}),U.jsx("svg",{className:`w-16 h-16 transition-transform ${E?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),g&&U.jsx("p",{className:"mt-1 text-sm text-red-600",children:g}),Pe&&U.jsxs("div",{ref:ne.setFloating,style:{position:G,top:F??0,left:V??0,...Qe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...je(),children:[U.jsx("div",{ref:P,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Me!=null?`${Me}px`:"",top:X!=null?`${X}px`:"",right:"",bottom:"",[fe]:"-2px",borderRight:fe==="left"?"1px solid":"none",borderBottom:fe==="top"?"1px solid":"none",borderLeft:fe==="right"?"1px solid":"none",borderTop:fe==="bottom"?"1px solid":"none"}}),U.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:U.jsx("input",{ref:L,type:"text",className:"w-full p-16",placeholder:S("search")+"...",value:C,onChange:Le=>M(Le.target.value),onClick:Le=>Le.stopPropagation(),autoFocus:!0})}),U.jsx("div",{children:Ge.length>0?U.jsx("ul",{className:"flex flex-col",children:Ge.map((Le,Ue)=>{var We;const et=Le.codeISO2?Le.codeISO2.toLowerCase():((We=Le.code)==null?void 0:We.toLowerCase())||"";return U.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:it=>{it.stopPropagation(),I(Le)},children:[et&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${et}.png`,srcSet:`https://flagcdn.com/w40/${et}.png 2x`,alt:Le.label,onError:it=>{it.currentTarget.style.display="none"}}),U.jsxs("span",{children:[h==="es"&&Le.labelES?Le.labelES:Le.label,Le.code?` (${Le.code})`:"Country not found"]})]},`${Le.code}-${Ue}`)})}):U.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},jx=({variant:t="filled",color:n,size:i="base",shadow:o="none",icon:u,iconProps:h={},children:g,className:v,...S})=>{const{defaultColorScheme:E}=za(),A=n||E;return U.jsx("button",{...S,className:`${_q(t,A,i,o)} ${v}`,children:u?U.jsx(fn,{...h,className:Tb(i),icon:u}):g})};function gI(t){return t!==null&&typeof t=="object"&&"name"in t&&"size"in t&&"type"in t&&typeof t.name=="string"&&typeof t.size=="number"&&typeof t.type=="string"}const yI=({src:t,alt:n,isEditable:i=!1,onChange:o,className:u="",name:h,control:g,user:v})=>{const[S,E]=J.useState(t||null),[A,C]=J.useState(!!t),M=J.useRef(null),R=qh.useController({name:h,control:g}),j=!!g;J.useEffect(()=>{if(j){const F=R==null?void 0:R.field.value;if(gI(F)){const G=URL.createObjectURL(F);return E(G),C(!0),()=>URL.revokeObjectURL(G)}else typeof F=="string"&&F&&F!==t?(E(F),C(!0)):t?(E(t),C(!0)):(E(null),C(!1))}},[R==null?void 0:R.field.value,t]);const L=()=>{var F;i&&((F=M.current)==null||F.click())},P=F=>{var ne;const G=(ne=F.target.files)==null?void 0:ne[0];if(G){const Y=URL.createObjectURL(G);E(Y),C(!0),j&&(R==null||R.field.onChange(G)),o&&o(G)}},V=F=>{F.stopPropagation(),E(null),C(!1),M.current&&(M.current.value=""),j&&(R==null||R.field.onChange(null)),o&&o(null)};return U.jsxs("div",{className:"relative flex items-center gap-10",children:[i&&A&&U.jsx("button",{type:"button",onClick:V,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:U.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[U.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),U.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),U.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${i?"cursor-pointer hover:opacity-80":""} ${u}`,onClick:L,children:[S?U.jsx("img",{src:S,alt:n,className:"w-full h-full object-cover rounded-full"}):U.jsx(a_,{size:60,user:v}),i&&U.jsxs(U.Fragment,{children:[U.jsx("input",{type:"file",ref:F=>{M.current=F,R&&R.field.ref(F)},onChange:P,onBlur:R==null?void 0:R.field.onBlur,accept:"image/*",className:"hidden"}),!A&&U.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:U.jsx(fn,{icon:JY,className:"text-blue-500"})})]})]})]})},vI=hw({name:dm(),base64:dm()}),bI=({index:t,label:n,active:i,completed:o})=>U.jsxs("div",{className:"flex items-center gap-8",children:[U.jsx("div",{className:`
|
|
@@ -724,7 +724,7 @@ attempted value: ${g}
|
|
|
724
724
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
725
725
|
|
|
726
726
|
group-disabled:bg-gray-500
|
|
727
|
-
`,children:[g&&g,U.jsx("input",{id:i,type:M?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:i,disabled:h,placeholder:o,value:v,onChange:L=>S(L.target.value),onBlur:A,ref:E,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),U.jsx(fn,{icon:M?W7:Z7,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>R(!M)})]}),U.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:C&&j(C.message||"",{x:j(i)})})]})},wI=({name:t,control:n,label:i="phone_number",placeholder:o="enter_phone_number",language:u="en",className:h="",translateKey:g,countries:v=C_})=>{var $r,hm,Uo,Vo;const{t:S}=za(),{field:E,fieldState:A}=qh.useController({name:t,control:n,rules:{validate:{}}}),C=(($r=E.value)==null?void 0:$r.split(" "))||[],M=C[0]||"",R=C[1]||"",j=v.find(tt=>M===tt.phone),[L,P]=J.useState(!1),[V,F]=J.useState(""),[G,ne]=J.useState(j||null),[Y,oe]=J.useState(R),[me,pe]=J.useState(!1),ve=J.useRef(null),He=J.useRef(null),je=J.useRef(null),Pe=J.useRef(null),{x:Qe,y:Xe,strategy:Ge,refs:I,context:te,placement:le,middlewareData:Me}=vb({open:L,onOpenChange:P,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:tt,elements:dn}){Object.assign(dn.floating.style,{maxHeight:`${Math.min(tt-10,300)}px`})},padding:8}),Mx({element:He})],placement:"bottom-start",whileElementsMounted:db}),X=gb(te),fe=yb(te),{getReferenceProps:Ae,getFloatingProps:Be}=bb([X,fe]),{isMounted:Ye,styles:Le}=Sb(te,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),et=(Array.isArray(v)?v:[]).filter(tt=>{if(!V.trim())return!0;const dn=u==="es"&&tt.labelES?tt.labelES.toLowerCase():tt.label.toLowerCase(),En=tt.code?tt.code.toLowerCase():"",yr=tt.phone?tt.phone.toLowerCase():"";return dn.includes(V.toLowerCase())||En.includes(V.toLowerCase())||yr.includes(V.toLowerCase())}),We=tt=>{ne(tt),P(!1),F("");const dn=`${tt.phone} ${Y}`;E.onChange(dn),setTimeout(()=>{var En;(En=je.current)==null||En.focus()},100)},it=tt=>{const dn=tt.target.value;if(oe(dn),G){const En=`${G.phone} ${dn}`;E.onChange(En)}},yt=()=>{P(!L),!L&&ve.current&&setTimeout(()=>{var tt;(tt=ve.current)==null||tt.focus()},100)},un=()=>{setTimeout(()=>{L||E.onBlur()},200)},qe=()=>{pe(!0)},nt=()=>{pe(!1)};J.useEffect(()=>{if(E.value){const tt=E.value.split(" "),dn=tt[0]||"",En=tt[1]||"",yr=v.find(Yl=>Yl.phone===dn);yr&&ne(yr),oe(En)}},[E.value,v]),J.useEffect(()=>{const tt=dn=>{Pe.current&&!Pe.current.contains(dn.target)&&E.onBlur()};return document.addEventListener("mousedown",tt),()=>{document.removeEventListener("mousedown",tt)}},[E]);const Jt=tt=>{var dn;return tt?tt.codeISO2?tt.codeISO2.toLowerCase():((dn=tt.code)==null?void 0:dn.toLowerCase())||"":""},Aa=(hm=Me.arrow)==null?void 0:hm.x,pr=(Uo=Me.arrow)==null?void 0:Uo.y,gn={top:"bottom",right:"left",bottom:"top",left:"right"}[le.split("-")[0]],As=Ae({onClick:yt,onBlur:un}),hd=()=>A.error?"border-red-500":me||L?"border-blue-400":"border-blue-100",Lo=S(i),Ia=S(o),gr=(Vo=A.error)==null?void 0:Vo.message;return U.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${h}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${gr&&"!text-red-500"} text-label`,children:Lo}),U.jsxs("div",{ref:Pe,className:"flex items-center w-full",onMouseEnter:qe,onMouseLeave:nt,children:[U.jsxs("div",{ref:I.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${gr?"border-red-500":hd()}`,style:{minWidth:"140px"},...As,tabIndex:0,children:[G!=null&&G.code?U.jsxs("div",{className:"flex items-center truncate",children:[Jt(G)&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Jt(G)}.png`,srcSet:`https://flagcdn.com/w40/${Jt(G)}.png 2x`,alt:G.label,onError:tt=>{tt.currentTarget.style.display="none"}}),U.jsxs("span",{children:["+",G.phone]})]}):U.jsx("span",{className:"text-gray-500 truncate",children:S("select_country")}),U.jsx(fn,{icon:aw,className:"w-14 h-14 min-w-14 min-h-14"})]}),U.jsx("input",{ref:je,type:"tel",className:`flex-grow bg-light rounded-r-full font-600 text-lg p-16 border transition-all duration-200 ${gr?"border-red-500":hd()}`,placeholder:Ia,value:Y,onChange:it,onBlur:un})]}),gr&&U.jsx("p",{className:"mt-1 text-sm text-red-600",children:S(gr,{x:S(g||"")||t})}),Ye&&U.jsxs("div",{ref:I.setFloating,style:{position:Ge,top:Xe??0,left:Qe??0,...Le},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Be(),children:[U.jsx("div",{ref:He,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Aa!=null?`${Aa}px`:"",top:pr!=null?`${pr}px`:"",right:"",bottom:"",[gn]:"-2px",borderRight:gn==="left"?"1px solid":"none",borderBottom:gn==="top"?"1px solid":"none",borderLeft:gn==="right"?"1px solid":"none",borderTop:gn==="bottom"?"1px solid":"none"}}),U.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:U.jsx("input",{ref:ve,type:"text",className:"w-fit p-16",placeholder:S("search")+"...",value:V,onChange:tt=>F(tt.target.value),onClick:tt=>tt.stopPropagation(),onBlur:tt=>{tt.stopPropagation()},autoFocus:!0})}),U.jsx("div",{children:et.length>0?U.jsx("ul",{className:"flex flex-col",children:et.map((tt,dn)=>{var yr;const En=tt.codeISO2?tt.codeISO2.toLowerCase():((yr=tt.code)==null?void 0:yr.toLowerCase())||"";return U.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:Yl=>{Yl.stopPropagation(),We(tt)},children:[En&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${En}.png`,srcSet:`https://flagcdn.com/w40/${En}.png 2x`,alt:tt.label,onError:Yl=>{Yl.currentTarget.style.display="none"}}),U.jsxs("span",{className:"text-gray-500",children:["+",tt.phone]})]},`${tt.code}-${dn}`)})}):U.jsx("div",{className:"px-3 py-2 text-gray-500",children:S("no_countries_found")})})]})]})},CI=({progress:t,showPercentage:n=!1})=>{const i=Math.min(Math.max(t,0),100);return U.jsxs("div",{className:"flex items-center gap-12",children:[U.jsx("div",{className:"w-full h-8 bg-blue-100 rounded-full",children:U.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-300 ease-in-out",style:{width:`${i}%`}})}),n&&U.jsxs("span",{className:"text-sm text-gray-400 font-[500]",children:[i,"%"]})]})},OI=()=>{const[t,n]=J.useState(!1),i=J.useRef(null),o=()=>{n(!0),setTimeout(()=>{var h;return(h=i.current)==null?void 0:h.focus()},100)},u=()=>{n(!1)};return U.jsx("div",{className:"relative flex items-center",children:U.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${t?"w-[200px] h-[40px]":"size-[40px]"}`,children:[U.jsx("button",{onClick:o,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:U.jsx(fn,{icon:QY})}),U.jsx("input",{ref:i,type:"text",className:`w-full outline-none bg-transparent transition-all ${t?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:u,style:{border:"none",outline:"none"}})]})})},MI="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-[600] bg-transparent",DI={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},O_=(t=!1)=>fd(MI,DI[String(t)]),RI=({label:t,href:n,onClick:i,active:o=!1,disabled:u=!1,className:h,icon:g})=>{const v=E=>{if(u){E.preventDefault();return}i==null||i(E)},S=`${O_(o)} ${u?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return n?U.jsxs("a",{href:n,className:`${S} ${h||""}`,onClick:v,"aria-disabled":u,children:[g&&U.jsx(fn,{icon:g,className:Tb()}),t]}):U.jsxs("button",{className:`${S} ${h||""}`,onClick:v,disabled:u,children:[g&&U.jsx(fn,{icon:g,className:Tb()}),t]})},_I="w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-[600] bg-transparent",NI={true:"text-blue-500",false:"text-gray-800 hover:text-blue-500 active:text-blue-500"},zI="bg-transparent p-16",LI={true:"bg-blue-100 text-blue-500",false:"text-gray-800"},UI=(t=!1)=>fd(_I,NI[String(t)]),VI=(t=!1)=>fd(zI,LI[String(t)]),jI=({label:t,href:n,onClick:i,active:o=!1,disabled:u=!1,icon:h,className:g=""})=>{const v=S=>{if(u){S.preventDefault();return}i==null||i(S)};return n?U.jsxs("a",{href:n,onClick:v,className:`${UI(o)} flex flex-col items-center group ${g}`,children:[U.jsx(jx,{icon:h,variant:o?"transparent":"invisible",disabled:u,size:"sm",className:`${VI(o)} group group-hover:!text-blue-500 duration-150 group-hover:!bg-blue-100 `}),U.jsx("p",{className:"group group-hover:!text-blue-500 duration-150",children:t})]}):U.jsxs("button",{className:`${O_(o)} ${u?"!text-gray-300 cursor-not-allowed !bg-transparent":""} ${g}`,onClick:v,"aria-disabled":u,children:[U.jsx(fn,{icon:h}),t]})},BI=t=>{const{display:n,...i}=t;return n==="desktop"?U.jsx(RI,{...i}):n==="mobile"?U.jsx(jI,{...i}):null},$I=({options:t,name:n,control:i,label:o="Select an option",placeholder:u="Type to search...",className:h="",input:g=!0})=>U.jsx(qh.Controller,{name:n,control:i,render:({field:{onChange:v,value:S},fieldState:{error:E}})=>U.jsx(HI,{options:t,value:S,onChange:v,label:o,placeholder:u,error:E==null?void 0:E.message,className:h,input:g})}),HI=({options:t,value:n,onChange:i,label:o="Select an option",placeholder:u="Type to search...",error:h,className:g="",input:v=!0})=>{const{t:S}=za(),[E,A]=J.useState(!1),[C,M]=J.useState(""),[R,j]=J.useState(n||null),L=J.useRef(null),P=J.useRef(null),{x:V,y:F,strategy:G,refs:ne,context:Y}=vb({open:E,onOpenChange:A,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:I,elements:te}){Object.assign(te.floating.style,{maxHeight:`${Math.min(I-10,300)}px`})},padding:8}),Mx({element:P})],placement:"bottom-start",whileElementsMounted:db}),oe=gb(Y),me=yb(Y),{getReferenceProps:pe,getFloatingProps:ve}=bb([oe,me]),{isMounted:He,styles:je}=Sb(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Pe=(()=>{const I=Array.isArray(t)?t:[];if(!C.trim())return I;const te=C.toLowerCase();return I.filter(le=>{const Me=le.label.toLowerCase(),X=le.key.toLowerCase();return Me.includes(te)||X.includes(te)})})(),Qe=I=>{j(I),A(!1),M(""),i(I)},Xe=()=>{A(!E),!E&&L.current&&setTimeout(()=>{var I;return(I=L.current)==null?void 0:I.focus()},100)};J.useEffect(()=>{j(n)},[n]);const Ge=pe({onClick:Xe});return U.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${g}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${h&&"!text-red-500"} text-label`,children:o}),U.jsxs("div",{ref:ne.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
727
|
+
`,children:[g&&g,U.jsx("input",{id:i,type:M?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:i,disabled:h,placeholder:o,value:v,onChange:L=>S(L.target.value),onBlur:A,ref:E,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),U.jsx(fn,{icon:M?W7:Z7,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>R(!M)})]}),U.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:C&&j(C.message||"",{x:j(i)})})]})},wI=({name:t,control:n,label:i="phone_number",placeholder:o="enter_phone_number",language:u="en",className:h="",translateKey:g,countries:v=C_})=>{var $r,hm,Uo,Vo;const{t:S}=za(),{field:E,fieldState:A}=qh.useController({name:t,control:n,rules:{validate:{}}}),C=(($r=E.value)==null?void 0:$r.split(" "))||[],M=C[0]||"",R=C[1]||"",j=v.find(tt=>M===tt.phone),[L,P]=J.useState(!1),[V,F]=J.useState(""),[G,ne]=J.useState(j||null),[Y,oe]=J.useState(R),[me,pe]=J.useState(!1),ve=J.useRef(null),He=J.useRef(null),je=J.useRef(null),Pe=J.useRef(null),{x:Qe,y:Xe,strategy:Ge,refs:I,context:te,placement:le,middlewareData:Me}=vb({open:L,onOpenChange:P,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:tt,elements:dn}){Object.assign(dn.floating.style,{maxHeight:`${Math.min(tt-10,300)}px`})},padding:8}),Mx({element:He})],placement:"bottom-start",whileElementsMounted:db}),X=gb(te),fe=yb(te),{getReferenceProps:Ae,getFloatingProps:Be}=bb([X,fe]),{isMounted:Ye,styles:Le}=Sb(te,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),et=(Array.isArray(v)?v:[]).filter(tt=>{if(!V.trim())return!0;const dn=u==="es"&&tt.labelES?tt.labelES.toLowerCase():tt.label.toLowerCase(),En=tt.code?tt.code.toLowerCase():"",yr=tt.phone?tt.phone.toLowerCase():"";return dn.includes(V.toLowerCase())||En.includes(V.toLowerCase())||yr.includes(V.toLowerCase())}),We=tt=>{ne(tt),P(!1),F("");const dn=`${tt.phone} ${Y}`;E.onChange(dn),setTimeout(()=>{var En;(En=je.current)==null||En.focus()},100)},it=tt=>{const dn=tt.target.value;if(oe(dn),G){const En=`${G.phone} ${dn}`;E.onChange(En)}},yt=()=>{P(!L),!L&&ve.current&&setTimeout(()=>{var tt;(tt=ve.current)==null||tt.focus()},100)},un=()=>{setTimeout(()=>{L||E.onBlur()},200)},qe=()=>{pe(!0)},nt=()=>{pe(!1)};J.useEffect(()=>{if(E.value){const tt=E.value.split(" "),dn=tt[0]||"",En=tt[1]||"",yr=v.find(Yl=>Yl.phone===dn);yr&&ne(yr),oe(En)}},[E.value,v]),J.useEffect(()=>{const tt=dn=>{Pe.current&&!Pe.current.contains(dn.target)&&E.onBlur()};return document.addEventListener("mousedown",tt),()=>{document.removeEventListener("mousedown",tt)}},[E]);const Jt=tt=>{var dn;return tt?tt.codeISO2?tt.codeISO2.toLowerCase():((dn=tt.code)==null?void 0:dn.toLowerCase())||"":""},Aa=(hm=Me.arrow)==null?void 0:hm.x,pr=(Uo=Me.arrow)==null?void 0:Uo.y,gn={top:"bottom",right:"left",bottom:"top",left:"right"}[le.split("-")[0]],As=Ae({onClick:yt,onBlur:un}),hd=()=>A.error?"border-red-500":me||L?"border-blue-400":"border-blue-100",Lo=S(i),Ia=S(o),gr=(Vo=A.error)==null?void 0:Vo.message;return U.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${h}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${gr&&"!text-red-500"} text-label`,children:Lo}),U.jsxs("div",{ref:Pe,className:"flex items-center w-full",onMouseEnter:qe,onMouseLeave:nt,children:[U.jsxs("div",{ref:I.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${gr?"border-red-500":hd()}`,style:{minWidth:"140px"},...As,tabIndex:0,children:[G!=null&&G.code?U.jsxs("div",{className:"flex items-center truncate",children:[Jt(G)&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Jt(G)}.png`,srcSet:`https://flagcdn.com/w40/${Jt(G)}.png 2x`,alt:G.label,onError:tt=>{tt.currentTarget.style.display="none"}}),U.jsxs("span",{children:["+",G.phone]})]}):U.jsx("span",{className:"text-gray-500 truncate",children:S("select_country")}),U.jsx(fn,{icon:aw,className:"w-14 h-14 min-w-14 min-h-14"})]}),U.jsx("input",{ref:je,type:"tel",className:`flex-grow bg-light rounded-r-full font-600 text-lg p-16 border transition-all duration-200 ${gr?"border-red-500":hd()}`,placeholder:Ia,value:Y,onChange:it,onBlur:un})]}),gr&&U.jsx("p",{className:"mt-1 text-sm text-red-600",children:S(gr,{x:S(g||"")||t})}),Ye&&U.jsxs("div",{ref:I.setFloating,style:{position:Ge,top:Xe??0,left:Qe??0,...Le},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Be(),children:[U.jsx("div",{ref:He,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Aa!=null?`${Aa}px`:"",top:pr!=null?`${pr}px`:"",right:"",bottom:"",[gn]:"-2px",borderRight:gn==="left"?"1px solid":"none",borderBottom:gn==="top"?"1px solid":"none",borderLeft:gn==="right"?"1px solid":"none",borderTop:gn==="bottom"?"1px solid":"none"}}),U.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:U.jsx("input",{ref:ve,type:"text",className:"w-fit p-16",placeholder:S("search")+"...",value:V,onChange:tt=>F(tt.target.value),onClick:tt=>tt.stopPropagation(),onBlur:tt=>{tt.stopPropagation()},autoFocus:!0})}),U.jsx("div",{children:et.length>0?U.jsx("ul",{className:"flex flex-col",children:et.map((tt,dn)=>{var yr;const En=tt.codeISO2?tt.codeISO2.toLowerCase():((yr=tt.code)==null?void 0:yr.toLowerCase())||"";return U.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:Yl=>{Yl.stopPropagation(),We(tt)},children:[En&&U.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${En}.png`,srcSet:`https://flagcdn.com/w40/${En}.png 2x`,alt:tt.label,onError:Yl=>{Yl.currentTarget.style.display="none"}}),U.jsxs("span",{className:"text-gray-500",children:["+",tt.phone]})]},`${tt.code}-${dn}`)})}):U.jsx("div",{className:"px-3 py-2 text-gray-500",children:S("no_countries_found")})})]})]})},CI=({progress:t,showPercentage:n=!1})=>{const i=Math.min(Math.max(t,0),100);return U.jsxs("div",{className:"flex items-center gap-12",children:[U.jsx("div",{className:"w-full h-8 bg-blue-100 rounded-full",children:U.jsx("div",{className:"h-full bg-blue-500 rounded-full transition-all duration-300 ease-in-out",style:{width:`${i}%`}})}),n&&U.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[i,"%"]})]})},OI=()=>{const[t,n]=J.useState(!1),i=J.useRef(null),o=()=>{n(!0),setTimeout(()=>{var h;return(h=i.current)==null?void 0:h.focus()},100)},u=()=>{n(!1)};return U.jsx("div",{className:"relative flex items-center",children:U.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${t?"w-[200px] h-[40px]":"size-[40px]"}`,children:[U.jsx("button",{onClick:o,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:U.jsx(fn,{icon:QY})}),U.jsx("input",{ref:i,type:"text",className:`w-full outline-none bg-transparent transition-all ${t?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:u,style:{border:"none",outline:"none"}})]})})},MI="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",DI={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},O_=(t=!1)=>fd(MI,DI[String(t)]),RI=({label:t,href:n,onClick:i,active:o=!1,disabled:u=!1,className:h,icon:g})=>{const v=E=>{if(u){E.preventDefault();return}i==null||i(E)},S=`${O_(o)} ${u?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return n?U.jsxs("a",{href:n,className:`${S} ${h||""}`,onClick:v,"aria-disabled":u,children:[g&&U.jsx(fn,{icon:g,className:Tb()}),t]}):U.jsxs("button",{className:`${S} ${h||""}`,onClick:v,disabled:u,children:[g&&U.jsx(fn,{icon:g,className:Tb()}),t]})},_I="w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-600 bg-transparent",NI={true:"text-blue-500",false:"text-gray-800 hover:text-blue-500 active:text-blue-500"},zI="bg-transparent p-16",LI={true:"bg-blue-100 text-blue-500",false:"text-gray-800"},UI=(t=!1)=>fd(_I,NI[String(t)]),VI=(t=!1)=>fd(zI,LI[String(t)]),jI=({label:t,href:n,onClick:i,active:o=!1,disabled:u=!1,icon:h,className:g=""})=>{const v=S=>{if(u){S.preventDefault();return}i==null||i(S)};return n?U.jsxs("a",{href:n,onClick:v,className:`${UI(o)} flex flex-col items-center group ${g}`,children:[U.jsx(jx,{icon:h,variant:o?"transparent":"invisible",disabled:u,size:"sm",className:`${VI(o)} group group-hover:!text-blue-500 duration-150 group-hover:!bg-blue-100 `}),U.jsx("p",{className:"group group-hover:!text-blue-500 duration-150",children:t})]}):U.jsxs("button",{className:`${O_(o)} ${u?"!text-gray-300 cursor-not-allowed !bg-transparent":""} ${g}`,onClick:v,"aria-disabled":u,children:[U.jsx(fn,{icon:h}),t]})},BI=t=>{const{display:n,...i}=t;return n==="desktop"?U.jsx(RI,{...i}):n==="mobile"?U.jsx(jI,{...i}):null},$I=({options:t,name:n,control:i,label:o="Select an option",placeholder:u="Type to search...",className:h="",input:g=!0})=>U.jsx(qh.Controller,{name:n,control:i,render:({field:{onChange:v,value:S},fieldState:{error:E}})=>U.jsx(HI,{options:t,value:S,onChange:v,label:o,placeholder:u,error:E==null?void 0:E.message,className:h,input:g})}),HI=({options:t,value:n,onChange:i,label:o="Select an option",placeholder:u="Type to search...",error:h,className:g="",input:v=!0})=>{const{t:S}=za(),[E,A]=J.useState(!1),[C,M]=J.useState(""),[R,j]=J.useState(n||null),L=J.useRef(null),P=J.useRef(null),{x:V,y:F,strategy:G,refs:ne,context:Y}=vb({open:E,onOpenChange:A,middleware:[hb(8),pb(),mb({padding:8}),Ox({apply({availableHeight:I,elements:te}){Object.assign(te.floating.style,{maxHeight:`${Math.min(I-10,300)}px`})},padding:8}),Mx({element:P})],placement:"bottom-start",whileElementsMounted:db}),oe=gb(Y),me=yb(Y),{getReferenceProps:pe,getFloatingProps:ve}=bb([oe,me]),{isMounted:He,styles:je}=Sb(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Pe=(()=>{const I=Array.isArray(t)?t:[];if(!C.trim())return I;const te=C.toLowerCase();return I.filter(le=>{const Me=le.label.toLowerCase(),X=le.key.toLowerCase();return Me.includes(te)||X.includes(te)})})(),Qe=I=>{j(I),A(!1),M(""),i(I)},Xe=()=>{A(!E),!E&&L.current&&setTimeout(()=>{var I;return(I=L.current)==null?void 0:I.focus()},100)};J.useEffect(()=>{j(n)},[n]);const Ge=pe({onClick:Xe});return U.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${g}`,children:[U.jsx("label",{className:`text-gray-600 font-600 group ${h&&"!text-red-500"} text-label`,children:o}),U.jsxs("div",{ref:ne.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
728
728
|
border transition-all duration-200 hover:border-blue-400
|
|
729
729
|
${h&&"border-red-500 hover:border-red-600"} ${He?"border-blue-400":"border-blue-100"}`,...Ge,children:[R?U.jsx("div",{className:"flex items-center w-full",children:U.jsx("span",{className:"flex-grow",children:S(R.label)})}):U.jsx("span",{className:"text-gray-500",children:u}),U.jsx("svg",{className:`w-16 h-16 transition-transform ${E?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:U.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),h&&U.jsx("p",{className:"mt-1 text-sm text-red-600",children:h}),He&&U.jsxs("div",{ref:ne.setFloating,style:{position:G,top:F??0,left:V??0,...je},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ve(),children:[v&&U.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:U.jsx("input",{ref:L,type:"text",className:"w-full p-16",placeholder:"Search...",value:C,onChange:I=>M(I.target.value),onClick:I=>I.stopPropagation(),autoFocus:!0})}),U.jsx("div",{className:"",children:Pe.length>0?U.jsx("ul",{children:Pe.map((I,te)=>U.jsx("li",{className:"flex items-center justify-between px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:le=>{le.stopPropagation(),Qe(I)},children:U.jsx("span",{children:S(I.label)})},`${I.key}-${te}`))}):U.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No options found"})})]})]})},PI=({active:t,icon:n,label:i,onClick:o,expanded:u,disabled:h=!1})=>U.jsxs("div",{onClick:()=>o(),className:`
|
|
730
730
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
@@ -737,7 +737,7 @@ attempted value: ${g}
|
|
|
737
737
|
transition-all duration-100 ease-in-out
|
|
738
738
|
opacity-0 capitalize
|
|
739
739
|
${u&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
740
|
-
${t&&"text-lightblue"} `,children:i})]}),kI="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",YI={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},GI={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},qI=(t="underline",n=!1)=>fd(kI,YI[t],GI[String(n)]),M_=({label:t,icon:n,isSelected:i,onClick:o,variant:u="default",direction:h="row"})=>U.jsxs("button",{className:`${qI(u,i)} w-full cursor-pointer transition-all duration-200 ${h==="row"&&"flex-row!"}`,onClick:o,children:[n&&U.jsx(fn,{icon:n,className:`${i?"text-blue-500":"text-gray-500"} w-20 h-20`}),U.jsx("span",{className:"text-lg font-500",children:t})]}),II="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-
|
|
740
|
+
${t&&"text-lightblue"} `,children:i})]}),kI="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",YI={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},GI={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},qI=(t="underline",n=!1)=>fd(kI,YI[t],GI[String(n)]),M_=({label:t,icon:n,isSelected:i,onClick:o,variant:u="default",direction:h="row"})=>U.jsxs("button",{className:`${qI(u,i)} w-full cursor-pointer transition-all duration-200 ${h==="row"&&"flex-row!"}`,onClick:o,children:[n&&U.jsx(fn,{icon:n,className:`${i?"text-blue-500":"text-gray-500"} w-20 h-20`}),U.jsx("span",{className:"text-lg font-500",children:t})]}),II="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",FI={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},XI=(t="blue")=>fd(II,FI[t]),D_=({color:t,children:n,className:i,...o})=>{const{defaultColorScheme:u}=za(),h=t||u;return U.jsx("button",{type:"button",className:XI(h)+" "+i,...o,children:n})},ZI=({label:t,control:n,name:i,placeholder:o,className:u="",disabled:h=!1,leftSide:g,rightSide:v,translateKey:S="",...E})=>{const{field:{value:A="",onChange:C,ref:M,onBlur:R},fieldState:{error:j}}=qh.useController({name:i,control:n}),{t:L}=za(),P=L(i),V=L(S);return U.jsxs("label",{className:`flex flex-col group gap-8 select-none ${h&&"cursor-not-allowed"} ${u}`,htmlFor:i,children:[U.jsx("h6",{className:`text-gray-600 font-600 group ${j&&"text-red-500!"} text-label ${h&&"text-gray-300"}`,children:t}),U.jsxs("label",{htmlFor:i,className:`
|
|
741
741
|
flex items-center justify-between gap-8 p-16
|
|
742
742
|
|
|
743
743
|
${j&&"border-red-500!"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index3.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as v } from "../../_virtual/
|
|
2
|
-
import { t as U } from "../../_virtual/
|
|
3
|
-
import oe from "../../_virtual/
|
|
1
|
+
import { p as v } from "../../_virtual/index4.js";
|
|
2
|
+
import { t as U } from "../../_virtual/index5.js";
|
|
3
|
+
import oe from "../../_virtual/index6.js";
|
|
4
4
|
const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
|
|
5
5
|
function me(n) {
|
|
6
6
|
return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
2
|
-
declare const SidebarButton: ({ active, icon, label, onClick, expanded, disabled, }: {
|
|
3
|
-
active: boolean;
|
|
4
|
-
icon: IconProp;
|
|
5
|
-
label: string;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
expanded: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default SidebarButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SidebarButton } from './SidebarButton';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export * from './ActionButton/index';
|
|
2
|
-
export * from './ActionButton/index';
|
|
3
|
-
export * from './AsyncToast/index';
|
|
4
|
-
export * from './Avatar/index';
|
|
5
|
-
export * from './BoxContainer/index';
|
|
6
|
-
export * from './Button/index';
|
|
7
|
-
export * from './CenterModal/index';
|
|
8
|
-
export * from './Checkbox/index';
|
|
9
|
-
export * from './CountryInput/index';
|
|
10
|
-
export * from './CountryLabel/index';
|
|
11
|
-
export * from './CountrySelectInput/index';
|
|
12
|
-
export * from './Divider/index';
|
|
13
|
-
export * from './IconButton/index';
|
|
14
|
-
export * from './ImageProfileInput/index';
|
|
15
|
-
export * from './IndexedStep/index';
|
|
16
|
-
export * from './InfoCard/index';
|
|
17
|
-
export * from './InformationDisclaimer/index';
|
|
18
|
-
export * from './LoadingSpinner/index';
|
|
19
|
-
export * from './PasswordInput/index';
|
|
20
|
-
export * from './PhoneInput/index';
|
|
21
|
-
export * from './ProgressBar/index';
|
|
22
|
-
export * from './SearchBar/index';
|
|
23
|
-
export * from './SectionButton/index';
|
|
24
|
-
export * from './SelectDropdown/index';
|
|
25
|
-
export * from './SidebarButton/index';
|
|
26
|
-
export * from './Tab/index';
|
|
27
|
-
export * from './TextButton/index';
|
|
28
|
-
export * from './TextInput/index';
|
|
29
|
-
export * from './TextStaticInput/index';
|
|
30
|
-
export * from './Toast/index';
|
|
31
|
-
export * from './UncontrolledSelector/index';
|
|
32
|
-
export * from './UncontrolledTextInput/index';
|
|
33
|
-
export * from './UploadContainer/index';
|