lawgic-dev-kit 0.13.4 → 0.13.6
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/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.js +11 -9
- package/dist/components/atoms/ProgressBar/ProgressBar.types.d.ts +1 -1
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +1 -1
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProgressBarProps } from './ProgressBar.types';
|
|
2
|
-
declare const ProgressBar: ({ progress, showPercentage, color, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ProgressBar: ({ progress, showPercentage, color, className, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProgressBar;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { resolveProgressBarColors as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
const
|
|
2
|
+
import { resolveProgressBarColors as c } from "./ProgressBar.styles.js";
|
|
3
|
+
import { useTheme as f } from "../../../hooks/useTheme.js";
|
|
4
|
+
const p = ({
|
|
5
5
|
progress: r,
|
|
6
6
|
showPercentage: o = !1,
|
|
7
|
-
color: l
|
|
7
|
+
color: l,
|
|
8
|
+
className: t = "",
|
|
9
|
+
...a
|
|
8
10
|
}) => {
|
|
9
|
-
const { defaultColorScheme:
|
|
10
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
11
|
-
/* @__PURE__ */ e.jsx("div", { className: `w-full h-8 ${
|
|
11
|
+
const { defaultColorScheme: n } = f(), i = l || n, { bgColor: m, fillColor: d } = c(i), s = Math.min(Math.max(r, 0), 100);
|
|
12
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `flex items-center gap-12 ${t}`, ...a, children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx("div", { className: `w-full h-8 ${m} rounded-full`, children: /* @__PURE__ */ e.jsx(
|
|
12
14
|
"div",
|
|
13
15
|
{
|
|
14
|
-
className: `h-full ${
|
|
16
|
+
className: `h-full ${d} rounded-full transition-all duration-300 ease-in-out`,
|
|
15
17
|
style: { width: `${s}%` }
|
|
16
18
|
}
|
|
17
19
|
) }),
|
|
@@ -22,5 +24,5 @@ const x = ({
|
|
|
22
24
|
] });
|
|
23
25
|
};
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
p as default
|
|
26
28
|
};
|
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";--color-red-50:oklch(.971 .013 17.38);--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-blue-50:oklch(.97 .014 254.604);--color-gray-50:oklch(.985 .002 247.839);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--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)}}@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;font-feature-settings:initial;font-variation-settings:initial;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}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-feature-settings:initial;font-variation-settings:initial;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@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{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top-4{top:.4rem}.top-8{top:.8rem}.right-0{right:0}.right-4{right:.4rem}.right-8{right:.8rem}.bottom-0{bottom:0}.bottom-8{bottom:.8rem}.bottom-\[28px\]{bottom:28px}.left-1\/2{left:50%}.left-8{left:.8rem}.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}.mx-16{margin-inline:1.6rem}.mx-auto{margin-inline:auto}.mt-1{margin-top:.1rem}.mt-2{margin-top:.2rem}.mt-3{margin-top:.3rem}.mt-4{margin-top:.4rem}.mt-10{margin-top:1rem}.mt-\[0\.5rem\]{margin-top:.5rem}.mr-2{margin-right:.2rem}.mb-4{margin-bottom:.4rem}.mb-8{margin-bottom:.8rem}.ml-8{margin-left:.8rem}.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:1.2rem;height:1.2rem}.size-16{width:1.6rem;height:1.6rem}.size-24{width:2.4rem;height:2.4rem}.size-\[40px\]{width:40px;height:40px}.\!h-auto{height:auto!important}.h-2{height:.2rem}.h-4{height:.4rem}.h-8{height:.8rem}.h-12{height:1.2rem}.h-14{height:1.4rem}.h-16{height:1.6rem}.h-20{height:2rem}.h-36{height:3.6rem}.h-40{height:4rem}.h-76{height:7.6rem}.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:.1rem}.max-h-12{max-height:1.2rem}.max-h-16{max-height:1.6rem}.max-h-200{max-height:20rem}.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:.1rem}.min-h-12{min-height:1.2rem}.min-h-14{min-height:1.4rem}.min-h-16{min-height:1.6rem}.min-h-20{min-height:2rem}.min-h-24{min-height:2.4rem}.min-h-28{min-height:2.8rem}.min-h-36{min-height:3.6rem}.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:0}.w-4{width:.4rem}.w-12{width:1.2rem}.w-14{width:1.4rem}.w-16{width:1.6rem}.w-20{width:2rem}.w-32{width:3.2rem}.w-40{width:4rem}.w-72{width:7.2rem}.w-76{width:7.6rem}.w-80{width:8rem}.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:.1rem}.max-w-4xl{max-width:89.6rem}.max-w-12{max-width:1.2rem}.max-w-16{max-width:1.6rem}.max-w-120{max-width:12rem}.max-w-160{max-width:16rem}.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:80rem}.max-w-sm{max-width:48rem}.min-w-1{min-width:.1rem}.min-w-12{min-width:1.2rem}.min-w-14{min-width:1.4rem}.min-w-20{min-width:2rem}.min-w-24{min-width:2.4rem}.min-w-28{min-width:2.8rem}.min-w-36{min-width:3.6rem}.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:0px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:.4rem;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:.2rem}.gap-4{gap:.4rem}.gap-6{gap:.6rem}.gap-8{gap:.8rem}.gap-10{gap:1rem}.gap-12{gap:1.2rem}.gap-16{gap:1.6rem}.gap-20{gap:2rem}.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:#4570eb!important}.\!border-red-500{border-color:#eb4571!important}.border-aqua-500{border-color:#1da696}.border-blue-100{border-color:#dae2fb}.border-blue-200{border-color:#b5c6f7}.border-blue-400{border-color:#6a8def}.border-blue-500{border-color:#4570eb}.border-blue-500\!{border-color:#4570eb!important}.border-blue-800{border-color:#1c2d5e}.border-gray-100{border-color:#f0f0f2}.border-gray-200{border-color:#c7c8ca}.border-gray-300{border-color:#abacaf}.border-gray-400{border-color:#8f9095}.border-gray-500{border-color:#72747a}.border-green-500{border-color:#16a85b}.border-red-500{border-color:#eb4571}.border-red-500\!{border-color:#eb4571!important}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:#4570eb}.border-r-blue-300{border-right-color:#8fa9f3}.border-b-blue-200{border-bottom-color:#b5c6f7}.border-b-blue-500{border-bottom-color:#4570eb}.border-b-gray-700{border-bottom-color:#3b3d45}.border-l-blue-400{border-left-color:#6a8def}.\!bg-aqua-100{background-color:#d4f5f1!important}.\!bg-blue-100{background-color:#dae2fb!important}.\!bg-gray-100{background-color:#f0f0f2!important}.\!bg-transparent{background-color:#0000!important}.bg-\[rgb\(243\,244\,246\)\]{background-color:#f3f4f6}.bg-aqua-100{background-color:#d4f5f1}.bg-aqua-500{background-color:#1da696}.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:#dae2fb}.bg-blue-100\/50{background-color:#dae2fb80}.bg-blue-500{background-color:#4570eb}.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:#f0f0f2}.bg-gray-100\!{background-color:#f0f0f2!important}.bg-gray-200{background-color:#c7c8ca}.bg-gray-500{background-color:#72747a}.bg-green-50{background-color:var(--color-green-50)}.bg-light{background-color:#f9fbff}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:#eb4571}.bg-red-500\/20{background-color:#eb457133}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.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-aqua-500{--tw-gradient-from:#1da696;--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))}.from-blue-500{--tw-gradient-from:#4570eb;--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:0!important}.p-2{padding:.2rem}.p-3{padding:.3rem}.p-4{padding:.4rem}.p-6{padding:.6rem}.p-8{padding:.8rem}.p-12{padding:1.2rem}.p-16{padding:1.6rem}.p-20{padding:2rem}.p-24{padding:2.4rem}.p-32{padding:3.2rem}.px-3{padding-inline:.3rem}.px-6{padding-inline:.6rem}.px-10{padding-inline:1rem}.px-12{padding-inline:1.2rem}.px-14{padding-inline:1.4rem}.px-16{padding-inline:1.6rem}.px-20{padding-inline:2rem}.px-24{padding-inline:2.4rem}.px-32{padding-inline:3.2rem}.px-\[12\.3px\]{padding-inline:12.3px}.py-2{padding-block:.2rem}.py-3{padding-block:.3rem}.py-5{padding-block:.5rem}.py-6{padding-block:.6rem}.py-7{padding-block:.7rem}.py-8{padding-block:.8rem}.py-10{padding-block:1rem}.py-10\!{padding-block:1rem!important}.py-16{padding-block:1.6rem}.py-24{padding-block:2.4rem}.pt-0{padding-top:0}.pt-16{padding-top:1.6rem}.pt-28{padding-top:2.8rem}.pr-\[10px\]{padding-right:10px}.pb-16{padding-bottom:1.6rem}.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-header-4{font-size:1.6rem;font-weight:700;line-height:100%}@media (width>=48rem){.text-header-4{font-size:1.8rem}}.text-2xl{font-size:2rem}.text-3xl{font-size:2.4rem}.text-base{font-size:1.4rem}.text-body-m{font-size:1.6rem}.text-body-s{font-size:1.4rem}.text-header-4{font-size:1.6rem}.text-label{font-size:1.2rem}.text-lg{font-size:1.6rem}.text-lg\!{font-size:1.6rem!important}.text-md{font-size:1.3rem}.text-sm{font-size:1.2rem}.text-xl{font-size:1.8rem}.text-xs{font-size:1rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.body-l,.body-m,.body-s,.label{line-height:100%}.font-400{--tw-font-weight:400;font-weight:400}.font-500{--tw-font-weight:500;font-weight:500}.font-600{--tw-font-weight:600;font-weight:600}.font-700,.font-bold{--tw-font-weight:700;font-weight:700}.font-medium{--tw-font-weight:500;font-weight:500}.font-normal{--tw-font-weight:400;font-weight:400}.font-semibold{--tw-font-weight:600;font-weight:600}.text-nowrap{text-wrap:nowrap}.\!text-gray-300{color:#abacaf!important}.\!text-red-500{color:#eb4571!important}.text-aqua-500{color:#1da696}.text-black{color:var(--color-black)}.text-blue-500{color:#4570eb}.text-blue-500\!{color:#4570eb!important}.text-blue-600{color:#375abc}.text-error{color:#eb4571}.text-gray-300{color:#abacaf}.text-gray-400{color:#8f9095}.text-gray-500{color:#72747a}.text-gray-600{color:#57595f}.text-gray-700{color:#3b3d45}.text-gray-800{color:#1e212a}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:#16a85b}.text-red-500{color:#eb4571}.text-red-500\!{color:#eb4571!important}.text-red-600{color:#b23456}.text-white{color:#fff}.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 0 var(--tw-shadow-color,#0000000f);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 -2px var(--tw-shadow-color,#0000000d);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 -1px var(--tw-shadow-color,#0000000f);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 2px 0 var(--tw-shadow-color,#0000000d);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:#4570eb}.group-focus-within\:text-blue-500:is(:where(.group):focus-within *){color:#4570eb}@media (hover:hover){.group-hover\:border-blue-300:is(:where(.group):hover *){border-color:#8fa9f3}.group-hover\:bg-aqua-100:is(:where(.group):hover *){background-color:#d4f5f1}.group-hover\:bg-blue-100:is(:where(.group):hover *){background-color:#dae2fb}.group-hover\:text-aqua-500:is(:where(.group):hover *){color:#1da696}.group-hover\:text-blue-300:is(:where(.group):hover *){color:#8fa9f3}.group-hover\:text-blue-500:is(:where(.group):hover *){color:#4570eb}}.group-disabled\:bg-gray-500:is(:where(.group):disabled *){background-color:#72747a}.placeholder\:font-600::placeholder{--tw-font-weight:600;font-weight:600}.placeholder\:text-gray-400::placeholder{color:#8f9095}@media (hover:hover){.hover\:\!cursor-pointer:hover{cursor:pointer!important}.hover\:border-aqua-600:hover{border-color:#167c70}.hover\:border-blue-400:hover{border-color:#6a8def}.hover\:border-blue-500:hover{border-color:#4570eb}.hover\:border-blue-600:hover{border-color:#375abc}.hover\:border-gray-600:hover{border-color:#57595f}.hover\:border-red-600:hover{border-color:#b23456}.hover\:bg-aqua-100:hover{background-color:#d4f5f1}.hover\:bg-aqua-100\/40:hover{background-color:#d4f5f166}.hover\:bg-aqua-100\/80:hover{background-color:#d4f5f1cc}.hover\:bg-aqua-200\/50:hover{background-color:#7de2d680}.hover\:bg-aqua-600:hover{background-color:#167c70}.hover\:bg-blue-100:hover{background-color:#dae2fb}.hover\:bg-blue-100\/40:hover{background-color:#dae2fb66}.hover\:bg-blue-100\/50:hover{background-color:#dae2fb80}.hover\:bg-blue-100\/80:hover{background-color:#dae2fbcc}.hover\:bg-blue-200:hover{background-color:#b5c6f7}.hover\:bg-blue-600:hover{background-color:#375abc}.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:#f0f0f2}.hover\:bg-gray-200:hover{background-color:#c7c8ca}.hover\:bg-gray-600:hover{background-color:#57595f}.hover\:bg-red-500\/30:hover{background-color:#eb45714d}.hover\:bg-red-600:hover{background-color:#b23456}.hover\:text-aqua-500:hover{color:#1da696}.hover\:text-aqua-600:hover{color:#167c70}.hover\:text-blue-500:hover{color:#4570eb}.hover\:text-blue-600:hover{color:#375abc}.hover\:text-gray-500:hover{color:#72747a}.hover\:text-gray-600:hover{color:#57595f}.hover\:text-gray-700:hover{color:#3b3d45}.hover\:text-red-600:hover{color:#b23456}.hover\:text-white:hover{color:#fff}.hover\:opacity-80:hover{opacity:.8}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:border-aqua-700:active{border-color:#0f534b}.active\:border-blue-700:active{border-color:#29438d}.active\:border-gray-700:active{border-color:#3b3d45}.active\:border-red-700:active{border-color:#8f2945}.active\:bg-aqua-100\/20:active{background-color:#d4f5f133}.active\:bg-aqua-100\/50:active{background-color:#d4f5f180}.active\:bg-aqua-200\/70:active{background-color:#7de2d6b3}.active\:bg-aqua-700:active{background-color:#0f534b}.active\:bg-blue-100\/20:active{background-color:#dae2fb33}.active\:bg-blue-100\/50:active{background-color:#dae2fb80}.active\:bg-blue-300\/80:active{background-color:#8fa9f3cc}.active\:bg-blue-700:active{background-color:#29438d}.active\:bg-gray-300:active{background-color:#abacaf}.active\:bg-gray-700:active{background-color:#3b3d45}.active\:bg-red-700:active{background-color:#8f2945}.active\:bg-red-700\/40:active{background-color:#8f294566}.active\:text-aqua-500:active{color:#1da696}.active\:text-aqua-700:active{color:#0f534b}.active\:text-blue-500:active{color:#4570eb}.active\:text-blue-700:active{color:#29438d}.active\:text-gray-700:active{color:#3b3d45}.active\:text-red-700:active{color:#8f2945}.active\:text-white:active{color:#fff}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:#f0f0f2}.disabled\:text-gray-300:disabled,.disabled\:placeholder\:text-gray-300:disabled::placeholder{color:#abacaf}@media (width>=48rem){.md\:gap-24{gap:2.4rem}.md\:p-32{padding:3.2rem}.md\:px-0{padding-inline:0}.md\:pt-0{padding-top:0}.md\:pt-4{padding-top:.4rem}.md\:pb-0{padding-bottom:0}.md\:text-lg{font-size:1.6rem}.md\:text-xl{font-size:1.8rem}}*{text-rendering:optimizeLegibility;-o-text-rendering:optimizeLegibility;-ms-text-rendering:optimizeLegibility;-moz-text-rendering:optimizeLegibility;-webkit-text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}button{cursor:pointer}html{color:#000;background-color:#fff;font-size:62.5%}* :focus{outline:none!important}body.no-animate *,body.no-animate :before,body.no-animate :after{transition:none!important;animation:none!important}button:focus{outline:none}input:-webkit-autofill{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:hover{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:focus{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:active{transitiondelay:9999s;transitionproperty:background-color,color}:focus{outline-color:#0000}}@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";--color-red-50:oklch(.971 .013 17.38);--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-blue-50:oklch(.97 .014 254.604);--color-gray-50:oklch(.985 .002 247.839);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--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)}}@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;font-feature-settings:initial;font-variation-settings:initial;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}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-feature-settings:initial;font-variation-settings:initial;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;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}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@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{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top-4{top:.4rem}.top-8{top:.8rem}.right-0{right:0}.right-4{right:.4rem}.right-8{right:.8rem}.bottom-0{bottom:0}.bottom-8{bottom:.8rem}.bottom-\[28px\]{bottom:28px}.left-1\/2{left:50%}.left-8{left:.8rem}.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}.mx-16{margin-inline:1.6rem}.mx-auto{margin-inline:auto}.mt-1{margin-top:.1rem}.mt-2{margin-top:.2rem}.mt-3{margin-top:.3rem}.mt-4{margin-top:.4rem}.mt-10{margin-top:1rem}.mt-\[0\.5rem\]{margin-top:.5rem}.mr-2{margin-right:.2rem}.mb-4{margin-bottom:.4rem}.mb-8{margin-bottom:.8rem}.ml-8{margin-left:.8rem}.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:1.2rem;height:1.2rem}.size-16{width:1.6rem;height:1.6rem}.size-24{width:2.4rem;height:2.4rem}.size-\[40px\]{width:40px;height:40px}.\!h-auto{height:auto!important}.h-2{height:.2rem}.h-4{height:.4rem}.h-8{height:.8rem}.h-12{height:1.2rem}.h-14{height:1.4rem}.h-16{height:1.6rem}.h-20{height:2rem}.h-36{height:3.6rem}.h-40{height:4rem}.h-76{height:7.6rem}.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:.1rem}.max-h-12{max-height:1.2rem}.max-h-16{max-height:1.6rem}.max-h-200{max-height:20rem}.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:.1rem}.min-h-12{min-height:1.2rem}.min-h-14{min-height:1.4rem}.min-h-16{min-height:1.6rem}.min-h-20{min-height:2rem}.min-h-24{min-height:2.4rem}.min-h-28{min-height:2.8rem}.min-h-36{min-height:3.6rem}.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:0}.w-1\/2{width:50%}.w-4{width:.4rem}.w-12{width:1.2rem}.w-14{width:1.4rem}.w-16{width:1.6rem}.w-20{width:2rem}.w-32{width:3.2rem}.w-40{width:4rem}.w-72{width:7.2rem}.w-76{width:7.6rem}.w-80{width:8rem}.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:.1rem}.max-w-4xl{max-width:89.6rem}.max-w-12{max-width:1.2rem}.max-w-16{max-width:1.6rem}.max-w-120{max-width:12rem}.max-w-160{max-width:16rem}.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:80rem}.max-w-sm{max-width:48rem}.min-w-1{min-width:.1rem}.min-w-12{min-width:1.2rem}.min-w-14{min-width:1.4rem}.min-w-20{min-width:2rem}.min-w-24{min-width:2.4rem}.min-w-28{min-width:2.8rem}.min-w-36{min-width:3.6rem}.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:0px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:.4rem;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:.2rem}.gap-4{gap:.4rem}.gap-6{gap:.6rem}.gap-8{gap:.8rem}.gap-10{gap:1rem}.gap-12{gap:1.2rem}.gap-16{gap:1.6rem}.gap-20{gap:2rem}.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:#4570eb!important}.\!border-red-500{border-color:#eb4571!important}.border-aqua-500{border-color:#1da696}.border-blue-100{border-color:#dae2fb}.border-blue-200{border-color:#b5c6f7}.border-blue-400{border-color:#6a8def}.border-blue-500{border-color:#4570eb}.border-blue-500\!{border-color:#4570eb!important}.border-blue-800{border-color:#1c2d5e}.border-gray-100{border-color:#f0f0f2}.border-gray-200{border-color:#c7c8ca}.border-gray-300{border-color:#abacaf}.border-gray-400{border-color:#8f9095}.border-gray-500{border-color:#72747a}.border-green-500{border-color:#16a85b}.border-red-500{border-color:#eb4571}.border-red-500\!{border-color:#eb4571!important}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-blue-500{border-top-color:#4570eb}.border-r-blue-300{border-right-color:#8fa9f3}.border-b-blue-200{border-bottom-color:#b5c6f7}.border-b-blue-500{border-bottom-color:#4570eb}.border-b-gray-700{border-bottom-color:#3b3d45}.border-l-blue-400{border-left-color:#6a8def}.\!bg-aqua-100{background-color:#d4f5f1!important}.\!bg-blue-100{background-color:#dae2fb!important}.\!bg-gray-100{background-color:#f0f0f2!important}.\!bg-transparent{background-color:#0000!important}.bg-\[rgb\(243\,244\,246\)\]{background-color:#f3f4f6}.bg-aqua-100{background-color:#d4f5f1}.bg-aqua-500{background-color:#1da696}.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:#dae2fb}.bg-blue-100\/50{background-color:#dae2fb80}.bg-blue-500{background-color:#4570eb}.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:#f0f0f2}.bg-gray-100\!{background-color:#f0f0f2!important}.bg-gray-200{background-color:#c7c8ca}.bg-gray-500{background-color:#72747a}.bg-green-50{background-color:var(--color-green-50)}.bg-light{background-color:#f9fbff}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:#eb4571}.bg-red-500\/20{background-color:#eb457133}.bg-transparent{background-color:#0000}.bg-white{background-color:#fff}.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-aqua-500{--tw-gradient-from:#1da696;--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))}.from-blue-500{--tw-gradient-from:#4570eb;--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:0!important}.p-2{padding:.2rem}.p-3{padding:.3rem}.p-4{padding:.4rem}.p-6{padding:.6rem}.p-8{padding:.8rem}.p-12{padding:1.2rem}.p-16{padding:1.6rem}.p-20{padding:2rem}.p-24{padding:2.4rem}.p-32{padding:3.2rem}.px-3{padding-inline:.3rem}.px-6{padding-inline:.6rem}.px-10{padding-inline:1rem}.px-12{padding-inline:1.2rem}.px-14{padding-inline:1.4rem}.px-16{padding-inline:1.6rem}.px-20{padding-inline:2rem}.px-24{padding-inline:2.4rem}.px-32{padding-inline:3.2rem}.px-\[12\.3px\]{padding-inline:12.3px}.py-2{padding-block:.2rem}.py-3{padding-block:.3rem}.py-5{padding-block:.5rem}.py-6{padding-block:.6rem}.py-7{padding-block:.7rem}.py-8{padding-block:.8rem}.py-10{padding-block:1rem}.py-10\!{padding-block:1rem!important}.py-16{padding-block:1.6rem}.py-24{padding-block:2.4rem}.pt-0{padding-top:0}.pt-16{padding-top:1.6rem}.pt-28{padding-top:2.8rem}.pr-\[10px\]{padding-right:10px}.pb-16{padding-bottom:1.6rem}.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-header-4{font-size:1.6rem;font-weight:700;line-height:100%}@media (width>=48rem){.text-header-4{font-size:1.8rem}}.text-2xl{font-size:2rem}.text-3xl{font-size:2.4rem}.text-base{font-size:1.4rem}.text-body-m{font-size:1.6rem}.text-body-s{font-size:1.4rem}.text-header-4{font-size:1.6rem}.text-label{font-size:1.2rem}.text-lg{font-size:1.6rem}.text-lg\!{font-size:1.6rem!important}.text-md{font-size:1.3rem}.text-sm{font-size:1.2rem}.text-xl{font-size:1.8rem}.text-xs{font-size:1rem}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.body-l,.body-m,.body-s,.label{line-height:100%}.font-400{--tw-font-weight:400;font-weight:400}.font-500{--tw-font-weight:500;font-weight:500}.font-600{--tw-font-weight:600;font-weight:600}.font-700,.font-bold{--tw-font-weight:700;font-weight:700}.font-medium{--tw-font-weight:500;font-weight:500}.font-normal{--tw-font-weight:400;font-weight:400}.font-semibold{--tw-font-weight:600;font-weight:600}.text-nowrap{text-wrap:nowrap}.\!text-gray-300{color:#abacaf!important}.\!text-red-500{color:#eb4571!important}.text-aqua-500{color:#1da696}.text-black{color:var(--color-black)}.text-blue-500{color:#4570eb}.text-blue-500\!{color:#4570eb!important}.text-blue-600{color:#375abc}.text-error{color:#eb4571}.text-gray-300{color:#abacaf}.text-gray-400{color:#8f9095}.text-gray-500{color:#72747a}.text-gray-600{color:#57595f}.text-gray-700{color:#3b3d45}.text-gray-800{color:#1e212a}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:#16a85b}.text-red-500{color:#eb4571}.text-red-500\!{color:#eb4571!important}.text-red-600{color:#b23456}.text-white{color:#fff}.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 0 var(--tw-shadow-color,#0000000f);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 -2px var(--tw-shadow-color,#0000000d);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 -1px var(--tw-shadow-color,#0000000f);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 2px 0 var(--tw-shadow-color,#0000000d);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:#4570eb}.group-focus-within\:text-blue-500:is(:where(.group):focus-within *){color:#4570eb}@media (hover:hover){.group-hover\:border-blue-300:is(:where(.group):hover *){border-color:#8fa9f3}.group-hover\:bg-aqua-100:is(:where(.group):hover *){background-color:#d4f5f1}.group-hover\:bg-blue-100:is(:where(.group):hover *){background-color:#dae2fb}.group-hover\:text-aqua-500:is(:where(.group):hover *){color:#1da696}.group-hover\:text-blue-300:is(:where(.group):hover *){color:#8fa9f3}.group-hover\:text-blue-500:is(:where(.group):hover *){color:#4570eb}}.group-disabled\:bg-gray-500:is(:where(.group):disabled *){background-color:#72747a}.placeholder\:font-600::placeholder{--tw-font-weight:600;font-weight:600}.placeholder\:text-gray-400::placeholder{color:#8f9095}@media (hover:hover){.hover\:\!cursor-pointer:hover{cursor:pointer!important}.hover\:border-aqua-600:hover{border-color:#167c70}.hover\:border-blue-400:hover{border-color:#6a8def}.hover\:border-blue-500:hover{border-color:#4570eb}.hover\:border-blue-600:hover{border-color:#375abc}.hover\:border-gray-600:hover{border-color:#57595f}.hover\:border-red-600:hover{border-color:#b23456}.hover\:bg-aqua-100:hover{background-color:#d4f5f1}.hover\:bg-aqua-100\/40:hover{background-color:#d4f5f166}.hover\:bg-aqua-100\/80:hover{background-color:#d4f5f1cc}.hover\:bg-aqua-200\/50:hover{background-color:#7de2d680}.hover\:bg-aqua-600:hover{background-color:#167c70}.hover\:bg-blue-100:hover{background-color:#dae2fb}.hover\:bg-blue-100\/40:hover{background-color:#dae2fb66}.hover\:bg-blue-100\/50:hover{background-color:#dae2fb80}.hover\:bg-blue-100\/80:hover{background-color:#dae2fbcc}.hover\:bg-blue-200:hover{background-color:#b5c6f7}.hover\:bg-blue-600:hover{background-color:#375abc}.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:#f0f0f2}.hover\:bg-gray-200:hover{background-color:#c7c8ca}.hover\:bg-gray-600:hover{background-color:#57595f}.hover\:bg-red-500\/30:hover{background-color:#eb45714d}.hover\:bg-red-600:hover{background-color:#b23456}.hover\:text-aqua-500:hover{color:#1da696}.hover\:text-aqua-600:hover{color:#167c70}.hover\:text-blue-500:hover{color:#4570eb}.hover\:text-blue-600:hover{color:#375abc}.hover\:text-gray-500:hover{color:#72747a}.hover\:text-gray-600:hover{color:#57595f}.hover\:text-gray-700:hover{color:#3b3d45}.hover\:text-red-600:hover{color:#b23456}.hover\:text-white:hover{color:#fff}.hover\:opacity-80:hover{opacity:.8}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\:border-aqua-700:active{border-color:#0f534b}.active\:border-blue-700:active{border-color:#29438d}.active\:border-gray-700:active{border-color:#3b3d45}.active\:border-red-700:active{border-color:#8f2945}.active\:bg-aqua-100\/20:active{background-color:#d4f5f133}.active\:bg-aqua-100\/50:active{background-color:#d4f5f180}.active\:bg-aqua-200\/70:active{background-color:#7de2d6b3}.active\:bg-aqua-700:active{background-color:#0f534b}.active\:bg-blue-100\/20:active{background-color:#dae2fb33}.active\:bg-blue-100\/50:active{background-color:#dae2fb80}.active\:bg-blue-300\/80:active{background-color:#8fa9f3cc}.active\:bg-blue-700:active{background-color:#29438d}.active\:bg-gray-300:active{background-color:#abacaf}.active\:bg-gray-700:active{background-color:#3b3d45}.active\:bg-red-700:active{background-color:#8f2945}.active\:bg-red-700\/40:active{background-color:#8f294566}.active\:text-aqua-500:active{color:#1da696}.active\:text-aqua-700:active{color:#0f534b}.active\:text-blue-500:active{color:#4570eb}.active\:text-blue-700:active{color:#29438d}.active\:text-gray-700:active{color:#3b3d45}.active\:text-red-700:active{color:#8f2945}.active\:text-white:active{color:#fff}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-gray-100:disabled{background-color:#f0f0f2}.disabled\:text-gray-300:disabled,.disabled\:placeholder\:text-gray-300:disabled::placeholder{color:#abacaf}@media (width>=48rem){.md\:gap-24{gap:2.4rem}.md\:p-32{padding:3.2rem}.md\:px-0{padding-inline:0}.md\:pt-0{padding-top:0}.md\:pt-4{padding-top:.4rem}.md\:pb-0{padding-bottom:0}.md\:text-lg{font-size:1.6rem}.md\:text-xl{font-size:1.8rem}}*{text-rendering:optimizeLegibility;-o-text-rendering:optimizeLegibility;-ms-text-rendering:optimizeLegibility;-moz-text-rendering:optimizeLegibility;-webkit-text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}button{cursor:pointer}html{color:#000;background-color:#fff;font-size:62.5%}* :focus{outline:none!important}body.no-animate *,body.no-animate :before,body.no-animate :after{transition:none!important;animation:none!important}button:focus{outline:none}input:-webkit-autofill{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:hover{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:focus{transitiondelay:9999s;transitionproperty:background-color,color}input:-webkit-autofill:active{transitiondelay:9999s;transitionproperty:background-color,color}:focus{outline-color:#0000}}@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)}}
|
|
@@ -724,7 +724,7 @@ attempted value: ${l}
|
|
|
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:[l&&l,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,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"}),x.jsx(De,{icon:g?TC:xC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!g)})]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},QN=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:l,countries:c=pw})=>{var ui,pl,Ir,gl;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:e,control:t,rules:{validate:{}}}),m=((ui=d.value)==null?void 0:ui.split(" "))||[],g=m[0]||"",y=m[1]||"",S=c.find(be=>g===be.phone),[b,P]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[V,F]=I.useState(!1),Y=I.useRef(null),te=I.useRef(null),ie=I.useRef(null),ve=I.useRef(null),{x:ye,y:fe,strategy:oe,refs:X,context:K,placement:H,middlewareData:J}=Co({open:b,onOpenChange:P,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:be,elements:Je}){Object.assign(Je.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),il({element:te})],placement:"bottom-start",whileElementsMounted:bo}),_=To(K),k=Eo(K),{getReferenceProps:Z,getFloatingProps:Q}=Po([_,k]),{isMounted:le,styles:G}=Ao(K,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),de=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Je=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",vn=be.phone?be.phone.toLowerCase():"";return Je.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||vn.includes(w.toLowerCase())}),re=be=>{D(be),P(!1),A("");const Je=`${be.phone} ${C}`;d.onChange(Je),setTimeout(()=>{var Pt;(Pt=ie.current)==null||Pt.focus()},100)},me=be=>{const Je=be.target.value;if(L(Je),O){const Pt=`${O.phone} ${Je}`;d.onChange(Pt)}},Ce=()=>{P(!b),!b&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{b||d.onBlur()},200)},ee=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Je=be[0]||"",Pt=be[1]||"",vn=c.find(Qn=>Qn.phone===Je);vn&&D(vn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Je=>{ve.current&&!ve.current.contains(Je.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Le=be=>{var Je;return be?be.codeISO2?be.codeISO2.toLowerCase():((Je=be.code)==null?void 0:Je.toLowerCase())||"":""},ft=(pl=J.arrow)==null?void 0:pl.x,li=(Ir=J.arrow)==null?void 0:Ir.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]],hl=Z({onClick:Ce,onBlur:Ue}),ml=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",ci=u(n),qt=u(r),yn=(gl=h.error)==null?void 0:gl.message;return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:ci}),x.jsxs("div",{ref:ve,className:"flex items-center w-full",onMouseEnter:ee,onMouseLeave:pe,children:[x.jsxs("div",{ref:X.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 ${yn?"border-red-500":ml()}`,style:{minWidth:"140px"},...hl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Le(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Le(O)}.png`,srcSet:`https://flagcdn.com/w40/${Le(O)}.png 2x`,alt:O.label,onError:be=>{be.currentTarget.style.display="none"}}),x.jsxs("span",{children:["+",O.phone]})]}):x.jsx("span",{className:"text-gray-500 truncate",children:u("select_country")}),x.jsx(De,{icon:jd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:ie,type:"tel",className:`flex-grow bg-light rounded-r-full font-600 text-lg p-16 border transition-all duration-200 ${yn?"border-red-500":ml()}`,placeholder:qt,value:C,onChange:me,onBlur:Ue})]}),yn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(l||"")||e})}),le&&x.jsxs("div",{ref:X.setFloating,style:{position:oe,top:fe??0,left:ye??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Q(),children:[x.jsx("div",{ref:te,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:li!=null?`${li}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:x.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>A(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:de.length>0?x.jsx("ul",{className:"flex flex-col",children:de.map((be,Je)=>{var vn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((vn=be.code)==null?void 0:vn.toLowerCase())||"";return x.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:Qn=>{Qn.stopPropagation(),re(be)},children:[Pt&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:Qn=>{Qn.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Je}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:u("no_countries_found")})})]})]})},eL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},tL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},nL=e=>{switch(e){case"aqua":return tL;case"blue":default:return eL}},rL=({progress:e,showPercentage:t=!1,color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{bgColor:o,fillColor:l}=nL(i),c=Math.min(Math.max(e,0),100);return x.jsxs("div",{className:"flex items-center gap-12",children:[x.jsx("div",{className:`w-full h-8 ${o} rounded-full`,children:x.jsx("div",{className:`h-full ${l} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${c}%`}})}),t&&x.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[c,"%"]})]})},iL=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return x.jsx("div",{className:"relative flex items-center",children:x.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[x.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:x.jsx(De,{icon:TR})}),x.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},sL="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",oL={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},aL={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},lL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=aL[n];break;case"blue":default:r=oL[n];break}return Zn(sL,r)},cL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${lL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]})},uL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",fL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},dL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},hL="flex size-24 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",mL={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},pL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},gw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=mL[n];break;case"aqua":default:r=pL[n];break}return Zn(hL,r)},gL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=dL[n];break;case"blue":default:r=fL[n];break}return Zn(uL,r)},yL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${gL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]})},vL=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(cL,{...n}):t==="mobile"?x.jsx(yL,{...n}):null},bL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:l=!0})=>x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(xL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:l})}),xL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:l="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:X,elements:K}){Object.assign(K.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),L=To(C),V=Eo(C),{getReferenceProps:F,getFloatingProps:Y}=Po([L,V]),{isMounted:te,styles:ie}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=(()=>{const X=Array.isArray(e)?e:[];if(!m.trim())return X;const K=m.toLowerCase();return X.filter(H=>{const J=H.label.toLowerCase(),_=H.key.toLowerCase();return J.includes(K)||_.includes(K)})})(),ye=X=>{S(X),h(!1),g(""),n(X)},fe=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var X;return(X=b.current)==null?void 0:X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const oe=F({onClick:fe});return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${l}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
727
|
+
`,children:[l&&l,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.target.value),onBlur:h,ref:d,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"}),x.jsx(De,{icon:g?TC:xC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!g)})]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},QN=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:l,countries:c=pw})=>{var ui,pl,Ir,gl;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:e,control:t,rules:{validate:{}}}),m=((ui=d.value)==null?void 0:ui.split(" "))||[],g=m[0]||"",y=m[1]||"",S=c.find(be=>g===be.phone),[b,P]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[V,F]=I.useState(!1),Y=I.useRef(null),te=I.useRef(null),ie=I.useRef(null),ve=I.useRef(null),{x:ye,y:fe,strategy:oe,refs:X,context:K,placement:H,middlewareData:J}=Co({open:b,onOpenChange:P,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:be,elements:Je}){Object.assign(Je.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),il({element:te})],placement:"bottom-start",whileElementsMounted:bo}),_=To(K),k=Eo(K),{getReferenceProps:Z,getFloatingProps:Q}=Po([_,k]),{isMounted:le,styles:G}=Ao(K,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),de=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Je=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",vn=be.phone?be.phone.toLowerCase():"";return Je.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||vn.includes(w.toLowerCase())}),re=be=>{D(be),P(!1),A("");const Je=`${be.phone} ${C}`;d.onChange(Je),setTimeout(()=>{var Pt;(Pt=ie.current)==null||Pt.focus()},100)},me=be=>{const Je=be.target.value;if(L(Je),O){const Pt=`${O.phone} ${Je}`;d.onChange(Pt)}},Ce=()=>{P(!b),!b&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{b||d.onBlur()},200)},ee=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Je=be[0]||"",Pt=be[1]||"",vn=c.find(Qn=>Qn.phone===Je);vn&&D(vn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Je=>{ve.current&&!ve.current.contains(Je.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Le=be=>{var Je;return be?be.codeISO2?be.codeISO2.toLowerCase():((Je=be.code)==null?void 0:Je.toLowerCase())||"":""},ft=(pl=J.arrow)==null?void 0:pl.x,li=(Ir=J.arrow)==null?void 0:Ir.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]],hl=Z({onClick:Ce,onBlur:Ue}),ml=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",ci=u(n),qt=u(r),yn=(gl=h.error)==null?void 0:gl.message;return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:ci}),x.jsxs("div",{ref:ve,className:"flex items-center w-full",onMouseEnter:ee,onMouseLeave:pe,children:[x.jsxs("div",{ref:X.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 ${yn?"border-red-500":ml()}`,style:{minWidth:"140px"},...hl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Le(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Le(O)}.png`,srcSet:`https://flagcdn.com/w40/${Le(O)}.png 2x`,alt:O.label,onError:be=>{be.currentTarget.style.display="none"}}),x.jsxs("span",{children:["+",O.phone]})]}):x.jsx("span",{className:"text-gray-500 truncate",children:u("select_country")}),x.jsx(De,{icon:jd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:ie,type:"tel",className:`flex-grow bg-light rounded-r-full font-600 text-lg p-16 border transition-all duration-200 ${yn?"border-red-500":ml()}`,placeholder:qt,value:C,onChange:me,onBlur:Ue})]}),yn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(l||"")||e})}),le&&x.jsxs("div",{ref:X.setFloating,style:{position:oe,top:fe??0,left:ye??0,...G},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Q(),children:[x.jsx("div",{ref:te,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:li!=null?`${li}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:x.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>A(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:de.length>0?x.jsx("ul",{className:"flex flex-col",children:de.map((be,Je)=>{var vn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((vn=be.code)==null?void 0:vn.toLowerCase())||"";return x.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:Qn=>{Qn.stopPropagation(),re(be)},children:[Pt&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:Qn=>{Qn.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Je}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:u("no_countries_found")})})]})]})},eL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},tL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},nL=e=>{switch(e){case"aqua":return tL;case"blue":default:return eL}},rL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),l=n||o,{bgColor:c,fillColor:u}=nL(l),d=Math.min(Math.max(e,0),100);return x.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[x.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:x.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&x.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},iL=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return x.jsx("div",{className:"relative flex items-center",children:x.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[x.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:x.jsx(De,{icon:TR})}),x.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},sL="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",oL={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},aL={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},lL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=aL[n];break;case"blue":default:r=oL[n];break}return Zn(sL,r)},cL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${lL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]})},uL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",fL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},dL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},hL="flex size-24 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",mL={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},pL={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},gw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=mL[n];break;case"aqua":default:r=pL[n];break}return Zn(hL,r)},gL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=dL[n];break;case"blue":default:r=fL[n];break}return Zn(uL,r)},yL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${gL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]})},vL=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(cL,{...n}):t==="mobile"?x.jsx(yL,{...n}):null},bL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:l=!0})=>x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(xL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:l})}),xL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:l="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:X,elements:K}){Object.assign(K.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),L=To(C),V=Eo(C),{getReferenceProps:F,getFloatingProps:Y}=Po([L,V]),{isMounted:te,styles:ie}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=(()=>{const X=Array.isArray(e)?e:[];if(!m.trim())return X;const K=m.toLowerCase();return X.filter(H=>{const J=H.label.toLowerCase(),_=H.key.toLowerCase();return J.includes(K)||_.includes(K)})})(),ye=X=>{S(X),h(!1),g(""),n(X)},fe=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var X;return(X=b.current)==null?void 0:X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const oe=F({onClick:fe});return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${l}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.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
|
${o&&"border-red-500 hover:border-red-600"} ${te?"border-blue-400":"border-blue-100"}`,...oe,children:[y?x.jsx("div",{className:"flex items-center w-full",children:x.jsx("span",{className:"flex-grow",children:u(y.label)})}):x.jsx("span",{className:"text-gray-500",children:i}),x.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),te&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...ie},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...Y(),children:[c&&x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:"Search...",value:m,onChange:X=>g(X.target.value),onClick:X=>X.stopPropagation(),autoFocus:!0})}),x.jsx("div",{className:"",children:ve.length>0?x.jsx("ul",{children:ve.map((X,K)=>x.jsx("li",{className:"flex items-center justify-between px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:H=>{H.stopPropagation(),ye(X)},children:x.jsx("span",{children:u(X.label)})},`${X.key}-${K}`))}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No options found"})})]})]})},wL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},SL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},TL=e=>{switch(e){case"aqua":return SL;case"blue":default:return wL}},EL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:l})=>{const{defaultColorScheme:c}=ze(),u=l||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:g}=TL(u);return x.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
730
730
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|