@mci-ui/mci-ui 0.0.83 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(B,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react/jsx-runtime"),require("@solar-icons/react"),require("clsx"),require("tailwind-merge"),require("react"),require("react-dom/client")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@solar-icons/react","clsx","tailwind-merge","react","react-dom/client"],e):(B=typeof globalThis<"u"?globalThis:B||self,e(B.MciUi={},B.React,B.SolarIcons,B.clsx,B.tailwindMerge,B.React,B.ReactDOM))})(this,(function(B,e,_,Ge,Je,l,Qe){"use strict";var je=document.createElement("style");je.textContent=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@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:#fef2f2;--color-red-500:#fb2c36;--color-red-600:#e7000b;--color-red-700:#c10007;--color-red-800:#9f0712;--color-orange-50:#fff7ed;--color-orange-600:#f54a00;--color-yellow-50:#fefce8;--color-yellow-100:#fef9c3;--color-yellow-200:#fff085;--color-yellow-300:#ffdf20;--color-yellow-500:#efb100;--color-yellow-600:#d08700;--color-yellow-700:#a65f00;--color-green-50:#effdf5;--color-green-500:#00c16a;--color-green-600:#00a155;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#8ec5ff;--color-blue-500:#2b7fff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-blue-800:#193cb8;--color-purple-500:oklch(62.7% .265 303.9);--color-slate-50:#f8fafc;--color-slate-100:#f1f5f9;--color-slate-200:#e2e8f0;--color-slate-300:#cad5e2;--color-slate-400:#90a1b9;--color-slate-500:#64748e;--color-slate-600:#45556c;--color-slate-700:#314158;--color-slate-800:#1d293d;--color-gray-500:oklch(55.1% .027 264.364);--color-black:#1d1f23;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:14px;--text-sm--line-height:20px;--text-base:16px;--text-base--line-height:24px;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin .3s 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);--color-slate-base:#62748e;--text-h3:32px;--text-h3--line-height:40px;--text-large:18px;--text-large--line-height:28px;--text-extra-small:12px;--text-extra-small--line-height:16px;--animate-fade-in:fadeIn .5s ease-in-out}}@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%;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:currentColor}@supports (color:color-mix(in lab,red,red)){::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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(100\\%\\+4px\\)\\]{top:calc(100% + 4px)}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-7{right:calc(var(--spacing)*7)}.right-8{right:calc(var(--spacing)*8)}.right-9{right:calc(var(--spacing)*9)}.right-10{right:calc(var(--spacing)*10)}.right-16{right:calc(var(--spacing)*16)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-full{left:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[99px\\]{z-index:99px}.z-\\[100\\]{z-index:100}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.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)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-\\[100dvh\\]{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[70dvh\\]{max-height:70dvh}.max-h-\\[275px\\]{max-height:275px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[180px\\]{min-height:180px}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-\\[300px\\]{width:300px}.w-\\[320px\\]{width:320px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-12{min-width:calc(var(--spacing)*12)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[520px\\]{min-width:520px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.origin-top{transform-origin:top}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-5{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-50{--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-\\[0\\.99\\]{scale:.99}.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-\\[fadeIn_0\\.3s_ease-out\\]{animation:.3s ease-out fadeIn}.animate-\\[slideDown_0\\.3s_ease-out\\]{animation:.3s ease-out slideDown}.animate-fade-in{animation:var(--animate-fade-in)}.animate-spin{animation:var(--animate-spin)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.\\[appearance\\:textfield\\]{appearance:textfield}.appearance-none{appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-\\[2px\\]{gap:2px}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-y-1{row-gap:calc(var(--spacing)*1)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-200>:not(:last-child)){border-color:var(--color-slate-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-l-3xl{border-top-left-radius:var(--radius-3xl);border-bottom-left-radius:var(--radius-3xl)}.rounded-l-full{border-top-left-radius:3.40282e38px;border-bottom-left-radius:3.40282e38px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-3xl{border-top-right-radius:var(--radius-3xl);border-bottom-right-radius:var(--radius-3xl)}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-600{border-color:var(--color-blue-600)}.border-red-600{border-color:var(--color-red-600)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-black\\/40{background-color:#1d1f2366}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/40{background-color:#eff6ff66}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/40{background-color:color-mix(in oklab,var(--color-blue-50)40%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-600\\/30{background-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\\/30{background-color:color-mix(in oklab,var(--color-blue-600)30%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-600{background-color:var(--color-green-600)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/30{background-color:#fef2f24d}@supports (color:color-mix(in lab,red,red)){.bg-red-50\\/30{background-color:color-mix(in oklab,var(--color-red-50)30%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-50\\/40{background-color:#fefce866}@supports (color:color-mix(in lab,red,red)){.bg-yellow-50\\/40{background-color:color-mix(in oklab,var(--color-yellow-50)40%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-600{background-color:var(--color-yellow-600)}.bg-yellow-600\\/25{background-color:#d0870040}@supports (color:color-mix(in lab,red,red)){.bg-yellow-600\\/25{background-color:color-mix(in oklab,var(--color-yellow-600)25%,transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--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-blue-50{--tw-gradient-to:var(--color-blue-50);--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))}.stroke-\\[2\\.5px\\]{stroke-width:2.5px}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-7{padding-right:calc(var(--spacing)*7)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-11{padding-right:calc(var(--spacing)*11)}.pr-12{padding-right:calc(var(--spacing)*12)}.pr-14{padding-right:calc(var(--spacing)*14)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-20{padding-right:calc(var(--spacing)*20)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-7{padding-left:calc(var(--spacing)*7)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-10{padding-left:calc(var(--spacing)*10)}.pl-11{padding-left:calc(var(--spacing)*11)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-extra-small{font-size:var(--text-extra-small);line-height:var(--tw-leading,var(--text-extra-small--line-height))}.text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}.text-large{font-size:var(--text-large);line-height:var(--tw-leading,var(--text-large--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.leading-9{--tw-leading:calc(var(--spacing)*9);line-height:calc(var(--spacing)*9)}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-12{--tw-leading:calc(var(--spacing)*12);line-height:calc(var(--spacing)*12)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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)}.break-words{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#82828C\\]{color:#82828c}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-orange-600{color:var(--color-orange-600)}.text-purple-500{color:var(--color-purple-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-base{color:var(--color-slate-base)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 8px 0 var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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-blue-200{--tw-shadow-color:#bedbff}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background\\,transform\\]{transition-property:background,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\,visibility\\]{transition-property:transform,opacity,visibility;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:rotate-180:is(:where(.group):hover *){rotate:180deg}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:delay-200:is(:where(.group):hover *){transition-delay:.2s}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\\:border-blue-700:hover{border-color:var(--color-blue-700)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-400:hover{border-color:var(--color-slate-400)}.hover\\:border-yellow-300:hover{border-color:var(--color-yellow-300)}.hover\\:border-yellow-500:hover{border-color:var(--color-yellow-500)}.hover\\:border-yellow-600:hover{border-color:var(--color-yellow-600)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-50\\/60:hover{background-color:#eff6ff99}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-blue-50\\/60:hover{background-color:color-mix(in oklab,var(--color-blue-50)60%,transparent)}}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:bg-yellow-50\\/60:hover{background-color:#fefce899}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-yellow-50\\/60:hover{background-color:color-mix(in oklab,var(--color-yellow-50)60%,transparent)}}.hover\\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\\:bg-yellow-500:hover{background-color:var(--color-yellow-500)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-slate-400:hover{color:var(--color-slate-400)}.hover\\:text-yellow-500:hover{color:var(--color-yellow-500)}.hover\\:text-yellow-600:hover{color:var(--color-yellow-600)}}.focus\\:border-blue-600:focus{border-color:var(--color-blue-600)}.focus\\:border-red-600:focus{border-color:var(--color-red-600)}.focus\\:bg-transparent:focus{background-color:#0000}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[rgba\\(21\\,93\\,252\\,0\\.25\\)\\]:focus{--tw-ring-color:#155dfc40}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:ring-yellow-200:focus{--tw-ring-color:var(--color-yellow-200)}.focus\\:ring-yellow-300:focus{--tw-ring-color:var(--color-yellow-300)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:animate-spin:active{animation:var(--animate-spin)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:border:active{border-style:var(--tw-border-style);border-width:1px}.active\\:border-blue-600:active{border-color:var(--color-blue-600)}.active\\:border-blue-800:active{border-color:var(--color-blue-800)}.active\\:border-slate-200:active{border-color:var(--color-slate-200)}.active\\:border-yellow-500:active{border-color:var(--color-yellow-500)}.active\\:border-yellow-700:active{border-color:var(--color-yellow-700)}.active\\:bg-blue-200:active{background-color:var(--color-blue-200)}.active\\:bg-blue-800:active{background-color:var(--color-blue-800)}.active\\:bg-red-800:active{background-color:var(--color-red-800)}.active\\:bg-slate-200:active{background-color:var(--color-slate-200)}.active\\:bg-slate-300:active{background-color:var(--color-slate-300)}.active\\:bg-transparent:active{background-color:#0000}.active\\:bg-yellow-100:active{background-color:var(--color-yellow-100)}.active\\:bg-yellow-700:active{background-color:var(--color-yellow-700)}.active\\:text-blue-800:active{color:var(--color-blue-800)}.active\\:text-slate-400:active{color:var(--color-slate-400)}.active\\:text-yellow-700:active{color:var(--color-yellow-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-slate-200:disabled{border-color:var(--color-slate-200)}.disabled\\:bg-slate-100:disabled{background-color:var(--color-slate-100)}.disabled\\:text-slate-400:disabled{color:var(--color-slate-400)}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:top-6{top:calc(var(--spacing)*6)}.sm\\:right-6{right:calc(var(--spacing)*6)}.sm\\:right-auto{right:auto}.sm\\:bottom-6{bottom:calc(var(--spacing)*6)}.sm\\:left-6{left:calc(var(--spacing)*6)}.sm\\:left-auto{left:auto}.sm\\:h-6{height:calc(var(--spacing)*6)}.sm\\:h-12{height:calc(var(--spacing)*12)}.sm\\:h-auto{height:auto}.sm\\:max-h-96{max-height:calc(var(--spacing)*96)}.sm\\:w-6{width:calc(var(--spacing)*6)}.sm\\:w-12{width:calc(var(--spacing)*12)}.sm\\:w-\\[var\\(--drawer-w\\)\\]{width:var(--drawer-w)}.sm\\:max-w-\\[720px\\]{max-width:720px}.sm\\:items-center{align-items:center}.sm\\:rounded-2xl{border-radius:var(--radius-2xl)}.sm\\:p-6{padding:calc(var(--spacing)*6)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:pb-0{padding-bottom:calc(var(--spacing)*0)}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}}@media (min-width:48rem){.md\\:block{display:block}.md\\:flex-row{flex-direction:row}}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:appearance-none::-webkit-inner-spin-button{appearance:none}.\\[\\&\\:\\:-webkit-outer-spin-button\\]\\:appearance-none::-webkit-outer-spin-button{appearance:none}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:h-1::-webkit-scrollbar{height:calc(var(--spacing)*1)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1\\.5::-webkit-scrollbar{width:calc(var(--spacing)*1.5)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-slate-200::-webkit-scrollbar-thumb{background-color:var(--color-slate-200)}@media (hover:hover){.hover\\:\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-slate-300:hover::-webkit-scrollbar-thumb{background-color:var(--color-slate-300)}}.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:bg-transparent::-webkit-scrollbar-track{background-color:#0000}.\\[\\&\\>\\*\\]\\:w-fit>*{width:fit-content}.\\[\\&\\>\\*\\]\\:shrink-0>*{flex-shrink:0}.\\[\\&\\>\\*\\]\\:whitespace-nowrap>*{white-space:nowrap}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.shadow-red,.focus\\:shadow-red:focus{box-shadow:0 0 0 2px #e7000b40}.focus\\:shadow-blue:focus{box-shadow:0 0 0 2px #155dfc40}.focus\\:shadow-slate:focus{box-shadow:0 0 0 2px #0f172a40}.clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}ul,ol{list-style:none}input,textarea,button,select{outline:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes smooth-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}.shimmer-mask{will-change:transform;background:linear-gradient(90deg,#0000,#ffffff59,#0000);animation:1.8s ease-in-out infinite smooth-shimmer}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value: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-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
2
- /*$vite$:1*/`,document.head.appendChild(je);function Re(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const J=Re(l);function n(...t){return Je.twMerge(Ge.clsx(t))}function Ee(t){return{handleEscape:a=>{a.key==="Escape"&&t()}}}function me(t,r){return{handleClick:o=>{t.current&&!t.current.contains(o.target)&&r()}}}function et({items:t,variant:r="blue",className:a}){const o=r==="blue",c=o?"hover:text-blue-600":"hover:text-yellow-500",s=o?"text-blue-600":"text-yellow-500";return e.jsx("nav",{className:n("flex items-center",a),"aria-label":"Breadcrumb",children:t.map((i,d)=>{const w=d===t.length-1;return e.jsxs("div",{className:"flex items-center",children:[w?e.jsxs("span",{className:n("flex items-center gap-x-2 font-medium",s),children:[i.icon,e.jsx("span",{children:i.label})]}):e.jsxs("a",{href:i.href??"#",onClick:m=>{i.onClick&&(m.preventDefault(),i.onClick())},className:n("flex items-center gap-x-2 transition-all text-sm font-normal text-slate-500",c),children:[i.icon,e.jsx("span",{children:i.label})]}),!w&&e.jsx("span",{className:"mx-2 flex items-center",children:e.jsx(_.AltArrowRight,{weight:"Linear",size:20,className:"text-slate-500"})})]},d)})})}const tt={sm:"h-9 px-2 text-sm gap-1.5 rounded-lg leading-9 min-w-9",md:"h-10 px-2 text-base gap-2 rounded-lg leading-10 min-w-10",base:"h-12 px-4 text-base gap-2 rounded-xl leading-12 min-w-12"},rt={blue:{primary:"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 focus:ring-2 focus:ring-[rgba(21,93,252,0.25)]",secondary:"bg-blue-100 text-blue-600 hover:bg-blue-200 active:bg-blue-200 active:border active:border-blue-600 focus:ring-2 focus:ring-[rgba(21,93,252,0.25)]",outline:"border border-blue-600 text-blue-600 hover:border-blue-700 hover:text-blue-700 active:border-blue-800 active:text-blue-800 focus:ring-2 focus:ring-blue-200"},yellow:{primary:"bg-yellow-500 text-white hover:bg-yellow-600 active:bg-yellow-700 focus:ring-2 focus:ring-yellow-300",secondary:"bg-yellow-50 text-yellow-500 hover:bg-yellow-100 active:bg-yellow-100 active:border active:border-yellow-500 focus:ring-2 focus:ring-yellow-200",outline:"border border-yellow-500 text-yellow-500 hover:border-yellow-600 hover:text-yellow-600 active:border-yellow-700 active:text-yellow-700 focus:ring-2 focus:ring-yellow-200"}},at={danger:"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 focus:ring-2 focus:shadow-red",tertiary:"bg-slate-100 text-black hover:bg-slate-200 active:bg-slate-300 focus:ring-2 focus:shadow-slate"};function ot({children:t,text:r,icon:a,iconPosition:o="left",size:c="base",variant:s="primary",color:i="yellow",loading:d=!1,disabled:w=!1,onClick:m,className:x,type:S="button"}){const I=t??r,T=s==="primary"||s==="secondary"||s==="outline"?rt[i][s]:at[s],M=w||d,h=M?s==="outline"?"border-slate-200 bg-white text-slate-400 cursor-not-allowed hover:bg-transparent hover:border-slate-200 hover:text-slate-400 active:border-slate-200 active:text-slate-400 active:bg-transparent focus:bg-transparent focus:ring-0":"bg-slate-200 text-slate-400 cursor-not-allowed hover:bg-slate-200 active:bg-slate-200 focus:ring-0":"";return e.jsxs("button",{type:S,onClick:m,disabled:M,className:n("inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap text-center font-medium transition-all duration-200 cursor-pointer",tt[c],T,!M&&T,h,x),children:[a&&o==="left"&&!d&&e.jsx("span",{className:"flex items-center",children:a}),I&&e.jsx("span",{className:"whitespace-nowrap",children:I}),a&&o==="right"&&!d&&e.jsx("span",{className:"flex items-center",children:a}),d&&e.jsx(_.Star2,{weight:"Linear",size:20,className:"animate-spin"})]})}const lt=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:8,viewBox:"0 0 11 8",fill:"none",...t},J.createElement("path",{d:"M0.625 3.76944L3.76944 6.91389L10.0694 0.625",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),nt={blue:{border:"border-blue-600",bg:"bg-blue-600",hover:"hover:border-blue-600 hover:bg-blue-100",focus:"focus:shadow-blue"},yellow:{border:"border-yellow-500",bg:"bg-yellow-500",hover:"hover:border-yellow-500 hover:bg-yello-100",focus:"focus:ring-2 focus:ring-yellow-300"}},fe=l.memo(function({type:r="checkbox",label:a,supportText:o,checked:c,onChange:s,error:i,disabled:d=!1,required:w=!1,className:m,variant:x="yellow",name:S,value:I}){const[T,M]=l.useState(!1),h=r==="radio",v=l.useMemo(()=>c??T,[c,T]),D=l.useCallback(p=>{d||(c===void 0&&M(p.target.checked),s?.(p))},[c,s,d]),L=l.useMemo(()=>{if(d){const y="border-slate-200 bg-slate-100";return h?{container:y,dot:v?"bg-slate-300":"bg-transparent",check:"text-slate-400"}:{container:y,dot:"",check:v?"text-slate-400":"text-transparent"}}const p=nt[x];if(h){const y=n("border transition-all duration-200",v?p.border:"border-slate-400",!v&&p.hover,p.focus,v&&""),E=n("transition-all duration-200 rounded-full",v?p.bg:"bg-transparent");return{container:y,dot:E,check:""}}return{container:n("border transition-all duration-200",v?n(p.bg,p.border):"border-slate-400",!v&&p.hover,p.focus),dot:"",check:v?"text-white":"text-transparent"}},[h,v,d,x]),N=l.useMemo(()=>!a&&!o?null:e.jsxs("div",{className:"flex flex-col",children:[a&&e.jsxs("span",{className:n("text-base font-medium text-slate-700",i&&"text-red-600",d&&"text-slate-400"),children:[a,w&&e.jsx("span",{className:"text-extra-small text-red-600 ml-1",children:"*"})]}),o&&e.jsx("span",{className:n("text-slate-500 text-base font-normal",d&&"text-slate-400"),children:o})]}),[a,o,i,d,w]);return e.jsxs("div",{className:n("flex items-start",m),children:[e.jsxs("label",{className:n("flex items-start gap-2 select-none",d?"cursor-not-allowed":"cursor-pointer"),children:[e.jsx("input",{type:r,checked:v,onChange:D,disabled:d,required:w,className:"sr-only","aria-invalid":!!i,"aria-describedby":i?`${S}-error`:void 0,name:S,value:I}),e.jsx("div",{className:n("relative flex items-center justify-center",h?"w-5 h-5 rounded-full":"w-5 h-5 rounded",L.container),children:h?e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:n("w-3 h-3 rounded-full transition-all duration-200",L.dot,v?"opacity-100 scale-100":"opacity-0 scale-50")})}):e.jsx(lt,{className:n("w-4 h-4 stroke-[2.5px] transition-opacity duration-200",L.check,v?"opacity-100":"opacity-0")})}),N]}),i&&e.jsx("p",{id:`${S}-error`,className:"mt-1 text-extra-small text-red-600",children:i})]})});fe.displayName="MciCheck";function st({title:t,children:r,defaultOpen:a=!1,icon:o,className:c,contentClassName:s}){const[i,d]=l.useState(a),[w,m]=l.useState(0),x=l.useRef(null);return l.useEffect(()=>{x.current&&m(i?x.current.scrollHeight:0)},[i]),e.jsxs("div",{className:n("overflow-hidden rounded-xl border border-slate-200",c),children:[e.jsxs("button",{onClick:()=>d(!i),className:n("flex w-full items-center justify-between p-5 transition-all duration-300 hover:cursor-pointer",i?"border-b border-slate-200":"border-b border-transparent"),children:[e.jsxs("div",{className:"flex items-center gap-2",children:[o&&e.jsx("span",{className:"shrink-0",children:o}),e.jsx("div",{className:n("text-base font-medium text-black"),children:t})]}),e.jsx(_.AltArrowDown,{weight:"Linear",size:20,className:n("shrink-0 transition-transform duration-300 text-slate-400",i&&"rotate-180")})]}),e.jsx("div",{className:n("overflow-hidden transition-all duration-300 ease-out"),style:{height:`${w}px`},children:e.jsx("div",{ref:x,className:n("p-5",s),children:r})})]})}const ue=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...t},J.createElement("path",{d:"M7.75739 7.75735L16.2427 16.2426",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M7.75733 16.2426L16.2426 7.75735",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));function it({isOpen:t,onClose:r,position:a="right",children:o,footer:c,title:s,description:i,showCloseButton:d=!0,drawerClassName:w,contentClassName:m,closeOnOverlayClick:x=!0,closeOnEscape:S=!0,width:I=572}){const T=l.useRef(null),M=l.useRef(null),h=l.useCallback(()=>r(),[r]);l.useEffect(()=>{t?(M.current=document.activeElement,T.current?.focus()):M.current?.focus()},[t]),l.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[t]);const v=l.useMemo(()=>({"--drawer-w":typeof I=="number"?`${I}px`:I,transform:t?"translateX(0)":a==="right"?"translateX(calc(100% + 48px))":"translateX(calc(-100% - 48px))"}),[t,I,a]),D=!!(s||i||d),L=a==="right"?"top-0 bottom-0 right-0 left-3 rounded-l-3xl rounded-r-none":"top-0 bottom-0 left-0 right-3 rounded-r-3xl rounded-l-none",N=a==="right"?"sm:top-6 sm:bottom-6 sm:right-6 sm:left-auto":"sm:top-6 sm:bottom-6 sm:left-6 sm:right-auto";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n("fixed inset-0 z-50 bg-black/40 transition-opacity duration-300",t?"opacity-100 visible cursor-pointer":"opacity-0 invisible pointer-events-none"),onClick:x?h:void 0,"aria-hidden":"true"}),e.jsxs("div",{ref:T,tabIndex:-1,style:v,className:n("fixed z-50 flex flex-col bg-white outline-none min-h-0","transition-[transform,opacity,visibility] duration-300 ease-in-out",t?"opacity-100 visible pointer-events-auto shadow-2xl":"opacity-0 invisible pointer-events-none shadow-none",L,"h-[100dvh]","pb-[env(safe-area-inset-bottom)]",N,"sm:h-auto sm:rounded-2xl sm:pb-0","sm:w-[var(--drawer-w)]",w),role:"dialog","aria-modal":"true","aria-hidden":!t,"aria-labelledby":s?"drawer-title":void 0,children:[D&&e.jsxs("div",{className:"flex items-start justify-between border-b border-slate-200 shrink-0 px-4 py-4 sm:p-6",children:[(s||i)&&e.jsxs("div",{className:"block pr-3",children:[s&&e.jsx("h2",{id:"drawer-title",className:"font-semibold text-black text-xl leading-tight sm:text-h3",children:s}),i&&e.jsx("p",{className:"text-sm sm:text-base text-slate-base font-normal mt-2",children:i})]}),d&&e.jsx("button",{type:"button",onClick:h,className:"bg-slate-100 rounded-xl w-11 h-11 sm:w-12 sm:h-12 hover:cursor-pointer text-black transition flex items-center justify-center group active:scale-95",children:e.jsx(ue,{className:"h-5 w-5 sm:h-6 sm:w-6 transition-transform duration-300 group-hover:rotate-180"})})]}),e.jsx("div",{className:n("flex-1 min-h-0 overflow-y-auto scrollbar-thin scrollbar-thumb-slate-200 px-4 py-4 sm:p-6",m),children:o}),c&&e.jsx("div",{className:"shrink-0 flex items-center justify-end border-t border-slate-200 px-4 py-4 sm:p-6 gap-3 [&>*]:w-fit [&>*]:shrink-0 [&>*]:whitespace-nowrap",children:c})]})]})}const Ae={sm:{input:"h-9 text-sm",icon:"w-4 h-4",leftIcon:"left-2",rightIcon:"right-2",labelFont:"text-sm",iconWrapper:"h-4"},md:{input:"h-10 text-sm",icon:"w-4 h-4",leftIcon:"left-2",rightIcon:"right-2",labelFont:"text-base",iconWrapper:"h-4"},base:{input:"h-12 text-base",icon:"w-5 h-5",leftIcon:"left-3",rightIcon:"right-3",labelFont:"text-base",iconWrapper:"h-5"}};function ct(t,r){const a=o=>o==="sm"?t&&r?"pl-7 pr-7":t?"pl-7 pr-2":r?"pl-2 pr-7":"px-2":o==="md"?t&&r?"pl-8 pr-8":t?"pl-8 pr-2":r?"pl-2 pr-8":"px-4":t&&r?"pl-9 pr-9":t?"pl-9 pr-3":r?"pl-3 pr-9":"px-4";return{sm:{...Ae.sm,padding:a("sm")},md:{...Ae.md,padding:a("md")},base:{...Ae.base,padding:a("base")}}}function dt(t){return t?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600"}function ut(t,r,a){return t?"text-slate-400":r?"text-red-600":a?"text-black":"text-slate-400"}function pt(t,r){return r<=0?"":t==="sm"?r>=3?"pr-14":r===2?"pr-11":"pr-7":t==="md"?r>=3?"pr-16":r===2?"pr-12":"pr-8":r>=3?"pr-20":r===2?"pr-16":"pr-10"}const ve=l.forwardRef(({label:t,placeholder:r,type:a="text",icon:o,rightIcon:c,iconPosition:s="left",size:i="base",error:d,disabled:w=!1,required:m=!1,value:x,onChange:S,onFocus:I,onBlur:T,className:M,name:h,maxLength:v=250,onClear:D,showClearButton:L=!1,step:N,autoComplete:p="off"},z)=>{const[y,E]=l.useState(!1),[f,u]=l.useState(""),[b,j]=l.useState(!1),F=x??f,O=a==="password",W=L&&!!F&&!w,U=o&&s==="left",q=o&&s==="right"||c||O,te=q||W,re=l.useMemo(()=>{let Z=0;return W&&(Z+=1),O?(Z+=1,c&&(Z+=1),Z):(c&&(Z+=1),o&&s==="right"&&(Z+=1),Z)},[W,O,c,o,s]),ae=()=>{E(!0),I?.()},R=()=>{E(!1),T?.()},oe=Z=>{let G=Z.target.value;a==="number"&&v&&G.length>v&&(G=G.slice(0,v),Z.target.value=G),x===void 0&&u(G),S?.(Z)},X=()=>j(Z=>!Z),A=()=>{x===void 0&&u(""),D?.()},C=l.useMemo(()=>ct(!!U,!!q),[U,q]),K=l.useMemo(()=>dt(d),[d]),P=l.useMemo(()=>ut(w,d,y),[d,y,w]),V=l.useMemo(()=>pt(i,re),[i,re]);return e.jsxs("div",{className:n("w-full",M),children:[t&&e.jsxs("label",{htmlFor:h,className:n("mb-2 block text-base font-medium",d?"text-red-600":"text-slate-700",C[i].labelFont),children:[t,m&&e.jsx("span",{className:"text-extra-small text-red-600 ml-1",children:"*"})]}),e.jsxs("div",{className:"relative flex items-center",children:[e.jsx("input",{ref:z,name:h,type:O&&b?"text":a,value:F,onChange:oe,onFocus:ae,onBlur:R,disabled:w,required:m,autoComplete:p,placeholder:r,step:N,className:n("w-full border bg-white font-normal transition-all duration-300 ease-in-out outline-none",i==="base"?"rounded-xl":"rounded-lg","disabled:cursor-not-allowed disabled:border-slate-200 disabled:bg-slate-100 disabled:text-slate-400","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",C[i].input,C[i].padding,V,K),maxLength:v}),U&&e.jsx("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center","transition-all duration-300",C[i].leftIcon,P),children:e.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:e.jsx("span",{className:n("flex items-center justify-center",C[i].icon),children:o})})}),te&&e.jsxs("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center gap-2","transition-all duration-300",C[i].rightIcon),children:[W&&e.jsx("button",{type:"button",onClick:A,className:n("flex items-center justify-center",C[i].iconWrapper,"text-slate-base hover:text-black"),style:{cursor:"pointer"},children:e.jsx("span",{className:n("flex items-center justify-center",C[i].icon),children:e.jsx(ue,{className:n("h-full w-full")})})}),c&&!O&&e.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:e.jsx("span",{className:n("flex items-center justify-center",C[i].icon,P),children:c})}),O&&e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:e.jsx("span",{className:n("flex items-center justify-center",C[i].icon,P),children:c})}),e.jsx("button",{type:"button",onClick:X,className:n("flex items-center justify-center",C[i].iconWrapper,P),children:e.jsx("span",{className:n("flex items-center justify-center cursor-pointer",C[i].icon),children:b?e.jsx(_.EyeClosed,{weight:"Linear",className:n("h-full w-full")}):e.jsx(_.Eye,{weight:"Linear",className:n("h-full w-full")})})})]}),o&&s==="right"&&!O&&e.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:e.jsx("span",{className:n("flex items-center justify-center",C[i].icon,P),children:o})})]})]}),d&&e.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:d})]})});ve.displayName="MciInput";const ft={uz:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"],monthsShort:["Yan","Fev","Mar","Apr","May","Iyn","Iyl","Avg","Sen","Okt","Noy","Dek"],weekdays:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"],weekdaysShort:["Ya","Du","Se","Ch","Pa","Ju","Sh"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],weekdays:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],weekdaysShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"]}};function le(t){if(!t)return null;const r=new Date(t);return Number.isNaN(r.getTime())?null:r}function ee(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function ht(t,r){if(!t)return"";const a=t.getDate().toString().padStart(2,"0"),o=(t.getMonth()+1).toString().padStart(2,"0"),c=t.getFullYear().toString();return r.replace("DD",a).replace("MM",o).replace("YYYY",c)}function Le(t){if(!t||t.length!==10)return null;const r=t.replace(/\D/g,"");if(r.length!==8)return null;const a=parseInt(r.slice(0,2),10),o=parseInt(r.slice(2,4),10),c=parseInt(r.slice(4,8),10);if(c<1e3||o<1||o>12||a<1||a>31)return null;const s=new Date(c,o-1,a);return s.getFullYear()!==c||s.getMonth()!==o-1||s.getDate()!==a?null:s}function gt(t){let r=t.replace(/\D/g,"");return r.length>8&&(r=r.slice(0,8)),r.length>4?`${r.slice(0,2)}.${r.slice(2,4)}.${r.slice(4)}`:r.length>2?`${r.slice(0,2)}.${r.slice(2)}`:r}function bt(t,r,a){const o=ee(t);return!!(r&&o<ee(r)||a&&o>ee(a))}function wt(t,r){return new Date(t.getFullYear(),t.getMonth()+r,1)}function mt(t,r){return new Date(t.getFullYear()+r,t.getMonth(),1)}function vt(t){const r=t.getFullYear(),a=t.getMonth(),o=new Date(r,a,1).getDay(),c=new Date(r,a+1,0).getDate(),s=[];for(let d=o;d>0;d-=1)s.push({date:new Date(r,a,1-d),isCurrentMonth:!1});for(let d=1;d<=c;d+=1)s.push({date:new Date(r,a,d),isCurrentMonth:!0});const i=42-s.length;for(let d=1;d<=i;d+=1)s.push({date:new Date(r,a+1,d),isCurrentMonth:!1});return s}function xt(t,r){return ee(t).getTime()===ee(r).getTime()}const Oe=l.forwardRef(({type:t="date",value:r,onChange:a,placeholder:o,label:c,disabled:s=!1,required:i=!1,className:d,format:w="DD.MM.YYYY",minDate:m,maxDate:x,error:S,showClear:I=!0,allowManualInput:T=!0,locale:M="uz",startView:h="day",iconPosition:v="left",align:D="auto"},L)=>{const[N,p]=l.useState(!1),[z,y]=l.useState(t==="range"?[null,null]:null),[E,f]=l.useState([null,null]),[u,b]=l.useState(new Date),[j,F]=l.useState(h),[O,W]=l.useState(0),[U,q]=l.useState(""),[te,re]=l.useState(!1),[ae,R]=l.useState(D),oe=l.useRef(null),X=l.useMemo(()=>{const g=r!==void 0?r:z;if(t==="date")return le(g);const k=g;return[le(k[0]),le(k[1])]},[r,z,t]),A=ft[M],C=l.useCallback(g=>ht(g,w),[w]),K=l.useCallback(g=>bt(g,m,x),[m,x]),P=l.useMemo(()=>{if(t==="date")return C(X);const[g,k]=X;return!g&&!k?"":g&&k?`${C(g)} - ${C(k)}`:g?`${C(g)} - ...`:"..."},[t,X,C]);l.useEffect(()=>{(!N&&!te||U===""&&P!=="")&&q(P)},[P,N,U,te]),l.useEffect(()=>{if(N)if(t==="range"){const g=X;f(g),g[0]?b(g[0]):g[1]?b(g[1]):b(new Date)}else{const g=X;b(g||new Date)}},[N,t,X]),l.useEffect(()=>{if(N&&D==="auto"&&oe.current){const g=oe.current.getBoundingClientRect(),k=window.innerWidth-g.right,$=g.left;k<300&&$>300?R("right"):R("left")}},[N,D]);const V=l.useCallback(()=>{p(!1),F(h),W(0),q(P)},[h,P]),Z=l.useCallback(g=>{s||(g.preventDefault(),g.stopPropagation(),p(k=>!k))},[s]),{handleClick:G}=me(oe,V),{handleEscape:ie}=Ee(V);l.useEffect(()=>{if(N)return document.addEventListener("mousedown",G),document.addEventListener("keydown",ie),()=>{document.removeEventListener("mousedown",G),document.removeEventListener("keydown",ie)}},[N,G,ie]);const pe=()=>{re(!0),!(s||N)&&(t==="range"||!T)&&(p(!0),F(h))},ke=()=>{if(re(!1),t!=="date")return;const g=U.trim();if(!g){y(null),a?.(null);return}const k=Le(g);if(k&&!K(k)){const $=ee(k);y($),a?.($),q(C($)),b($);return}q(P)},Y=g=>{if(t!=="date")return;const k=g.target.value,$=gt(k),Q=$.replace(/\D/g,"");if(!(Q.length>=1&&Number.parseInt(Q[0]??"0",10)>3)){if(Q.length>=2){const H=Number.parseInt(Q.slice(0,2),10);if(H<1||H>31)return}if(!(Q.length>=3&&Number.parseInt(Q[2]??"0",10)>1)){if(Q.length>=4){const H=Number.parseInt(Q.slice(2,4),10);if(H<1||H>12)return}if(q($),$.length===10){const H=Le($);H&&!K(H)&&(y(H),a?.(H),b(H))}else $===""&&(y(null),a?.(null))}}},ce=l.useCallback(()=>{const g=t==="range"?[null,null]:null;y(g),f([null,null]),a?.(g),q("")},[t,a]),Ir=l.useCallback(g=>{if(K(g))return;const k=ee(g);if(t==="date")y(k),a?.(k),q(C(k)),V();else{const[$,Q]=E;if(!$&&!Q||$&&Q)f([k,null]),q(`${C(k)} - ...`);else if($&&!Q){const H=k<$?[k,$]:[$,k];f(H),y(H),a?.(H);const[de,ne]=H;q(`${C(de)} - ${C(ne)}`),V()}}},[t,E,K,a,V,C]),Fr=l.useCallback(g=>{const k=new Date(u.getFullYear(),g,1);b(k),h==="month"&&t==="date"?(y(k),a?.(k),q(C(k)),V()):F("day")},[u,h,a,V,t,C]),zr=l.useCallback(g=>{const k=new Date(g,u.getMonth(),1);b(k),h==="year"&&t==="date"?(y(k),a?.(k),q(C(k)),V()):F("month")},[u,h,a,V,t,C]),Ze=g=>{b(k=>wt(k,g))},Ne=g=>{b(k=>mt(k,g))},Ce=l.useCallback((g,k)=>xt(g,k),[]),jr=g=>{const k=ee(g);if(t==="date")return X&&Ce(k,X);const[$]=E[0]?E:X;return le($)&&Ce(k,le($))},Lr=g=>{if(t!=="range")return!1;const k=ee(g),[,$]=E[1]?E:X;return le($)&&Ce(k,le($))},Or=g=>{if(t!=="range")return!1;const k=ee(g),[$,Q]=E[0]?E:X,H=le($),de=le(Q);return H&&!de?!1:H&&de&&k>ee(H)&&k<ee(de)},qe=(g,k,$)=>{const Q=vt(g);return e.jsxs("div",{className:"w-[300px] p-2 select-none",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4 py-1",children:[e.jsx("div",{className:"flex gap-2 w-16",children:k&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>Ne(-1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:e.jsx(_.DoubleAltArrowLeft,{size:18})}),e.jsx("button",{onClick:()=>Ze(-1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:e.jsx(_.AltArrowLeft,{size:18})})]})}),e.jsxs("div",{className:"flex gap-1 font-semibold text-slate-700 text-sm whitespace-nowrap",children:[e.jsx("span",{className:"cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-slate-50",onClick:()=>F("month"),children:A.months[g.getMonth()]}),e.jsx("span",{className:"cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-slate-50",onClick:()=>F("year"),children:g.getFullYear()})]}),e.jsx("div",{className:"flex gap-2 w-16 justify-end",children:$&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>Ze(1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:e.jsx(_.AltArrowRight,{size:18})}),e.jsx("button",{onClick:()=>Ne(1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:e.jsx(_.DoubleAltArrowRight,{size:18})})]})})]}),e.jsx("div",{className:"grid grid-cols-7 mb-1 text-center text-[11px] font-bold text-blue-600 uppercase",children:A.weekdaysShort.map(H=>e.jsx("div",{className:"py-1",children:H},H))}),e.jsx("div",{className:"grid grid-cols-7 gap-y-1 relative",children:Q.map((H,de)=>{const ne=H.date,Ke=K(ne),Se=jr(ne),Me=Lr(ne),Pr=Or(ne);return e.jsx("div",{className:n("h-10 flex items-center justify-center relative",Pr&&"bg-blue-50",Se&&t==="range"&&Me?"bg-blue-50 rounded-full":Se&&t==="range"?"bg-gradient-to-r from-transparent to-blue-50 rounded-l-full":"",Me&&t==="range"?"bg-gradient-to-l from-transparent to-blue-50 rounded-r-full":""),children:e.jsx("button",{type:"button",onClick:()=>Ir(ne),disabled:Ke,className:n("w-9 h-9 cursor-pointer rounded-full flex items-center justify-center text-sm font-medium transition-all z-10",H.isCurrentMonth?"text-slate-700":"text-slate-300",Ke&&"opacity-20 cursor-not-allowed",Se||Me?"bg-blue-600 text-white shadow-md shadow-blue-200 hover:bg-blue-700":"hover:bg-blue-50",Ce(ne,new Date)&&!Se&&!Me&&"text-blue-600 border border-blue-600"),children:ne.getDate()})},de)})})]})},_r=()=>e.jsxs("div",{className:"w-[300px] p-3",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4 px-2",children:[e.jsx("button",{type:"button",onClick:()=>Ne(-1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:e.jsx(_.AltArrowLeft,{size:20})}),e.jsx("span",{className:"font-bold text-slate-800",children:u.getFullYear()}),e.jsx("button",{type:"button",onClick:()=>Ne(1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:e.jsx(_.AltArrowRight,{size:20})})]}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:A.monthsShort.map((g,k)=>e.jsx("button",{type:"button",onClick:()=>Fr(k),className:n("hover:cursor-pointer py-3 rounded-lg text-sm font-semibold transition-colors",u.getMonth()===k?"bg-blue-600 text-white":"hover:bg-blue-50 text-slate-600"),children:g},g))})]}),$r=()=>{const g=Math.floor(u.getFullYear()/12)*12+O*12,k=Array.from({length:12},($,Q)=>g+Q);return e.jsxs("div",{className:"w-[300px] p-3",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4 px-2",children:[e.jsx("button",{type:"button",onClick:()=>W($=>$-1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:e.jsx(_.AltArrowLeft,{size:20})}),e.jsxs("span",{className:"font-bold text-slate-800",children:[k[0]," - ",k[11]]}),e.jsx("button",{type:"button",onClick:()=>W($=>$+1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:e.jsx(_.AltArrowRight,{size:20})})]}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:k.map($=>e.jsx("button",{type:"button",onClick:()=>zr($),className:n("hover:cursor-pointer py-3 rounded-lg text-sm font-semibold transition-colors",u.getFullYear()===$?"bg-blue-600 text-white":"hover:bg-blue-50 text-slate-600"),children:$},$))})]})},Xe=e.jsx("div",{onClick:Z,className:n("cursor-pointer flex items-center justify-center p-1 rounded-md transition-colors",s?"pointer-events-none opacity-50":"hover:bg-slate-100 active:bg-slate-200"),children:e.jsx(_.Calendar,{weight:"Linear",size:20,className:"text-slate-400"})});return e.jsxs("div",{ref:oe,className:n("relative w-full group",d),children:[e.jsx("div",{ref:L,children:e.jsx(ve,{label:c,placeholder:Array.isArray(o)?o[0]:o,value:U,onChange:Y,icon:v==="left"?Xe:void 0,rightIcon:v==="right"?Xe:void 0,disabled:s,required:i,error:S,maxLength:t==="date"?10:void 0,onFocus:pe,onBlur:ke,readOnly:!T||t==="range",showClearButton:I,onClear:ce})}),N&&e.jsx("div",{className:n("absolute top-[calc(100%+4px)] z-[100] bg-white rounded-xl shadow-xl border border-slate-200","flex flex-col md:flex-row overflow-hidden animate-in fade-in zoom-in-95 duration-200",ae==="right"&&"right-0 origin-top-right",ae==="left"&&"left-0 origin-top-left",ae==="center"&&"left-1/2 -translate-x-1/2 origin-top"),style:{width:"max-content"},onMouseDown:g=>g.stopPropagation(),children:j==="day"?e.jsxs(e.Fragment,{children:[qe(u,!0,t!=="range"),t==="range"&&e.jsx("div",{className:"hidden md:block border-l border-slate-100",children:qe(new Date(u.getFullYear(),u.getMonth()+1,1),!1,!0)})]}):j==="month"?_r():$r()})]})});Oe.displayName="MciPicker";const yt={sm:{container:"h-9 text-sm",padding:"px-2",iconPaddingLeft:"pl-7",iconPaddingRight:"pr-7",iconSize:"w-4 h-4",iconWrapper:"left-2",rightIconWrapper:"right-2",label:"text-sm",dropdown:"text-sm"},md:{container:"h-10 text-sm",padding:"px-4",iconPaddingLeft:"pl-8",iconPaddingRight:"pr-8",iconSize:"w-5 h-5",iconWrapper:"left-3",rightIconWrapper:"right-3",label:"text-sm",dropdown:"text-sm"},base:{container:"h-12 text-base",padding:"px-4",iconPaddingLeft:"pl-10",iconPaddingRight:"pr-10",iconSize:"w-5 h-5",iconWrapper:"left-4",rightIconWrapper:"right-16",label:"text-base",dropdown:"text-base"}};function kt(t,r,a,o){if(!a||o)return t;const c=r.toLowerCase();return t.filter(s=>s.label.toLowerCase().includes(c))}function Nt(t,r){return t?"border-slate-200 bg-slate-100 text-slate-400 cursor-not-allowed":r?"border-red-600 focus:border-red-600 shadow-red bg-white":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600 bg-white"}function Ct(t,r,a,o){return t?"text-slate-400":r?"text-red-600":a||o?"text-black":"text-slate-400"}const _e=l.forwardRef(({label:t,placeholder:r="Выберите...",options:a=[],icon:o,iconPosition:c="left",size:s="base",error:i,disabled:d=!1,required:w=!1,value:m,onChange:x,onFocus:S,onBlur:I,className:T,clearable:M=!1,searchable:h=!1,onSearch:v,name:D},L)=>{const[N,p]=l.useState(!1),[z,y]=l.useState(!1),[E,f]=l.useState(""),[u,b]=l.useState(""),[j,F]=l.useState(-1),O=l.useRef(null),W=l.useRef(null),U=m!==void 0?m:E,q=a.find(Y=>Y.value===U),te=U!==""&&U!==void 0,re=M&&te&&!d,ae=!!(o&&c==="right"),R=yt[s],oe=l.useMemo(()=>ae&&re?s==="sm"||s==="md"?"pr-16":"pr-20":ae||re?s==="sm"?"pr-11":s==="md"?"pr-12":"pr-14":s==="sm"?"pr-8":s==="md"?"pr-9":"pr-10",[ae,re,s]),X=l.useMemo(()=>kt(a,u,h,!!v),[a,u,h,v]),A=l.useCallback(()=>{p(!1),y(!1),b(""),F(-1),I?.()},[I]),{handleClick:C}=me(O,A),{handleEscape:K}=Ee(A);l.useEffect(()=>{if(N)return document.addEventListener("mousedown",C),document.addEventListener("keydown",K),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",K)}},[N,C,K]),l.useEffect(()=>{N&&h&&W.current&&W.current.focus()},[N,h]);const P=l.useCallback(()=>{d||(p(Y=>!Y),N?(b(""),F(-1)):(y(!0),S?.()))},[d,N,S]),V=l.useCallback(Y=>{m===void 0&&f(Y),x?.(Y),p(!1),y(!1),b(""),F(-1),I?.()},[m,x,I]),Z=l.useCallback(Y=>{if(!d){if(!N&&(Y.key==="ArrowDown"||Y.key==="ArrowUp"||Y.key==="Enter")){Y.preventDefault(),p(!0);return}if(N)switch(Y.key){case"ArrowDown":Y.preventDefault(),F(ce=>ce<X.length-1?ce+1:0);break;case"ArrowUp":Y.preventDefault(),F(ce=>ce>0?ce-1:X.length-1);break;case"Enter":Y.preventDefault(),j>=0&&X[j]&&V(X[j].value);break}}},[N,X,j,d,V]),G=l.useCallback(Y=>{Y.stopPropagation(),!d&&(m===void 0&&f(""),x?.(""),b(""),F(-1))},[m,x,d]),ie=l.useCallback(Y=>{b(Y),v?.(Y),F(0)},[v]),pe=l.useMemo(()=>Nt(d,i),[i,d]),ke=l.useMemo(()=>Ct(d,i,N,z),[d,i,N,z]);return e.jsxs("div",{className:n("w-full",T),ref:L,children:[t&&e.jsxs("label",{htmlFor:D,className:n("mb-2 block text-base font-medium",i?"text-red-600":"text-slate-700",R.label),children:[t,w&&e.jsx("span",{className:"ml-1 text-red-600",children:"*"})]}),e.jsxs("div",{ref:O,className:"relative",onKeyDown:Z,children:[e.jsxs("div",{role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":`${D}-listbox`,"aria-disabled":d,tabIndex:d?-1:0,onClick:P,className:n("flex w-full items-center border font-normal transition-all duration-300 ease-in-out",s==="base"?"rounded-xl":"rounded-lg",R.container,o&&c==="left"?R.iconPaddingLeft:R.padding,oe,pe,!d&&z&&"shadow-blue border-blue-600"),children:[o&&e.jsx("div",{className:n("absolute top-1/2 -translate-y-1/2 pointer-events-none transition-colors duration-300",c==="left"?R.iconWrapper:R.rightIconWrapper,ke),children:o}),h&&N?e.jsx("input",{ref:W,type:"text",value:u,onChange:Y=>ie(Y.target.value),placeholder:r,className:"w-full min-w-0 flex-1 bg-transparent outline-none",onClick:Y=>Y.stopPropagation()}):e.jsx("span",{title:q?.label||r,className:n("block min-w-0 flex-1 truncate select-none",!te&&!d&&"text-slate-400"),children:q?.label||r}),re&&e.jsx("button",{type:"button",onClick:G,className:n("absolute top-1/2 -translate-y-1/2 text-slate-400 hover:text-black transition-colors cursor-pointer",ae?s==="sm"?"right-8":s==="md"?"right-9":"right-10":s==="sm"?"right-7":s==="md"?"right-8":"right-9"),"aria-label":"Очистить",children:e.jsx(ue,{className:R.iconSize})}),e.jsx("div",{className:n("absolute top-1/2 -translate-y-1/2 pointer-events-none transition-all duration-300",s==="sm"?"right-2":"right-3",N&&"rotate-180",ke),children:e.jsx(_.AltArrowDown,{className:R.iconSize})})]}),N&&!d&&e.jsx("div",{id:`${D}-listbox`,role:"listbox",className:n("absolute z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-lg border border-slate-200 bg-white shadow-md p-1 text-black",R.dropdown),children:X.length===0?e.jsx("div",{className:"px-3 py-2 text-center text-base font-normal text-slate-500",children:"Ничего не найдено"}):X.map(Y=>e.jsx("div",{role:"option","aria-selected":U===Y.value,onClick:()=>V(Y.value),title:Y.label,className:n("cursor-pointer truncate px-3 py-2 font-normal transition-colors hover:bg-slate-100 rounded-sm",U===Y.value?"bg-slate-100":""),children:Y.label},Y.value))})]}),i&&e.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:i})]})});_e.displayName="MciSelect";function St({children:t,title:r}){const a=typeof t=="string"?t:void 0;return e.jsx("div",{className:"min-w-0",children:e.jsx("div",{className:"clamp-2 break-words",title:r??a,children:t})})}function Mt(t){if(t!=null)return typeof t=="number"?`${t}px`:t}function Et(t,r,a){return!r||a?t:[...t].sort((o,c)=>{const s=o[r.key],i=c[r.key];return s==null?1:i==null?-1:s<i?r.direction==="asc"?-1:1:s>i?r.direction==="asc"?1:-1:0})}function At({columns:t,data:r=[],loading:a=!1,skeletonRows:o=5,noDataText:c="",sort:s,onSortChange:i,className:d,headerClassName:w,bodyClassName:m,rowKey:x="id",rowSelection:S}){const[I,T]=l.useState(null),M=s??I,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),v=l.useMemo(()=>Et(h,M,!!s),[h,M,s]);l.useEffect(()=>{s!==void 0&&T(null)},[s]);const D=l.useMemo(()=>a?[]:s?h:v,[a,s,h,v]),L=l.useCallback(f=>{if(!f.sortable)return;let u=null;M?.key!==f.key?u={key:f.key,direction:"asc"}:M.direction==="asc"&&(u={key:f.key,direction:"desc"}),s!==void 0?i?.(u):T(u)},[M,s,i]),N=f=>{if(!S)return;const{onChange:u,getCheckboxProps:b}=S;if(f.target.checked){const O=D.filter(W=>!b?.(W)?.disabled).map(W=>W[x]);u(O)}else u([])},p=(f,u)=>{if(!S)return;const{selectedRowKeys:b,onChange:j}=S,F=f[x],O=u?[...b,F]:b.filter(W=>W!==F);j(O)},z=l.useMemo(()=>{if(!S||D.length===0)return!1;const f=D.filter(u=>!S.getCheckboxProps?.(u)?.disabled);return f.length===0?!1:f.every(u=>S.selectedRowKeys.includes(u[x]))},[S,D,x]),y=f=>f.sortable?!M||M.key!==f.key?e.jsx(_.SortVertical,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):M.direction==="asc"?e.jsx(_.SortFromTopToBottom,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):e.jsx(_.SortFromBottomToTop,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):null,E=()=>e.jsxs("colgroup",{children:[S&&e.jsx("col",{style:{width:48}}),t.map(f=>e.jsx("col",{style:{width:Mt(f.width)??"auto"}},f.key))]});return e.jsx("div",{className:n("w-full overflow-x-auto pb-0.5","[&::-webkit-scrollbar]:h-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-slate-200","[&::-webkit-scrollbar-thumb]:rounded-full","hover:[&::-webkit-scrollbar-thumb]:bg-slate-300",d),children:e.jsxs("div",{className:"inline-block min-w-full align-middle",children:[e.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200 bg-slate-100",children:e.jsxs("table",{className:"w-full table-fixed",children:[E(),e.jsx("thead",{children:e.jsxs("tr",{children:[S&&e.jsx("th",{className:n("w-12 px-4 py-3",w),children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(fe,{checked:z,onChange:N,variant:"yellow",disabled:a||D.length===0})})}),t.map(f=>e.jsx("th",{onClick:()=>L(f),className:n("px-4 py-3 text-left text-sm font-medium text-slate-700 transition-colors","whitespace-nowrap overflow-hidden text-ellipsis",f.align==="center"&&"text-center",f.align==="right"&&"text-right",f.sortable&&"cursor-pointer hover:bg-slate-200",w),children:e.jsxs("div",{className:n("flex items-center gap-2 min-w-0",f.align==="right"&&"justify-end"),children:[e.jsx("span",{className:"min-w-0 flex-1 truncate",title:f.title,children:f.title}),y(f)]})},f.key))]})})]})}),e.jsx("div",{className:"rounded-xl border border-t-0 border-slate-200 bg-white overflow-hidden",children:e.jsxs("table",{className:"w-full table-fixed",children:[E(),e.jsx("tbody",{className:"divide-y divide-slate-200",children:a?Array.from({length:o}).map((f,u)=>e.jsxs("tr",{children:[S&&e.jsx("td",{className:"w-12 px-4 py-3",children:e.jsx(Ie,{height:20,width:20,variant:"rounded"})}),t.map(b=>e.jsx("td",{className:"px-4 py-3",children:e.jsx(Ie,{height:30,variant:"rounded"})},b.key))]},u)):D.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length+(S?1:0),className:"py-20",children:e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx("div",{className:"relative mb-4",children:e.jsx(_.ConfoundedSquare,{weight:"Bold",size:64,className:"animate-float text-slate-400"})}),e.jsx("p",{className:"text-sm font-medium text-slate-400",children:c})]})})}):D.map((f,u)=>{const b=f[x],j=S?.selectedRowKeys.includes(b),F=S?.getCheckboxProps?.(f)?.disabled;return e.jsxs("tr",{className:"group transition-colors hover:bg-slate-50",children:[S&&e.jsx("td",{className:n("w-12 px-4 py-3 align-top",m),children:e.jsx("div",{className:"flex items-center justify-center pt-1",children:e.jsx(fe,{checked:j,disabled:F,variant:"yellow",onChange:O=>p(f,O.target.checked)})})}),t.map(O=>{const W=f[O.key],U=O.render?O.render(W,f):String(W??"-");return e.jsx("td",{className:n("align-top px-4 py-3 text-sm font-normal text-black","min-w-0 whitespace-normal",O.align==="center"&&"text-center",O.align==="right"&&"text-right",m,O.className),children:e.jsx(St,{title:typeof U=="string"?U:void 0,children:U})},O.key)})]},u)})})]})})]})})}const Dt={uz:{dragAndDrop:"Faylni bu yerga torting",clickToUpload:"yoki bosib tanlang",or:"yoki",dropHereTitle:"Faylni shu yerga yuklang",fileRequirements:(t,r,a,o)=>`${t?`Maksimum ${r} ta fayl`:"1 ta fayl"} • ${a}MB gacha • ${o!=="*/*"?`Format: ${o}`:"Barcha formatlar"}`,selectedFiles:"Tanlangan fayllar",clearAll:"Barchasini o‘chirish",uploading:"Yuklanmoqda...",success:"Yuklandi",error:"Xatolik",preview:"Ko‘rish",download:"Yuklab olish",remove:"O‘chirish",maxFilesError:t=>`Maksimum ${t} ta fayl yuklash mumkin`,fileSizeError:(t,r)=>`"${t}" fayl hajmi ${r}MB dan kichik bo‘lishi kerak`,fileTypeError:t=>`"${t}" fayl turi qabul qilinmaydi`,blockedFileTypeError:t=>`"${t}" fayli xavfsizlik sabab bloklandi (arxiv yoki bajariladigan fayl)`,uploadFailed:"Yuklash muvaffaqiyatsiz tugadi",file:"Fayl",image:"Rasm",video:"Video",audio:"Audio",document:"Hujjat"},ru:{dragAndDrop:"Перетащите файл сюда",clickToUpload:"или выберите нажатием",or:"или",dropHereTitle:"Загрузите свой файл сюда",fileRequirements:(t,r,a,o)=>`${t?`Максимум ${r} файлов`:"1 файл"} • До ${a}MB • ${o!=="*/*"?`Формат: ${o}`:"Все форматы"}`,selectedFiles:"Выбранные файлы",clearAll:"Очистить все",uploading:"Загружается...",success:"Загружено",error:"Ошибка",preview:"Просмотр",download:"Скачать",remove:"Удалить",maxFilesError:t=>`Можно загрузить максимум ${t} файлов`,fileSizeError:(t,r)=>`Размер файла "${t}" должен быть меньше ${r}MB`,fileTypeError:t=>`Тип файла "${t}" не поддерживается`,blockedFileTypeError:t=>`Файл "${t}" заблокирован политикой безопасности (архив или исполняемый тип)`,uploadFailed:"Не удалось загрузить файл",file:"Файл",image:"Изображение",video:"Видео",audio:"Аудио",document:"Документ"},en:{dragAndDrop:"Drag and drop a file here",clickToUpload:"or click to select",or:"or",dropHereTitle:"Upload your file here",fileRequirements:(t,r,a,o)=>`${t?`Up to ${r} files`:"1 file"} • Up to ${a}MB • ${o!=="*/*"?`Format: ${o}`:"All formats"}`,selectedFiles:"Selected files",clearAll:"Clear all",uploading:"Uploading...",success:"Uploaded",error:"Error",preview:"Preview",download:"Download",remove:"Remove",maxFilesError:t=>`You can upload up to ${t} files`,fileSizeError:(t,r)=>`File "${t}" must be smaller than ${r}MB`,fileTypeError:t=>`File type "${t}" is not supported`,blockedFileTypeError:t=>`File "${t}" is blocked by security policy (archive or executable type)`,uploadFailed:"Upload failed",file:"File",image:"Image",video:"Video",audio:"Audio",document:"Document"}},De=["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","bmp","tiff"],Tt=["zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","iso","cab","arj","lz","lzh","z","exe","bat","cmd","com","msi","scr","pif","js","mjs","cjs","jse","vbs","vbe","wsf","wsh","ps1","psm1","sh","bash","zsh","ksh","csh","fish"],he=new Set(De),ge=new Set(Tt),It=De.map(t=>`.${t}`).join(","),Ft={"image/*":["jpg","jpeg","png","bmp","tiff"],"text/*":["txt"]},zt={"application/pdf":["pdf"],"application/msword":["doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.ms-excel":["xls"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.ms-powerpoint":["ppt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"text/plain":["txt"],"image/jpg":["jpg"],"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/bmp":["bmp"],"image/tiff":["tiff"]},jt=new Set(["application/zip","application/x-zip-compressed","application/x-rar-compressed","application/vnd.rar","application/x-7z-compressed","application/x-msdownload","application/x-msdos-program","application/x-executable","application/x-bat","application/x-msi","application/javascript","text/javascript","application/x-javascript","application/x-sh","application/x-csh","text/x-shellscript","application/x-powershell"]);function Lt(t){const r=t.trim().toLowerCase(),a=r.lastIndexOf(".");return a<=0||a===r.length-1?"":r.slice(a+1)}function Ot(t){return t.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean)}function Te(t){if(!t||t==="*/*")return null;const r=Ot(t),a=new Set;for(const o of r)if(o!=="*/*"){if(o.endsWith("/*")){const c=Ft[o];if(!c)continue;for(const s of c)he.has(s)&&!ge.has(s)&&a.add(s);continue}if(o.startsWith(".")){const c=o.slice(1);he.has(c)&&!ge.has(c)&&a.add(c);continue}if(o.includes("/")){const c=zt[o];if(!c)continue;for(const s of c)he.has(s)&&!ge.has(s)&&a.add(s);continue}he.has(o)&&!ge.has(o)&&a.add(o)}return a.size>0?a:null}function _t(t){const r=Te(t);return r?Array.from(r).map(a=>`.${a}`).join(","):It}function $t(t){const r=Te(t);return r?Array.from(r).join(", "):De.join(", ")}function Pt(t){switch(t.type.split("/")[0]){case"image":return e.jsx(_.Gallery,{className:"h-5 w-5 text-blue-500"});case"video":return e.jsx(_.VideoFramePlayHorizontal,{className:"h-5 w-5 text-purple-500"});case"audio":return e.jsx(_.MusicNote,{className:"h-5 w-5 text-green-500"});default:return t.type.includes("pdf")?e.jsx(_.FileText,{className:"h-5 w-5 text-red-500"}):t.type.includes("word")||t.type.includes("document")?e.jsx(_.FileText,{className:"h-5 w-5 text-blue-600"}):t.type.includes("excel")||t.type.includes("spreadsheet")?e.jsx(_.FileText,{className:"h-5 w-5 text-green-600"}):e.jsx(_.File,{className:"h-5 w-5 text-gray-500"})}}function Bt(t){if(t===0)return"0 Bytes";const r=1024,a=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(t)/Math.log(r));return parseFloat((t/Math.pow(r,o)).toFixed(2))+" "+a[o]}function Wt(t,r){const a=r*1024*1024;return t.size<=a}function Yt(t,r){const a=Lt(t.name),o=t.type.trim().toLowerCase();if(o&&jt.has(o))return{isValid:!1,reason:"blocked"};if(!a)return{isValid:!1,reason:"not-allowed"};if(ge.has(a))return{isValid:!1,reason:"blocked"};if(!he.has(a))return{isValid:!1,reason:"not-allowed"};const c=Te(r);return c&&!c.has(a)?{isValid:!1,reason:"not-allowed"}:{isValid:!0}}function Ut(t){return new Promise(r=>{if(t.type.startsWith("image/")){const a=new FileReader;a.onload=o=>r(o.target?.result??""),a.readAsDataURL(t)}else r("")})}const Vt={blue:{dropBorder:"border-blue-200 hover:border-blue-300",dropBg:"bg-blue-50/40 hover:bg-blue-50/60",dropActive:"border-blue-600 bg-blue-50",iconWrap:"text-blue-600",title:"text-blue-600",hint:"text-slate-500",progress:"bg-blue-600/30",progressFill:"bg-blue-600",fileIconImg:"bg-blue-50 text-blue-600",fileIconDoc:"bg-green-50 text-green-600"},yellow:{dropBorder:"border-yellow-200 hover:border-yellow-300",dropBg:"bg-yellow-50/40 hover:bg-yellow-50/60",dropActive:"border-yellow-500 bg-yellow-50",iconWrap:"text-yellow-700",title:"text-yellow-700",hint:"text-slate-500",progress:"bg-yellow-600/25",progressFill:"bg-yellow-600",fileIconImg:"bg-blue-50 text-blue-600",fileIconDoc:"bg-green-50 text-green-600"}},Ht=({multiple:t=!1,accept:r="*/*",maxSize:a=10,maxFiles:o=5,disabled:c=!1,label:s,required:i=!1,error:d,className:w,onFilesChange:m,onUpload:x,showPreview:S=!0,locale:I="uz",showFileTypeIcon:T=!0,variant:M="yellow",customValidator:h})=>{const[v,D]=l.useState([]),[L,N]=l.useState(!1),[p,z]=l.useState(!1),y=l.useRef(null),E=Dt[I],f=l.useMemo(()=>Vt[M],[M]),u=l.useMemo(()=>_t(r),[r]),b=l.useMemo(()=>$t(r),[r]),j=l.useRef(new Map),F=l.useCallback(A=>{const C=j.current.get(A);C&&(URL.revokeObjectURL(C),j.current.delete(A))},[]),O=l.useCallback(()=>{for(const A of j.current.values())URL.revokeObjectURL(A);j.current.clear()},[]);l.useEffect(()=>()=>{O()},[O]);const W=l.useCallback(A=>{let C=j.current.get(A.id);C||(C=URL.createObjectURL(A.file),j.current.set(A.id,C),setTimeout(()=>F(A.id),5*6e4)),window.open(C,"_blank","noopener,noreferrer")},[F]),U=l.useCallback(async A=>{const C=Array.from(A),K=[];for(const P of C){if(v.length+K.length>=o){alert(E.maxFilesError(o));break}if(!Wt(P,a)){alert(E.fileSizeError(P.name,a));continue}const V=Yt(P,r);if(!V.isValid){V.reason==="blocked"?alert(E.blockedFileTypeError(P.name)):alert(E.fileTypeError(P.name));continue}if(h){const pe=h(P);if(pe){alert(pe);continue}}const Z=await Ut(P),G=x?"uploading":"success",ie=x?0:100;K.push({id:Math.random().toString(36).substr(2,9),file:P,preview:Z,progress:ie,status:G})}if(K.length>0){const P=t?[...v,...K]:K;if(D(P),m?.(P.map(V=>V.file)),x){z(!0);try{const V=P.map((Z,G)=>({...Z,progress:Math.min(100,(G+1)/P.length*100)}));D(V),await x(V),D(Z=>Z.map(G=>({...G,status:"success",progress:100})))}catch(V){D(Z=>Z.map(G=>({...G,status:"error",error:V instanceof Error?V.message:E.uploadFailed})))}finally{z(!1)}}}},[v,o,h,E,r,a,t,m,x]),q=l.useCallback(A=>{A.preventDefault(),c||N(!0)},[c]),te=l.useCallback(A=>{A.preventDefault(),N(!1)},[]),re=l.useCallback(A=>{if(A.preventDefault(),N(!1),c)return;const C=A.dataTransfer.files;C.length>0&&U(C)},[c,U]),ae=l.useCallback(A=>{const C=A.target.files;C&&C.length>0&&(U(C),y.current&&(y.current.value=""))},[U]),R=l.useCallback(A=>{F(A),D(C=>{const K=C.filter(P=>P.id!==A);return m?.(K.map(P=>P.file)),K})},[m,F]),oe=l.useCallback(()=>{O(),D([]),m?.([])},[m,O]),X=l.useCallback(()=>{y.current?.click()},[]);return e.jsxs("div",{className:n("w-full",w),children:[s&&e.jsxs("label",{className:n("mb-2 block text-base font-medium",d?"text-red-600":"text-slate-700"),children:[s,i&&e.jsx("span",{className:"ml-1 text-extra-small text-red-600",children:"*"})]}),e.jsxs("div",{className:n("group relative flex min-h-[180px] w-full cursor-pointer items-center justify-center rounded-2xl border border-dashed p-6 text-center transition-all duration-300",f.dropBorder,f.dropBg,L&&f.dropActive,c&&"cursor-not-allowed opacity-60",d&&"border-red-600 bg-red-50/30"),onDragOver:q,onDragLeave:te,onDrop:re,onClick:X,children:[e.jsx("input",{ref:y,type:"file",multiple:t,accept:u,onChange:ae,disabled:c,className:"hidden"}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:n("flex h-12 w-12 items-center justify-center rounded-xl",f.iconWrap),children:e.jsx(_.Upload,{size:20})}),e.jsx("p",{className:n("text-base font-medium",f.title),children:E.dropHereTitle}),e.jsx("p",{className:n("text-sm font-normal",f.hint),children:E.fileRequirements(t,o,a,b)})]})]}),v.length>0&&e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm font-medium text-slate-700",children:[E.selectedFiles," (",v.length,")"]}),v.length>1&&e.jsx("button",{type:"button",onClick:oe,disabled:c||p,className:"text-sm font-medium text-red-600 disabled:opacity-50",children:E.clearAll})]}),e.jsx("div",{className:"space-y-3",children:v.map(A=>{const K=!!A.preview?f.fileIconImg:f.fileIconDoc,P=c||p||A.status==="uploading";return e.jsxs("div",{className:n("flex items-center justify-between rounded-2xl border border-slate-200 p-4",A.status==="error"&&"border-red-600"),children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-4",children:[e.jsx("div",{className:n("flex h-14 w-14 items-center justify-center rounded-2xl",K),children:S&&A.preview?e.jsx("img",{src:A.preview,alt:A.file.name,className:"h-10 w-10 rounded-xl object-cover"}):T?Pt(A.file):e.jsx(_.File,{className:"h-6 w-6 text-slate-500"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate text-lg font-semibold text-primary",children:A.file.name}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-sm text-slate-500",children:[e.jsx("span",{children:Bt(A.file.size)}),A.status==="uploading"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsxs("span",{className:"inline-flex items-center",children:[e.jsx(_.Star2,{className:"mr-1 h-5 w-5 animate-spin"}),E.uploading]})]}),A.status==="success"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsx("span",{className:"font-normal text-green-600",children:E.success})]})]}),A.status==="uploading"&&e.jsx("div",{className:n("mt-2 h-1.5 w-full rounded-full bg-slate-200"),children:e.jsx("div",{className:n("h-1.5 rounded-full transition-all duration-300",f.progressFill),style:{width:`${A.progress}%`}})}),A.status==="error"&&A.error&&e.jsx("p",{className:"mt-2 text-sm font-normal text-red-600",children:A.error})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:V=>{V.stopPropagation(),P||W(A)},disabled:P,className:"rounded-xl p-2 hover:bg-slate-100 hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:E.preview,children:e.jsx(_.Eye,{size:20,className:"text-slate-400"})}),e.jsx("button",{type:"button",onClick:V=>{V.stopPropagation(),R(A.id)},disabled:c||p,className:"rounded-xl p-2 text-slate-base hover:bg-slate-100 disabled:opacity-50 hover:cursor-pointer",title:E.remove,children:e.jsx(ue,{className:"h-6 w-6"})})]})]},A.id)})})]}),d&&e.jsx("p",{className:"mt-2 text-sm font-normal text-red-600",children:d})]})};function Zt({show:t,setShow:r,title:a,description:o,Header:c,Body:s,footer:i,handleClickOutside:d=!1,showCloseIcon:w=!0,showHeader:m=!0,overlayClassName:x,containerClassName:S,bodyClassName:I,footerClassName:T}){const M=l.useRef(null),{handleEscape:h}=Ee(()=>r(!1));l.useEffect(()=>(t?(document.addEventListener("keydown",h),document.body.style.overflow="hidden"):document.body.style.overflow="unset",()=>document.removeEventListener("keydown",h)),[t,h]);const{handleClick:v}=me(M,()=>{d&&r(!1)});l.useEffect(()=>(t&&d&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)),[t,v,d]);const L=m&&!!(c||a||o);return e.jsx("div",{className:n("bg-black/40 fixed inset-0 z-50 flex justify-center transition-all duration-500 ease-in-out","items-end sm:items-center",t?"opacity-100":"pointer-events-none opacity-0",x),children:e.jsxs("div",{ref:M,className:n("relative bg-white w-full","sm:max-w-[720px]","rounded-t-2xl sm:rounded-2xl","transition-all duration-500 ease-out",t?"scale-100 opacity-100":"scale-95 opacity-0",S),children:[L&&e.jsxs("div",{className:"border-b border-slate-200 flex items-start justify-between p-4 sm:p-6 mb-4",children:[c||e.jsxs("div",{className:"block",children:[e.jsx("h2",{className:"text-h3 font-semibold text-black",children:a}),o&&e.jsx("p",{className:"text-base text-slate-base font-normal mt-2",children:o})]}),w&&e.jsx("button",{onClick:()=>r(!1),className:"bg-slate-100 rounded-xl w-12 h-12 hover:cursor-pointer text-black transition flex items-center justify-center group","aria-label":"Close modal",type:"button",children:e.jsx(ue,{className:"h-6 w-6 transition-transform duration-300 group-hover:rotate-180"})})]}),s&&e.jsx("div",{className:n("scrollbar-thin scrollbar-thumb-slate-200 overflow-y-auto","max-h-[70dvh] sm:max-h-96","px-4 sm:px-6 mb-2",I),children:s}),i&&e.jsx("div",{className:n("flex items-center justify-end gap-3 border-t border-slate-200","p-4 sm:p-6",T),children:i})]})})}function qt(t,r,a){const o=[],c=r*2+5;if(a<=c)return Array.from({length:a},(d,w)=>w+1);const s=Math.max(t-r,2),i=Math.min(t+r,a-1);o.push(1),s>2&&o.push("...");for(let d=s;d<=i;d+=1)o.push(d);return i<a-1&&o.push("..."),a>1&&o.push(a),o}const Xt={medium:"h-9 text-sm",large:"h-10 text-base"},Kt={yellow:{active:"bg-yellow-500 text-white border-yellow-500",inactive:"bg-slate-100 border-slate-200 text-black hover:bg-slate-200",disabled:"text-slate-400 border-slate-200",arrow:"text-black"},blue:{active:"bg-blue-600 text-white border-blue-600",inactive:"bg-slate-100 border-slate-200 text-black hover:bg-slate-200",disabled:"text-slate-400 border-slate-300",arrow:"text-black"}};function Gt({totalItems:t,currentPage:r,perPage:a,onPageChange:o,onPerPageChange:c,siblingCount:s=1,perPageOptions:i=[10,30,50,100],showPerPage:d=!0,variant:w="yellow",size:m="large",paginationClassName:x}){const S=Number.isFinite(t)&&t>0?t:0,I=Number.isFinite(a)&&a>0?a:10,T=Math.max(1,Number.isFinite(r)?r:1),M=Math.ceil(S/I),h=l.useMemo(()=>qt(T,s,M),[T,s,M]),v=Xt[m],D=Kt[w??"yellow"];return M<=1||S===0?null:e.jsxs("div",{className:n("flex items-center justify-between gap-4 w-full",x),children:[d&&c&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"whitespace-nowrap text-extra-small text-slate-base font-normal",children:"Строк на странице:"}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{value:I,onChange:L=>c(Number(L.target.value)),className:n("appearance-none bg-white border border-slate-200 rounded-lg pl-3 pr-8 text-base text-black font-medium focus:outline-none cursor-pointer",m==="large"?"h-10":"h-9"),"aria-label":"Количество строк на странице",children:i.map(L=>e.jsx("option",{value:L,children:L},L))}),e.jsx(_.AltArrowDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400",weight:"Linear",size:20})]})]}),e.jsxs("nav",{"aria-label":"Пагинация",className:"flex items-center gap-1 shrink-0 whitespace-nowrap",children:[e.jsx("button",{onClick:()=>o(T-1),disabled:T===1,"aria-label":"Предыдущая страница",className:n("flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",v,T===1?n("cursor-not-allowed opacity-50",D.disabled):n("hover:cursor-pointer",D.arrow,"border-slate-200")),children:e.jsx(_.AltArrowLeft,{weight:"Linear",size:20})}),e.jsx("div",{className:"flex items-center gap-1",children:h.map((L,N)=>{if(L==="...")return e.jsx("span",{className:n("flex items-center justify-center text-black font-medium min-w-10",v),"aria-hidden":"true",children:e.jsx(_.MenuDots,{weight:"Bold",size:20})},N);const p=L===T;return e.jsx("button",{onClick:()=>o(L),"aria-label":`Страница ${L}${p?", текущая":""}`,"aria-current":p?"page":void 0,className:n("flex items-center justify-center rounded-lg border font-medium transition-all hover:cursor-pointer min-w-10 px-2",v,p?D.active:D.inactive),children:L},N)})}),e.jsx("button",{onClick:()=>o(T+1),disabled:T===M,"aria-label":"Следующая страница",className:n("flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",v,T===M?n("cursor-not-allowed opacity-50",D.disabled):n("hover:cursor-pointer",D.arrow,"border-slate-200")),children:e.jsx(_.AltArrowRight,{size:20,weight:"Linear"})})]})]})}function Ie({className:t,variant:r="default",width:a="100%",height:o="1rem"}){return e.jsx("div",{className:n("relative overflow-hidden bg-slate-200","rounded-lg",r==="circle"&&"rounded-full",r==="rounded"&&"rounded-md",t),style:{width:typeof a=="number"?`${a}px`:a,height:typeof o=="number"?`${o}px`:o},children:e.jsx("div",{className:"shimmer-mask absolute inset-0"})})}const Jt={top:"flex-col",bottom:"flex-col-reverse",left:"flex-row",right:"flex-row-reverse"},Qt={top:"flex-row",bottom:"flex-row",left:"flex-col",right:"flex-col"},Rt={top:"mt-4",bottom:"mb-4",left:"ml-4",right:"mr-4"};function er({tabs:t,defaultTab:r,position:a="top",className:o,tabListClassName:c,contentClassName:s,extra:i,onChange:d}){const[w,m]=l.useState(r||t[0]?.id),[x,S]=l.useState({}),I=l.useRef([]),T=l.useCallback(()=>{requestAnimationFrame(()=>{const h=t.findIndex(D=>D?.id===w),v=I.current[h];if(v){const{offsetLeft:D,offsetTop:L,offsetWidth:N,offsetHeight:p}=v;S({left:`${D}px`,top:`${L}px`,width:`${N}px`,height:`${p}px`,transition:"all 0.35s cubic-bezier(0.25, 1, 0.5, 1)"})}})},[w,t]);l.useEffect(()=>(T(),window.addEventListener("resize",T),"fonts"in document&&document.fonts.ready.then(T),()=>window.removeEventListener("resize",T)),[a,T]),l.useEffect(()=>{I.current=I.current.slice(0,t.length)},[t]);const M=a==="left"||a==="right";return e.jsxs("div",{className:n("flex w-full",Jt[a],o),children:[e.jsxs("div",{className:n("flex w-full gap-4",M?"flex-col items-start":"flex-row flex-wrap items-center"),children:[e.jsx("div",{className:n("flex-1",M?"w-full":"min-w-[520px]"),children:e.jsxs("div",{className:n("relative flex rounded-xl bg-slate-100 p-1",Qt[a],!M&&"w-full overflow-hidden",M?"min-w-48":"",c),children:[e.jsx("div",{className:n("absolute rounded-lg bg-white",M?"w-full":"h-full"),style:x}),t?.map((h,v)=>{const D=w===h.id;return e.jsxs("button",{ref:L=>{I.current[v]=L},onClick:()=>{h?.disabled||(m(h?.id),d?.(h?.id))},disabled:h?.disabled,className:n("relative z-10 flex items-center justify-center whitespace-nowrap px-3 py-2 text-base font-normal text-black transition-colors duration-300 hover:cursor-pointer",h?.disabled&&"cursor-not-allowed opacity-50",M?"w-full justify-start":"flex-1 min-w-0"),children:[h?.icon&&e.jsx("span",{className:n("shrink-0 transition-transform duration-200",D&&"scale-110"),children:h?.icon}),e.jsx("span",{className:"relative z-10 truncate",title:h?.label,children:h?.label})]},h?.id)})]})}),i&&e.jsx("div",{className:n("shrink-0 ml-auto",M?"w-full":"max-w-full"),children:e.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2",children:i})})]}),e.jsx("div",{className:n("w-full flex-1 overflow-hidden",Rt[a],s),children:e.jsx("div",{className:"animate-fade-in w-full",style:{animationDuration:"0.35s"},children:t?.find(h=>h.id===w)?.content},w)})]})}const tr={sm:"px-2 py-0.5",md:"px-2 py-1",lg:"px-3 py-2"},$e={sm:"w-3 h-3",md:"w-3 h-3",lg:"w-3 h-3"},rr={success:"bg-green-50 text-green-600",warning:"bg-orange-50 text-orange-600",error:"bg-red-50 text-red-600",gray:"bg-slate-200 text-slate-700",blue:"bg-blue-50 text-blue-600"};function ar({children:t,variant:r="success",size:a="lg",icon:o,iconPosition:c="left",className:s}){return e.jsxs("span",{className:n("inline-flex animate-[fadeIn_0.3s_ease-out] items-center rounded-lg text-extra-small font-medium",tr[a],rr[r],o&&"gap-[2px]",s),children:[o&&c==="left"&&e.jsx("span",{className:`flex items-center ${n($e[a])}`,children:o}),e.jsx("span",{children:t}),o&&c==="right"&&e.jsx("span",{className:`flex items-center ${n($e[a])}`,children:o})]})}const Pe=l.forwardRef(({label:t,placeholder:r,value:a="",onChange:o,required:c=!1,disabled:s=!1,error:i,className:d,rows:w=4,name:m},x)=>{const S=l.useMemo(()=>i?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600",[i]);return e.jsxs("div",{className:n("relative w-full",d),children:[t&&e.jsxs("label",{className:n("mb-2 block text-base font-medium",i?"text-red-600":"text-slate-700"),children:[t,c&&e.jsx("span",{className:"ml-1 text-red-600",children:"*"})]}),e.jsx("textarea",{ref:x,name:m,rows:w,value:a,onChange:I=>o?.(I.target.value),disabled:s,placeholder:r,className:n("w-full resize-none rounded-xl border bg-white text-base font-normal transition-all duration-300 ease-in-out outline-none","p-3 disabled:cursor-not-allowed disabled:border-slate-200 disabled:bg-slate-100 disabled:text-slate-400",S)}),i&&e.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:i})]})});Pe.displayName="MciTextarea";const or={success:e.jsx(_.CheckCircle,{weight:"Bold",className:"w-5 h-5"}),error:e.jsx(_.CloseCircle,{weight:"Bold",className:"w-5 h-5"}),warning:e.jsx(_.DangerCircle,{weight:"Bold",className:"w-5 h-5"}),info:e.jsx(_.InfoCircle,{weight:"Bold",className:"w-5 h-5"}),loading:e.jsx(_.Refresh,{weight:"Bold",className:"w-5 h-5 animate-spin"})},xe={bg:{success:"bg-green-50",error:"bg-red-50",warning:"bg-orange-50",info:"bg-blue-50",loading:"bg-slate-50"},line:{success:"bg-green-600",error:"bg-red-600",warning:"bg-orange-600",info:"bg-blue-600",loading:"bg-slate-600"},text:{success:"text-green-600",error:"text-red-600",warning:"text-orange-600",info:"text-blue-600",loading:"text-slate-600"},action:{success:"text-green-600",error:"text-red-600",warning:"text-orange-600",info:"text-blue-600",loading:"text-slate-600"}};function lr(){let t=document.getElementById("mci-toast-container");return t||(t=document.createElement("div"),t.id="mci-toast-container",t.className="fixed top-4 right-4 z-[9999] flex flex-col gap-3 pointer-events-none",document.body.appendChild(t)),t}const nr=lr();let Fe=null,sr=0;const ye=[],Be=()=>{Fe||(Fe=Qe.createRoot(nr)),Fe.render(e.jsx("div",{className:"flex flex-col gap-3",children:ye.map(({id:t,element:r})=>e.jsx("div",{className:"pointer-events-auto",children:r},t))}))};function ir({title:t,description:r,type:a="info",duration:o=3e3,action:c,onClose:s}){const[i,d]=l.useState(100);return l.useEffect(()=>{if(o===1/0){d(100);return}let w=null;const m=S=>{w||(w=S);const I=S-w,T=Math.max(0,(o-I)/o*100);d(T),T>0?requestAnimationFrame(m):s?.()},x=requestAnimationFrame(m);return()=>cancelAnimationFrame(x)},[o,s]),e.jsxs("div",{className:n("relative w-[300px] max-w-full overflow-hidden shadow-md rounded-lg","animate-in fade-in slide-in-from-top-2 duration-300",xe.bg[a]),children:[e.jsx("div",{className:n("absolute bottom-0 left-0 h-1",xe.line[a]),style:{width:`${i}%`,transition:"none"}}),e.jsx("div",{className:"p-4",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("div",{className:n("flex-shrink-0",xe.text[a]),children:or[a]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h4",{className:"text-base font-medium mb-1",children:t}),r&&e.jsx("p",{className:"text-sm text-[#82828C]",children:r}),c&&e.jsx("div",{className:"mt-3",children:e.jsx("div",{className:n("underline font-medium text-sm",xe.action[a]),children:c})})]}),e.jsx("button",{onClick:s,className:"flex-shrink-0 rounded-full transition cursor-pointer active:animate-spin",children:e.jsx(ue,{className:"w-6 h-6 text-slate-base"})})]})})]})}const be=t=>{const r=sr++,a=()=>{const c=ye.findIndex(s=>s?.id===r);c!==-1&&(ye.splice(c,1),Be())},o=e.jsx(ir,{...t,onClose:a});return ye.push({id:r,element:o}),Be(),t.duration!==1/0&&setTimeout(a,(t.duration||3e3)+300),{close:a}},cr={success:(t,r,a)=>be(typeof t=="string"?{title:t,description:r,type:"success",action:a}:{...t,type:"success"}),error:(t,r,a)=>be(typeof t=="string"?{title:t,description:r,type:"error",action:a}:{...t,type:"error"}),warning:(t,r,a)=>be(typeof t=="string"?{title:t,description:r,type:"warning",action:a}:{...t,type:"warning"}),info:(t,r,a)=>be(typeof t=="string"?{title:t,description:r,type:"info",action:a}:{...t,type:"info"}),loading:(t,r)=>be(typeof t=="string"?{title:t,description:r,type:"loading",duration:1/0}:{...t,type:"loading",duration:1/0})},dr={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},ur={top:"left-1/2 -translate-x-1/2 top-full",bottom:"left-1/2 -translate-x-1/2 bottom-full",left:"top-1/2 -translate-y-1/2 left-full",right:"top-1/2 -translate-y-1/2 right-full"};function pr({content:t,children:r,position:a="top",delay:o=200,className:c}){return e.jsxs("div",{className:"group relative inline-block",children:[r,e.jsxs("div",{className:n("absolute z-50 rounded-md bg-slate-400 px-2 py-1 text-xs whitespace-nowrap text-white shadow-md","scale-95 opacity-0 transition-all group-hover:scale-100 group-hover:opacity-100","duration-200 ease-out group-hover:delay-200",dr[a],c),style:{transitionDelay:`${o}ms`},children:[t,e.jsx("span",{className:n("absolute h-2 w-2 rotate-45 bg-slate-400",ur[a])})]})]})}const ze={blue:{active:"bg-blue-600",hover:"hover:bg-blue-600",focus:"focus:shadow-blue"},yellow:{active:"bg-yellow-500",hover:"hover:bg-yellow-500",focus:"focus:ring-2 focus:ring-yellow-200"}};function fr({checked:t=!1,onChange:r,disabled:a=!1,variant:o="yellow",label:c,supportText:s,className:i}){const d=()=>{a||r?.(!t)};return e.jsxs("div",{className:n("flex items-start gap-3 select-none",i),children:[e.jsx("button",{type:"button",disabled:a,className:n("relative h-6 w-11 rounded-xl transition-all duration-300 outline-none cursor-pointer",t?ze[o].active:"bg-slate-200",!a&&ze[o].hover,!a&&ze[o].focus,a&&"bg-slate-100 cursor-not-allowed"),onClick:d,children:e.jsx("span",{className:n("absolute top-1/2 left-0.5 h-5 w-5 -translate-y-1/2 rounded-full transition-all duration-300 bg-white",t&&"translate-x-5")})}),(c||s)&&e.jsxs("div",{className:"flex flex-col leading-tight",children:[c&&e.jsx("span",{className:n("text-base font-medium text-black"),children:c}),s&&e.jsx("span",{className:"text-sm font-normal text-slate-500",children:s})]})]})}const hr=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 177 177",fill:"none",...t},J.createElement("path",{opacity:.083334,d:"M94.5 48.5C94.5 41.8726 91.8137 36.5 88.5 36.5C85.1863 36.5 82.5 41.8726 82.5 48.5C82.5 55.1274 85.1863 60.5 88.5 60.5C91.8137 60.5 94.5 55.1274 94.5 48.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.166667,d:"M113.697 56.8591C117.011 51.1196 117.371 45.1237 114.501 43.4668C111.631 41.8099 106.618 45.1196 103.305 50.8591C99.991 56.5986 99.6311 62.5946 102.501 64.2514C105.371 65.9083 110.383 62.5986 113.697 56.8591Z",fill:"currentColor"}),J.createElement("path",{opacity:.25,d:"M126.141 73.696C131.88 70.3823 135.19 65.3696 133.533 62.4999C131.876 59.6301 125.88 59.99 120.141 63.3037C114.401 66.6174 111.092 71.6301 112.749 74.4999C114.405 77.3696 120.401 77.0097 126.141 73.696Z",fill:"currentColor"}),J.createElement("path",{opacity:.333334,d:"M128.5 94.5C135.127 94.5 140.5 91.8137 140.5 88.5C140.5 85.1863 135.127 82.5 128.5 82.5C121.873 82.5 116.5 85.1863 116.5 88.5C116.5 91.8137 121.873 94.5 128.5 94.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.416667,d:"M120.141 113.696C125.88 117.01 131.876 117.37 133.533 114.5C135.19 111.63 131.88 106.617 126.141 103.304C120.401 99.99 114.405 99.6301 112.749 102.5C111.092 105.37 114.401 110.382 120.141 113.696Z",fill:"currentColor"}),J.createElement("path",{opacity:.5,d:"M103.303 126.141C106.617 131.88 111.629 135.19 114.499 133.533C117.369 131.876 117.009 125.88 113.695 120.141C110.382 114.401 105.369 111.092 102.499 112.749C99.6294 114.405 99.9893 120.401 103.303 126.141Z",fill:"currentColor"}),J.createElement("path",{opacity:.583334,d:"M82.5 128.5C82.5 135.127 85.1863 140.5 88.5 140.5C91.8137 140.5 94.5 135.127 94.5 128.5C94.5 121.873 91.8137 116.5 88.5 116.5C85.1863 116.5 82.5 121.873 82.5 128.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.666667,d:"M63.303 120.141C59.9893 125.88 59.6294 131.876 62.4992 133.533C65.3689 135.19 70.3816 131.88 73.6953 126.141C77.009 120.401 77.3689 114.405 74.4992 112.749C71.6294 111.092 66.6167 114.401 63.303 120.141Z",fill:"currentColor"}),J.createElement("path",{opacity:.75,d:"M50.8591 103.304C45.1196 106.618 41.8099 111.63 43.4668 114.5C45.1237 117.37 51.1196 117.01 56.8591 113.696C62.5986 110.383 65.9083 105.37 64.2514 102.5C62.5946 99.6304 56.5986 99.9903 50.8591 103.304Z",fill:"currentColor"}),J.createElement("path",{opacity:.833334,d:"M48.5 82.5C41.8726 82.5 36.5 85.1863 36.5 88.5C36.5 91.8137 41.8726 94.5 48.5 94.5C55.1274 94.5 60.5 91.8137 60.5 88.5C60.5 85.1863 55.1274 82.5 48.5 82.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.916667,d:"M56.8591 63.304C51.1196 59.9903 45.1237 59.6304 43.4668 62.5001C41.8099 65.3699 45.1196 70.3826 50.8591 73.6963C56.5986 77.01 62.5946 77.3699 64.2514 74.5001C65.9083 71.6304 62.5986 66.6177 56.8591 63.304Z",fill:"currentColor"}),J.createElement("path",{d:"M73.697 50.8591C70.3833 45.1196 65.3706 41.8099 62.5008 43.4668C59.6311 45.1237 59.991 51.1196 63.3047 56.8591C66.6184 62.5986 71.6311 65.9083 74.5008 64.2514C77.3706 62.5946 77.0107 56.5986 73.697 50.8591Z",fill:"currentColor"}));function gr({className:t,size:r=150,iconClassName:a,isLoading:o=!1,isFullPage:c=!0,variant:s="yellow"}){return o?e.jsx("div",{className:n("z-[99px] flex flex-col items-center justify-center transition-all duration-300",c?"fixed inset-0 backdrop-blur-[2px]":"absolute inset-0 w-full h-full rounded-[inherit]",t),children:e.jsx(hr,{width:r,height:r,className:n("animate-spin",!a&&(s==="blue"?"text-blue-600":"text-yellow-500"),a),style:{fill:"currentColor",stroke:"currentColor"}})}):null}const br={sm:{input:"h-9 text-sm",iconPadding:"pl-8 pr-2",defaultPadding:"px-2",iconSize:"w-4 h-4",iconLeft:"left-2",labelFont:"text-sm",iconWrapper:"h-4"},md:{input:"h-10 text-sm",iconPadding:"pl-10 pr-4",defaultPadding:"px-4",iconSize:"w-4 h-4",iconLeft:"left-3",labelFont:"text-base",iconWrapper:"h-4"},base:{input:"h-12 text-base",iconPadding:"pl-11 pr-4",defaultPadding:"px-4",iconSize:"w-5 h-5",iconLeft:"left-3",labelFont:"text-base",iconWrapper:"h-5"}};function wr(t){let r=t.replace(/\D/g,"");r.startsWith("998")||(r=`998${r}`),r=r.substring(0,12);let a="+998";return r.length>3&&(a+=` (${r.substring(3,5)}`),r.length>5&&(a+=`) ${r.substring(5,8)}`),r.length>8&&(a+=` ${r.substring(8,10)}`),r.length>10&&(a+=` ${r.substring(10,12)}`),a}function mr(t){return t?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600"}function vr(t,r,a){return t?"text-slate-400":r?"text-red-600":a?"text-black":"text-slate-400"}const We=l.forwardRef(({label:t,placeholder:r="+998 (__) ___ __ __",size:a="base",error:o,disabled:c=!1,required:s=!1,value:i="",onChange:d,onFocus:w,onBlur:m,className:x,name:S,showIcon:I=!1},T)=>{const[M,h]=l.useState(!1),v=E=>{const f=E.target.value;if(f.length<5){d?.("+998");return}const u=wr(f);d?.(u)},D=()=>{h(!0),(!i||i==="")&&d?.("+998"),w?.()},L=()=>{h(!1),m?.()},N=br[a],p=I?N.iconPadding:N.defaultPadding,z=l.useMemo(()=>mr(o),[o]),y=l.useMemo(()=>vr(c,o,M),[o,M,c]);return e.jsxs("div",{className:n("w-full",x),children:[t&&e.jsxs("label",{className:n("mb-2 block font-medium transition-colors duration-200",o?"text-red-600":M?"text-blue-600":"text-slate-700",N.labelFont),children:[t,s&&e.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),e.jsxs("div",{className:"relative flex items-center",children:[I&&e.jsx("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center transition-all duration-300",N.iconLeft,y),children:e.jsx("div",{className:n("flex items-center justify-center",N.iconWrapper),children:e.jsx(_.Phone,{className:n(N.iconSize),weight:"Linear"})})}),e.jsx("input",{ref:T,name:S,type:"tel",value:i,onChange:v,onFocus:D,onBlur:L,disabled:c,placeholder:r,className:n("w-full border bg-white font-normal transition-all duration-300 outline-none",a==="base"?"rounded-xl":"rounded-lg","disabled:bg-slate-100 disabled:text-slate-400 disabled:cursor-not-allowed",N.input,p,z)})]}),o&&e.jsx("p",{className:"mt-2 animate-slide-up text-sm font-normal text-red-600",children:o})]})});We.displayName="MciPhone";function xr(t){const r=t.replace(/\s/g,"").toUpperCase();let a="";for(let o=0;o<r.length;o+=1){const c=r[o];if(a.length<2?/[A-Z]/.test(c)&&(a+=c):/[0-9]/.test(c)&&(a+=c),a.length>=9)break}return a.length>2?`${a.slice(0,2)} ${a.slice(2)}`:a}function yr(t){return t.replace(/\D/g,"").slice(0,14)}function kr(t){return t.toUpperCase().replace(/[^A-Z0-9\-\s]/g,"").replace(/\s+/g," ").slice(0,15)}function Nr(t,r){return t==="passport"?xr(r):t==="pinfl"?yr(r):kr(r)}function Cr(t,r){return r||(t==="passport"?"AA 1234567":t==="pinfl"?"12345678901234":t==="metirka"?"I-TN 1234567":"")}function Sr(t,r){return r||(t==="passport"?10:t==="pinfl"?14:t==="metirka"?15:255)}const Ye=l.forwardRef(({mode:t,onChange:r,value:a,...o},c)=>{const[s,i]=l.useState(""),d=a!==void 0?a:s,w=l.useCallback(m=>{const x=m.target.value,S=Nr(t,x);a===void 0&&i(S),m.target.value=S,r?.(S,m)},[t,r,a]);return e.jsx(ve,{ref:c,...o,value:d,onChange:w,maxLength:Sr(t,o.maxLength),placeholder:Cr(t,o.placeholder)})});Ye.displayName="MciIdentityInput";function Mr({open:t,onClose:r,columns:a,hidden:o,onToggle:c,onMove:s,onMoveByKey:i,minVisible:d=5}){const w=l.useRef(null),{handleClick:m}=me(w,r);l.useEffect(()=>{if(t)return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[t,m]);const x=l.useMemo(()=>new Set(o),[o]),S=l.useMemo(()=>{let u=0;for(const b of a)x.has(b.key)||u++;return u},[a,x]),[I,T]=l.useState(null),[M,h]=l.useState(null),[v,D]=l.useState(null),[L,N]=l.useState("before"),p=l.useCallback((u,b,j)=>{let F=j==="after"?b+1:b;return u<F&&(F-=1),F},[]),z=l.useCallback(()=>{T(null),D(null),h(null),N("before")},[]),y=l.useCallback((u,b,j)=>{T(b),D(String(j)),h(null),N("before"),u.dataTransfer.effectAllowed="move",u.dataTransfer.setData("text/plain",String(b));const F=new Image;F.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",u.dataTransfer.setDragImage(F,0,0)},[]),E=l.useCallback((u,b)=>{u.preventDefault();const j=I??Number.parseInt(u.dataTransfer.getData("text/plain")||"-1",10);if(!Number.isFinite(j)||j<0){z();return}const F=a[j],O=a[b];if(!F||!O){z();return}const W=p(j,b,L);W!==j&&(i?i(F.key,O.key,L):s(j,W)),z()},[a,p,I,L,s,i,z]),f=l.useCallback((u,b)=>{b||c(u)},[c]);return t?e.jsxs("div",{ref:w,className:n("absolute right-0 top-full z-50 mt-2 w-[320px]","rounded-2xl p-4 bg-white","border border-slate-200"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("h4",{className:"text-slate-600 text-large font-normal",children:"Settings"}),e.jsx("button",{type:"button",onClick:r,className:"rounded-lg px-2 py-1 text-slate-500 hover:bg-slate-100","aria-label":"Close",children:"✕"})]}),e.jsx("div",{className:"my-4 h-px bg-slate-100"}),e.jsxs("p",{className:"mb-3 text-xs text-slate-500",children:["Active columns: ",S,"/",a.length]}),e.jsx("div",{className:n("max-h-[275px] overflow-auto","[&::-webkit-scrollbar]:w-1.5","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-slate-200","[&::-webkit-scrollbar-thumb]:rounded-full","hover:[&::-webkit-scrollbar-thumb]:bg-slate-300"),children:a.map((u,b)=>{const j=!x.has(u.key),F=j&&S<=d,O=M===b,W=v===u.key;return e.jsxs("div",{className:"relative",children:[O&&!W&&e.jsx("div",{className:n("pointer-events-none absolute left-2 right-2 z-10 h-0.5 rounded-full bg-blue-300",L==="before"?"top-0":"bottom-0")}),e.jsxs("div",{draggable:!0,onDragStart:U=>y(U,b,u.key),onDragOver:U=>{if(I==null)return;U.preventDefault(),U.dataTransfer.dropEffect="move";const q=U.currentTarget.getBoundingClientRect(),te=U.clientY-q.top>q.height/2?"after":"before";M!==b&&h(b),L!==te&&N(te)},onDrop:U=>E(U,b),onDragEnd:z,className:n("group flex items-center py-2 px-1 gap-4","rounded-md box-border overflow-visible","transition-[background,transform] duration-150",!W&&!O&&"hover:bg-slate-50",O&&!W&&"bg-slate-50",W&&"bg-slate-50 opacity-100 scale-[0.99] cursor-grabbing"),children:[e.jsx("button",{type:"button",className:n("shrink-0 text-slate-400","cursor-grab active:cursor-grabbing","rounded-lg p-1 hover:bg-slate-100",W&&"cursor-grabbing"),"aria-label":"Drag",children:e.jsx(_.TransferVertical,{weight:"Linear",size:20})}),e.jsx("div",{className:"shrink-0",children:e.jsx(fe,{checked:j,disabled:F,onChange:()=>f(u.key,F),variant:"blue"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h4",{className:"truncate text-slate-700 text-base font-medium",title:u.title,children:u.title}),F&&e.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["Минимум ",d," колонок"]})]})]}),b!==a.length-1&&e.jsx("div",{className:"mx-2 h-px bg-slate-100"})]},u.key)})})]}):null}const Ue=t=>Array.isArray(t)&&t.every(r=>typeof r=="string"),Er=t=>{if(!t)return null;try{const r=JSON.parse(t);if(typeof r!="object"||r===null)return null;const a=r;return!Ue(a.order)||!Ue(a.hidden)?null:{order:a.order,hidden:a.hidden}}catch{return null}},se=t=>{const r=new Set,a=[];for(const o of t)r.has(o)||(r.add(o),a.push(o));return a},Ar=t=>new Set((t??[]).map(String)),Ve=(t,r)=>{const a=r?se(r.filter(o=>t.includes(o))):[];return se([...a,...t])},He=(t,r)=>{if(!r?.length)return[];const a=Ar(r);return t.filter(o=>!a.has(o))},Dr=(t,r)=>Math.max(0,Math.min(t,r)),we=(t,r,a)=>{const o=new Set(r),c=se(t.filter(i=>o.has(i))),s=Math.max(0,r.length-a);return c.slice(0,s)};function Tr(t){const{storageKey:r,columns:a,defaultVisibleKeys:o,defaultOrder:c,minVisible:s=5}=t,i=l.useMemo(()=>a.map(p=>String(p.key)),[a]),d=l.useMemo(()=>new Set(i),[i]),w=l.useMemo(()=>Dr(s,i.length),[i.length,s]),[m,x]=l.useState(()=>{const p=Ve(i,c?.map(String)??[]),z=He(i,o?.map(String)??[]);if(typeof window>"u")return{order:p,hidden:we(z,i,w)};const y=Er(window.localStorage.getItem(r)),E=se((y?.order??[]).filter(j=>d.has(j))),f=se([...E,...p,...i]),u=se((y?.hidden??[]).filter(j=>d.has(j)));return{order:f,hidden:we(y?u:z,i,w)}});l.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(r,JSON.stringify(m))}catch{}},[m,r]),l.useEffect(()=>{x(p=>{const z=se([...p.order.filter(u=>d.has(u)),...i.filter(u=>!p.order.includes(u))]),y=we(p.hidden,i,w),E=z.length===p.order.length&&z.every((u,b)=>u===p.order[b]),f=y.length===p.hidden.length&&y.every((u,b)=>u===p.hidden[b]);return E&&f?p:{order:z,hidden:y}})},[i,d,w]);const S=l.useMemo(()=>new Set(m.hidden),[m.hidden]),I=l.useMemo(()=>{const p=new Map;return m.order.forEach((z,y)=>p.set(z,y)),[...a].sort((z,y)=>{const E=p.get(String(z.key))??Number.MAX_SAFE_INTEGER,f=p.get(String(y.key))??Number.MAX_SAFE_INTEGER;return E-f})},[a,m.order]),T=l.useMemo(()=>I.filter(p=>!S.has(String(p.key))),[I,S]),M=l.useMemo(()=>m.hidden.filter(p=>d.has(p)),[m.hidden,d]),h=i.length-M.length,v=l.useCallback(p=>{const z=String(p);x(y=>{if(y.hidden.includes(z))return{...y,hidden:y.hidden.filter(b=>b!==z)};if(i.length-y.hidden.length<=w)return y;const u=we([...y.hidden,z],i,w);return{...y,hidden:u}})},[i,w]),D=l.useCallback((p,z)=>{x(y=>{const E=y.order.slice();if(p<0||z<0||p>=E.length||z>=E.length)return y;const[f]=E.splice(p,1);return E.splice(z,0,f),{...y,order:E}})},[]),L=l.useCallback((p,z,y="before")=>{const E=String(p),f=String(z);E!==f&&x(u=>{const b=u.order.slice(),j=b.indexOf(E),F=b.indexOf(f);if(j<0||F<0||j===F)return u;let O=y==="after"?F+1:F;if(j<O&&(O-=1),O===j)return u;const[W]=b.splice(j,1);return b.splice(O,0,W),{...u,order:b}})},[]),N=l.useCallback(()=>{x(()=>{const p=Ve(i,c?.map(String)??[]),z=He(i,o?.map(String)??[]);return{order:p,hidden:we(z,i,w)}})},[i,c,o,w]);return{orderedAllColumns:I,orderedColumns:T,hiddenKeys:M,visibleCount:h,toggleColumn:v,moveColumn:D,moveColumnByKey:L,reset:N}}B.MciBreadcrumb=et,B.MciButton=ot,B.MciCheck=fe,B.MciCollapse=st,B.MciDrawer=it,B.MciIdentityInput=Ye,B.MciInput=ve,B.MciLoader=gr,B.MciModal=Zt,B.MciPagination=Gt,B.MciPhone=We,B.MciPicker=Oe,B.MciSelect=_e,B.MciSkeleton=Ie,B.MciTable=At,B.MciTableColumnsPanel=Mr,B.MciTabs=er,B.MciTag=ar,B.MciTextarea=Pe,B.MciToast=cr,B.MciToggle=fr,B.MciTooltip=pr,B.MciUpload=Ht,B.useTableColumnSettings=Tr,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(P,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("@solar-icons/react"),require("clsx"),require("tailwind-merge"),require("react"),require("react-dom/client")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@solar-icons/react","clsx","tailwind-merge","react","react-dom/client"],t):(P=typeof globalThis<"u"?globalThis:P||self,t(P.MciUi={},P.React,P.SolarIcons,P.clsx,P.tailwindMerge,P.React,P.ReactDOM))})(this,(function(P,t,_,et,tt,l,rt){"use strict";var _e=document.createElement("style");_e.textContent=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@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:#fef2f2;--color-red-500:#fb2c36;--color-red-600:#e7000b;--color-red-700:#c10007;--color-red-800:#9f0712;--color-orange-50:#fff7ed;--color-orange-600:#f54a00;--color-yellow-50:#fefce8;--color-yellow-100:#fef9c3;--color-yellow-200:#fff085;--color-yellow-300:#ffdf20;--color-yellow-500:#efb100;--color-yellow-600:#d08700;--color-yellow-700:#a65f00;--color-green-50:#effdf5;--color-green-500:#00c16a;--color-green-600:#00a155;--color-blue-50:#eff6ff;--color-blue-100:#dbeafe;--color-blue-200:#bedbff;--color-blue-300:#8ec5ff;--color-blue-500:#2b7fff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-blue-800:#193cb8;--color-purple-500:oklch(62.7% .265 303.9);--color-slate-50:#f8fafc;--color-slate-100:#f1f5f9;--color-slate-200:#e2e8f0;--color-slate-300:#cad5e2;--color-slate-400:#90a1b9;--color-slate-500:#64748e;--color-slate-600:#45556c;--color-slate-700:#314158;--color-slate-800:#1d293d;--color-gray-500:oklch(55.1% .027 264.364);--color-black:#1d1f23;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:14px;--text-sm--line-height:20px;--text-base:16px;--text-base--line-height:24px;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin .3s 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);--color-slate-base:#62748e;--text-h3:32px;--text-h3--line-height:40px;--text-large:18px;--text-large--line-height:28px;--text-extra-small:12px;--text-extra-small--line-height:16px;--animate-fade-in:fadeIn .5s ease-in-out}}@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%;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:currentColor}@supports (color:color-mix(in lab,red,red)){::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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-\\[calc\\(100\\%\\+4px\\)\\]{top:calc(100% + 4px)}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-7{right:calc(var(--spacing)*7)}.right-8{right:calc(var(--spacing)*8)}.right-9{right:calc(var(--spacing)*9)}.right-10{right:calc(var(--spacing)*10)}.right-16{right:calc(var(--spacing)*16)}.right-full{right:100%}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-0\\.5{left:calc(var(--spacing)*.5)}.left-1\\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-full{left:100%}.z-10{z-index:10}.z-50{z-index:50}.z-\\[99px\\]{z-index:99px}.z-\\[100\\]{z-index:100}.z-\\[9999\\]{z-index:9999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-2{margin-inline:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.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)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-0\\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-\\[100dvh\\]{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-\\[70dvh\\]{max-height:70dvh}.max-h-\\[275px\\]{max-height:275px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[180px\\]{min-height:180px}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-\\[300px\\]{width:300px}.w-\\[320px\\]{width:320px}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-12{min-width:calc(var(--spacing)*12)}.min-w-48{min-width:calc(var(--spacing)*48)}.min-w-\\[520px\\]{min-width:520px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.origin-top{transform-origin:top}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-5{--tw-translate-x:calc(var(--spacing)*5);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-50{--tw-scale-x:50%;--tw-scale-y:50%;--tw-scale-z:50%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-\\[0\\.99\\]{scale:.99}.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-\\[fadeIn_0\\.3s_ease-out\\]{animation:.3s ease-out fadeIn}.animate-\\[slideDown_0\\.3s_ease-out\\]{animation:.3s ease-out slideDown}.animate-fade-in{animation:var(--animate-fade-in)}.animate-spin{animation:var(--animate-spin)}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.\\[appearance\\:textfield\\]{appearance:textfield}.appearance-none{appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-\\[2px\\]{gap:2px}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-y-1{row-gap:calc(var(--spacing)*1)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-200>:not(:last-child)){border-color:var(--color-slate-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-l-3xl{border-top-left-radius:var(--radius-3xl);border-bottom-left-radius:var(--radius-3xl)}.rounded-l-full{border-top-left-radius:3.40282e38px;border-bottom-left-radius:3.40282e38px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-3xl{border-top-right-radius:var(--radius-3xl);border-bottom-right-radius:var(--radius-3xl)}.rounded-r-full{border-top-right-radius:3.40282e38px;border-bottom-right-radius:3.40282e38px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-600{border-color:var(--color-blue-600)}.border-red-600{border-color:var(--color-red-600)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-black\\/40{background-color:#1d1f2366}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-50\\/40{background-color:#eff6ff66}@supports (color:color-mix(in lab,red,red)){.bg-blue-50\\/40{background-color:color-mix(in oklab,var(--color-blue-50)40%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-300{background-color:var(--color-blue-300)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-600\\/30{background-color:#155dfc4d}@supports (color:color-mix(in lab,red,red)){.bg-blue-600\\/30{background-color:color-mix(in oklab,var(--color-blue-600)30%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-600{background-color:var(--color-green-600)}.bg-orange-50{background-color:var(--color-orange-50)}.bg-orange-600{background-color:var(--color-orange-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/30{background-color:#fef2f24d}@supports (color:color-mix(in lab,red,red)){.bg-red-50\\/30{background-color:color-mix(in oklab,var(--color-red-50)30%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-50\\/40{background-color:#fefce866}@supports (color:color-mix(in lab,red,red)){.bg-yellow-50\\/40{background-color:color-mix(in oklab,var(--color-yellow-50)40%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-600{background-color:var(--color-yellow-600)}.bg-yellow-600\\/25{background-color:#d0870040}@supports (color:color-mix(in lab,red,red)){.bg-yellow-600\\/25{background-color:color-mix(in oklab,var(--color-yellow-600)25%,transparent)}}.bg-gradient-to-l{--tw-gradient-position:to left in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from:transparent;--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-blue-50{--tw-gradient-to:var(--color-blue-50);--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))}.stroke-\\[2\\.5px\\]{stroke-width:2.5px}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-0\\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-7{padding-right:calc(var(--spacing)*7)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-11{padding-right:calc(var(--spacing)*11)}.pr-12{padding-right:calc(var(--spacing)*12)}.pr-14{padding-right:calc(var(--spacing)*14)}.pr-16{padding-right:calc(var(--spacing)*16)}.pr-20{padding-right:calc(var(--spacing)*20)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-7{padding-left:calc(var(--spacing)*7)}.pl-8{padding-left:calc(var(--spacing)*8)}.pl-9{padding-left:calc(var(--spacing)*9)}.pl-10{padding-left:calc(var(--spacing)*10)}.pl-11{padding-left:calc(var(--spacing)*11)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-extra-small{font-size:var(--text-extra-small);line-height:var(--tw-leading,var(--text-extra-small--line-height))}.text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}.text-large{font-size:var(--text-large);line-height:var(--tw-leading,var(--text-large--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[11px\\]{font-size:11px}.leading-9{--tw-leading:calc(var(--spacing)*9);line-height:calc(var(--spacing)*9)}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-12{--tw-leading:calc(var(--spacing)*12);line-height:calc(var(--spacing)*12)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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)}.break-words{overflow-wrap:break-word}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#82828C\\]{color:#82828c}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-orange-600{color:var(--color-orange-600)}.text-purple-500{color:var(--color-purple-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-base{color:var(--color-slate-base)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 8px 0 var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px 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-blue-200{--tw-shadow-color:#bedbff}@supports (color:color-mix(in lab,red,red)){.shadow-blue-200{--tw-shadow-color:color-mix(in oklab,var(--color-blue-200)var(--tw-shadow-alpha),transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[background\\,transform\\]{transition-property:background,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\,visibility\\]{transition-property:transform,opacity,visibility;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:rotate-180:is(:where(.group):hover *){rotate:180deg}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\\:delay-200:is(:where(.group):hover *){transition-delay:.2s}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\\:border-blue-600:hover{border-color:var(--color-blue-600)}.hover\\:border-blue-700:hover{border-color:var(--color-blue-700)}.hover\\:border-slate-200:hover{border-color:var(--color-slate-200)}.hover\\:border-slate-400:hover{border-color:var(--color-slate-400)}.hover\\:border-yellow-300:hover{border-color:var(--color-yellow-300)}.hover\\:border-yellow-500:hover{border-color:var(--color-yellow-500)}.hover\\:border-yellow-600:hover{border-color:var(--color-yellow-600)}.hover\\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\\:bg-blue-50\\/60:hover{background-color:#eff6ff99}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-blue-50\\/60:hover{background-color:color-mix(in oklab,var(--color-blue-50)60%,transparent)}}.hover\\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:bg-yellow-50\\/60:hover{background-color:#fefce899}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-yellow-50\\/60:hover{background-color:color-mix(in oklab,var(--color-yellow-50)60%,transparent)}}.hover\\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\\:bg-yellow-500:hover{background-color:var(--color-yellow-500)}.hover\\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\\:text-black:hover{color:var(--color-black)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-blue-700:hover{color:var(--color-blue-700)}.hover\\:text-slate-400:hover{color:var(--color-slate-400)}.hover\\:text-yellow-500:hover{color:var(--color-yellow-500)}.hover\\:text-yellow-600:hover{color:var(--color-yellow-600)}}.focus\\:border-blue-600:focus{border-color:var(--color-blue-600)}.focus\\:border-red-600:focus{border-color:var(--color-red-600)}.focus\\:bg-transparent:focus{background-color:#0000}.focus\\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\[rgba\\(21\\,93\\,252\\,0\\.25\\)\\]:focus{--tw-ring-color:#155dfc40}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:ring-yellow-200:focus{--tw-ring-color:var(--color-yellow-200)}.focus\\:ring-yellow-300:focus{--tw-ring-color:var(--color-yellow-300)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:animate-spin:active{animation:var(--animate-spin)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:border:active{border-style:var(--tw-border-style);border-width:1px}.active\\:border-blue-600:active{border-color:var(--color-blue-600)}.active\\:border-blue-800:active{border-color:var(--color-blue-800)}.active\\:border-slate-200:active{border-color:var(--color-slate-200)}.active\\:border-yellow-500:active{border-color:var(--color-yellow-500)}.active\\:border-yellow-700:active{border-color:var(--color-yellow-700)}.active\\:bg-blue-200:active{background-color:var(--color-blue-200)}.active\\:bg-blue-800:active{background-color:var(--color-blue-800)}.active\\:bg-red-800:active{background-color:var(--color-red-800)}.active\\:bg-slate-200:active{background-color:var(--color-slate-200)}.active\\:bg-slate-300:active{background-color:var(--color-slate-300)}.active\\:bg-transparent:active{background-color:#0000}.active\\:bg-yellow-100:active{background-color:var(--color-yellow-100)}.active\\:bg-yellow-700:active{background-color:var(--color-yellow-700)}.active\\:text-blue-800:active{color:var(--color-blue-800)}.active\\:text-slate-400:active{color:var(--color-slate-400)}.active\\:text-yellow-700:active{color:var(--color-yellow-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-slate-200:disabled{border-color:var(--color-slate-200)}.disabled\\:bg-slate-100:disabled{background-color:var(--color-slate-100)}.disabled\\:text-slate-400:disabled{color:var(--color-slate-400)}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:top-6{top:calc(var(--spacing)*6)}.sm\\:right-6{right:calc(var(--spacing)*6)}.sm\\:right-auto{right:auto}.sm\\:bottom-6{bottom:calc(var(--spacing)*6)}.sm\\:left-6{left:calc(var(--spacing)*6)}.sm\\:left-auto{left:auto}.sm\\:h-6{height:calc(var(--spacing)*6)}.sm\\:h-12{height:calc(var(--spacing)*12)}.sm\\:h-auto{height:auto}.sm\\:max-h-96{max-height:calc(var(--spacing)*96)}.sm\\:w-6{width:calc(var(--spacing)*6)}.sm\\:w-12{width:calc(var(--spacing)*12)}.sm\\:w-\\[var\\(--drawer-w\\)\\]{width:var(--drawer-w)}.sm\\:max-w-\\[720px\\]{max-width:720px}.sm\\:items-center{align-items:center}.sm\\:rounded-2xl{border-radius:var(--radius-2xl)}.sm\\:p-6{padding:calc(var(--spacing)*6)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\\:pb-0{padding-bottom:calc(var(--spacing)*0)}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:text-h3{font-size:var(--text-h3);line-height:var(--tw-leading,var(--text-h3--line-height))}}@media (min-width:48rem){.md\\:block{display:block}.md\\:flex-row{flex-direction:row}}.\\[\\&\\:\\:-webkit-inner-spin-button\\]\\:appearance-none::-webkit-inner-spin-button{appearance:none}.\\[\\&\\:\\:-webkit-outer-spin-button\\]\\:appearance-none::-webkit-outer-spin-button{appearance:none}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:h-1::-webkit-scrollbar{height:calc(var(--spacing)*1)}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1\\.5::-webkit-scrollbar{width:calc(var(--spacing)*1.5)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e38px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-slate-200::-webkit-scrollbar-thumb{background-color:var(--color-slate-200)}@media (hover:hover){.hover\\:\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-slate-300:hover::-webkit-scrollbar-thumb{background-color:var(--color-slate-300)}}.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:bg-transparent::-webkit-scrollbar-track{background-color:#0000}.\\[\\&\\>\\*\\]\\:w-fit>*{width:fit-content}.\\[\\&\\>\\*\\]\\:shrink-0>*{flex-shrink:0}.\\[\\&\\>\\*\\]\\:whitespace-nowrap>*{white-space:nowrap}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.shadow-red,.focus\\:shadow-red:focus{box-shadow:0 0 0 2px #e7000b40}.focus\\:shadow-blue:focus{box-shadow:0 0 0 2px #155dfc40}.focus\\:shadow-slate:focus{box-shadow:0 0 0 2px #0f172a40}.clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}ul,ol{list-style:none}input,textarea,button,select{outline:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes smooth-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}.shimmer-mask{will-change:transform;background:linear-gradient(90deg,#0000,#ffffff59,#0000);animation:1.8s ease-in-out infinite smooth-shimmer}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value: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-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
2
+ /*$vite$:1*/`,document.head.appendChild(_e);function at(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const J=at(l);function n(...e){return tt.twMerge(et.clsx(e))}function Ee(e){return{handleEscape:a=>{a.key==="Escape"&&e()}}}function me(e,r){return{handleClick:o=>{e.current&&!e.current.contains(o.target)&&r()}}}function ot({items:e,variant:r="blue",className:a}){const o=r==="blue",c=o?"hover:text-blue-600":"hover:text-yellow-500",s=o?"text-blue-600":"text-yellow-500";return t.jsx("nav",{className:n("flex items-center",a),"aria-label":"Breadcrumb",children:e.map((i,d)=>{const g=d===e.length-1;return t.jsxs("div",{className:"flex items-center",children:[g?t.jsxs("span",{className:n("flex items-center gap-x-2 font-medium",s),children:[i.icon,t.jsx("span",{children:i.label})]}):t.jsxs("a",{href:i.href??"#",onClick:b=>{i.onClick&&(b.preventDefault(),i.onClick())},className:n("flex items-center gap-x-2 transition-all text-sm font-normal text-slate-500",c),children:[i.icon,t.jsx("span",{children:i.label})]}),!g&&t.jsx("span",{className:"mx-2 flex items-center",children:t.jsx(_.AltArrowRight,{weight:"Linear",size:20,className:"text-slate-500"})})]},d)})})}const lt={sm:"h-9 px-2 text-sm gap-1.5 rounded-lg leading-9 min-w-9",md:"h-10 px-2 text-base gap-2 rounded-lg leading-10 min-w-10",base:"h-12 px-4 text-base gap-2 rounded-xl leading-12 min-w-12"},nt={blue:{primary:"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 focus:ring-2 focus:ring-[rgba(21,93,252,0.25)]",secondary:"bg-blue-100 text-blue-600 hover:bg-blue-200 active:bg-blue-200 active:border active:border-blue-600 focus:ring-2 focus:ring-[rgba(21,93,252,0.25)]",outline:"border border-blue-600 text-blue-600 hover:border-blue-700 hover:text-blue-700 active:border-blue-800 active:text-blue-800 focus:ring-2 focus:ring-blue-200"},yellow:{primary:"bg-yellow-500 text-white hover:bg-yellow-600 active:bg-yellow-700 focus:ring-2 focus:ring-yellow-300",secondary:"bg-yellow-50 text-yellow-500 hover:bg-yellow-100 active:bg-yellow-100 active:border active:border-yellow-500 focus:ring-2 focus:ring-yellow-200",outline:"border border-yellow-500 text-yellow-500 hover:border-yellow-600 hover:text-yellow-600 active:border-yellow-700 active:text-yellow-700 focus:ring-2 focus:ring-yellow-200"}},st={danger:"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 focus:ring-2 focus:shadow-red",tertiary:"bg-slate-100 text-black hover:bg-slate-200 active:bg-slate-300 focus:ring-2 focus:shadow-slate"};function it({children:e,text:r,icon:a,iconPosition:o="left",size:c="base",variant:s="primary",color:i="yellow",loading:d=!1,disabled:g=!1,onClick:b,className:x,type:S="button"}){const I=e??r,T=s==="primary"||s==="secondary"||s==="outline"?nt[i][s]:st[s],M=g||d,h=M?s==="outline"?"border-slate-200 bg-white text-slate-400 cursor-not-allowed hover:bg-transparent hover:border-slate-200 hover:text-slate-400 active:border-slate-200 active:text-slate-400 active:bg-transparent focus:bg-transparent focus:ring-0":"bg-slate-200 text-slate-400 cursor-not-allowed hover:bg-slate-200 active:bg-slate-200 focus:ring-0":"";return t.jsxs("button",{type:S,onClick:b,disabled:M,className:n("inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap text-center font-medium transition-all duration-200 cursor-pointer",lt[c],T,!M&&T,h,x),children:[a&&o==="left"&&!d&&t.jsx("span",{className:"flex items-center",children:a}),I&&t.jsx("span",{className:"whitespace-nowrap",children:I}),a&&o==="right"&&!d&&t.jsx("span",{className:"flex items-center",children:a}),d&&t.jsx(_.Star2,{weight:"Linear",size:20,className:"animate-spin"})]})}const ct=e=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:8,viewBox:"0 0 11 8",fill:"none",...e},J.createElement("path",{d:"M0.625 3.76944L3.76944 6.91389L10.0694 0.625",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),dt={blue:{border:"border-blue-600",bg:"bg-blue-600",hover:"hover:border-blue-600 hover:bg-blue-100",focus:"focus:shadow-blue"},yellow:{border:"border-yellow-500",bg:"bg-yellow-500",hover:"hover:border-yellow-500 hover:bg-yello-100",focus:"focus:ring-2 focus:ring-yellow-300"}},fe=l.memo(function({type:r="checkbox",label:a,supportText:o,checked:c,onChange:s,error:i,disabled:d=!1,required:g=!1,className:b,variant:x="yellow",name:S,value:I}){const[T,M]=l.useState(!1),h=r==="radio",v=l.useMemo(()=>c??T,[c,T]),D=l.useCallback(p=>{d||(c===void 0&&M(p.target.checked),s?.(p))},[c,s,d]),L=l.useMemo(()=>{if(d){const y="border-slate-200 bg-slate-100";return h?{container:y,dot:v?"bg-slate-300":"bg-transparent",check:"text-slate-400"}:{container:y,dot:"",check:v?"text-slate-400":"text-transparent"}}const p=dt[x];if(h){const y=n("border transition-all duration-200",v?p.border:"border-slate-400",!v&&p.hover,p.focus,v&&""),E=n("transition-all duration-200 rounded-full",v?p.bg:"bg-transparent");return{container:y,dot:E,check:""}}return{container:n("border transition-all duration-200",v?n(p.bg,p.border):"border-slate-400",!v&&p.hover,p.focus),dot:"",check:v?"text-white":"text-transparent"}},[h,v,d,x]),N=l.useMemo(()=>!a&&!o?null:t.jsxs("div",{className:"flex flex-col",children:[a&&t.jsxs("span",{className:n("text-base font-medium text-slate-700",i&&"text-red-600",d&&"text-slate-400"),children:[a,g&&t.jsx("span",{className:"text-extra-small text-red-600 ml-1",children:"*"})]}),o&&t.jsx("span",{className:n("text-slate-500 text-base font-normal",d&&"text-slate-400"),children:o})]}),[a,o,i,d,g]);return t.jsxs("div",{className:n("flex items-start",b),children:[t.jsxs("label",{className:n("flex items-start gap-2 select-none",d?"cursor-not-allowed":"cursor-pointer"),children:[t.jsx("input",{type:r,checked:v,onChange:D,disabled:d,required:g,className:"sr-only","aria-invalid":!!i,"aria-describedby":i?`${S}-error`:void 0,name:S,value:I}),t.jsx("div",{className:n("relative flex items-center justify-center",h?"w-5 h-5 rounded-full":"w-5 h-5 rounded",L.container),children:h?t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:t.jsx("span",{className:n("w-3 h-3 rounded-full transition-all duration-200",L.dot,v?"opacity-100 scale-100":"opacity-0 scale-50")})}):t.jsx(ct,{className:n("w-4 h-4 stroke-[2.5px] transition-opacity duration-200",L.check,v?"opacity-100":"opacity-0")})}),N]}),i&&t.jsx("p",{id:`${S}-error`,className:"mt-1 text-extra-small text-red-600",children:i})]})});fe.displayName="MciCheck";function ut({title:e,children:r,defaultOpen:a=!1,icon:o,className:c,contentClassName:s}){const[i,d]=l.useState(a),[g,b]=l.useState(0),x=l.useRef(null);return l.useEffect(()=>{x.current&&b(i?x.current.scrollHeight:0)},[i]),t.jsxs("div",{className:n("overflow-hidden rounded-xl border border-slate-200",c),children:[t.jsxs("button",{onClick:()=>d(!i),className:n("flex w-full items-center justify-between p-5 transition-all duration-300 hover:cursor-pointer",i?"border-b border-slate-200":"border-b border-transparent"),children:[t.jsxs("div",{className:"flex items-center gap-2",children:[o&&t.jsx("span",{className:"shrink-0",children:o}),t.jsx("div",{className:n("text-base font-medium text-black"),children:e})]}),t.jsx(_.AltArrowDown,{weight:"Linear",size:20,className:n("shrink-0 transition-transform duration-300 text-slate-400",i&&"rotate-180")})]}),t.jsx("div",{className:n("overflow-hidden transition-all duration-300 ease-out"),style:{height:`${g}px`},children:t.jsx("div",{ref:x,className:n("p-5",s),children:r})})]})}const pt=e=>e.type.displayName,$e=(e,r,a)=>l.Children.toArray(e).find(o=>l.isValidElement(o)&&(pt(o)===r||o.type===a))??null;function Ae({children:e,className:r}){return t.jsx("div",{className:n("text-base font-medium text-black",r),children:e})}Ae.displayName="AccordionTitle";function De({children:e,className:r}){return t.jsx("div",{className:n("p-5 text-base",r),children:e})}De.displayName="AccordionContent";function Te({children:e,defaultValue:r=!1,icon:a,className:o}){const[c,s]=l.useState(r),i=l.useRef(null),d=l.useId(),g=()=>s(b=>!b);return t.jsxs("div",{className:n("overflow-hidden rounded-xl border border-slate-200",o),children:[t.jsxs("button",{type:"button",onClick:g,"aria-expanded":c,"aria-controls":d,className:n("flex w-full items-center justify-between gap-2 p-5 transition-all duration-300 hover:cursor-pointer",c?"border-b border-slate-200":"border-b border-transparent"),children:[t.jsxs("div",{className:"flex w-full items-center gap-2",children:[a&&t.jsx("span",{className:"shrink-0",children:a}),$e(e,"AccordionTitle",Ae)]}),t.jsx(_.AltArrowDown,{weight:"Linear",size:20,className:n("shrink-0 text-slate-400 transition-transform duration-300",c&&"rotate-180")})]}),t.jsx("div",{id:d,role:"region","aria-labelledby":d,className:n("grid transition-[grid-template-rows] duration-300 ease-out",c?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:t.jsx("div",{ref:i,className:"min-h-0 overflow-hidden",children:$e(e,"AccordionContent",De)})})]})}Te.Title=Ae,Te.Content=De;const ue=e=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e},J.createElement("path",{d:"M7.75739 7.75735L16.2427 16.2426",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M7.75733 16.2426L16.2426 7.75735",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));function ft({isOpen:e,onClose:r,position:a="right",children:o,footer:c,title:s,description:i,showCloseButton:d=!0,drawerClassName:g,contentClassName:b,closeOnOverlayClick:x=!0,closeOnEscape:S=!0,width:I=572}){const T=l.useRef(null),M=l.useRef(null),h=l.useCallback(()=>r(),[r]);l.useEffect(()=>{e?(M.current=document.activeElement,T.current?.focus()):M.current?.focus()},[e]),l.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[e]);const v=l.useMemo(()=>({"--drawer-w":typeof I=="number"?`${I}px`:I,transform:e?"translateX(0)":a==="right"?"translateX(calc(100% + 48px))":"translateX(calc(-100% - 48px))"}),[e,I,a]),D=!!(s||i||d),L=a==="right"?"top-0 bottom-0 right-0 left-3 rounded-l-3xl rounded-r-none":"top-0 bottom-0 left-0 right-3 rounded-r-3xl rounded-l-none",N=a==="right"?"sm:top-6 sm:bottom-6 sm:right-6 sm:left-auto":"sm:top-6 sm:bottom-6 sm:left-6 sm:right-auto";return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:n("fixed inset-0 z-50 bg-black/40 transition-opacity duration-300",e?"opacity-100 visible cursor-pointer":"opacity-0 invisible pointer-events-none"),onClick:x?h:void 0,"aria-hidden":"true"}),t.jsxs("div",{ref:T,tabIndex:-1,style:v,className:n("fixed z-50 flex flex-col bg-white outline-none min-h-0","transition-[transform,opacity,visibility] duration-300 ease-in-out",e?"opacity-100 visible pointer-events-auto shadow-2xl":"opacity-0 invisible pointer-events-none shadow-none",L,"h-[100dvh]","pb-[env(safe-area-inset-bottom)]",N,"sm:h-auto sm:rounded-2xl sm:pb-0","sm:w-[var(--drawer-w)]",g),role:"dialog","aria-modal":"true","aria-hidden":!e,"aria-labelledby":s?"drawer-title":void 0,children:[D&&t.jsxs("div",{className:"flex items-start justify-between border-b border-slate-200 shrink-0 px-4 py-4 sm:p-6",children:[(s||i)&&t.jsxs("div",{className:"block pr-3",children:[s&&t.jsx("h2",{id:"drawer-title",className:"font-semibold text-black text-xl leading-tight sm:text-h3",children:s}),i&&t.jsx("p",{className:"text-sm sm:text-base text-slate-base font-normal mt-2",children:i})]}),d&&t.jsx("button",{type:"button",onClick:h,className:"bg-slate-100 rounded-xl w-11 h-11 sm:w-12 sm:h-12 hover:cursor-pointer text-black transition flex items-center justify-center group active:scale-95",children:t.jsx(ue,{className:"h-5 w-5 sm:h-6 sm:w-6 transition-transform duration-300 group-hover:rotate-180"})})]}),t.jsx("div",{className:n("flex-1 min-h-0 overflow-y-auto scrollbar-thin scrollbar-thumb-slate-200 px-4 py-4 sm:p-6",b),children:o}),c&&t.jsx("div",{className:"shrink-0 flex items-center justify-end border-t border-slate-200 px-4 py-4 sm:p-6 gap-3 [&>*]:w-fit [&>*]:shrink-0 [&>*]:whitespace-nowrap",children:c})]})]})}const Ie={sm:{input:"h-9 text-sm",icon:"w-4 h-4",leftIcon:"left-2",rightIcon:"right-2",labelFont:"text-sm",iconWrapper:"h-4"},md:{input:"h-10 text-sm",icon:"w-4 h-4",leftIcon:"left-2",rightIcon:"right-2",labelFont:"text-base",iconWrapper:"h-4"},base:{input:"h-12 text-base",icon:"w-5 h-5",leftIcon:"left-3",rightIcon:"right-3",labelFont:"text-base",iconWrapper:"h-5"}};function ht(e,r){const a=o=>o==="sm"?e&&r?"pl-7 pr-7":e?"pl-7 pr-2":r?"pl-2 pr-7":"px-2":o==="md"?e&&r?"pl-8 pr-8":e?"pl-8 pr-2":r?"pl-2 pr-8":"px-4":e&&r?"pl-9 pr-9":e?"pl-9 pr-3":r?"pl-3 pr-9":"px-4";return{sm:{...Ie.sm,padding:a("sm")},md:{...Ie.md,padding:a("md")},base:{...Ie.base,padding:a("base")}}}function gt(e){return e?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600"}function bt(e,r,a){return e?"text-slate-400":r?"text-red-600":a?"text-black":"text-slate-400"}function wt(e,r){return r<=0?"":e==="sm"?r>=3?"pr-14":r===2?"pr-11":"pr-7":e==="md"?r>=3?"pr-16":r===2?"pr-12":"pr-8":r>=3?"pr-20":r===2?"pr-16":"pr-10"}const ve=l.forwardRef(({label:e,placeholder:r,type:a="text",icon:o,rightIcon:c,iconPosition:s="left",size:i="base",error:d,disabled:g=!1,required:b=!1,value:x,onChange:S,onFocus:I,onBlur:T,className:M,name:h,maxLength:v=250,onClear:D,showClearButton:L=!1,step:N,autoComplete:p="off"},z)=>{const[y,E]=l.useState(!1),[f,u]=l.useState(""),[m,j]=l.useState(!1),F=x??f,O=a==="password",W=L&&!!F&&!g,U=o&&s==="left",q=o&&s==="right"||c||O,te=q||W,re=l.useMemo(()=>{let Z=0;return W&&(Z+=1),O?(Z+=1,c&&(Z+=1),Z):(c&&(Z+=1),o&&s==="right"&&(Z+=1),Z)},[W,O,c,o,s]),ae=()=>{E(!0),I?.()},R=()=>{E(!1),T?.()},oe=Z=>{let G=Z.target.value;a==="number"&&v&&G.length>v&&(G=G.slice(0,v),Z.target.value=G),x===void 0&&u(G),S?.(Z)},X=()=>j(Z=>!Z),A=()=>{x===void 0&&u(""),D?.()},C=l.useMemo(()=>ht(!!U,!!q),[U,q]),K=l.useMemo(()=>gt(d),[d]),B=l.useMemo(()=>bt(g,d,y),[d,y,g]),V=l.useMemo(()=>wt(i,re),[i,re]);return t.jsxs("div",{className:n("w-full",M),children:[e&&t.jsxs("label",{htmlFor:h,className:n("mb-2 block text-base font-medium",d?"text-red-600":"text-slate-700",C[i].labelFont),children:[e,b&&t.jsx("span",{className:"text-extra-small text-red-600 ml-1",children:"*"})]}),t.jsxs("div",{className:"relative flex items-center",children:[t.jsx("input",{ref:z,name:h,type:O&&m?"text":a,value:F,onChange:oe,onFocus:ae,onBlur:R,disabled:g,required:b,autoComplete:p,placeholder:r,step:N,className:n("w-full border bg-white font-normal transition-all duration-300 ease-in-out outline-none",i==="base"?"rounded-xl":"rounded-lg","disabled:cursor-not-allowed disabled:border-slate-200 disabled:bg-slate-100 disabled:text-slate-400","[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",C[i].input,C[i].padding,V,K),maxLength:v}),U&&t.jsx("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center","transition-all duration-300",C[i].leftIcon,B),children:t.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:t.jsx("span",{className:n("flex items-center justify-center",C[i].icon),children:o})})}),te&&t.jsxs("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center gap-2","transition-all duration-300",C[i].rightIcon),children:[W&&t.jsx("button",{type:"button",onClick:A,className:n("flex items-center justify-center",C[i].iconWrapper,"text-slate-base hover:text-black"),style:{cursor:"pointer"},children:t.jsx("span",{className:n("flex items-center justify-center",C[i].icon),children:t.jsx(ue,{className:n("h-full w-full")})})}),c&&!O&&t.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:t.jsx("span",{className:n("flex items-center justify-center",C[i].icon,B),children:c})}),O&&t.jsxs(t.Fragment,{children:[c&&t.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:t.jsx("span",{className:n("flex items-center justify-center",C[i].icon,B),children:c})}),t.jsx("button",{type:"button",onClick:X,className:n("flex items-center justify-center",C[i].iconWrapper,B),children:t.jsx("span",{className:n("flex items-center justify-center cursor-pointer",C[i].icon),children:m?t.jsx(_.EyeClosed,{weight:"Linear",className:n("h-full w-full")}):t.jsx(_.Eye,{weight:"Linear",className:n("h-full w-full")})})})]}),o&&s==="right"&&!O&&t.jsx("div",{className:n("flex items-center justify-center",C[i].iconWrapper),children:t.jsx("span",{className:n("flex items-center justify-center",C[i].icon,B),children:o})})]})]}),d&&t.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:d})]})});ve.displayName="MciInput";const mt={uz:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"],monthsShort:["Yan","Fev","Mar","Apr","May","Iyn","Iyl","Avg","Sen","Okt","Noy","Dek"],weekdays:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"],weekdaysShort:["Ya","Du","Se","Ch","Pa","Ju","Sh"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],weekdays:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],weekdaysShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"]}};function le(e){if(!e)return null;const r=new Date(e);return Number.isNaN(r.getTime())?null:r}function ee(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function vt(e,r){if(!e)return"";const a=e.getDate().toString().padStart(2,"0"),o=(e.getMonth()+1).toString().padStart(2,"0"),c=e.getFullYear().toString();return r.replace("DD",a).replace("MM",o).replace("YYYY",c)}function Pe(e){if(!e||e.length!==10)return null;const r=e.replace(/\D/g,"");if(r.length!==8)return null;const a=parseInt(r.slice(0,2),10),o=parseInt(r.slice(2,4),10),c=parseInt(r.slice(4,8),10);if(c<1e3||o<1||o>12||a<1||a>31)return null;const s=new Date(c,o-1,a);return s.getFullYear()!==c||s.getMonth()!==o-1||s.getDate()!==a?null:s}function xt(e){let r=e.replace(/\D/g,"");return r.length>8&&(r=r.slice(0,8)),r.length>4?`${r.slice(0,2)}.${r.slice(2,4)}.${r.slice(4)}`:r.length>2?`${r.slice(0,2)}.${r.slice(2)}`:r}function yt(e,r,a){const o=ee(e);return!!(r&&o<ee(r)||a&&o>ee(a))}function kt(e,r){return new Date(e.getFullYear(),e.getMonth()+r,1)}function Nt(e,r){return new Date(e.getFullYear()+r,e.getMonth(),1)}function Ct(e){const r=e.getFullYear(),a=e.getMonth(),o=new Date(r,a,1).getDay(),c=new Date(r,a+1,0).getDate(),s=[];for(let d=o;d>0;d-=1)s.push({date:new Date(r,a,1-d),isCurrentMonth:!1});for(let d=1;d<=c;d+=1)s.push({date:new Date(r,a,d),isCurrentMonth:!0});const i=42-s.length;for(let d=1;d<=i;d+=1)s.push({date:new Date(r,a+1,d),isCurrentMonth:!1});return s}function St(e,r){return ee(e).getTime()===ee(r).getTime()}const Be=l.forwardRef(({type:e="date",value:r,onChange:a,placeholder:o,label:c,disabled:s=!1,required:i=!1,className:d,format:g="DD.MM.YYYY",minDate:b,maxDate:x,error:S,showClear:I=!0,allowManualInput:T=!0,locale:M="uz",startView:h="day",iconPosition:v="left",align:D="auto"},L)=>{const[N,p]=l.useState(!1),[z,y]=l.useState(e==="range"?[null,null]:null),[E,f]=l.useState([null,null]),[u,m]=l.useState(new Date),[j,F]=l.useState(h),[O,W]=l.useState(0),[U,q]=l.useState(""),[te,re]=l.useState(!1),[ae,R]=l.useState(D),oe=l.useRef(null),X=l.useMemo(()=>{const w=r!==void 0?r:z;if(e==="date")return le(w);const k=w;return[le(k[0]),le(k[1])]},[r,z,e]),A=mt[M],C=l.useCallback(w=>vt(w,g),[g]),K=l.useCallback(w=>yt(w,b,x),[b,x]),B=l.useMemo(()=>{if(e==="date")return C(X);const[w,k]=X;return!w&&!k?"":w&&k?`${C(w)} - ${C(k)}`:w?`${C(w)} - ...`:"..."},[e,X,C]);l.useEffect(()=>{(!N&&!te||U===""&&B!=="")&&q(B)},[B,N,U,te]),l.useEffect(()=>{if(N)if(e==="range"){const w=X;f(w),w[0]?m(w[0]):w[1]?m(w[1]):m(new Date)}else{const w=X;m(w||new Date)}},[N,e,X]),l.useEffect(()=>{if(N&&D==="auto"&&oe.current){const w=oe.current.getBoundingClientRect(),k=window.innerWidth-w.right,$=w.left;k<300&&$>300?R("right"):R("left")}},[N,D]);const V=l.useCallback(()=>{p(!1),F(h),W(0),q(B)},[h,B]),Z=l.useCallback(w=>{s||(w.preventDefault(),w.stopPropagation(),p(k=>!k))},[s]),{handleClick:G}=me(oe,V),{handleEscape:ie}=Ee(V);l.useEffect(()=>{if(N)return document.addEventListener("mousedown",G),document.addEventListener("keydown",ie),()=>{document.removeEventListener("mousedown",G),document.removeEventListener("keydown",ie)}},[N,G,ie]);const pe=()=>{re(!0),!(s||N)&&(e==="range"||!T)&&(p(!0),F(h))},ke=()=>{if(re(!1),e!=="date")return;const w=U.trim();if(!w){y(null),a?.(null);return}const k=Pe(w);if(k&&!K(k)){const $=ee(k);y($),a?.($),q(C($)),m($);return}q(B)},Y=w=>{if(e!=="date")return;const k=w.target.value,$=xt(k),Q=$.replace(/\D/g,"");if(!(Q.length>=1&&Number.parseInt(Q[0]??"0",10)>3)){if(Q.length>=2){const H=Number.parseInt(Q.slice(0,2),10);if(H<1||H>31)return}if(!(Q.length>=3&&Number.parseInt(Q[2]??"0",10)>1)){if(Q.length>=4){const H=Number.parseInt(Q.slice(2,4),10);if(H<1||H>12)return}if(q($),$.length===10){const H=Pe($);H&&!K(H)&&(y(H),a?.(H),m(H))}else $===""&&(y(null),a?.(null))}}},ce=l.useCallback(()=>{const w=e==="range"?[null,null]:null;y(w),f([null,null]),a?.(w),q("")},[e,a]),Or=l.useCallback(w=>{if(K(w))return;const k=ee(w);if(e==="date")y(k),a?.(k),q(C(k)),V();else{const[$,Q]=E;if(!$&&!Q||$&&Q)f([k,null]),q(`${C(k)} - ...`);else if($&&!Q){const H=k<$?[k,$]:[$,k];f(H),y(H),a?.(H);const[de,ne]=H;q(`${C(de)} - ${C(ne)}`),V()}}},[e,E,K,a,V,C]),_r=l.useCallback(w=>{const k=new Date(u.getFullYear(),w,1);m(k),h==="month"&&e==="date"?(y(k),a?.(k),q(C(k)),V()):F("day")},[u,h,a,V,e,C]),$r=l.useCallback(w=>{const k=new Date(w,u.getMonth(),1);m(k),h==="year"&&e==="date"?(y(k),a?.(k),q(C(k)),V()):F("month")},[u,h,a,V,e,C]),Ge=w=>{m(k=>kt(k,w))},Ne=w=>{m(k=>Nt(k,w))},Ce=l.useCallback((w,k)=>St(w,k),[]),Pr=w=>{const k=ee(w);if(e==="date")return X&&Ce(k,X);const[$]=E[0]?E:X;return le($)&&Ce(k,le($))},Br=w=>{if(e!=="range")return!1;const k=ee(w),[,$]=E[1]?E:X;return le($)&&Ce(k,le($))},Wr=w=>{if(e!=="range")return!1;const k=ee(w),[$,Q]=E[0]?E:X,H=le($),de=le(Q);return H&&!de?!1:H&&de&&k>ee(H)&&k<ee(de)},Je=(w,k,$)=>{const Q=Ct(w);return t.jsxs("div",{className:"w-[300px] p-2 select-none",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4 py-1",children:[t.jsx("div",{className:"flex gap-2 w-16",children:k&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:()=>Ne(-1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:t.jsx(_.DoubleAltArrowLeft,{size:18})}),t.jsx("button",{onClick:()=>Ge(-1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:t.jsx(_.AltArrowLeft,{size:18})})]})}),t.jsxs("div",{className:"flex gap-1 font-semibold text-slate-700 text-sm whitespace-nowrap",children:[t.jsx("span",{className:"cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-slate-50",onClick:()=>F("month"),children:A.months[w.getMonth()]}),t.jsx("span",{className:"cursor-pointer hover:text-blue-600 transition-colors p-1 rounded hover:bg-slate-50",onClick:()=>F("year"),children:w.getFullYear()})]}),t.jsx("div",{className:"flex gap-2 w-16 justify-end",children:$&&t.jsxs(t.Fragment,{children:[t.jsx("button",{onClick:()=>Ge(1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:t.jsx(_.AltArrowRight,{size:18})}),t.jsx("button",{onClick:()=>Ne(1),type:"button",className:"hover:bg-slate-100 p-1 rounded transition-colors text-slate-500",children:t.jsx(_.DoubleAltArrowRight,{size:18})})]})})]}),t.jsx("div",{className:"grid grid-cols-7 mb-1 text-center text-[11px] font-bold text-blue-600 uppercase",children:A.weekdaysShort.map(H=>t.jsx("div",{className:"py-1",children:H},H))}),t.jsx("div",{className:"grid grid-cols-7 gap-y-1 relative",children:Q.map((H,de)=>{const ne=H.date,Re=K(ne),Se=Pr(ne),Me=Br(ne),Vr=Wr(ne);return t.jsx("div",{className:n("h-10 flex items-center justify-center relative",Vr&&"bg-blue-50",Se&&e==="range"&&Me?"bg-blue-50 rounded-full":Se&&e==="range"?"bg-gradient-to-r from-transparent to-blue-50 rounded-l-full":"",Me&&e==="range"?"bg-gradient-to-l from-transparent to-blue-50 rounded-r-full":""),children:t.jsx("button",{type:"button",onClick:()=>Or(ne),disabled:Re,className:n("w-9 h-9 cursor-pointer rounded-full flex items-center justify-center text-sm font-medium transition-all z-10",H.isCurrentMonth?"text-slate-700":"text-slate-300",Re&&"opacity-20 cursor-not-allowed",Se||Me?"bg-blue-600 text-white shadow-md shadow-blue-200 hover:bg-blue-700":"hover:bg-blue-50",Ce(ne,new Date)&&!Se&&!Me&&"text-blue-600 border border-blue-600"),children:ne.getDate()})},de)})})]})},Yr=()=>t.jsxs("div",{className:"w-[300px] p-3",children:[t.jsxs("div",{className:"flex justify-between items-center mb-4 px-2",children:[t.jsx("button",{type:"button",onClick:()=>Ne(-1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:t.jsx(_.AltArrowLeft,{size:20})}),t.jsx("span",{className:"font-bold text-slate-800",children:u.getFullYear()}),t.jsx("button",{type:"button",onClick:()=>Ne(1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:t.jsx(_.AltArrowRight,{size:20})})]}),t.jsx("div",{className:"grid grid-cols-3 gap-2",children:A.monthsShort.map((w,k)=>t.jsx("button",{type:"button",onClick:()=>_r(k),className:n("hover:cursor-pointer py-3 rounded-lg text-sm font-semibold transition-colors",u.getMonth()===k?"bg-blue-600 text-white":"hover:bg-blue-50 text-slate-600"),children:w},w))})]}),Ur=()=>{const w=Math.floor(u.getFullYear()/12)*12+O*12,k=Array.from({length:12},($,Q)=>w+Q);return t.jsxs("div",{className:"w-[300px] p-3",children:[t.jsxs("div",{className:"flex justify-between items-center mb-4 px-2",children:[t.jsx("button",{type:"button",onClick:()=>W($=>$-1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:t.jsx(_.AltArrowLeft,{size:20})}),t.jsxs("span",{className:"font-bold text-slate-800",children:[k[0]," - ",k[11]]}),t.jsx("button",{type:"button",onClick:()=>W($=>$+1),className:"p-1 hover:bg-slate-100 rounded text-slate-500",children:t.jsx(_.AltArrowRight,{size:20})})]}),t.jsx("div",{className:"grid grid-cols-3 gap-2",children:k.map($=>t.jsx("button",{type:"button",onClick:()=>$r($),className:n("hover:cursor-pointer py-3 rounded-lg text-sm font-semibold transition-colors",u.getFullYear()===$?"bg-blue-600 text-white":"hover:bg-blue-50 text-slate-600"),children:$},$))})]})},Qe=t.jsx("div",{onClick:Z,className:n("cursor-pointer flex items-center justify-center p-1 rounded-md transition-colors",s?"pointer-events-none opacity-50":"hover:bg-slate-100 active:bg-slate-200"),children:t.jsx(_.Calendar,{weight:"Linear",size:20,className:"text-slate-400"})});return t.jsxs("div",{ref:oe,className:n("relative w-full group",d),children:[t.jsx("div",{ref:L,children:t.jsx(ve,{label:c,placeholder:Array.isArray(o)?o[0]:o,value:U,onChange:Y,icon:v==="left"?Qe:void 0,rightIcon:v==="right"?Qe:void 0,disabled:s,required:i,error:S,maxLength:e==="date"?10:void 0,onFocus:pe,onBlur:ke,readOnly:!T||e==="range",showClearButton:I,onClear:ce})}),N&&t.jsx("div",{className:n("absolute top-[calc(100%+4px)] z-[100] bg-white rounded-xl shadow-xl border border-slate-200","flex flex-col md:flex-row overflow-hidden animate-in fade-in zoom-in-95 duration-200",ae==="right"&&"right-0 origin-top-right",ae==="left"&&"left-0 origin-top-left",ae==="center"&&"left-1/2 -translate-x-1/2 origin-top"),style:{width:"max-content"},onMouseDown:w=>w.stopPropagation(),children:j==="day"?t.jsxs(t.Fragment,{children:[Je(u,!0,e!=="range"),e==="range"&&t.jsx("div",{className:"hidden md:block border-l border-slate-100",children:Je(new Date(u.getFullYear(),u.getMonth()+1,1),!1,!0)})]}):j==="month"?Yr():Ur()})]})});Be.displayName="MciPicker";const Mt={sm:{container:"h-9 text-sm",padding:"px-2",iconPaddingLeft:"pl-7",iconPaddingRight:"pr-7",iconSize:"w-4 h-4",iconWrapper:"left-2",rightIconWrapper:"right-2",label:"text-sm",dropdown:"text-sm"},md:{container:"h-10 text-sm",padding:"px-4",iconPaddingLeft:"pl-8",iconPaddingRight:"pr-8",iconSize:"w-5 h-5",iconWrapper:"left-3",rightIconWrapper:"right-3",label:"text-sm",dropdown:"text-sm"},base:{container:"h-12 text-base",padding:"px-4",iconPaddingLeft:"pl-10",iconPaddingRight:"pr-10",iconSize:"w-5 h-5",iconWrapper:"left-4",rightIconWrapper:"right-16",label:"text-base",dropdown:"text-base"}};function Et(e,r,a,o){if(!a||o)return e;const c=r.toLowerCase();return e.filter(s=>s.label.toLowerCase().includes(c))}function At(e,r){return e?"border-slate-200 bg-slate-100 text-slate-400 cursor-not-allowed":r?"border-red-600 focus:border-red-600 shadow-red bg-white":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600 bg-white"}function Dt(e,r,a,o){return e?"text-slate-400":r?"text-red-600":a||o?"text-black":"text-slate-400"}const We=l.forwardRef(({label:e,placeholder:r="Выберите...",options:a=[],icon:o,iconPosition:c="left",size:s="base",error:i,disabled:d=!1,required:g=!1,value:b,onChange:x,onFocus:S,onBlur:I,className:T,clearable:M=!1,searchable:h=!1,onSearch:v,name:D},L)=>{const[N,p]=l.useState(!1),[z,y]=l.useState(!1),[E,f]=l.useState(""),[u,m]=l.useState(""),[j,F]=l.useState(-1),O=l.useRef(null),W=l.useRef(null),U=b!==void 0?b:E,q=a.find(Y=>Y.value===U),te=U!==""&&U!==void 0,re=M&&te&&!d,ae=!!(o&&c==="right"),R=Mt[s],oe=l.useMemo(()=>ae&&re?s==="sm"||s==="md"?"pr-16":"pr-20":ae||re?s==="sm"?"pr-11":s==="md"?"pr-12":"pr-14":s==="sm"?"pr-8":s==="md"?"pr-9":"pr-10",[ae,re,s]),X=l.useMemo(()=>Et(a,u,h,!!v),[a,u,h,v]),A=l.useCallback(()=>{p(!1),y(!1),m(""),F(-1),I?.()},[I]),{handleClick:C}=me(O,A),{handleEscape:K}=Ee(A);l.useEffect(()=>{if(N)return document.addEventListener("mousedown",C),document.addEventListener("keydown",K),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",K)}},[N,C,K]),l.useEffect(()=>{N&&h&&W.current&&W.current.focus()},[N,h]);const B=l.useCallback(()=>{d||(p(Y=>!Y),N?(m(""),F(-1)):(y(!0),S?.()))},[d,N,S]),V=l.useCallback(Y=>{b===void 0&&f(Y),x?.(Y),p(!1),y(!1),m(""),F(-1),I?.()},[b,x,I]),Z=l.useCallback(Y=>{if(!d){if(!N&&(Y.key==="ArrowDown"||Y.key==="ArrowUp"||Y.key==="Enter")){Y.preventDefault(),p(!0);return}if(N)switch(Y.key){case"ArrowDown":Y.preventDefault(),F(ce=>ce<X.length-1?ce+1:0);break;case"ArrowUp":Y.preventDefault(),F(ce=>ce>0?ce-1:X.length-1);break;case"Enter":Y.preventDefault(),j>=0&&X[j]&&V(X[j].value);break}}},[N,X,j,d,V]),G=l.useCallback(Y=>{Y.stopPropagation(),!d&&(b===void 0&&f(""),x?.(""),m(""),F(-1))},[b,x,d]),ie=l.useCallback(Y=>{m(Y),v?.(Y),F(0)},[v]),pe=l.useMemo(()=>At(d,i),[i,d]),ke=l.useMemo(()=>Dt(d,i,N,z),[d,i,N,z]);return t.jsxs("div",{className:n("w-full",T),ref:L,children:[e&&t.jsxs("label",{htmlFor:D,className:n("mb-2 block text-base font-medium",i?"text-red-600":"text-slate-700",R.label),children:[e,g&&t.jsx("span",{className:"ml-1 text-red-600",children:"*"})]}),t.jsxs("div",{ref:O,className:"relative",onKeyDown:Z,children:[t.jsxs("div",{role:"combobox","aria-expanded":N,"aria-haspopup":"listbox","aria-controls":`${D}-listbox`,"aria-disabled":d,tabIndex:d?-1:0,onClick:B,className:n("flex w-full items-center border font-normal transition-all duration-300 ease-in-out",s==="base"?"rounded-xl":"rounded-lg",R.container,o&&c==="left"?R.iconPaddingLeft:R.padding,oe,pe,!d&&z&&"shadow-blue border-blue-600"),children:[o&&t.jsx("div",{className:n("absolute top-1/2 -translate-y-1/2 pointer-events-none transition-colors duration-300",c==="left"?R.iconWrapper:R.rightIconWrapper,ke),children:o}),h&&N?t.jsx("input",{ref:W,type:"text",value:u,onChange:Y=>ie(Y.target.value),placeholder:r,className:"w-full min-w-0 flex-1 bg-transparent outline-none",onClick:Y=>Y.stopPropagation()}):t.jsx("span",{title:q?.label||r,className:n("block min-w-0 flex-1 truncate select-none",!te&&!d&&"text-slate-400"),children:q?.label||r}),re&&t.jsx("button",{type:"button",onClick:G,className:n("absolute top-1/2 -translate-y-1/2 text-slate-400 hover:text-black transition-colors cursor-pointer",ae?s==="sm"?"right-8":s==="md"?"right-9":"right-10":s==="sm"?"right-7":s==="md"?"right-8":"right-9"),"aria-label":"Очистить",children:t.jsx(ue,{className:R.iconSize})}),t.jsx("div",{className:n("absolute top-1/2 -translate-y-1/2 pointer-events-none transition-all duration-300",s==="sm"?"right-2":"right-3",N&&"rotate-180",ke),children:t.jsx(_.AltArrowDown,{className:R.iconSize})})]}),N&&!d&&t.jsx("div",{id:`${D}-listbox`,role:"listbox",className:n("absolute z-50 mt-1 max-h-60 w-full overflow-y-auto rounded-lg border border-slate-200 bg-white shadow-md p-1 text-black",R.dropdown),children:X.length===0?t.jsx("div",{className:"px-3 py-2 text-center text-base font-normal text-slate-500",children:"Ничего не найдено"}):X.map(Y=>t.jsx("div",{role:"option","aria-selected":U===Y.value,onClick:()=>V(Y.value),title:Y.label,className:n("cursor-pointer truncate px-3 py-2 font-normal transition-colors hover:bg-slate-100 rounded-sm",U===Y.value?"bg-slate-100":""),children:Y.label},Y.value))})]}),i&&t.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:i})]})});We.displayName="MciSelect";function Tt({children:e,title:r}){const a=typeof e=="string"?e:void 0;return t.jsx("div",{className:"min-w-0",children:t.jsx("div",{className:"clamp-2 break-words",title:r??a,children:e})})}function It(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Ft(e,r,a){return!r||a?e:[...e].sort((o,c)=>{const s=o[r.key],i=c[r.key];return s==null?1:i==null?-1:s<i?r.direction==="asc"?-1:1:s>i?r.direction==="asc"?1:-1:0})}function zt({columns:e,data:r=[],loading:a=!1,skeletonRows:o=5,noDataText:c="",sort:s,onSortChange:i,className:d,headerClassName:g,bodyClassName:b,rowKey:x="id",rowSelection:S}){const[I,T]=l.useState(null),M=s??I,h=l.useMemo(()=>Array.isArray(r)?r:[],[r]),v=l.useMemo(()=>Ft(h,M,!!s),[h,M,s]);l.useEffect(()=>{s!==void 0&&T(null)},[s]);const D=l.useMemo(()=>a?[]:s?h:v,[a,s,h,v]),L=l.useCallback(f=>{if(!f.sortable)return;let u=null;M?.key!==f.key?u={key:f.key,direction:"asc"}:M.direction==="asc"&&(u={key:f.key,direction:"desc"}),s!==void 0?i?.(u):T(u)},[M,s,i]),N=f=>{if(!S)return;const{onChange:u,getCheckboxProps:m}=S;if(f.target.checked){const O=D.filter(W=>!m?.(W)?.disabled).map(W=>W[x]);u(O)}else u([])},p=(f,u)=>{if(!S)return;const{selectedRowKeys:m,onChange:j}=S,F=f[x],O=u?[...m,F]:m.filter(W=>W!==F);j(O)},z=l.useMemo(()=>{if(!S||D.length===0)return!1;const f=D.filter(u=>!S.getCheckboxProps?.(u)?.disabled);return f.length===0?!1:f.every(u=>S.selectedRowKeys.includes(u[x]))},[S,D,x]),y=f=>f.sortable?!M||M.key!==f.key?t.jsx(_.SortVertical,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):M.direction==="asc"?t.jsx(_.SortFromTopToBottom,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):t.jsx(_.SortFromBottomToTop,{weight:"Linear",size:20,className:"text-slate-base shrink-0"}):null,E=()=>t.jsxs("colgroup",{children:[S&&t.jsx("col",{style:{width:48}}),e.map(f=>t.jsx("col",{style:{width:It(f.width)??"auto"}},f.key))]});return t.jsx("div",{className:n("w-full overflow-x-auto pb-0.5","[&::-webkit-scrollbar]:h-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-slate-200","[&::-webkit-scrollbar-thumb]:rounded-full","hover:[&::-webkit-scrollbar-thumb]:bg-slate-300",d),children:t.jsxs("div",{className:"inline-block min-w-full align-middle",children:[t.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200 bg-slate-100",children:t.jsxs("table",{className:"w-full table-fixed",children:[E(),t.jsx("thead",{children:t.jsxs("tr",{children:[S&&t.jsx("th",{className:n("w-12 px-4 py-3",g),children:t.jsx("div",{className:"flex items-center justify-center",children:t.jsx(fe,{checked:z,onChange:N,variant:"yellow",disabled:a||D.length===0})})}),e.map(f=>t.jsx("th",{onClick:()=>L(f),className:n("px-4 py-3 text-left text-sm font-medium text-slate-700 transition-colors","whitespace-nowrap overflow-hidden text-ellipsis",f.align==="center"&&"text-center",f.align==="right"&&"text-right",f.sortable&&"cursor-pointer hover:bg-slate-200",g),children:t.jsxs("div",{className:n("flex items-center gap-2 min-w-0",f.align==="right"&&"justify-end"),children:[t.jsx("span",{className:"min-w-0 flex-1 truncate",title:f.title,children:f.title}),y(f)]})},f.key))]})})]})}),t.jsx("div",{className:"rounded-xl border border-t-0 border-slate-200 bg-white overflow-hidden",children:t.jsxs("table",{className:"w-full table-fixed",children:[E(),t.jsx("tbody",{className:"divide-y divide-slate-200",children:a?Array.from({length:o}).map((f,u)=>t.jsxs("tr",{children:[S&&t.jsx("td",{className:"w-12 px-4 py-3",children:t.jsx(je,{height:20,width:20,variant:"rounded"})}),e.map(m=>t.jsx("td",{className:"px-4 py-3",children:t.jsx(je,{height:30,variant:"rounded"})},m.key))]},u)):D.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:e.length+(S?1:0),className:"py-20",children:t.jsxs("div",{className:"flex flex-col items-center justify-center",children:[t.jsx("div",{className:"relative mb-4",children:t.jsx(_.ConfoundedSquare,{weight:"Bold",size:64,className:"animate-float text-slate-400"})}),t.jsx("p",{className:"text-sm font-medium text-slate-400",children:c})]})})}):D.map((f,u)=>{const m=f[x],j=S?.selectedRowKeys.includes(m),F=S?.getCheckboxProps?.(f)?.disabled;return t.jsxs("tr",{className:"group transition-colors hover:bg-slate-50",children:[S&&t.jsx("td",{className:n("w-12 px-4 py-3 align-top",b),children:t.jsx("div",{className:"flex items-center justify-center pt-1",children:t.jsx(fe,{checked:j,disabled:F,variant:"yellow",onChange:O=>p(f,O.target.checked)})})}),e.map(O=>{const W=f[O.key],U=O.render?O.render(W,f):String(W??"-");return t.jsx("td",{className:n("align-top px-4 py-3 text-sm font-normal text-black","min-w-0 whitespace-normal",O.align==="center"&&"text-center",O.align==="right"&&"text-right",b,O.className),children:t.jsx(Tt,{title:typeof U=="string"?U:void 0,children:U})},O.key)})]},u)})})]})})]})})}const jt={uz:{dragAndDrop:"Faylni bu yerga torting",clickToUpload:"yoki bosib tanlang",or:"yoki",dropHereTitle:"Faylni shu yerga yuklang",fileRequirements:(e,r,a,o)=>`${e?`Maksimum ${r} ta fayl`:"1 ta fayl"} • ${a}MB gacha • ${o!=="*/*"?`Format: ${o}`:"Barcha formatlar"}`,selectedFiles:"Tanlangan fayllar",clearAll:"Barchasini o‘chirish",uploading:"Yuklanmoqda...",success:"Yuklandi",error:"Xatolik",preview:"Ko‘rish",download:"Yuklab olish",remove:"O‘chirish",maxFilesError:e=>`Maksimum ${e} ta fayl yuklash mumkin`,fileSizeError:(e,r)=>`"${e}" fayl hajmi ${r}MB dan kichik bo‘lishi kerak`,fileTypeError:e=>`"${e}" fayl turi qabul qilinmaydi`,blockedFileTypeError:e=>`"${e}" fayli xavfsizlik sabab bloklandi (arxiv yoki bajariladigan fayl)`,uploadFailed:"Yuklash muvaffaqiyatsiz tugadi",file:"Fayl",image:"Rasm",video:"Video",audio:"Audio",document:"Hujjat"},ru:{dragAndDrop:"Перетащите файл сюда",clickToUpload:"или выберите нажатием",or:"или",dropHereTitle:"Загрузите свой файл сюда",fileRequirements:(e,r,a,o)=>`${e?`Максимум ${r} файлов`:"1 файл"} • До ${a}MB • ${o!=="*/*"?`Формат: ${o}`:"Все форматы"}`,selectedFiles:"Выбранные файлы",clearAll:"Очистить все",uploading:"Загружается...",success:"Загружено",error:"Ошибка",preview:"Просмотр",download:"Скачать",remove:"Удалить",maxFilesError:e=>`Можно загрузить максимум ${e} файлов`,fileSizeError:(e,r)=>`Размер файла "${e}" должен быть меньше ${r}MB`,fileTypeError:e=>`Тип файла "${e}" не поддерживается`,blockedFileTypeError:e=>`Файл "${e}" заблокирован политикой безопасности (архив или исполняемый тип)`,uploadFailed:"Не удалось загрузить файл",file:"Файл",image:"Изображение",video:"Видео",audio:"Аудио",document:"Документ"},en:{dragAndDrop:"Drag and drop a file here",clickToUpload:"or click to select",or:"or",dropHereTitle:"Upload your file here",fileRequirements:(e,r,a,o)=>`${e?`Up to ${r} files`:"1 file"} • Up to ${a}MB • ${o!=="*/*"?`Format: ${o}`:"All formats"}`,selectedFiles:"Selected files",clearAll:"Clear all",uploading:"Uploading...",success:"Uploaded",error:"Error",preview:"Preview",download:"Download",remove:"Remove",maxFilesError:e=>`You can upload up to ${e} files`,fileSizeError:(e,r)=>`File "${e}" must be smaller than ${r}MB`,fileTypeError:e=>`File type "${e}" is not supported`,blockedFileTypeError:e=>`File "${e}" is blocked by security policy (archive or executable type)`,uploadFailed:"Upload failed",file:"File",image:"Image",video:"Video",audio:"Audio",document:"Document"}},Fe=["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","jpg","jpeg","png","bmp","tiff"],Lt=["zip","rar","7z","tar","gz","bz2","xz","tgz","tbz2","txz","iso","cab","arj","lz","lzh","z","exe","bat","cmd","com","msi","scr","pif","js","mjs","cjs","jse","vbs","vbe","wsf","wsh","ps1","psm1","sh","bash","zsh","ksh","csh","fish"],he=new Set(Fe),ge=new Set(Lt),Ot=Fe.map(e=>`.${e}`).join(","),_t={"image/*":["jpg","jpeg","png","bmp","tiff"],"text/*":["txt"]},$t={"application/pdf":["pdf"],"application/msword":["doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.ms-excel":["xls"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.ms-powerpoint":["ppt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"text/plain":["txt"],"image/jpg":["jpg"],"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/bmp":["bmp"],"image/tiff":["tiff"]},Pt=new Set(["application/zip","application/x-zip-compressed","application/x-rar-compressed","application/vnd.rar","application/x-7z-compressed","application/x-msdownload","application/x-msdos-program","application/x-executable","application/x-bat","application/x-msi","application/javascript","text/javascript","application/x-javascript","application/x-sh","application/x-csh","text/x-shellscript","application/x-powershell"]);function Bt(e){const r=e.trim().toLowerCase(),a=r.lastIndexOf(".");return a<=0||a===r.length-1?"":r.slice(a+1)}function Wt(e){return e.split(",").map(r=>r.trim().toLowerCase()).filter(Boolean)}function ze(e){if(!e||e==="*/*")return null;const r=Wt(e),a=new Set;for(const o of r)if(o!=="*/*"){if(o.endsWith("/*")){const c=_t[o];if(!c)continue;for(const s of c)he.has(s)&&!ge.has(s)&&a.add(s);continue}if(o.startsWith(".")){const c=o.slice(1);he.has(c)&&!ge.has(c)&&a.add(c);continue}if(o.includes("/")){const c=$t[o];if(!c)continue;for(const s of c)he.has(s)&&!ge.has(s)&&a.add(s);continue}he.has(o)&&!ge.has(o)&&a.add(o)}return a.size>0?a:null}function Yt(e){const r=ze(e);return r?Array.from(r).map(a=>`.${a}`).join(","):Ot}function Ut(e){const r=ze(e);return r?Array.from(r).join(", "):Fe.join(", ")}function Vt(e){switch(e.type.split("/")[0]){case"image":return t.jsx(_.Gallery,{className:"h-5 w-5 text-blue-500"});case"video":return t.jsx(_.VideoFramePlayHorizontal,{className:"h-5 w-5 text-purple-500"});case"audio":return t.jsx(_.MusicNote,{className:"h-5 w-5 text-green-500"});default:return e.type.includes("pdf")?t.jsx(_.FileText,{className:"h-5 w-5 text-red-500"}):e.type.includes("word")||e.type.includes("document")?t.jsx(_.FileText,{className:"h-5 w-5 text-blue-600"}):e.type.includes("excel")||e.type.includes("spreadsheet")?t.jsx(_.FileText,{className:"h-5 w-5 text-green-600"}):t.jsx(_.File,{className:"h-5 w-5 text-gray-500"})}}function Ht(e){if(e===0)return"0 Bytes";const r=1024,a=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+a[o]}function Zt(e,r){const a=r*1024*1024;return e.size<=a}function qt(e,r){const a=Bt(e.name),o=e.type.trim().toLowerCase();if(o&&Pt.has(o))return{isValid:!1,reason:"blocked"};if(!a)return{isValid:!1,reason:"not-allowed"};if(ge.has(a))return{isValid:!1,reason:"blocked"};if(!he.has(a))return{isValid:!1,reason:"not-allowed"};const c=ze(r);return c&&!c.has(a)?{isValid:!1,reason:"not-allowed"}:{isValid:!0}}function Xt(e){return new Promise(r=>{if(e.type.startsWith("image/")){const a=new FileReader;a.onload=o=>r(o.target?.result??""),a.readAsDataURL(e)}else r("")})}const Kt={blue:{dropBorder:"border-blue-200 hover:border-blue-300",dropBg:"bg-blue-50/40 hover:bg-blue-50/60",dropActive:"border-blue-600 bg-blue-50",iconWrap:"text-blue-600",title:"text-blue-600",hint:"text-slate-500",progress:"bg-blue-600/30",progressFill:"bg-blue-600",fileIconImg:"bg-blue-50 text-blue-600",fileIconDoc:"bg-green-50 text-green-600"},yellow:{dropBorder:"border-yellow-200 hover:border-yellow-300",dropBg:"bg-yellow-50/40 hover:bg-yellow-50/60",dropActive:"border-yellow-500 bg-yellow-50",iconWrap:"text-yellow-700",title:"text-yellow-700",hint:"text-slate-500",progress:"bg-yellow-600/25",progressFill:"bg-yellow-600",fileIconImg:"bg-blue-50 text-blue-600",fileIconDoc:"bg-green-50 text-green-600"}},Gt=({multiple:e=!1,accept:r="*/*",maxSize:a=10,maxFiles:o=5,disabled:c=!1,label:s,required:i=!1,error:d,className:g,onFilesChange:b,onUpload:x,showPreview:S=!0,locale:I="uz",showFileTypeIcon:T=!0,variant:M="yellow",customValidator:h})=>{const[v,D]=l.useState([]),[L,N]=l.useState(!1),[p,z]=l.useState(!1),y=l.useRef(null),E=jt[I],f=l.useMemo(()=>Kt[M],[M]),u=l.useMemo(()=>Yt(r),[r]),m=l.useMemo(()=>Ut(r),[r]),j=l.useRef(new Map),F=l.useCallback(A=>{const C=j.current.get(A);C&&(URL.revokeObjectURL(C),j.current.delete(A))},[]),O=l.useCallback(()=>{for(const A of j.current.values())URL.revokeObjectURL(A);j.current.clear()},[]);l.useEffect(()=>()=>{O()},[O]);const W=l.useCallback(A=>{let C=j.current.get(A.id);C||(C=URL.createObjectURL(A.file),j.current.set(A.id,C),setTimeout(()=>F(A.id),5*6e4)),window.open(C,"_blank","noopener,noreferrer")},[F]),U=l.useCallback(async A=>{const C=Array.from(A),K=[];for(const B of C){if(v.length+K.length>=o){alert(E.maxFilesError(o));break}if(!Zt(B,a)){alert(E.fileSizeError(B.name,a));continue}const V=qt(B,r);if(!V.isValid){V.reason==="blocked"?alert(E.blockedFileTypeError(B.name)):alert(E.fileTypeError(B.name));continue}if(h){const pe=h(B);if(pe){alert(pe);continue}}const Z=await Xt(B),G=x?"uploading":"success",ie=x?0:100;K.push({id:Math.random().toString(36).substr(2,9),file:B,preview:Z,progress:ie,status:G})}if(K.length>0){const B=e?[...v,...K]:K;if(D(B),b?.(B.map(V=>V.file)),x){z(!0);try{const V=B.map((Z,G)=>({...Z,progress:Math.min(100,(G+1)/B.length*100)}));D(V),await x(V),D(Z=>Z.map(G=>({...G,status:"success",progress:100})))}catch(V){D(Z=>Z.map(G=>({...G,status:"error",error:V instanceof Error?V.message:E.uploadFailed})))}finally{z(!1)}}}},[v,o,h,E,r,a,e,b,x]),q=l.useCallback(A=>{A.preventDefault(),c||N(!0)},[c]),te=l.useCallback(A=>{A.preventDefault(),N(!1)},[]),re=l.useCallback(A=>{if(A.preventDefault(),N(!1),c)return;const C=A.dataTransfer.files;C.length>0&&U(C)},[c,U]),ae=l.useCallback(A=>{const C=A.target.files;C&&C.length>0&&(U(C),y.current&&(y.current.value=""))},[U]),R=l.useCallback(A=>{F(A),D(C=>{const K=C.filter(B=>B.id!==A);return b?.(K.map(B=>B.file)),K})},[b,F]),oe=l.useCallback(()=>{O(),D([]),b?.([])},[b,O]),X=l.useCallback(()=>{y.current?.click()},[]);return t.jsxs("div",{className:n("w-full",g),children:[s&&t.jsxs("label",{className:n("mb-2 block text-base font-medium",d?"text-red-600":"text-slate-700"),children:[s,i&&t.jsx("span",{className:"ml-1 text-extra-small text-red-600",children:"*"})]}),t.jsxs("div",{className:n("group relative flex min-h-[180px] w-full cursor-pointer items-center justify-center rounded-2xl border border-dashed p-6 text-center transition-all duration-300",f.dropBorder,f.dropBg,L&&f.dropActive,c&&"cursor-not-allowed opacity-60",d&&"border-red-600 bg-red-50/30"),onDragOver:q,onDragLeave:te,onDrop:re,onClick:X,children:[t.jsx("input",{ref:y,type:"file",multiple:e,accept:u,onChange:ae,disabled:c,className:"hidden"}),t.jsxs("div",{className:"flex flex-col items-center gap-3",children:[t.jsx("div",{className:n("flex h-12 w-12 items-center justify-center rounded-xl",f.iconWrap),children:t.jsx(_.Upload,{size:20})}),t.jsx("p",{className:n("text-base font-medium",f.title),children:E.dropHereTitle}),t.jsx("p",{className:n("text-sm font-normal",f.hint),children:E.fileRequirements(e,o,a,m)})]})]}),v.length>0&&t.jsxs("div",{className:"mt-4 space-y-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("span",{className:"text-sm font-medium text-slate-700",children:[E.selectedFiles," (",v.length,")"]}),v.length>1&&t.jsx("button",{type:"button",onClick:oe,disabled:c||p,className:"text-sm font-medium text-red-600 disabled:opacity-50",children:E.clearAll})]}),t.jsx("div",{className:"space-y-3",children:v.map(A=>{const K=!!A.preview?f.fileIconImg:f.fileIconDoc,B=c||p||A.status==="uploading";return t.jsxs("div",{className:n("flex items-center justify-between rounded-2xl border border-slate-200 p-4",A.status==="error"&&"border-red-600"),children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-4",children:[t.jsx("div",{className:n("flex h-14 w-14 items-center justify-center rounded-2xl",K),children:S&&A.preview?t.jsx("img",{src:A.preview,alt:A.file.name,className:"h-10 w-10 rounded-xl object-cover"}):T?Vt(A.file):t.jsx(_.File,{className:"h-6 w-6 text-slate-500"})}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"truncate text-lg font-semibold text-primary",children:A.file.name}),t.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-sm text-slate-500",children:[t.jsx("span",{children:Ht(A.file.size)}),A.status==="uploading"&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"•"}),t.jsxs("span",{className:"inline-flex items-center",children:[t.jsx(_.Star2,{className:"mr-1 h-5 w-5 animate-spin"}),E.uploading]})]}),A.status==="success"&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"•"}),t.jsx("span",{className:"font-normal text-green-600",children:E.success})]})]}),A.status==="uploading"&&t.jsx("div",{className:n("mt-2 h-1.5 w-full rounded-full bg-slate-200"),children:t.jsx("div",{className:n("h-1.5 rounded-full transition-all duration-300",f.progressFill),style:{width:`${A.progress}%`}})}),A.status==="error"&&A.error&&t.jsx("p",{className:"mt-2 text-sm font-normal text-red-600",children:A.error})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{type:"button",onClick:V=>{V.stopPropagation(),B||W(A)},disabled:B,className:"rounded-xl p-2 hover:bg-slate-100 hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:E.preview,children:t.jsx(_.Eye,{size:20,className:"text-slate-400"})}),t.jsx("button",{type:"button",onClick:V=>{V.stopPropagation(),R(A.id)},disabled:c||p,className:"rounded-xl p-2 text-slate-base hover:bg-slate-100 disabled:opacity-50 hover:cursor-pointer",title:E.remove,children:t.jsx(ue,{className:"h-6 w-6"})})]})]},A.id)})})]}),d&&t.jsx("p",{className:"mt-2 text-sm font-normal text-red-600",children:d})]})};function Jt({show:e,setShow:r,title:a,description:o,Header:c,Body:s,footer:i,handleClickOutside:d=!1,showCloseIcon:g=!0,showHeader:b=!0,overlayClassName:x,containerClassName:S,bodyClassName:I,footerClassName:T}){const M=l.useRef(null),{handleEscape:h}=Ee(()=>r(!1));l.useEffect(()=>(e?(document.addEventListener("keydown",h),document.body.style.overflow="hidden"):document.body.style.overflow="unset",()=>document.removeEventListener("keydown",h)),[e,h]);const{handleClick:v}=me(M,()=>{d&&r(!1)});l.useEffect(()=>(e&&d&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)),[e,v,d]);const L=b&&!!(c||a||o);return t.jsx("div",{className:n("bg-black/40 fixed inset-0 z-50 flex justify-center transition-all duration-500 ease-in-out","items-end sm:items-center",e?"opacity-100":"pointer-events-none opacity-0",x),children:t.jsxs("div",{ref:M,className:n("relative bg-white w-full","sm:max-w-[720px]","rounded-t-2xl sm:rounded-2xl","transition-all duration-500 ease-out",e?"scale-100 opacity-100":"scale-95 opacity-0",S),children:[L&&t.jsxs("div",{className:"border-b border-slate-200 flex items-start justify-between p-4 sm:p-6 mb-4",children:[c||t.jsxs("div",{className:"block",children:[t.jsx("h2",{className:"text-h3 font-semibold text-black",children:a}),o&&t.jsx("p",{className:"text-base text-slate-base font-normal mt-2",children:o})]}),g&&t.jsx("button",{onClick:()=>r(!1),className:"bg-slate-100 rounded-xl w-12 h-12 hover:cursor-pointer text-black transition flex items-center justify-center group","aria-label":"Close modal",type:"button",children:t.jsx(ue,{className:"h-6 w-6 transition-transform duration-300 group-hover:rotate-180"})})]}),s&&t.jsx("div",{className:n("scrollbar-thin scrollbar-thumb-slate-200 overflow-y-auto","max-h-[70dvh] sm:max-h-96","px-4 sm:px-6 mb-2",I),children:s}),i&&t.jsx("div",{className:n("flex items-center justify-end gap-3 border-t border-slate-200","p-4 sm:p-6",T),children:i})]})})}function Qt(e,r,a){const o=[],c=r*2+5;if(a<=c)return Array.from({length:a},(d,g)=>g+1);const s=Math.max(e-r,2),i=Math.min(e+r,a-1);o.push(1),s>2&&o.push("...");for(let d=s;d<=i;d+=1)o.push(d);return i<a-1&&o.push("..."),a>1&&o.push(a),o}const Rt={medium:"h-9 text-sm",large:"h-10 text-base"},er={yellow:{active:"bg-yellow-500 text-white border-yellow-500",inactive:"bg-slate-100 border-slate-200 text-black hover:bg-slate-200",disabled:"text-slate-400 border-slate-200",arrow:"text-black"},blue:{active:"bg-blue-600 text-white border-blue-600",inactive:"bg-slate-100 border-slate-200 text-black hover:bg-slate-200",disabled:"text-slate-400 border-slate-300",arrow:"text-black"}};function tr({totalItems:e,currentPage:r,perPage:a,onPageChange:o,onPerPageChange:c,siblingCount:s=1,perPageOptions:i=[10,30,50,100],showPerPage:d=!0,variant:g="yellow",size:b="large",paginationClassName:x}){const S=Number.isFinite(e)&&e>0?e:0,I=Number.isFinite(a)&&a>0?a:10,T=Math.max(1,Number.isFinite(r)?r:1),M=Math.ceil(S/I),h=l.useMemo(()=>Qt(T,s,M),[T,s,M]),v=Rt[b],D=er[g??"yellow"];return M<=1||S===0?null:t.jsxs("div",{className:n("flex items-center justify-between gap-4 w-full",x),children:[d&&c&&t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"whitespace-nowrap text-extra-small text-slate-base font-normal",children:"Строк на странице:"}),t.jsxs("div",{className:"relative",children:[t.jsx("select",{value:I,onChange:L=>c(Number(L.target.value)),className:n("appearance-none bg-white border border-slate-200 rounded-lg pl-3 pr-8 text-base text-black font-medium focus:outline-none cursor-pointer",b==="large"?"h-10":"h-9"),"aria-label":"Количество строк на странице",children:i.map(L=>t.jsx("option",{value:L,children:L},L))}),t.jsx(_.AltArrowDown,{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400",weight:"Linear",size:20})]})]}),t.jsxs("nav",{"aria-label":"Пагинация",className:"flex items-center gap-1 shrink-0 whitespace-nowrap",children:[t.jsx("button",{onClick:()=>o(T-1),disabled:T===1,"aria-label":"Предыдущая страница",className:n("flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",v,T===1?n("cursor-not-allowed opacity-50",D.disabled):n("hover:cursor-pointer",D.arrow,"border-slate-200")),children:t.jsx(_.AltArrowLeft,{weight:"Linear",size:20})}),t.jsx("div",{className:"flex items-center gap-1",children:h.map((L,N)=>{if(L==="...")return t.jsx("span",{className:n("flex items-center justify-center text-black font-medium min-w-10",v),"aria-hidden":"true",children:t.jsx(_.MenuDots,{weight:"Bold",size:20})},N);const p=L===T;return t.jsx("button",{onClick:()=>o(L),"aria-label":`Страница ${L}${p?", текущая":""}`,"aria-current":p?"page":void 0,className:n("flex items-center justify-center rounded-lg border font-medium transition-all hover:cursor-pointer min-w-10 px-2",v,p?D.active:D.inactive),children:L},N)})}),t.jsx("button",{onClick:()=>o(T+1),disabled:T===M,"aria-label":"Следующая страница",className:n("flex items-center justify-center rounded-lg border transition-all bg-slate-100 min-w-10",v,T===M?n("cursor-not-allowed opacity-50",D.disabled):n("hover:cursor-pointer",D.arrow,"border-slate-200")),children:t.jsx(_.AltArrowRight,{size:20,weight:"Linear"})})]})]})}function je({className:e,variant:r="default",width:a="100%",height:o="1rem"}){return t.jsx("div",{className:n("relative overflow-hidden bg-slate-200","rounded-lg",r==="circle"&&"rounded-full",r==="rounded"&&"rounded-md",e),style:{width:typeof a=="number"?`${a}px`:a,height:typeof o=="number"?`${o}px`:o},children:t.jsx("div",{className:"shimmer-mask absolute inset-0"})})}const rr={top:"flex-col",bottom:"flex-col-reverse",left:"flex-row",right:"flex-row-reverse"},ar={top:"flex-row",bottom:"flex-row",left:"flex-col",right:"flex-col"},or={top:"mt-4",bottom:"mb-4",left:"ml-4",right:"mr-4"};function lr({tabs:e,defaultTab:r,position:a="top",className:o,tabListClassName:c,contentClassName:s,extra:i,onChange:d}){const[g,b]=l.useState(r||e[0]?.id),[x,S]=l.useState({}),I=l.useRef([]),T=l.useCallback(()=>{requestAnimationFrame(()=>{const h=e.findIndex(D=>D?.id===g),v=I.current[h];if(v){const{offsetLeft:D,offsetTop:L,offsetWidth:N,offsetHeight:p}=v;S({left:`${D}px`,top:`${L}px`,width:`${N}px`,height:`${p}px`,transition:"all 0.35s cubic-bezier(0.25, 1, 0.5, 1)"})}})},[g,e]);l.useEffect(()=>(T(),window.addEventListener("resize",T),"fonts"in document&&document.fonts.ready.then(T),()=>window.removeEventListener("resize",T)),[a,T]),l.useEffect(()=>{I.current=I.current.slice(0,e.length)},[e]);const M=a==="left"||a==="right";return t.jsxs("div",{className:n("flex w-full",rr[a],o),children:[t.jsxs("div",{className:n("flex w-full gap-4",M?"flex-col items-start":"flex-row flex-wrap items-center"),children:[t.jsx("div",{className:n("flex-1",M?"w-full":"min-w-[520px]"),children:t.jsxs("div",{className:n("relative flex rounded-xl bg-slate-100 p-1",ar[a],!M&&"w-full overflow-hidden",M?"min-w-48":"",c),children:[t.jsx("div",{className:n("absolute rounded-lg bg-white",M?"w-full":"h-full"),style:x}),e?.map((h,v)=>{const D=g===h.id;return t.jsxs("button",{ref:L=>{I.current[v]=L},onClick:()=>{h?.disabled||(b(h?.id),d?.(h?.id))},disabled:h?.disabled,className:n("relative z-10 flex items-center justify-center whitespace-nowrap px-3 py-2 text-base font-normal text-black transition-colors duration-300 hover:cursor-pointer",h?.disabled&&"cursor-not-allowed opacity-50",M?"w-full justify-start":"flex-1 min-w-0"),children:[h?.icon&&t.jsx("span",{className:n("shrink-0 transition-transform duration-200",D&&"scale-110"),children:h?.icon}),t.jsx("span",{className:"relative z-10 truncate",title:h?.label,children:h?.label})]},h?.id)})]})}),i&&t.jsx("div",{className:n("shrink-0 ml-auto",M?"w-full":"max-w-full"),children:t.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2",children:i})})]}),t.jsx("div",{className:n("w-full flex-1 overflow-hidden",or[a],s),children:t.jsx("div",{className:"animate-fade-in w-full",style:{animationDuration:"0.35s"},children:e?.find(h=>h.id===g)?.content},g)})]})}const nr={sm:"px-2 py-0.5",md:"px-2 py-1",lg:"px-3 py-2"},Ye={sm:"w-3 h-3",md:"w-3 h-3",lg:"w-3 h-3"},sr={success:"bg-green-50 text-green-600",warning:"bg-orange-50 text-orange-600",error:"bg-red-50 text-red-600",gray:"bg-slate-200 text-slate-700",blue:"bg-blue-50 text-blue-600"};function ir({children:e,variant:r="success",size:a="lg",icon:o,iconPosition:c="left",className:s}){return t.jsxs("span",{className:n("inline-flex animate-[fadeIn_0.3s_ease-out] items-center rounded-lg text-extra-small font-medium",nr[a],sr[r],o&&"gap-[2px]",s),children:[o&&c==="left"&&t.jsx("span",{className:`flex items-center ${n(Ye[a])}`,children:o}),t.jsx("span",{children:e}),o&&c==="right"&&t.jsx("span",{className:`flex items-center ${n(Ye[a])}`,children:o})]})}const Ue=l.forwardRef(({label:e,placeholder:r,value:a="",onChange:o,required:c=!1,disabled:s=!1,error:i,className:d,rows:g=4,name:b},x)=>{const S=l.useMemo(()=>i?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600",[i]);return t.jsxs("div",{className:n("relative w-full",d),children:[e&&t.jsxs("label",{className:n("mb-2 block text-base font-medium",i?"text-red-600":"text-slate-700"),children:[e,c&&t.jsx("span",{className:"ml-1 text-red-600",children:"*"})]}),t.jsx("textarea",{ref:x,name:b,rows:g,value:a,onChange:I=>o?.(I.target.value),disabled:s,placeholder:r,className:n("w-full resize-none rounded-xl border bg-white text-base font-normal transition-all duration-300 ease-in-out outline-none","p-3 disabled:cursor-not-allowed disabled:border-slate-200 disabled:bg-slate-100 disabled:text-slate-400",S)}),i&&t.jsx("p",{className:"mt-2 animate-[slideDown_0.3s_ease-out] text-sm font-normal text-red-600",children:i})]})});Ue.displayName="MciTextarea";const cr={success:t.jsx(_.CheckCircle,{weight:"Bold",className:"w-5 h-5"}),error:t.jsx(_.CloseCircle,{weight:"Bold",className:"w-5 h-5"}),warning:t.jsx(_.DangerCircle,{weight:"Bold",className:"w-5 h-5"}),info:t.jsx(_.InfoCircle,{weight:"Bold",className:"w-5 h-5"}),loading:t.jsx(_.Refresh,{weight:"Bold",className:"w-5 h-5 animate-spin"})},xe={bg:{success:"bg-green-50",error:"bg-red-50",warning:"bg-orange-50",info:"bg-blue-50",loading:"bg-slate-50"},line:{success:"bg-green-600",error:"bg-red-600",warning:"bg-orange-600",info:"bg-blue-600",loading:"bg-slate-600"},text:{success:"text-green-600",error:"text-red-600",warning:"text-orange-600",info:"text-blue-600",loading:"text-slate-600"},action:{success:"text-green-600",error:"text-red-600",warning:"text-orange-600",info:"text-blue-600",loading:"text-slate-600"}};function dr(){let e=document.getElementById("mci-toast-container");return e||(e=document.createElement("div"),e.id="mci-toast-container",e.className="fixed top-4 right-4 z-[9999] flex flex-col gap-3 pointer-events-none",document.body.appendChild(e)),e}const ur=dr();let Le=null,pr=0;const ye=[],Ve=()=>{Le||(Le=rt.createRoot(ur)),Le.render(t.jsx("div",{className:"flex flex-col gap-3",children:ye.map(({id:e,element:r})=>t.jsx("div",{className:"pointer-events-auto",children:r},e))}))};function fr({title:e,description:r,type:a="info",duration:o=3e3,action:c,onClose:s}){const[i,d]=l.useState(100);return l.useEffect(()=>{if(o===1/0){d(100);return}let g=null;const b=S=>{g||(g=S);const I=S-g,T=Math.max(0,(o-I)/o*100);d(T),T>0?requestAnimationFrame(b):s?.()},x=requestAnimationFrame(b);return()=>cancelAnimationFrame(x)},[o,s]),t.jsxs("div",{className:n("relative w-[300px] max-w-full overflow-hidden shadow-md rounded-lg","animate-in fade-in slide-in-from-top-2 duration-300",xe.bg[a]),children:[t.jsx("div",{className:n("absolute bottom-0 left-0 h-1",xe.line[a]),style:{width:`${i}%`,transition:"none"}}),t.jsx("div",{className:"p-4",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("div",{className:n("flex-shrink-0",xe.text[a]),children:cr[a]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h4",{className:"text-base font-medium mb-1",children:e}),r&&t.jsx("p",{className:"text-sm text-[#82828C]",children:r}),c&&t.jsx("div",{className:"mt-3",children:t.jsx("div",{className:n("underline font-medium text-sm",xe.action[a]),children:c})})]}),t.jsx("button",{onClick:s,className:"flex-shrink-0 rounded-full transition cursor-pointer active:animate-spin",children:t.jsx(ue,{className:"w-6 h-6 text-slate-base"})})]})})]})}const be=e=>{const r=pr++,a=()=>{const c=ye.findIndex(s=>s?.id===r);c!==-1&&(ye.splice(c,1),Ve())},o=t.jsx(fr,{...e,onClose:a});return ye.push({id:r,element:o}),Ve(),e.duration!==1/0&&setTimeout(a,(e.duration||3e3)+300),{close:a}},hr={success:(e,r,a)=>be(typeof e=="string"?{title:e,description:r,type:"success",action:a}:{...e,type:"success"}),error:(e,r,a)=>be(typeof e=="string"?{title:e,description:r,type:"error",action:a}:{...e,type:"error"}),warning:(e,r,a)=>be(typeof e=="string"?{title:e,description:r,type:"warning",action:a}:{...e,type:"warning"}),info:(e,r,a)=>be(typeof e=="string"?{title:e,description:r,type:"info",action:a}:{...e,type:"info"}),loading:(e,r)=>be(typeof e=="string"?{title:e,description:r,type:"loading",duration:1/0}:{...e,type:"loading",duration:1/0})},gr={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},br={top:"left-1/2 -translate-x-1/2 top-full",bottom:"left-1/2 -translate-x-1/2 bottom-full",left:"top-1/2 -translate-y-1/2 left-full",right:"top-1/2 -translate-y-1/2 right-full"};function wr({content:e,children:r,position:a="top",delay:o=200,className:c}){return t.jsxs("div",{className:"group relative inline-block",children:[r,t.jsxs("div",{className:n("absolute z-50 rounded-md bg-slate-400 px-2 py-1 text-xs whitespace-nowrap text-white shadow-md","scale-95 opacity-0 transition-all group-hover:scale-100 group-hover:opacity-100","duration-200 ease-out group-hover:delay-200",gr[a],c),style:{transitionDelay:`${o}ms`},children:[e,t.jsx("span",{className:n("absolute h-2 w-2 rotate-45 bg-slate-400",br[a])})]})]})}const Oe={blue:{active:"bg-blue-600",hover:"hover:bg-blue-600",focus:"focus:shadow-blue"},yellow:{active:"bg-yellow-500",hover:"hover:bg-yellow-500",focus:"focus:ring-2 focus:ring-yellow-200"}};function mr({checked:e=!1,onChange:r,disabled:a=!1,variant:o="yellow",label:c,supportText:s,className:i}){const d=()=>{a||r?.(!e)};return t.jsxs("div",{className:n("flex items-start gap-3 select-none",i),children:[t.jsx("button",{type:"button",disabled:a,className:n("relative h-6 w-11 rounded-xl transition-all duration-300 outline-none cursor-pointer",e?Oe[o].active:"bg-slate-200",!a&&Oe[o].hover,!a&&Oe[o].focus,a&&"bg-slate-100 cursor-not-allowed"),onClick:d,children:t.jsx("span",{className:n("absolute top-1/2 left-0.5 h-5 w-5 -translate-y-1/2 rounded-full transition-all duration-300 bg-white",e&&"translate-x-5")})}),(c||s)&&t.jsxs("div",{className:"flex flex-col leading-tight",children:[c&&t.jsx("span",{className:n("text-base font-medium text-black"),children:c}),s&&t.jsx("span",{className:"text-sm font-normal text-slate-500",children:s})]})]})}const vr=e=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 177 177",fill:"none",...e},J.createElement("path",{opacity:.083334,d:"M94.5 48.5C94.5 41.8726 91.8137 36.5 88.5 36.5C85.1863 36.5 82.5 41.8726 82.5 48.5C82.5 55.1274 85.1863 60.5 88.5 60.5C91.8137 60.5 94.5 55.1274 94.5 48.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.166667,d:"M113.697 56.8591C117.011 51.1196 117.371 45.1237 114.501 43.4668C111.631 41.8099 106.618 45.1196 103.305 50.8591C99.991 56.5986 99.6311 62.5946 102.501 64.2514C105.371 65.9083 110.383 62.5986 113.697 56.8591Z",fill:"currentColor"}),J.createElement("path",{opacity:.25,d:"M126.141 73.696C131.88 70.3823 135.19 65.3696 133.533 62.4999C131.876 59.6301 125.88 59.99 120.141 63.3037C114.401 66.6174 111.092 71.6301 112.749 74.4999C114.405 77.3696 120.401 77.0097 126.141 73.696Z",fill:"currentColor"}),J.createElement("path",{opacity:.333334,d:"M128.5 94.5C135.127 94.5 140.5 91.8137 140.5 88.5C140.5 85.1863 135.127 82.5 128.5 82.5C121.873 82.5 116.5 85.1863 116.5 88.5C116.5 91.8137 121.873 94.5 128.5 94.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.416667,d:"M120.141 113.696C125.88 117.01 131.876 117.37 133.533 114.5C135.19 111.63 131.88 106.617 126.141 103.304C120.401 99.99 114.405 99.6301 112.749 102.5C111.092 105.37 114.401 110.382 120.141 113.696Z",fill:"currentColor"}),J.createElement("path",{opacity:.5,d:"M103.303 126.141C106.617 131.88 111.629 135.19 114.499 133.533C117.369 131.876 117.009 125.88 113.695 120.141C110.382 114.401 105.369 111.092 102.499 112.749C99.6294 114.405 99.9893 120.401 103.303 126.141Z",fill:"currentColor"}),J.createElement("path",{opacity:.583334,d:"M82.5 128.5C82.5 135.127 85.1863 140.5 88.5 140.5C91.8137 140.5 94.5 135.127 94.5 128.5C94.5 121.873 91.8137 116.5 88.5 116.5C85.1863 116.5 82.5 121.873 82.5 128.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.666667,d:"M63.303 120.141C59.9893 125.88 59.6294 131.876 62.4992 133.533C65.3689 135.19 70.3816 131.88 73.6953 126.141C77.009 120.401 77.3689 114.405 74.4992 112.749C71.6294 111.092 66.6167 114.401 63.303 120.141Z",fill:"currentColor"}),J.createElement("path",{opacity:.75,d:"M50.8591 103.304C45.1196 106.618 41.8099 111.63 43.4668 114.5C45.1237 117.37 51.1196 117.01 56.8591 113.696C62.5986 110.383 65.9083 105.37 64.2514 102.5C62.5946 99.6304 56.5986 99.9903 50.8591 103.304Z",fill:"currentColor"}),J.createElement("path",{opacity:.833334,d:"M48.5 82.5C41.8726 82.5 36.5 85.1863 36.5 88.5C36.5 91.8137 41.8726 94.5 48.5 94.5C55.1274 94.5 60.5 91.8137 60.5 88.5C60.5 85.1863 55.1274 82.5 48.5 82.5Z",fill:"currentColor"}),J.createElement("path",{opacity:.916667,d:"M56.8591 63.304C51.1196 59.9903 45.1237 59.6304 43.4668 62.5001C41.8099 65.3699 45.1196 70.3826 50.8591 73.6963C56.5986 77.01 62.5946 77.3699 64.2514 74.5001C65.9083 71.6304 62.5986 66.6177 56.8591 63.304Z",fill:"currentColor"}),J.createElement("path",{d:"M73.697 50.8591C70.3833 45.1196 65.3706 41.8099 62.5008 43.4668C59.6311 45.1237 59.991 51.1196 63.3047 56.8591C66.6184 62.5986 71.6311 65.9083 74.5008 64.2514C77.3706 62.5946 77.0107 56.5986 73.697 50.8591Z",fill:"currentColor"}));function xr({className:e,size:r=150,iconClassName:a,isLoading:o=!1,isFullPage:c=!0,variant:s="yellow"}){return o?t.jsx("div",{className:n("z-[99px] flex flex-col items-center justify-center transition-all duration-300",c?"fixed inset-0 backdrop-blur-[2px]":"absolute inset-0 w-full h-full rounded-[inherit]",e),children:t.jsx(vr,{width:r,height:r,className:n("animate-spin",!a&&(s==="blue"?"text-blue-600":"text-yellow-500"),a),style:{fill:"currentColor",stroke:"currentColor"}})}):null}const yr={sm:{input:"h-9 text-sm",iconPadding:"pl-8 pr-2",defaultPadding:"px-2",iconSize:"w-4 h-4",iconLeft:"left-2",labelFont:"text-sm",iconWrapper:"h-4"},md:{input:"h-10 text-sm",iconPadding:"pl-10 pr-4",defaultPadding:"px-4",iconSize:"w-4 h-4",iconLeft:"left-3",labelFont:"text-base",iconWrapper:"h-4"},base:{input:"h-12 text-base",iconPadding:"pl-11 pr-4",defaultPadding:"px-4",iconSize:"w-5 h-5",iconLeft:"left-3",labelFont:"text-base",iconWrapper:"h-5"}};function kr(e){let r=e.replace(/\D/g,"");r.startsWith("998")||(r=`998${r}`),r=r.substring(0,12);let a="+998";return r.length>3&&(a+=` (${r.substring(3,5)}`),r.length>5&&(a+=`) ${r.substring(5,8)}`),r.length>8&&(a+=` ${r.substring(8,10)}`),r.length>10&&(a+=` ${r.substring(10,12)}`),a}function Nr(e){return e?"border-red-600 focus:border-red-600 shadow-red":"border-slate-200 hover:border-slate-400 focus:shadow-blue focus:border-blue-600"}function Cr(e,r,a){return e?"text-slate-400":r?"text-red-600":a?"text-black":"text-slate-400"}const He=l.forwardRef(({label:e,placeholder:r="+998 (__) ___ __ __",size:a="base",error:o,disabled:c=!1,required:s=!1,value:i="",onChange:d,onFocus:g,onBlur:b,className:x,name:S,showIcon:I=!1},T)=>{const[M,h]=l.useState(!1),v=E=>{const f=E.target.value;if(f.length<5){d?.("+998");return}const u=kr(f);d?.(u)},D=()=>{h(!0),(!i||i==="")&&d?.("+998"),g?.()},L=()=>{h(!1),b?.()},N=yr[a],p=I?N.iconPadding:N.defaultPadding,z=l.useMemo(()=>Nr(o),[o]),y=l.useMemo(()=>Cr(c,o,M),[o,M,c]);return t.jsxs("div",{className:n("w-full",x),children:[e&&t.jsxs("label",{className:n("mb-2 block font-medium transition-colors duration-200",o?"text-red-600":M?"text-blue-600":"text-slate-700",N.labelFont),children:[e,s&&t.jsx("span",{className:"text-red-600 ml-1",children:"*"})]}),t.jsxs("div",{className:"relative flex items-center",children:[I&&t.jsx("div",{className:n("absolute top-1/2 flex -translate-y-1/2 items-center justify-center transition-all duration-300",N.iconLeft,y),children:t.jsx("div",{className:n("flex items-center justify-center",N.iconWrapper),children:t.jsx(_.Phone,{className:n(N.iconSize),weight:"Linear"})})}),t.jsx("input",{ref:T,name:S,type:"tel",value:i,onChange:v,onFocus:D,onBlur:L,disabled:c,placeholder:r,className:n("w-full border bg-white font-normal transition-all duration-300 outline-none",a==="base"?"rounded-xl":"rounded-lg","disabled:bg-slate-100 disabled:text-slate-400 disabled:cursor-not-allowed",N.input,p,z)})]}),o&&t.jsx("p",{className:"mt-2 animate-slide-up text-sm font-normal text-red-600",children:o})]})});He.displayName="MciPhone";function Sr(e){const r=e.replace(/\s/g,"").toUpperCase();let a="";for(let o=0;o<r.length;o+=1){const c=r[o];if(a.length<2?/[A-Z]/.test(c)&&(a+=c):/[0-9]/.test(c)&&(a+=c),a.length>=9)break}return a.length>2?`${a.slice(0,2)} ${a.slice(2)}`:a}function Mr(e){return e.replace(/\D/g,"").slice(0,14)}function Er(e){return e.toUpperCase().replace(/[^A-Z0-9\-\s]/g,"").replace(/\s+/g," ").slice(0,15)}function Ar(e,r){return e==="passport"?Sr(r):e==="pinfl"?Mr(r):Er(r)}function Dr(e,r){return r||(e==="passport"?"AA 1234567":e==="pinfl"?"12345678901234":e==="metirka"?"I-TN 1234567":"")}function Tr(e,r){return r||(e==="passport"?10:e==="pinfl"?14:e==="metirka"?15:255)}const Ze=l.forwardRef(({mode:e,onChange:r,value:a,...o},c)=>{const[s,i]=l.useState(""),d=a!==void 0?a:s,g=l.useCallback(b=>{const x=b.target.value,S=Ar(e,x);a===void 0&&i(S),b.target.value=S,r?.(S,b)},[e,r,a]);return t.jsx(ve,{ref:c,...o,value:d,onChange:g,maxLength:Tr(e,o.maxLength),placeholder:Dr(e,o.placeholder)})});Ze.displayName="MciIdentityInput";function Ir({open:e,onClose:r,columns:a,hidden:o,onToggle:c,onMove:s,onMoveByKey:i,minVisible:d=5}){const g=l.useRef(null),{handleClick:b}=me(g,r);l.useEffect(()=>{if(e)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[e,b]);const x=l.useMemo(()=>new Set(o),[o]),S=l.useMemo(()=>{let u=0;for(const m of a)x.has(m.key)||u++;return u},[a,x]),[I,T]=l.useState(null),[M,h]=l.useState(null),[v,D]=l.useState(null),[L,N]=l.useState("before"),p=l.useCallback((u,m,j)=>{let F=j==="after"?m+1:m;return u<F&&(F-=1),F},[]),z=l.useCallback(()=>{T(null),D(null),h(null),N("before")},[]),y=l.useCallback((u,m,j)=>{T(m),D(String(j)),h(null),N("before"),u.dataTransfer.effectAllowed="move",u.dataTransfer.setData("text/plain",String(m));const F=new Image;F.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",u.dataTransfer.setDragImage(F,0,0)},[]),E=l.useCallback((u,m)=>{u.preventDefault();const j=I??Number.parseInt(u.dataTransfer.getData("text/plain")||"-1",10);if(!Number.isFinite(j)||j<0){z();return}const F=a[j],O=a[m];if(!F||!O){z();return}const W=p(j,m,L);W!==j&&(i?i(F.key,O.key,L):s(j,W)),z()},[a,p,I,L,s,i,z]),f=l.useCallback((u,m)=>{m||c(u)},[c]);return e?t.jsxs("div",{ref:g,className:n("absolute right-0 top-full z-50 mt-2 w-[320px]","rounded-2xl p-4 bg-white","border border-slate-200"),children:[t.jsxs("div",{className:"flex items-center justify-between gap-4",children:[t.jsx("h4",{className:"text-slate-600 text-large font-normal",children:"Settings"}),t.jsx("button",{type:"button",onClick:r,className:"rounded-lg px-2 py-1 text-slate-500 hover:bg-slate-100","aria-label":"Close",children:"✕"})]}),t.jsx("div",{className:"my-4 h-px bg-slate-100"}),t.jsxs("p",{className:"mb-3 text-xs text-slate-500",children:["Active columns: ",S,"/",a.length]}),t.jsx("div",{className:n("max-h-[275px] overflow-auto","[&::-webkit-scrollbar]:w-1.5","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:bg-slate-200","[&::-webkit-scrollbar-thumb]:rounded-full","hover:[&::-webkit-scrollbar-thumb]:bg-slate-300"),children:a.map((u,m)=>{const j=!x.has(u.key),F=j&&S<=d,O=M===m,W=v===u.key;return t.jsxs("div",{className:"relative",children:[O&&!W&&t.jsx("div",{className:n("pointer-events-none absolute left-2 right-2 z-10 h-0.5 rounded-full bg-blue-300",L==="before"?"top-0":"bottom-0")}),t.jsxs("div",{draggable:!0,onDragStart:U=>y(U,m,u.key),onDragOver:U=>{if(I==null)return;U.preventDefault(),U.dataTransfer.dropEffect="move";const q=U.currentTarget.getBoundingClientRect(),te=U.clientY-q.top>q.height/2?"after":"before";M!==m&&h(m),L!==te&&N(te)},onDrop:U=>E(U,m),onDragEnd:z,className:n("group flex items-center py-2 px-1 gap-4","rounded-md box-border overflow-visible","transition-[background,transform] duration-150",!W&&!O&&"hover:bg-slate-50",O&&!W&&"bg-slate-50",W&&"bg-slate-50 opacity-100 scale-[0.99] cursor-grabbing"),children:[t.jsx("button",{type:"button",className:n("shrink-0 text-slate-400","cursor-grab active:cursor-grabbing","rounded-lg p-1 hover:bg-slate-100",W&&"cursor-grabbing"),"aria-label":"Drag",children:t.jsx(_.TransferVertical,{weight:"Linear",size:20})}),t.jsx("div",{className:"shrink-0",children:t.jsx(fe,{checked:j,disabled:F,onChange:()=>f(u.key,F),variant:"blue"})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("h4",{className:"truncate text-slate-700 text-base font-medium",title:u.title,children:u.title}),F&&t.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["Минимум ",d," колонок"]})]})]}),m!==a.length-1&&t.jsx("div",{className:"mx-2 h-px bg-slate-100"})]},u.key)})})]}):null}const qe=e=>Array.isArray(e)&&e.every(r=>typeof r=="string"),Fr=e=>{if(!e)return null;try{const r=JSON.parse(e);if(typeof r!="object"||r===null)return null;const a=r;return!qe(a.order)||!qe(a.hidden)?null:{order:a.order,hidden:a.hidden}}catch{return null}},se=e=>{const r=new Set,a=[];for(const o of e)r.has(o)||(r.add(o),a.push(o));return a},zr=e=>new Set((e??[]).map(String)),Xe=(e,r)=>{const a=r?se(r.filter(o=>e.includes(o))):[];return se([...a,...e])},Ke=(e,r)=>{if(!r?.length)return[];const a=zr(r);return e.filter(o=>!a.has(o))},jr=(e,r)=>Math.max(0,Math.min(e,r)),we=(e,r,a)=>{const o=new Set(r),c=se(e.filter(i=>o.has(i))),s=Math.max(0,r.length-a);return c.slice(0,s)};function Lr(e){const{storageKey:r,columns:a,defaultVisibleKeys:o,defaultOrder:c,minVisible:s=5}=e,i=l.useMemo(()=>a.map(p=>String(p.key)),[a]),d=l.useMemo(()=>new Set(i),[i]),g=l.useMemo(()=>jr(s,i.length),[i.length,s]),[b,x]=l.useState(()=>{const p=Xe(i,c?.map(String)??[]),z=Ke(i,o?.map(String)??[]);if(typeof window>"u")return{order:p,hidden:we(z,i,g)};const y=Fr(window.localStorage.getItem(r)),E=se((y?.order??[]).filter(j=>d.has(j))),f=se([...E,...p,...i]),u=se((y?.hidden??[]).filter(j=>d.has(j)));return{order:f,hidden:we(y?u:z,i,g)}});l.useEffect(()=>{if(!(typeof window>"u"))try{window.localStorage.setItem(r,JSON.stringify(b))}catch{}},[b,r]),l.useEffect(()=>{x(p=>{const z=se([...p.order.filter(u=>d.has(u)),...i.filter(u=>!p.order.includes(u))]),y=we(p.hidden,i,g),E=z.length===p.order.length&&z.every((u,m)=>u===p.order[m]),f=y.length===p.hidden.length&&y.every((u,m)=>u===p.hidden[m]);return E&&f?p:{order:z,hidden:y}})},[i,d,g]);const S=l.useMemo(()=>new Set(b.hidden),[b.hidden]),I=l.useMemo(()=>{const p=new Map;return b.order.forEach((z,y)=>p.set(z,y)),[...a].sort((z,y)=>{const E=p.get(String(z.key))??Number.MAX_SAFE_INTEGER,f=p.get(String(y.key))??Number.MAX_SAFE_INTEGER;return E-f})},[a,b.order]),T=l.useMemo(()=>I.filter(p=>!S.has(String(p.key))),[I,S]),M=l.useMemo(()=>b.hidden.filter(p=>d.has(p)),[b.hidden,d]),h=i.length-M.length,v=l.useCallback(p=>{const z=String(p);x(y=>{if(y.hidden.includes(z))return{...y,hidden:y.hidden.filter(m=>m!==z)};if(i.length-y.hidden.length<=g)return y;const u=we([...y.hidden,z],i,g);return{...y,hidden:u}})},[i,g]),D=l.useCallback((p,z)=>{x(y=>{const E=y.order.slice();if(p<0||z<0||p>=E.length||z>=E.length)return y;const[f]=E.splice(p,1);return E.splice(z,0,f),{...y,order:E}})},[]),L=l.useCallback((p,z,y="before")=>{const E=String(p),f=String(z);E!==f&&x(u=>{const m=u.order.slice(),j=m.indexOf(E),F=m.indexOf(f);if(j<0||F<0||j===F)return u;let O=y==="after"?F+1:F;if(j<O&&(O-=1),O===j)return u;const[W]=m.splice(j,1);return m.splice(O,0,W),{...u,order:m}})},[]),N=l.useCallback(()=>{x(()=>{const p=Xe(i,c?.map(String)??[]),z=Ke(i,o?.map(String)??[]);return{order:p,hidden:we(z,i,g)}})},[i,c,o,g]);return{orderedAllColumns:I,orderedColumns:T,hiddenKeys:M,visibleCount:h,toggleColumn:v,moveColumn:D,moveColumnByKey:L,reset:N}}P.MciAccordion=Te,P.MciBreadcrumb=ot,P.MciButton=it,P.MciCheck=fe,P.MciCollapse=ut,P.MciDrawer=ft,P.MciIdentityInput=Ze,P.MciInput=ve,P.MciLoader=xr,P.MciModal=Jt,P.MciPagination=tr,P.MciPhone=He,P.MciPicker=Be,P.MciSelect=We,P.MciSkeleton=je,P.MciTable=zt,P.MciTableColumnsPanel=Ir,P.MciTabs=lr,P.MciTag=ir,P.MciTextarea=Ue,P.MciToast=hr,P.MciToggle=mr,P.MciTooltip=wr,P.MciUpload=Gt,P.useTableColumnSettings=Lr,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));