@mvr-ui/components 1.0.102 → 1.0.103

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/mvr-ui.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
- @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-space-y-reverse:0;--tw-space-x-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-tracking: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-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-rose-50:oklch(96.9% .015 12.422);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--radius-2xl:1rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;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;-webkit-text-decoration: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}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.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-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-8{right:calc(var(--spacing)*8)}.bottom-2{bottom:calc(var(--spacing)*2)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.z-50{z-index:50}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.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-20{height:calc(var(--spacing)*20)}.h-56{height:calc(var(--spacing)*56)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing)*60)}.min-h-\[40px\]{min-height:40px}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.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-20{width:calc(var(--spacing)*20)}.w-85{width:calc(var(--spacing)*85)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-16{min-width:calc(var(--spacing)*16)}.min-w-20{min-width:calc(var(--spacing)*20)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-28{min-width:calc(var(--spacing)*28)}.min-w-32{min-width:calc(var(--spacing)*32)}.flex-1{flex:1}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1{--tw-translate-x:calc(var(--spacing)*1);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:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.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)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}: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-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-800{border-color:var(--color-gray-800)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-500{border-color:var(--color-red-500)}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-zinc-200{border-color:var(--color-zinc-200)}.bg-accent{background-color:var(--accent)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-input{background-color:var(--input)}.bg-muted{background-color:var(--muted)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/5{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/5{background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-to-br{--tw-gradient-position:to bottom right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-br{--tw-gradient-position:to bottom right in oklab}}.bg-linear-to-br{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-tr{--tw-gradient-position:to top right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-tr{--tw-gradient-position:to top right in oklab}}.bg-linear-to-tr{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-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-50{--tw-gradient-from:var(--color-red-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))}.from-red-200{--tw-gradient-from:var(--color-red-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-600{--tw-gradient-from:var(--color-red-600);--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))}.via-rose-50{--tw-gradient-via:var(--color-rose-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--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-red-100{--tw-gradient-to:var(--color-red-100);--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-red-700{--tw-gradient-to:var(--color-red-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-accent-foreground{color:var(--accent-foreground)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--card-foreground)}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.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-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-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-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-red-200{--tw-ring-color:var(--color-red-200)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur{--tw-backdrop-blur:blur(8px);-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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-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-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.fade-in{--tw-enter-opacity:0}.running{animation-play-state:running}.peer-checked\:bg-primary:is(:where(.peer):checked~*){background-color:var(--primary)}.peer-focus\:ring-2:is(:where(.peer):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)}.peer-focus\:ring-ring:is(:where(.peer):focus~*){--tw-ring-color:var(--ring)}.peer-focus\:ring-offset-2:is(:where(.peer):focus~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-focus\:ring-offset-background:is(:where(.peer):focus~*){--tw-ring-offset-color:var(--background)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-gray-500::placeholder{color:var(--color-gray-500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.focus-within\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\:ring-2:focus-within{--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-within\:ring-blue-500:focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.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-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-gray-900:hover{background-color:var(--color-gray-900)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-muted:hover,.hover\:bg-muted\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/80:hover{background-color:color-mix(in oklab,var(--muted)80%,transparent)}}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:bg-zinc-200:hover{background-color:var(--color-zinc-200)}.hover\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\:from-blue-700:hover{--tw-gradient-from:var(--color-blue-700);--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))}.hover\:to-purple-700:hover{--tw-gradient-to:var(--color-purple-700);--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))}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-red-600\/40:hover{--tw-shadow-color:#e4001466}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-red-600\/40:hover{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-600)40%,transparent)var(--tw-shadow-alpha),transparent)}}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-red-50:focus{background-color:var(--color-red-50)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-red-700:focus{color:var(--color-red-700)}.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-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--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-visible\:ring-amber-500:focus-visible{--tw-ring-color:var(--color-amber-500)}.focus-visible\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\:ring-cyan-500:focus-visible{--tw-ring-color:var(--color-cyan-500)}.focus-visible\:ring-destructive:focus-visible{--tw-ring-color:var(--destructive)}.focus-visible\:ring-gray-400:focus-visible{--tw-ring-color:var(--color-gray-400)}.focus-visible\:ring-gray-500:focus-visible{--tw-ring-color:var(--color-gray-500)}.focus-visible\:ring-gray-700:focus-visible{--tw-ring-color:var(--color-gray-700)}.focus-visible\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-color:var(--color-purple-500)}.focus-visible\:ring-red-500:focus-visible{--tw-ring-color:var(--color-red-500)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-violet-500:focus-visible{--tw-ring-color:var(--color-violet-500)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:translate-y-1:active{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:is(.dark *){border-color:var(--color-gray-700)}.dark\:border-zinc-700:is(.dark *){border-color:var(--color-zinc-700)}.dark\:bg-blue-800:is(.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900:is(.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-red-900\/40:is(.dark *){background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/40:is(.dark *){background-color:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:bg-zinc-900\/90:is(.dark *){background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-zinc-900\/90:is(.dark *){background-color:color-mix(in oklab,var(--color-zinc-900)90%,transparent)}}.dark\:from-red-900\/40:is(.dark *){--tw-gradient-from:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:from-red-900\/40:is(.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:from-red-900\/40:is(.dark *){--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))}.dark\:from-red-950:is(.dark *){--tw-gradient-from:var(--color-red-950);--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))}.dark\:via-zinc-950:is(.dark *){--tw-gradient-via:var(--color-zinc-950);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:to-red-800\/40:is(.dark *){--tw-gradient-to:#9f071266}@supports (color:color-mix(in lab, red, red)){.dark\:to-red-800\/40:is(.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-red-800)40%,transparent)}}.dark\:to-red-800\/40:is(.dark *){--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))}.dark\:to-red-900\/30:is(.dark *){--tw-gradient-to:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:to-red-900\/30:is(.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:to-red-900\/30:is(.dark *){--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))}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-gray-100:is(.dark *){color:var(--color-gray-100)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-zinc-100:is(.dark *){color:var(--color-zinc-100)}.dark\:text-zinc-300:is(.dark *){color:var(--color-zinc-300)}.dark\:text-zinc-400:is(.dark *){color:var(--color-zinc-400)}.dark\:ring-red-800:is(.dark *){--tw-ring-color:var(--color-red-800)}.dark\:placeholder\:text-gray-400:is(.dark *)::placeholder{color:var(--color-gray-400)}@media (hover:hover){.dark\:hover\:bg-blue-800:is(.dark *):hover{background-color:var(--color-blue-800)}.dark\:hover\:bg-gray-700:is(.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:bg-zinc-800:is(.dark *):hover{background-color:var(--color-zinc-800)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}}.dark\:focus\:ring-offset-zinc-900:is(.dark *):focus{--tw-ring-offset-color:var(--color-zinc-900)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@keyframes wave{0%,to{height:40%}50%{height:80%}}@keyframes clock{0%{transform:translateY(-50%)rotate(0)}to{transform:translateY(-50%)rotate(360deg)}}@keyframes orbit{0%{transform:translate(-50%)rotate(0)translateY(-100%)rotate(0)}to{transform:translate(-50%)rotate(360deg)translateY(-100%)rotate(-360deg)}}@keyframes rotateCube{0%{transform:rotateX(0)rotateY(0)}to{transform:rotateX(360deg)rotateY(360deg)}}@keyframes circleDots{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadePulse{0%,to{opacity:.2}50%{opacity:1}}@keyframes infinity1{0%,to{r:4}50%{r:12}}@keyframes infinity2{0%,to{r:12}50%{r:4}}@keyframes infinity3{0%,to{r:4}50%{r:12}}.animate-wave{animation:1.2s ease-in-out infinite wave}.animate-clock{animation:4s linear infinite clock}.animate-orbit{animation:1.5s linear infinite orbit}.animate-rotateCube{animation:2s linear infinite rotateCube}.animate-circleDots{animation:1.2s linear infinite circleDots}.animate-fadePulse{animation:1.2s ease-in-out infinite fadePulse}.animate-infinity1{animation:1.5s ease-in-out infinite infinity1}.animate-infinity2{animation:1.5s ease-in-out .5s infinite infinity2}.animate-infinity3{animation:1.5s ease-in-out 1s infinite infinity3}.animate-pulseSlow{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-pulseFast{animation:.5s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-bounceSlow{animation:2s infinite bounce}.animate-bounceFast{animation:.5s infinite bounce}.transform-style-3d{transform-style:preserve-3d}.transform-rotateY\(90deg\){transform:rotateY(90deg)}.transform-rotateX\(90deg\){transform:rotateX(90deg)}@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-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-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-tracking{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}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}
2
+ @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-space-y-reverse:0;--tw-space-x-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-tracking: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-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-rose-50:oklch(96.9% .015 12.422);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--radius-2xl:1rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;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;-webkit-text-decoration: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}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.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-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-8{right:calc(var(--spacing)*8)}.bottom-2{bottom:calc(var(--spacing)*2)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.z-50{z-index:50}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.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-20{height:calc(var(--spacing)*20)}.h-56{height:calc(var(--spacing)*56)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-72{max-height:calc(var(--spacing)*72)}.min-h-\[40px\]{min-height:40px}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.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-20{width:calc(var(--spacing)*20)}.w-85{width:calc(var(--spacing)*85)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-16{min-width:calc(var(--spacing)*16)}.min-w-20{min-width:calc(var(--spacing)*20)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-28{min-width:calc(var(--spacing)*28)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-70{min-width:calc(var(--spacing)*70)}.flex-1{flex:1}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-1{--tw-translate-x:calc(var(--spacing)*1);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:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.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)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}: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-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--border)}.border-destructive{border-color:var(--destructive)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-800{border-color:var(--color-gray-800)}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-500{border-color:var(--color-red-500)}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-zinc-200{border-color:var(--color-zinc-200)}.bg-accent{background-color:var(--accent)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-input{background-color:var(--input)}.bg-muted{background-color:var(--muted)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/5{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/5{background-color:color-mix(in oklab,var(--primary)5%,transparent)}}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-secondary{background-color:var(--secondary)}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-to-br{--tw-gradient-position:to bottom right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-br{--tw-gradient-position:to bottom right in oklab}}.bg-linear-to-br{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-r{--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-r{--tw-gradient-position:to right in oklab}}.bg-linear-to-r{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-tr{--tw-gradient-position:to top right}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-tr{--tw-gradient-position:to top right in oklab}}.bg-linear-to-tr{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-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-50{--tw-gradient-from:var(--color-red-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))}.from-red-200{--tw-gradient-from:var(--color-red-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-600{--tw-gradient-from:var(--color-red-600);--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))}.via-rose-50{--tw-gradient-via:var(--color-rose-50);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--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-red-100{--tw-gradient-to:var(--color-red-100);--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-red-700{--tw-gradient-to:var(--color-red-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.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)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-accent-foreground{color:var(--accent-foreground)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--card-foreground)}.text-foreground{color:var(--foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-muted-foreground{color:var(--muted-foreground)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.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-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-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-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-red-200{--tw-ring-color:var(--color-red-200)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur{--tw-backdrop-blur:blur(8px);-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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-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-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.fade-in{--tw-enter-opacity:0}.running{animation-play-state:running}.peer-checked\:bg-primary:is(:where(.peer):checked~*){background-color:var(--primary)}.peer-focus\:ring-2:is(:where(.peer):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)}.peer-focus\:ring-ring:is(:where(.peer):focus~*){--tw-ring-color:var(--ring)}.peer-focus\:ring-offset-2:is(:where(.peer):focus~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-focus\:ring-offset-background:is(:where(.peer):focus~*){--tw-ring-offset-color:var(--background)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-gray-500::placeholder{color:var(--color-gray-500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.focus-within\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\:ring-2:focus-within{--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-within\:ring-blue-500:focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:border-ring:hover{border-color:var(--ring)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.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-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-gray-900:hover{background-color:var(--color-gray-900)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-muted:hover,.hover\:bg-muted\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/80:hover{background-color:color-mix(in oklab,var(--muted)80%,transparent)}}.hover\:bg-primary:hover,.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:bg-zinc-200:hover{background-color:var(--color-zinc-200)}.hover\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\:from-blue-700:hover{--tw-gradient-from:var(--color-blue-700);--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))}.hover\:to-purple-700:hover{--tw-gradient-to:var(--color-purple-700);--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))}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-red-600\/40:hover{--tw-shadow-color:#e4001466}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-red-600\/40:hover{--tw-shadow-color:color-mix(in oklab,color-mix(in oklab,var(--color-red-600)40%,transparent)var(--tw-shadow-alpha),transparent)}}}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:bg-red-50:focus{background-color:var(--color-red-50)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:text-red-700:focus{color:var(--color-red-700)}.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-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--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-visible\:ring-amber-500:focus-visible{--tw-ring-color:var(--color-amber-500)}.focus-visible\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\:ring-cyan-500:focus-visible{--tw-ring-color:var(--color-cyan-500)}.focus-visible\:ring-destructive:focus-visible{--tw-ring-color:var(--destructive)}.focus-visible\:ring-gray-400:focus-visible{--tw-ring-color:var(--color-gray-400)}.focus-visible\:ring-gray-500:focus-visible{--tw-ring-color:var(--color-gray-500)}.focus-visible\:ring-gray-700:focus-visible{--tw-ring-color:var(--color-gray-700)}.focus-visible\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-color:var(--color-purple-500)}.focus-visible\:ring-red-500:focus-visible{--tw-ring-color:var(--color-red-500)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-violet-500:focus-visible{--tw-ring-color:var(--color-violet-500)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:translate-y-1:active{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:is(.dark *){border-color:var(--color-gray-700)}.dark\:border-zinc-700:is(.dark *){border-color:var(--color-zinc-700)}.dark\:bg-blue-800:is(.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900:is(.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-red-900\/40:is(.dark *){background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/40:is(.dark *){background-color:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:bg-zinc-900\/90:is(.dark *){background-color:#18181be6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-zinc-900\/90:is(.dark *){background-color:color-mix(in oklab,var(--color-zinc-900)90%,transparent)}}.dark\:from-red-900\/40:is(.dark *){--tw-gradient-from:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:from-red-900\/40:is(.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:from-red-900\/40:is(.dark *){--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))}.dark\:from-red-950:is(.dark *){--tw-gradient-from:var(--color-red-950);--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))}.dark\:via-zinc-950:is(.dark *){--tw-gradient-via:var(--color-zinc-950);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.dark\:to-red-800\/40:is(.dark *){--tw-gradient-to:#9f071266}@supports (color:color-mix(in lab, red, red)){.dark\:to-red-800\/40:is(.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-red-800)40%,transparent)}}.dark\:to-red-800\/40:is(.dark *){--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))}.dark\:to-red-900\/30:is(.dark *){--tw-gradient-to:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:to-red-900\/30:is(.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:to-red-900\/30:is(.dark *){--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))}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-gray-100:is(.dark *){color:var(--color-gray-100)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-zinc-100:is(.dark *){color:var(--color-zinc-100)}.dark\:text-zinc-300:is(.dark *){color:var(--color-zinc-300)}.dark\:text-zinc-400:is(.dark *){color:var(--color-zinc-400)}.dark\:ring-red-800:is(.dark *){--tw-ring-color:var(--color-red-800)}.dark\:placeholder\:text-gray-400:is(.dark *)::placeholder{color:var(--color-gray-400)}@media (hover:hover){.dark\:hover\:bg-blue-800:is(.dark *):hover{background-color:var(--color-blue-800)}.dark\:hover\:bg-gray-700:is(.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:bg-zinc-800:is(.dark *):hover{background-color:var(--color-zinc-800)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}}.dark\:focus\:ring-offset-zinc-900:is(.dark *):focus{--tw-ring-offset-color:var(--color-zinc-900)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@keyframes wave{0%,to{height:40%}50%{height:80%}}@keyframes clock{0%{transform:translateY(-50%)rotate(0)}to{transform:translateY(-50%)rotate(360deg)}}@keyframes orbit{0%{transform:translate(-50%)rotate(0)translateY(-100%)rotate(0)}to{transform:translate(-50%)rotate(360deg)translateY(-100%)rotate(-360deg)}}@keyframes rotateCube{0%{transform:rotateX(0)rotateY(0)}to{transform:rotateX(360deg)rotateY(360deg)}}@keyframes circleDots{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadePulse{0%,to{opacity:.2}50%{opacity:1}}@keyframes infinity1{0%,to{r:4}50%{r:12}}@keyframes infinity2{0%,to{r:12}50%{r:4}}@keyframes infinity3{0%,to{r:4}50%{r:12}}.animate-wave{animation:1.2s ease-in-out infinite wave}.animate-clock{animation:4s linear infinite clock}.animate-orbit{animation:1.5s linear infinite orbit}.animate-rotateCube{animation:2s linear infinite rotateCube}.animate-circleDots{animation:1.2s linear infinite circleDots}.animate-fadePulse{animation:1.2s ease-in-out infinite fadePulse}.animate-infinity1{animation:1.5s ease-in-out infinite infinity1}.animate-infinity2{animation:1.5s ease-in-out .5s infinite infinity2}.animate-infinity3{animation:1.5s ease-in-out 1s infinite infinity3}.animate-pulseSlow{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-pulseFast{animation:.5s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-bounceSlow{animation:2s infinite bounce}.animate-bounceFast{animation:.5s infinite bounce}.transform-style-3d{transform-style:preserve-3d}.transform-rotateY\(90deg\){transform:rotateY(90deg)}.transform-rotateX\(90deg\){transform:rotateX(90deg)}@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-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-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-tracking{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}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}
package/dist/page.d.mts CHANGED
@@ -205,6 +205,21 @@ interface ComboBoxGenericComponent {
205
205
  }
206
206
  declare const ComboBoxPrimitive: ComboBoxGenericComponent;
207
207
 
208
+ type DateInputType = "date" | "datetime-local" | "month" | "year" | "week";
209
+ interface DatePickerProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> {
210
+ label?: string;
211
+ required?: boolean;
212
+ value?: Date;
213
+ placeholder?: string;
214
+ type?: DateInputType;
215
+ locale?: string;
216
+ disabled?: boolean;
217
+ error?: string;
218
+ helperText?: string;
219
+ className?: string;
220
+ }
221
+ declare const DatePickerPrimitive: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<HTMLInputElement>>;
222
+
208
223
  interface HelperFieldProps {
209
224
  children: string;
210
225
  className?: string;
@@ -372,4 +387,4 @@ interface ValidateFieldProps {
372
387
  }
373
388
  declare const ValidateFieldPrimitive: React$1.FunctionComponent<ValidateFieldProps>;
374
389
 
375
- export { AccordionItemData, AccordionPrimitive, AccordionProps, BadgePrimitive, BadgeProps, ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ColorPicker, ColorPickerPrimitive, ColorPickerProps, ComboBoxPrimitive, DropdownMenuContentPrimitive, DropdownMenuContentProps, DropdownMenuItemPrimitive, DropdownMenuItemProps, DropdownMenuLabelPrimitive, DropdownMenuLabelProps, DropdownMenuPrimitive, DropdownMenuProps, DropdownMenuSeparatorPrimitive, DropdownMenuSeparatorProps, DropdownMenuTriggerPrimitive, DropdownMenuTriggerProps, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, OtpInputPrimitive, OtpInputProps, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, UploadFilePrimitive, UploadFileProps, ValidateFieldPrimitive, ValidateFieldProps };
390
+ export { AccordionItemData, AccordionPrimitive, AccordionProps, BadgePrimitive, BadgeProps, ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ColorPicker, ColorPickerPrimitive, ColorPickerProps, ComboBoxPrimitive, DatePickerPrimitive, DatePickerProps, DropdownMenuContentPrimitive, DropdownMenuContentProps, DropdownMenuItemPrimitive, DropdownMenuItemProps, DropdownMenuLabelPrimitive, DropdownMenuLabelProps, DropdownMenuPrimitive, DropdownMenuProps, DropdownMenuSeparatorPrimitive, DropdownMenuSeparatorProps, DropdownMenuTriggerPrimitive, DropdownMenuTriggerProps, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, OtpInputPrimitive, OtpInputProps, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, UploadFilePrimitive, UploadFileProps, ValidateFieldPrimitive, ValidateFieldProps };
package/dist/page.d.ts CHANGED
@@ -205,6 +205,21 @@ interface ComboBoxGenericComponent {
205
205
  }
206
206
  declare const ComboBoxPrimitive: ComboBoxGenericComponent;
207
207
 
208
+ type DateInputType = "date" | "datetime-local" | "month" | "year" | "week";
209
+ interface DatePickerProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> {
210
+ label?: string;
211
+ required?: boolean;
212
+ value?: Date;
213
+ placeholder?: string;
214
+ type?: DateInputType;
215
+ locale?: string;
216
+ disabled?: boolean;
217
+ error?: string;
218
+ helperText?: string;
219
+ className?: string;
220
+ }
221
+ declare const DatePickerPrimitive: React__default.ForwardRefExoticComponent<DatePickerProps & React__default.RefAttributes<HTMLInputElement>>;
222
+
208
223
  interface HelperFieldProps {
209
224
  children: string;
210
225
  className?: string;
@@ -372,4 +387,4 @@ interface ValidateFieldProps {
372
387
  }
373
388
  declare const ValidateFieldPrimitive: React$1.FunctionComponent<ValidateFieldProps>;
374
389
 
375
- export { AccordionItemData, AccordionPrimitive, AccordionProps, BadgePrimitive, BadgeProps, ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ColorPicker, ColorPickerPrimitive, ColorPickerProps, ComboBoxPrimitive, DropdownMenuContentPrimitive, DropdownMenuContentProps, DropdownMenuItemPrimitive, DropdownMenuItemProps, DropdownMenuLabelPrimitive, DropdownMenuLabelProps, DropdownMenuPrimitive, DropdownMenuProps, DropdownMenuSeparatorPrimitive, DropdownMenuSeparatorProps, DropdownMenuTriggerPrimitive, DropdownMenuTriggerProps, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, OtpInputPrimitive, OtpInputProps, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, UploadFilePrimitive, UploadFileProps, ValidateFieldPrimitive, ValidateFieldProps };
390
+ export { AccordionItemData, AccordionPrimitive, AccordionProps, BadgePrimitive, BadgeProps, ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ColorPicker, ColorPickerPrimitive, ColorPickerProps, ComboBoxPrimitive, DatePickerPrimitive, DatePickerProps, DropdownMenuContentPrimitive, DropdownMenuContentProps, DropdownMenuItemPrimitive, DropdownMenuItemProps, DropdownMenuLabelPrimitive, DropdownMenuLabelProps, DropdownMenuPrimitive, DropdownMenuProps, DropdownMenuSeparatorPrimitive, DropdownMenuSeparatorProps, DropdownMenuTriggerPrimitive, DropdownMenuTriggerProps, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, OtpInputPrimitive, OtpInputProps, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, UploadFilePrimitive, UploadFileProps, ValidateFieldPrimitive, ValidateFieldProps };
package/dist/page.js CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var yr = require('react');
5
- var en = require('clsx');
4
+ var jr = require('react');
5
+ var zn = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
- var yr__default = /*#__PURE__*/_interopDefault(yr);
11
- var en__default = /*#__PURE__*/_interopDefault(en);
10
+ var jr__default = /*#__PURE__*/_interopDefault(jr);
11
+ var zn__default = /*#__PURE__*/_interopDefault(zn);
12
12
 
13
- var Ue=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsxRuntime.jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsxRuntime.jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsxRuntime.jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxRuntime.jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"M12 9v4"}),jsxRuntime.jsx("path",{d:"M12 17h.01"}),jsxRuntime.jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsxRuntime.jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsxRuntime.jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsxRuntime.jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsxRuntime.jsx("div",{className:"flex flex-col gap-3",children:o.map((a,i)=>{let s=a.variant!=="secondary";return jsxRuntime.jsx("button",{onClick:a.onClick,className:s?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:a.label},i)})})]})});var qe=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
13
+ var ot=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsxRuntime.jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsxRuntime.jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsxRuntime.jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxRuntime.jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"M12 9v4"}),jsxRuntime.jsx("path",{d:"M12 17h.01"}),jsxRuntime.jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsxRuntime.jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsxRuntime.jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsxRuntime.jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsxRuntime.jsx("div",{className:"flex flex-col gap-3",children:o.map((i,a)=>{let l=i.variant!=="secondary";return jsxRuntime.jsx("button",{onClick:i.onClick,className:l?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i.label},a)})})]})});var at=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
14
14
  Ol\xE1,
15
15
 
16
16
  Estou enfrentando um problema com a licen\xE7a da aplica\xE7\xE3o.
@@ -19,53 +19,68 @@ Erro:
19
19
  ${t??"Licen\xE7a inv\xE1lida"}
20
20
 
21
21
  Aguardo retorno.
22
- `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var ze=(e,t)=>{let r=`
22
+ `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var it=(e,t)=>{let r=`
23
23
  Ol\xE1! Estou com um problema de licen\xE7a na aplica\xE7\xE3o.
24
24
 
25
25
  Erro:
26
26
  ${t??"Licen\xE7a inv\xE1lida"}
27
27
 
28
28
  Pode me ajudar?
29
- `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var We=yr.createContext(void 0),dr=({children:e,licenseKey:t})=>{let[r,n]=yr.useState(!1),[o,a]=yr.useState(null),[i,s]=yr.useState(!0),l=g=>{if(a(null),!g)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let c="chave-secreta-123";if(g!==c)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return yr.useEffect(()=>{if(t){s(!0);try{l(t);}catch(g){a(g instanceof Error?g.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{s(!1);}}else a("\u{1F512} Licen\xE7a n\xE3o informada"),s(!1);},[t]),i?null:jsxRuntime.jsx(We.Provider,{value:{isLicenseValid:r,validateLicense:l,licenseError:o},children:r?e:jsxRuntime.jsx(Ue,{badge:"Licen\xE7a necess\xE1ria",title:"Erro de Licen\xE7a",message:o||"Licen\xE7a inv\xE1lida",description:"Sua aplica\xE7\xE3o precisa de uma licen\xE7a v\xE1lida para continuar.",actions:[{label:"Tentar novamente",onClick:()=>window.location.reload()},{label:"Falar no WhatsApp",variant:"secondary",onClick:()=>ze("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>qe("marcos.vinicius.engsof@gmail.com",o)}]})})},Xe=()=>{let e=yr.useContext(We);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var Je=({message:e="Component locked - Please validate your license"})=>jsxRuntime.jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsxRuntime.jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsxRuntime.jsx("span",{children:e})]});var f=({children:e})=>{let{isLicenseValid:t}=Xe();return t?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(Je,{})};var Ye=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:a=""})=>{let i=c=>c===void 0?[]:Array.isArray(c)?c:[c],[s,l]=yr.useState(i(n??r));yr.useEffect(()=>{n!==void 0&&l(i(n));},[n]);let g=yr.useCallback(c=>{l(h=>{let p;return t==="single"?p=h.includes(c)?[]:[c]:p=h.includes(c)?h.filter(d=>d!==c):[...h,c],o?.(t==="single"?p[0]??"":p),p});},[t,o]);return jsxRuntime.jsx("div",{className:`space-y-2 ${a}`,children:e.map(c=>jsxRuntime.jsx(br,{...c,isOpen:s.includes(c.id),onToggle:()=>g(c.id)},c.id))})},br=({title:e,content:t,disabled:r=!1,isOpen:n,onToggle:o})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"border border-border rounded-md overflow-hidden",children:[jsxRuntime.jsx("button",{onClick:o,disabled:r,className:`w-full px-4 py-3 text-left font-medium transition-colors
29
+ `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var lt=jr.createContext(void 0),Gr=({children:e,licenseKey:t})=>{let[r,n]=jr.useState(!1),[o,i]=jr.useState(null),[a,l]=jr.useState(!0),s=p=>{if(i(null),!p)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let d="chave-secreta-123";if(p!==d)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return jr.useEffect(()=>{if(t){l(!0);try{s(t);}catch(p){i(p instanceof Error?p.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),a?null:jsxRuntime.jsx(lt.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:o},children:r?e:jsxRuntime.jsx(ot,{badge:"Licen\xE7a necess\xE1ria",title:"Erro de Licen\xE7a",message:o||"Licen\xE7a inv\xE1lida",description:"Sua aplica\xE7\xE3o precisa de uma licen\xE7a v\xE1lida para continuar.",actions:[{label:"Tentar novamente",onClick:()=>window.location.reload()},{label:"Falar no WhatsApp",variant:"secondary",onClick:()=>it("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>at("marcos.vinicius.engsof@gmail.com",o)}]})})},ct=()=>{let e=jr.useContext(lt);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var ut=({message:e="Component locked - Please validate your license"})=>jsxRuntime.jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsxRuntime.jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsxRuntime.jsx("span",{children:e})]});var v=({children:e})=>{let{isLicenseValid:t}=ct();return t?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(ut,{})};var ft=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:i=""})=>{let a=d=>d===void 0?[]:Array.isArray(d)?d:[d],[l,s]=jr.useState(a(n??r));jr.useEffect(()=>{n!==void 0&&s(a(n));},[n]);let p=jr.useCallback(d=>{s(c=>{let u;return t==="single"?u=c.includes(d)?[]:[d]:u=c.includes(d)?c.filter(m=>m!==d):[...c,d],o?.(t==="single"?u[0]??"":u),u});},[t,o]);return jsxRuntime.jsx("div",{className:`space-y-2 ${i}`,children:e.map(d=>jsxRuntime.jsx(Kr,{...d,isOpen:l.includes(d.id),onToggle:()=>p(d.id)},d.id))})},Kr=({title:e,content:t,disabled:r=!1,isOpen:n,onToggle:o})=>jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"border border-border rounded-md overflow-hidden",children:[jsxRuntime.jsx("button",{onClick:o,disabled:r,className:`w-full px-4 py-3 text-left font-medium transition-colors
30
30
  ${r?"opacity-50 cursor-not-allowed":"hover:bg-accent hover:text-accent-foreground"}
31
31
  ${n?"bg-accent text-accent-foreground":"bg-background text-foreground"}
32
- `,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx("svg",{className:`w-5 h-5 transition-transform ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),n&&jsxRuntime.jsx("div",{className:"px-4 py-3 bg-background border-t border-border",children:t})]})});Ye.displayName="Accordion";var mo=Ye;function b(...e){return tailwindMerge.twMerge(en.clsx(e))}var et=yr.forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},a)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:a,className:t?e:b("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-red-500 text-white hover:bg-red-600",outline:"text-foreground border border-input",ghost:"bg-transparent text-foreground hover:bg-muted",link:"text-primary underline-offset-4 hover:underline",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-black hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",subtle:"bg-muted text-muted-foreground hover:bg-muted/80",dark:"bg-zinc-900 text-white hover:bg-zinc-800",light:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200"}[r],e),...o,children:n})}));et.displayName="Badge";var To=et;var tt=yr__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:a,loading:i=!1,loadingContent:s,...l},g)=>{let c="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",h={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},p={xs:"h-7 px-2 text-xs min-w-16",sm:"h-9 px-3 text-sm min-w-20",md:"h-10 px-4 py-2 text-base min-w-24",lg:"h-11 px-6 text-lg min-w-28",xl:"h-12 px-8 text-xl min-w-32"},d=t?e:b(c,h[r],p[n],e);return o?jsxRuntime.jsx(f,{children:jsxRuntime.jsx("a",{href:o,className:d,ref:g,children:i&&s?s:a})}):jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{className:d,ref:g,...l,children:i&&s?s:a})})});tt.displayName="Button";var ko=tt;var rt=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:b("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));rt.displayName="Card";var nt=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:b("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));nt.displayName="CardHeader";var ot=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("h3",{ref:o,className:t?e:b("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));ot.displayName="CardTitle";var at=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{ref:o,className:t?e:b("text-sm text-muted-foreground",e),...n,children:r})}));at.displayName="CardDescription";var it=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:b("p-6 pt-0",e),...n,children:r})}));it.displayName="CardContent";var st=yr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:b("flex items-center p-6 pt-0",e),...n,children:r})}));st.displayName="CardFooter";var Do=rt,Ao=nt,So=ot,$o=at,Bo=it,Oo=st;var ge=yr.createContext(void 0),ct=yr.forwardRef(({children:e,className:t,...r},n)=>{let[o,a]=yr.useState(!1);return jsxRuntime.jsx(f,{children:jsxRuntime.jsx(ge.Provider,{value:{isOpen:o,setIsOpen:a},children:jsxRuntime.jsx("div",{ref:n,className:b("relative inline-block",t),...r,children:e})})})});ct.displayName="DropdownMenu";var dt=({children:e,asChild:t})=>{let r=yr.useContext(ge);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return yr.cloneElement(o,{onClick:a=>{o.props.onClick?.(a),n();}})}return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{onClick:n,children:e})})};dt.displayName="DropdownMenuTrigger";var pt=yr.forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let a=yr.useContext(ge),i=yr.useRef(null);return yr.useEffect(()=>{o&&(typeof o=="function"?o(i.current):o.current=i.current);},[o]),yr.useEffect(()=>{let l=g=>{i.current&&!i.current.contains(g.target)&&a?.setIsOpen(!1);};return a?.isOpen&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l);}},[a?.isOpen]),a?.isOpen?jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:i,className:b("absolute z-50 mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md",{start:"left-0",center:"left-1/2 -translate-x-1/2",end:"right-0"}[t],r),...n,children:e})}):null});pt.displayName="DropdownMenuContent";var mt=yr.forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},a)=>{let i=yr.useContext(ge);return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{ref:a,onClick:l=>{t?.(l),i?.setIsOpen(!1);},className:b("w-full text-left px-4 py-2 text-sm hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none",r&&"text-red-600 hover:bg-red-50 hover:text-red-700 focus:bg-red-50 focus:text-red-700",n),...o,children:e})})});mt.displayName="DropdownMenuItem";var ut=yr.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:r,className:b("-mx-1 my-1 h-px bg-border",e),...t})}));ut.displayName="DropdownMenuSeparator";var ft=yr.forwardRef(({children:e,className:t,...r},n)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:n,className:b("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));ft.displayName="DropdownMenuLabel";var Xo=ct,_o=dt,Jo=pt,jo=mt,Zo=ut,Yo=ft;var Rr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{className:r?t:b("text-sm text-muted-foreground",t),children:e})})},D=Rr;var wr=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("label",{...o,className:n?r:b("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsxRuntime.jsx("span",{className:"text-red-600",children:"*"})]})}),N=wr;var kr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{className:r?t:b("text-sm text-red-600 dark:text-red-400",t),children:e})})},A=kr;var vt=yr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:a="left",className:i,overrideClassName:s=!1,helperText:l,error:g,...c},h)=>{let p=yr.useId(),d=b("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",g&&"border-destructive",i);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsxRuntime.jsx(N,{required:t,children:e}),jsxRuntime.jsxs("div",{className:`flex items-center ${a=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsxRuntime.jsx("input",{id:p,type:"checkbox",className:s?i:d,ref:h,...c}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:o&&o}),jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsxRuntime.jsx(N,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(N,{id:`${p}-description`,htmlFor:p,className:"text-xs text-muted-foreground",children:n})]})]})]}),g&&jsxRuntime.jsx(A,{children:g}),!g&&l&&jsxRuntime.jsx(D,{children:l})]})})});vt.displayName="CheckBox";var ha=vt;function Vr(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:a,labelKey:i,valueKey:s,options:l,alignment:g="vertical",className:c,overrideClassName:h=!1,helperText:p,error:d,label:R,name:L,required:y,...v}=e,k=yr.useId(),P=yr.useMemo(()=>new Map(l.map(C=>[String(C[s]),C])),[l,s]),F=yr.useMemo(()=>o==null?[]:r==="field"?n?o.map(C=>String(C)):[String(o)]:n?o.map(C=>String(C[s])):[String(o[s])],[o,r,n,s]),S=(C,w)=>{if(!a)return;let m;if(r==="field")if(n)m=C.map(T=>{let I=P.get(T);return I?I[s]:T});else {let u=C[0];if(!u)m=void 0;else {let T=P.get(u);m=T?T[s]:u;}}else n?m=C.map(T=>P.get(T)).filter(T=>T!==void 0):m=P.get(C[0]??"")??void 0;a({target:{name:L,value:m,type:"checkboxgroup",checked:w}});},$=C=>{let w;n?w=F.includes(C)?F.filter(m=>m!==C):[...F,C]:w=F[0]===C?[]:[C],S(w,w.includes(C));},E=g==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",B=b("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",d&&"border-destructive");return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:b("flex flex-col gap-3",c),children:[R&&jsxRuntime.jsx(N,{required:y,children:R}),jsxRuntime.jsx("div",{className:E,children:l.map((C,w)=>{let m=String(C[s]),u=F.includes(m),T=`${k}-${m}-${w}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...v,id:T,ref:t,type:"checkbox",name:L,checked:u,onChange:()=>$(m),className:h?c:B}),jsxRuntime.jsx(N,{htmlFor:T,children:String(C[i])})]},T)})}),!!d&&jsxRuntime.jsx(A,{children:String(d)}),!d&&p&&jsxRuntime.jsx(D,{children:p})]})})}function Hr(){let e=yr.forwardRef(Vr);return e.displayName="CheckBoxGroup",e}var Dr=Hr(),Ma=Dr;var Br=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],Ct=yr__default.default.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=Br,showPresets:a=!0,className:i,error:s,helperText:l,name:g},c)=>{let h=yr.useId(),p=yr.useRef(null),[d,R]=yr.useState(!1),[L,y]=yr.useState("COLOR"),[v,k]=yr.useState("HEX"),[P,F]=yr.useState("#000000"),[S,$]=yr.useState(0),[E,B]=yr.useState(0),[C,w]=yr.useState(0),[m,u]=yr.useState(1),[T,I]=yr.useState("#000000"),[V,_]=yr.useState("#ffffff"),[j,ue]=yr.useState(90),[Ce,ne]=yr.useState("linear-gradient(90deg, #000000, #ffffff)"),Te=(x,H,ce)=>Math.min(ce,Math.max(H,x)),Le=x=>{let H=x.replace("#","");return {r:parseInt(H.slice(0,2),16),g:parseInt(H.slice(2,4),16),b:parseInt(H.slice(4,6),16)}},O=x=>{r?.({target:{value:x,name:g}});};yr.useEffect(()=>{let x=H=>{p.current&&!p.current.contains(H.target)&&R(!1);};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),yr.useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(P)){let x=Le(P);$(x.r),B(x.g),w(x.b);}},[P]),yr.useEffect(()=>{let x=`linear-gradient(${j}deg, ${T}, ${V})`;ne(x),L==="GRADIENT"&&O(x);},[T,V,j]);let G=()=>{if(m>=1){if(v==="HEX")return P;if(v==="RGB")return `rgb(${S}, ${E}, ${C})`}return `rgba(${S}, ${E}, ${C}, ${Number(m.toFixed(2))})`},Z=L==="GRADIENT"?Ce:G();return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${i??""}`,children:[e&&jsxRuntime.jsx(N,{htmlFor:h,required:t,children:e}),jsxRuntime.jsxs("div",{ref:p,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>!n&&R(!d),className:"flex items-center gap-2 px-3 py-2 border rounded-md bg-background w-full",children:[jsxRuntime.jsx("div",{className:"w-6 h-6 rounded border",style:{background:Z}}),jsxRuntime.jsx("span",{className:"text-xs font-mono truncate",children:Z})]}),d&&jsxRuntime.jsxs("div",{className:"absolute z-50 mt-1 w-85 bg-popover border rounded-md p-4 space-y-3 shadow-lg",children:[jsxRuntime.jsx("div",{className:"flex gap-2",children:["COLOR","GRADIENT"].map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>y(x),className:`px-2 py-1 text-xs rounded ${L===x?"bg-primary text-white":"border"}`,children:x==="COLOR"?"Cor":"Gradiente"},x))}),jsxRuntime.jsx("div",{className:"w-full h-10 rounded border",style:{background:Z}}),L==="COLOR"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{ref:c,type:"color",value:P,onChange:x=>{F(x.target.value.toUpperCase()),O(G());},className:"w-full h-10 rounded"}),jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsxs("select",{value:v,onChange:x=>k(x.target.value),className:"px-2 py-1 text-xs border rounded",children:[jsxRuntime.jsx("option",{value:"HEX",children:"HEX"}),jsxRuntime.jsx("option",{value:"RGB",children:"RGB"}),jsxRuntime.jsx("option",{value:"RGBA",children:"RGBA"})]}),v==="HEX"&&jsxRuntime.jsx("input",{value:P,onChange:x=>{let H=x.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");H.startsWith("#")||(H="#"+H),H="#"+H.slice(1,7),F(H),/^#[0-9A-F]{6}$/.test(H)&&O(H);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(v==="RGB"||v==="RGBA")&&jsxRuntime.jsx("div",{className:"flex gap-2",children:[{l:"R",v:S,s:$},{l:"G",v:E,s:B},{l:"B",v:C,s:w}].map(({l:x,v:H,s:ce})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-xs font-semibold",children:x}),jsxRuntime.jsx("input",{type:"number",min:0,max:255,value:H,onChange:ir=>{ce(Te(+ir.target.value,0,255)),O(G());},className:"w-14 px-1 py-1 text-xs border rounded"})]},x))})]}),v==="RGBA"&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-xs font-semibold",children:"A"}),jsxRuntime.jsx("input",{type:"range",min:0,max:1,step:.01,value:m,onChange:x=>{u(+x.target.value),O(G());},className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(m*100),"%"]})]}),a&&jsxRuntime.jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>{F(x),u(1),O(x);},className:"w-8 h-8 rounded border",style:{background:x}},x))})]}),L==="GRADIENT"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsx("input",{type:"color",value:T,onChange:x=>I(x.target.value)}),jsxRuntime.jsx("span",{className:"text-xs",children:"\u2192"}),jsxRuntime.jsx("input",{type:"color",value:V,onChange:x=>_(x.target.value)})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-xs",children:"\xC2ngulo"}),jsxRuntime.jsx("input",{type:"range",min:0,max:360,value:j,onChange:x=>ue(+x.target.value),className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[j,"\xB0"]})]})]})]})]}),s&&jsxRuntime.jsx(A,{children:s}),!s&&l&&jsxRuntime.jsx(D,{children:l})]})})});Ct.displayName="ColorPicker";var $a=Ct;var Or=({...e})=>jsxRuntime.jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),ve=Or;var Ur=(e,t)=>{yr.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Lt=Ur;function ke({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:a,typeSet:i,name:s}){let[l,g]=yr.useState([]),c=yr.useMemo(()=>new Map(e.map(y=>[String(y[r]),y])),[e,r]),h=yr.useCallback(()=>l.map(y=>c.get(y)).filter(y=>!!y),[l,c]),p=yr.useCallback(y=>{if(!o)return;let v;if(i==="field"?n?v=y:v=y[0]??void 0:n?v=y.map(P=>c.get(P)).filter(P=>P!==void 0):v=c.get(y[0]??"")??void 0,a&&!n){let k=c.get(y[0]??"");k&&a(String(k[t]));}o({target:{name:s,value:v,type:"combobox"}});},[n,o,c,s,i,a,t]),d=yr.useCallback(y=>{let v=String(y[r]),k=n?l.includes(v)?l.filter(P=>P!==v):[...l,v]:[v];g(k),p(k);},[n,l,p,r]),R=yr.useCallback(y=>{let v=l.filter(k=>k!==y);g(v),p(v);},[l,p]),L=yr.useCallback(()=>{g([]),a?.("");let y;i==="field"?y=n?[]:"":y=n?[]:void 0,o?.({target:{name:s,value:y,type:"combobox"}});},[n,o,s,a,i]);return {selectedValues:l,handleSelect:d,handleRemove:R,handleClear:L,getSelectedOptions:h}}function Ee(e,t,r){return yr.useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var Rt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:a,filteredOptions:i,highlightedIndex:s,setHighlightedIndex:l,handleSelect:g,handleRemove:c})=>{let h=yr.useCallback(d=>{if(i.length===0){l(-1);return}l(R=>R<0?d>0?0:i.length-1:(R+d+i.length)%i.length);},[i,l]);return yr.useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),l(0),d.preventDefault();return}r&&d.key==="Backspace"&&n===""&&a.length>0&&(d.preventDefault(),c(a[a.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),h(1);break;case"ArrowUp":d.preventDefault(),h(-1);break;case"Enter":d.preventDefault();let R=s>=0?s:0,L=i[R];L&&g(L),r&&o&&o(""),r||(t(!1),l(-1));break;case"Escape":d.preventDefault(),t(!1),l(-1),r||o("");break;case"Tab":t(!1),l(-1);break;case"Home":d.preventDefault(),i.length>0&&l(0);break;case"End":d.preventDefault(),i.length>0&&l(i.length-1);break;case"Backspace":r&&n===""&&a.length>0&&(d.preventDefault(),c(a[a.length-1]));break}},[e,r,n,a,i,s,t,o,l,g,c,h])};function wt({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),a=String(e[r]);return jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsxRuntime.jsx("button",{type:"button",onMouseDown:i=>i.preventDefault(),onClick:()=>n(a),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},a)}function Zr(e,t){let{label:r,required:n=!1,name:o,placeholder:a="Buscar...",labelKey:i,valueKey:s,options:l,value:g,onChange:c,mode:h="single",typeSet:p="field",disabled:d=!1,ClearEnabled:R=!0,helperText:L,error:y=!1,className:v="",...k}=e,P=h==="multiple",[F,S]=yr.useState(!1),[$,E]=yr.useState(""),B=yr.useRef(null),C=yr.useRef(null),w=yr.useRef(null);yr.useImperativeHandle(t,()=>w.current),Lt(C,()=>S(!1));let m=Ee(l,i,$),[u,T]=yr.useState(-1),{selectedValues:I,handleSelect:V,handleRemove:_,handleClear:j,getSelectedOptions:ue}=ke({options:l,labelKey:i,valueKey:s,value:g,multiple:P,onChange:c,typeSet:p,name:o,setSearchTerm:E}),Ce=Rt({isOpen:F,setIsOpen:S,multiple:P,searchTerm:$,setSearchTerm:E,selectedValues:I,filteredOptions:m,highlightedIndex:u,setHighlightedIndex:T,handleSelect:V,handleRemove:_}),ne=yr.useId(),Te="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",Le=b("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",y?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${v}`,children:[r&&jsxRuntime.jsx(N,{htmlFor:ne,required:n,children:r}),jsxRuntime.jsxs("div",{ref:B,className:"relative",children:[jsxRuntime.jsxs("div",{className:Le,children:[P&&ue().length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:ue().map((O,G)=>jsxRuntime.jsx(wt,{option:O,labelKey:i,valueKey:s,onRemove:_},String(O[s]??G)))}),jsxRuntime.jsx("input",{ref:w,...k,name:o,type:"text",placeholder:a,value:$,onChange:O=>{let G=O.target.value;E(G),!F&&G.trim()!==""&&S(!0);},onKeyDown:Ce,onMouseDown:O=>{document.activeElement===w.current&&(O.preventDefault(),S(G=>{let Z=!G;return Z&&T(0),Z}));},onFocus:()=>{S(!0),T(0);},disabled:d,className:Te,role:"combobox","aria-expanded":F,"aria-controls":ne,"aria-activedescendant":u>=0?`${ne}-opt-${u}`:void 0}),R&&!!I.length&&jsxRuntime.jsx("button",{type:"button",onMouseDown:O=>O.preventDefault(),onClick:j,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsxRuntime.jsx(ve,{width:12,height:12})})]}),F&&jsxRuntime.jsx("div",{ref:C,id:ne,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":P||void 0,children:m.length===0?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):m.map((O,G)=>{let Z=String(O[s]),x=I.includes(Z),H=G===u;return jsxRuntime.jsx("button",{id:`${ne}-opt-${G}`,"data-index":G,role:"option","aria-selected":x,type:"button",onMouseDown:ce=>ce.preventDefault(),onClick:()=>V(O),className:b("w-full px-3 py-2 text-left text-sm transition-colors",H&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!H&&x&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!x&&!H&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsxRuntime.jsx("span",{children:String(O[i])})},Z)})})]}),y&&jsxRuntime.jsx(A,{children:y}),!y&&L&&jsxRuntime.jsx(D,{children:L})]})})}function Yr(){let e=yr.forwardRef(Zr);return e.displayName="ComboBox",e}var Qr=Yr(),ui=Qr;var tn=({children:e,before:t,after:r,className:n})=>{let a=en__default.default("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsxRuntime.jsx("div",{className:a,children:jsxRuntime.jsx("span",{children:e})})},Ve=tn;var rn=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),Et=rn;var nn=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),Ft=nn;function It(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Vt(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),i=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=i,e}function Ht(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Dt(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function At(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function St(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function $t(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function Bt(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var on=({e,mask:t})=>{switch(t){case"money":return Vt(e);case"mobile":return Dt(e);case"phone":return At(e);case"cpfCnpj":return St(e);case"cpf":return Ht(e);case"rg":return $t(e);case"cnpj":return Bt(e);case"cep":return It(e);default:return e}},Ot=on;var ln=({mask:e,initialValue:t=""})=>{let[r,n]=yr.useState(t);yr.useEffect(()=>{t!==r&&n(t);},[t]);let o=yr.useCallback(i=>{let l=Ot({e:i,mask:e})?.currentTarget?.value??i.currentTarget.value;n(l);},[e]),a=yr.useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:a}},Ut=ln;var qt=yr.forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:a,addonBefore:i,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:g,ClearEnabled:c=!0,className:h,overrideClassName:p=!1,error:d,helperText:R,value:L=void 0,onChange:y,...v},k)=>{let P=yr.useId(),{handleChange:F,handleClear:S,setValue:$}=Ut({mask:r,initialValue:L}),E=b("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!o&&!a&&"px-3",o&&!a&&"pl-10 pr-3",a&&!o&&"pl-3 pr-10",o&&a&&"pl-10 pr-10",i&&"rounded-l-none border-l-0",l&&"rounded-r-none border-r-0",h),B=w=>{F(w),y?.(w);},C=()=>{S(),$(""),y?.({target:{name:n||"",value:""}});};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(N,{htmlFor:P,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative flex",children:[i&&jsxRuntime.jsx(Ve,{before:!0,className:s,children:i}),jsxRuntime.jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsxRuntime.jsx(Et,{children:o}),jsxRuntime.jsx("input",{id:P,ref:k,name:n,onChange:B,className:p?h:E,...v}),c&&L&&jsxRuntime.jsx(ve,{onClick:C,width:12,height:12,className:b("absolute right-2 cursor-pointer",a&&"right-8")}),a&&jsxRuntime.jsx(Ft,{children:a})]}),l&&jsxRuntime.jsx(Ve,{after:!0,className:g,children:l})]}),d&&jsxRuntime.jsx(A,{children:d}),!d&&R&&jsxRuntime.jsx(D,{children:R})]})})});qt.displayName="Input";var Oi=qt;var Kt=yr.forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:a=!1,helperText:i,error:s,onChange:l,onBlur:g,className:c,charType:h="numeric",customPattern:p,caseMode:d="none",...R},L)=>{let y=yr.useId(),v=yr.useRef([]),k=m=>{switch(d){case"upper":return m.toUpperCase();case"lower":case"visual-upper":return m.toLowerCase();case"visual-lower":return m.toUpperCase();default:return m}},P=m=>{if(!m)return "";let u=m.slice(0,1);switch(u=k(u),h){case"numeric":return /\d/.test(u)?u:"";case"alpha":return /[A-Za-z]/.test(u)?u:"";case"alphanumeric":return /[A-Za-z0-9]/.test(u)?u:"";case"custom":return p?.test(u)?u:"";default:return u}},F=()=>(r!=null?String(r):"").split("").map(P).slice(0,e),S=F().concat(Array(e).fill(" ")).slice(0,e),$=m=>{let u=m.split("").map(P).join("").slice(0,e),T=u===""?void 0:typeof r=="number"?Number(u):u;l?.({target:{name:n,value:T}});},E=(m,u)=>{let T=P(u),I=F();if(T===""){I[m]="",$(I.join(""));return}if(u.length>1){let V=u.split("").map(P).join("").slice(0,e);$(V),v.current[Math.min(V.length-1,e-1)]?.focus();return}T&&(I[m]=T,$(I.join("")),m<e-1&&v.current[m+1]?.focus());},B=m=>{let u=F();!u[m]&&m>0?u[m-1]="":u[m]="",$(u.join("")),m>0&&v.current[m-1]?.focus();},C=m=>{m.preventDefault();let T=m.clipboardData.getData("text").split("").map(P).join("").slice(0,e);T&&($(T),v.current[Math.min(T.length-1,e-1)]?.focus());},w=m=>{switch(d){case"upper":case"visual-upper":return m.toUpperCase();case"lower":case"visual-lower":return m.toLowerCase();default:return m}};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsxRuntime.jsx(N,{htmlFor:y,required:a,children:o}),jsxRuntime.jsx("div",{className:b("flex gap-3 items-center",s&&"text-red-500",c),...R,children:S.map((m,u)=>{let T=t&&u>0&&u%t===0;return jsxRuntime.jsxs(yr__default.default.Fragment,{children:[T&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsxRuntime.jsx("input",{id:y,type:"text",maxLength:1,inputMode:h==="numeric"?"numeric":"text",value:w(m).trim(),ref:I=>{v.current[u]=I,u===0&&L&&(typeof L=="function"?L(I):typeof L=="object"&&(L.current=I));},onPaste:C,onChange:I=>E(u,I.target.value),onKeyDown:I=>I.key==="Backspace"&&B(u),onBlur:g,className:b("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s&&"border-red-500")})]},u)})}),s&&jsxRuntime.jsx(A,{children:s}),!s&&i&&jsxRuntime.jsx(D,{children:i})]})})});Kt.displayName="OtpInput";var Ji=Kt;var Wt=yr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:a,overrideClassName:i,helperText:s,error:l,...g},c)=>{let h=yr.useId(),p=b("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l&&"border-destructive",a);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[e&&jsxRuntime.jsx(N,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{id:h,type:"radio",className:i?a:p,ref:c,...g}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:o&&o}),jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsxRuntime.jsx(N,{htmlFor:h,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(N,{id:`${h}-description`,htmlFor:h,className:"text-xs text-muted-foreground",children:n})]})]})]}),l&&jsxRuntime.jsx(A,{children:l}),!l&&s&&jsxRuntime.jsx(D,{children:s})]})})});Wt.displayName="Radio";var os=Wt;function hn(e,t){let{label:r,required:n,name:o,labelKey:a,valueKey:i,options:s,alignment:l="vertical",className:g,overrideClassName:c=!1,helperText:h,error:p,typeSet:d="field",value:R,onChange:L,...y}=e,v=yr.useId(),k=yr.useMemo(()=>new Map(s.map(E=>[String(E[i]),E])),[s,i]),P=yr.useMemo(()=>R==null?"":String(d==="field"?R:R[i]),[R,d,i]),F=E=>{if(!L)return;let B;if(d==="field"){let C=k.get(E);if(C)B=C[i];else {let w=Number(E);B=Number.isNaN(w)?E:w;}}else B=k.get(E)??void 0;L({target:{name:o,value:B,type:"radiogroup",checked:!0}});},S=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=b("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",p&&"border-destructive");return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:b("flex flex-col gap-3",g),children:[r&&jsxRuntime.jsx(N,{required:n,children:r}),jsxRuntime.jsx("div",{className:S,children:s.map((E,B)=>{let C=String(E[i]),w=`${v}-${C}-${B}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...y,id:w,ref:t,name:o,type:"radio",checked:P===C,onChange:()=>F(C),className:c?g:$}),jsxRuntime.jsx(N,{htmlFor:w,children:String(E[a])})]},w)})}),p&&jsxRuntime.jsx(A,{children:String(p)}),!p&&h&&jsxRuntime.jsx(D,{children:h})]})})}function yn(){let e=yr.forwardRef(hn);return e.displayName="RadioGroup",e}var Cn=yn(),gs=Cn;function Pn({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:a,error:i,helperText:s,className:l,...g},c){let h=yr.useId(),p=b("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",i&&"border-red-500 focus-visible:ring-red-500",l);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(N,{htmlFor:h,required:t,children:e}),jsxRuntime.jsxs("select",{id:h,ref:c,className:p,...g,children:[a&&jsxRuntime.jsx("option",{value:"",disabled:!0,children:a}),r.map((d,R)=>jsxRuntime.jsx("option",{value:String(d[o]),children:String(d[n])},R))]}),i&&jsxRuntime.jsx(A,{children:i}),!i&&s&&jsxRuntime.jsx(D,{children:s})]})})}function Rn(){let e=yr.forwardRef(Pn);return e.displayName="Select",e}var wn=Rn(),ws=wn;var jt=yr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:a=!1,className:i,overrideClassName:s,error:l,name:g,...c},h)=>{let p=yr.useId();return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsxRuntime.jsx(N,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"checkbox",id:p,name:g,checked:a,className:"peer sr-only",ref:h,...c}),jsxRuntime.jsx("label",{htmlFor:p,className:b("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",i),children:jsxRuntime.jsx("span",{className:b("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",a?"translate-x-5":"translate-x-1")})}),jsxRuntime.jsx("span",{children:o&&o}),(r||n)&&jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsxRuntime.jsx(N,{id:`${p}-label`,htmlFor:p,className:"text-sm font-medium leading-none",children:r}),n&&jsxRuntime.jsx(N,{id:`${p}-description`,htmlFor:p,className:"text-xs text-muted-foreground",children:n})]})]})]})})});jt.displayName="Switch";var Hs=jt;var Zt=yr__default.default.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:a=!1,error:i,helperText:s,...l},g)=>{let c=yr.useId(),[h,p]=yr.useState(0),d=b("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i&&"border-red-500 focus-visible:ring-red-500",o);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(N,{htmlFor:c,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("textarea",{id:c,className:a?o:d,maxLength:n,onInput:R=>p(R.currentTarget.textLength),ref:g,...l}),r&&jsxRuntime.jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[h,n?` / ${n}`:""]})]}),i&&jsxRuntime.jsx(A,{children:i}),!i&&s&&jsxRuntime.jsx(D,{children:s})]})})});Zt.displayName="TextArea";var qs=Zt;var In=({files:e,removeFile:t})=>jsxRuntime.jsx("div",{className:"space-y-2",children:e?.length>0&&e?.map((r,n)=>jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-2 bg-secondary rounded",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"text-sm truncate",children:r.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[(r?.size/1024).toFixed(1)," KB"]})]}),jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),t(n);},className:"ml-2 p-1 hover:bg-destructive/20 rounded",children:"\u2715"})]},`${r?.name}-${n}`))}),Yt=In;var Vn=({accept:e,maxSize:t})=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("svg",{className:"w-8 h-8 mx-auto text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"text-sm text-foreground",children:"Clique para selecionar ou arraste arquivos aqui"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[e&&`Tipos aceitos: ${e}`,t&&` \u2022 Tamanho m\xE1ximo: ${t}MB`]})]})]}),Qt=Vn;var er=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=a=>a})=>{let a=yr.useRef(null),[i,s]=yr.useState(!1),l=yr.useCallback(p=>{p.preventDefault(),!n&&s(!0);},[n]),g=yr.useCallback(()=>{s(!1);},[]),c=yr.useCallback(p=>{if(p.preventDefault(),n||!a.current)return;s(!1);let d=Array.from(p.dataTransfer.files);if(!r&&!e||!r&&d.length>1)return;let R=o(d),L=r?R:R.slice(0,1);t(L);let y=new DataTransfer;L.forEach(v=>y.items.add(v)),a.current.files=y.files,a.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),h=yr.useCallback(()=>{t([]),a.current&&(a.current.value="");},[]);return {files:e,setFiles:t,clearFiles:h,inputRef:a,isDragOver:i,setIsDragOver:s,handleDrop:c,handleDragOver:l,handleDragLeave:g}};var tr=({files:e,setFiles:t,inputRef:r})=>({removeFile:yr.useCallback(o=>{if(!r.current)return;let a=e?.filter((s,l)=>l!==o);t(a);let i=new DataTransfer;a?.forEach(s=>i.items.add(s)),r.current.files=i.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var $n=({previews:e,onRemove:t})=>{let[r,n]=yr.useState(0),o=()=>n(i=>i===0?e?.length-1:i-1),a=()=>n(i=>i===e?.length-1?0:i+1);return jsxRuntime.jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsxRuntime.jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsxRuntime.jsx("button",{type:"button",onClick:a,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},nr=$n;var ar=yr.forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:a=!1,maxSize:i=10,disabled:s=!1,error:l=!1,helperText:g,className:c,name:h,onChange:p,onBlur:d,...R},L)=>{let y=yr.useId(),[v,k]=yr.useState([]),P=1024*1024,F=V=>V.filter(_=>(!i||_.size<=i*P)&&(!r||_.type.match(r))),{inputRef:S,isDragOver:$,handleDrop:E,handleDragOver:B,handleDragLeave:C}=er({files:v,setFiles:k,multiple:a,filterFiles:F}),{removeFile:w}=tr({files:v,setFiles:k,inputRef:S}),m=V=>{S.current=V,typeof L=="function"?L(V):L&&(L.current=V);},u=V=>{let _=Array.from(V.target.files??[]);if(!_.length)return;let j=F(_);k(a?j:j.slice(0,1)),p?.(V);},T=yr.useMemo(()=>!o||!v||!v.length?[]:v.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[v,o]);yr.useEffect(()=>()=>T.forEach(V=>URL.revokeObjectURL(V.url)),[T]);let I=o&&T.length>0;return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsxRuntime.jsx(N,{htmlFor:y,required:t,children:e}),jsxRuntime.jsxs("div",{onDrop:E,onDragOver:B,onDragLeave:C,onClick:()=>{!s&&!I&&S.current?.click();},className:`
32
+ `,children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx("svg",{className:`w-5 h-5 transition-transform ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),n&&jsxRuntime.jsx("div",{className:"px-4 py-3 bg-background border-t border-border",children:t})]})});ft.displayName="Accordion";var ea=ft;function x(...e){return tailwindMerge.twMerge(zn.clsx(e))}var bt=jr.forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:i,className:t?e:x("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-red-500 text-white hover:bg-red-600",outline:"text-foreground border border-input",ghost:"bg-transparent text-foreground hover:bg-muted",link:"text-primary underline-offset-4 hover:underline",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-black hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",subtle:"bg-muted text-muted-foreground hover:bg-muted/80",dark:"bg-zinc-900 text-white hover:bg-zinc-800",light:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200"}[r],e),...o,children:n})}));bt.displayName="Badge";var da=bt;var vt=jr__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:i,loading:a=!1,loadingContent:l,...s},p)=>{let d="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",c={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},u={xs:"h-7 px-2 text-xs min-w-16",sm:"h-9 px-3 text-sm min-w-20",md:"h-10 px-4 py-2 text-base min-w-24",lg:"h-11 px-6 text-lg min-w-28",xl:"h-12 px-8 text-xl min-w-32"},m=t?e:x(d,c[r],u[n],e);return o?jsxRuntime.jsx(v,{children:jsxRuntime.jsx("a",{href:o,className:m,ref:p,children:a&&l?l:i})}):jsxRuntime.jsx(v,{children:jsxRuntime.jsx("button",{className:m,ref:p,...s,children:a&&l?l:i})})});vt.displayName="Button";var ba=vt;var ht=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:x("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));ht.displayName="Card";var xt=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:x("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));xt.displayName="CardHeader";var yt=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("h3",{ref:o,className:t?e:x("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));yt.displayName="CardTitle";var Ct=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("p",{ref:o,className:t?e:x("text-sm text-muted-foreground",e),...n,children:r})}));Ct.displayName="CardDescription";var wt=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:x("p-6 pt-0",e),...n,children:r})}));wt.displayName="CardContent";var kt=jr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:x("flex items-center p-6 pt-0",e),...n,children:r})}));kt.displayName="CardFooter";var ka=ht,Pa=xt,Ta=yt,La=Ct,Na=wt,Ra=kt;var Re=jr.createContext(void 0),Tt=jr.forwardRef(({children:e,className:t,...r},n)=>{let[o,i]=jr.useState(!1);return jsxRuntime.jsx(v,{children:jsxRuntime.jsx(Re.Provider,{value:{isOpen:o,setIsOpen:i},children:jsxRuntime.jsx("div",{ref:n,className:x("relative inline-block",t),...r,children:e})})})});Tt.displayName="DropdownMenu";var Lt=({children:e,asChild:t})=>{let r=jr.useContext(Re);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return jr.cloneElement(o,{onClick:i=>{o.props.onClick?.(i),n();}})}return jsxRuntime.jsx(v,{children:jsxRuntime.jsx("button",{onClick:n,children:e})})};Lt.displayName="DropdownMenuTrigger";var Nt=jr.forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let i=jr.useContext(Re),a=jr.useRef(null);return jr.useEffect(()=>{o&&(typeof o=="function"?o(a.current):o.current=a.current);},[o]),jr.useEffect(()=>{let s=p=>{a.current&&!a.current.contains(p.target)&&i?.setIsOpen(!1);};return i?.isOpen&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i?.isOpen]),i?.isOpen?jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:a,className:x("absolute z-50 mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md",{start:"left-0",center:"left-1/2 -translate-x-1/2",end:"right-0"}[t],r),...n,children:e})}):null});Nt.displayName="DropdownMenuContent";var Rt=jr.forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},i)=>{let a=jr.useContext(Re);return jsxRuntime.jsx(v,{children:jsxRuntime.jsx("button",{ref:i,onClick:s=>{t?.(s),a?.setIsOpen(!1);},className:x("w-full text-left px-4 py-2 text-sm hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none",r&&"text-red-600 hover:bg-red-50 hover:text-red-700 focus:bg-red-50 focus:text-red-700",n),...o,children:e})})});Rt.displayName="DropdownMenuItem";var Dt=jr.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:r,className:x("-mx-1 my-1 h-px bg-border",e),...t})}));Dt.displayName="DropdownMenuSeparator";var Mt=jr.forwardRef(({children:e,className:t,...r},n)=>jsxRuntime.jsx(v,{children:jsxRuntime.jsx("div",{ref:n,className:x("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));Mt.displayName="DropdownMenuLabel";var Va=Tt,Ha=Lt,Aa=Nt,$a=Rt,Oa=Dt,Ba=Mt;var rn=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(v,{children:jsxRuntime.jsx("p",{className:r?t:x("text-sm text-muted-foreground",t),children:e})})},$=rn;var nn=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("label",{...o,className:n?r:x("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsxRuntime.jsx("span",{className:"text-red-600",children:"*"})]})}),D=nn;var an=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(v,{children:jsxRuntime.jsx("p",{className:r?t:x("text-sm text-red-600 dark:text-red-400",t),children:e})})},O=an;var It=jr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:i="left",className:a,overrideClassName:l=!1,helperText:s,error:p,...d},c)=>{let u=jr.useId(),m=x("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",p&&"border-destructive",a);return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsxRuntime.jsx(D,{required:t,children:e}),jsxRuntime.jsxs("div",{className:`flex items-center ${i=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsxRuntime.jsx("input",{id:u,type:"checkbox",className:l?a:m,ref:c,...d}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:o&&o}),jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsxRuntime.jsx(D,{htmlFor:u,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(D,{id:`${u}-description`,htmlFor:u,className:"text-xs text-muted-foreground",children:n})]})]})]}),p&&jsxRuntime.jsx(O,{children:p}),!p&&s&&jsxRuntime.jsx($,{children:s})]})})});It.displayName="CheckBox";var si=It;function un(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:i,labelKey:a,valueKey:l,options:s,alignment:p="vertical",className:d,overrideClassName:c=!1,helperText:u,error:m,label:L,name:y,required:b,...h}=e,M=jr.useId(),R=jr.useMemo(()=>new Map(s.map(P=>[String(P[l]),P])),[s,l]),F=jr.useMemo(()=>o==null?[]:r==="field"?n?o.map(P=>String(P)):[String(o)]:n?o.map(P=>String(P[l])):[String(o[l])],[o,r,n,l]),I=(P,T)=>{if(!i)return;let f;if(r==="field")if(n)f=P.map(N=>{let E=R.get(N);return E?E[l]:N});else {let g=P[0];if(!g)f=void 0;else {let N=R.get(g);f=N?N[l]:g;}}else n?f=P.map(N=>R.get(N)).filter(N=>N!==void 0):f=R.get(P[0]??"")??void 0;i({target:{name:y,value:f,type:"checkboxgroup",checked:T}});},A=P=>{let T;n?T=F.includes(P)?F.filter(f=>f!==P):[...F,P]:T=F[0]===P?[]:[P],I(T,T.includes(P));},S=p==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",B=x("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",m&&"border-destructive");return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:x("flex flex-col gap-3",d),children:[L&&jsxRuntime.jsx(D,{required:b,children:L}),jsxRuntime.jsx("div",{className:S,children:s.map((P,T)=>{let f=String(P[l]),g=F.includes(f),N=`${M}-${f}-${T}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...h,id:N,ref:t,type:"checkbox",name:y,checked:g,onChange:()=>A(f),className:c?d:B}),jsxRuntime.jsx(D,{htmlFor:N,children:String(P[a])})]},N)})}),!!m&&jsxRuntime.jsx(O,{children:String(m)}),!m&&u&&jsxRuntime.jsx($,{children:u})]})})}function mn(){let e=jr.forwardRef(un);return e.displayName="CheckBoxGroup",e}var pn=mn(),hi=pn;var vn=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],At=jr__default.default.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=vn,showPresets:i=!0,className:a,error:l,helperText:s,name:p},d)=>{let c=jr.useId(),u=jr.useRef(null),[m,L]=jr.useState(!1),[y,b]=jr.useState("COLOR"),[h,M]=jr.useState("HEX"),[R,F]=jr.useState("#000000"),[I,A]=jr.useState(0),[S,B]=jr.useState(0),[P,T]=jr.useState(0),[f,g]=jr.useState(1),[N,E]=jr.useState("#000000"),[V,J]=jr.useState("#ffffff"),[te,he]=jr.useState(90),[k,C]=jr.useState("linear-gradient(90deg, #000000, #ffffff)"),G=(w,U,we)=>Math.min(we,Math.max(U,w)),K=w=>{let U=w.replace("#","");return {r:parseInt(U.slice(0,2),16),g:parseInt(U.slice(2,4),16),b:parseInt(U.slice(4,6),16)}},z=w=>{r?.({target:{value:w,name:p}});};jr.useEffect(()=>{let w=U=>{u.current&&!u.current.contains(U.target)&&L(!1);};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),jr.useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(R)){let w=K(R);A(w.r),B(w.g),T(w.b);}},[R]),jr.useEffect(()=>{let w=`linear-gradient(${te}deg, ${N}, ${V})`;C(w),y==="GRADIENT"&&z(w);},[N,V,te]);let q=()=>{if(f>=1){if(h==="HEX")return R;if(h==="RGB")return `rgb(${I}, ${S}, ${P})`}return `rgba(${I}, ${S}, ${P}, ${Number(f.toFixed(2))})`},j=y==="GRADIENT"?k:q();return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${a??""}`,children:[e&&jsxRuntime.jsx(D,{htmlFor:c,required:t,children:e}),jsxRuntime.jsxs("div",{ref:u,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>!n&&L(!m),className:"flex items-center gap-2 px-3 py-2 border rounded-md bg-background w-full",children:[jsxRuntime.jsx("div",{className:"w-6 h-6 rounded border",style:{background:j}}),jsxRuntime.jsx("span",{className:"text-xs font-mono truncate",children:j})]}),m&&jsxRuntime.jsxs("div",{className:"absolute z-50 mt-1 w-85 bg-popover border rounded-md p-4 space-y-3 shadow-lg",children:[jsxRuntime.jsx("div",{className:"flex gap-2",children:["COLOR","GRADIENT"].map(w=>jsxRuntime.jsx("button",{type:"button",onClick:()=>b(w),className:`px-2 py-1 text-xs rounded ${y===w?"bg-primary text-white":"border"}`,children:w==="COLOR"?"Cor":"Gradiente"},w))}),jsxRuntime.jsx("div",{className:"w-full h-10 rounded border",style:{background:j}}),y==="COLOR"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{ref:d,type:"color",value:R,onChange:w=>{F(w.target.value.toUpperCase()),z(q());},className:"w-full h-10 rounded"}),jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsxs("select",{value:h,onChange:w=>M(w.target.value),className:"px-2 py-1 text-xs border rounded",children:[jsxRuntime.jsx("option",{value:"HEX",children:"HEX"}),jsxRuntime.jsx("option",{value:"RGB",children:"RGB"}),jsxRuntime.jsx("option",{value:"RGBA",children:"RGBA"})]}),h==="HEX"&&jsxRuntime.jsx("input",{value:R,onChange:w=>{let U=w.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");U.startsWith("#")||(U="#"+U),U="#"+U.slice(1,7),F(U),/^#[0-9A-F]{6}$/.test(U)&&z(U);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(h==="RGB"||h==="RGBA")&&jsxRuntime.jsx("div",{className:"flex gap-2",children:[{l:"R",v:I,s:A},{l:"G",v:S,s:B},{l:"B",v:P,s:T}].map(({l:w,v:U,s:we})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-xs font-semibold",children:w}),jsxRuntime.jsx("input",{type:"number",min:0,max:255,value:U,onChange:Ar=>{we(G(+Ar.target.value,0,255)),z(q());},className:"w-14 px-1 py-1 text-xs border rounded"})]},w))})]}),h==="RGBA"&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-xs font-semibold",children:"A"}),jsxRuntime.jsx("input",{type:"range",min:0,max:1,step:.01,value:f,onChange:w=>{g(+w.target.value),z(q());},className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(f*100),"%"]})]}),i&&jsxRuntime.jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(w=>jsxRuntime.jsx("button",{type:"button",onClick:()=>{F(w),g(1),z(w);},className:"w-8 h-8 rounded border",style:{background:w}},w))})]}),y==="GRADIENT"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsx("input",{type:"color",value:N,onChange:w=>E(w.target.value)}),jsxRuntime.jsx("span",{className:"text-xs",children:"\u2192"}),jsxRuntime.jsx("input",{type:"color",value:V,onChange:w=>J(w.target.value)})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-xs",children:"\xC2ngulo"}),jsxRuntime.jsx("input",{type:"range",min:0,max:360,value:te,onChange:w=>he(+w.target.value),className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[te,"\xB0"]})]})]})]})]}),l&&jsxRuntime.jsx(O,{children:l}),!l&&s&&jsxRuntime.jsx($,{children:s})]})})});At.displayName="ColorPicker";var Li=At;var hn=({...e})=>jsxRuntime.jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Me=hn;var yn=(e,t)=>{jr.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Ot=yn;function Oe({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:i,typeSet:a,name:l}){let[s,p]=jr.useState([]),d=jr.useMemo(()=>new Map(e.map(b=>[String(b[r]),b])),[e,r]),c=jr.useCallback(()=>s.map(b=>d.get(b)).filter(b=>!!b),[s,d]),u=jr.useCallback(b=>{if(!o)return;let h;if(a==="field"?n?h=b:h=b[0]??void 0:n?h=b.map(R=>d.get(R)).filter(R=>R!==void 0):h=d.get(b[0]??"")??void 0,i&&!n){let M=d.get(b[0]??"");M&&i(String(M[t]));}o({target:{name:l,value:h,type:"combobox"}});},[n,o,d,l,a,i,t]),m=jr.useCallback(b=>{let h=String(b[r]),M=n?s.includes(h)?s.filter(R=>R!==h):[...s,h]:[h];p(M),u(M);},[n,s,u,r]),L=jr.useCallback(b=>{let h=s.filter(M=>M!==b);p(h),u(h);},[s,u]),y=jr.useCallback(()=>{p([]),i?.("");let b;a==="field"?b=n?[]:"":b=n?[]:void 0,o?.({target:{name:l,value:b,type:"combobox"}});},[n,o,l,i,a]);return {selectedValues:s,handleSelect:m,handleRemove:L,handleClear:y,getSelectedOptions:c}}function Be(e,t,r){return jr.useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var Gt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:i,filteredOptions:a,highlightedIndex:l,setHighlightedIndex:s,handleSelect:p,handleRemove:d})=>{let c=jr.useCallback(m=>{if(a.length===0){s(-1);return}s(L=>L<0?m>0?0:a.length-1:(L+m+a.length)%a.length);},[a,s]);return jr.useCallback(m=>{if(!e){if(m.key==="Enter"||m.key==="ArrowDown"){t(!0),s(0),m.preventDefault();return}r&&m.key==="Backspace"&&n===""&&i.length>0&&(m.preventDefault(),d(i[i.length-1]));return}switch(m.key){case"ArrowDown":m.preventDefault(),c(1);break;case"ArrowUp":m.preventDefault(),c(-1);break;case"Enter":m.preventDefault();let L=l>=0?l:0,y=a[L];y&&p(y),r&&o&&o(""),r||(t(!1),s(-1));break;case"Escape":m.preventDefault(),t(!1),s(-1),r||o("");break;case"Tab":t(!1),s(-1);break;case"Home":m.preventDefault(),a.length>0&&s(0);break;case"End":m.preventDefault(),a.length>0&&s(a.length-1);break;case"Backspace":r&&n===""&&i.length>0&&(m.preventDefault(),d(i[i.length-1]));break}},[e,r,n,i,a,l,t,o,s,p,d,c])};function Ut({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),i=String(e[r]);return jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsxRuntime.jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>n(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},i)}function Dn(e,t){let{label:r,required:n=!1,name:o,placeholder:i="Buscar...",labelKey:a,valueKey:l,options:s,value:p,onChange:d,mode:c="single",typeSet:u="field",disabled:m=!1,ClearEnabled:L=!0,helperText:y,error:b=!1,className:h="",...M}=e,R=c==="multiple",[F,I]=jr.useState(!1),[A,S]=jr.useState(""),B=jr.useRef(null),P=jr.useRef(null),T=jr.useRef(null);jr.useImperativeHandle(t,()=>T.current),Ot(P,()=>I(!1));let f=Be(s,a,A),[g,N]=jr.useState(-1),{selectedValues:E,handleSelect:V,handleRemove:J,handleClear:te,getSelectedOptions:he}=Oe({options:s,labelKey:a,valueKey:l,value:p,multiple:R,onChange:d,typeSet:u,name:o,setSearchTerm:S}),k=Gt({isOpen:F,setIsOpen:I,multiple:R,searchTerm:A,setSearchTerm:S,selectedValues:E,filteredOptions:f,highlightedIndex:g,setHighlightedIndex:N,handleSelect:V,handleRemove:J}),C=jr.useId(),G="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",K=x("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",b?"border-red-500":"border-gray-300 dark:border-gray-600",m?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${h}`,children:[r&&jsxRuntime.jsx(D,{htmlFor:C,required:n,children:r}),jsxRuntime.jsxs("div",{ref:B,className:"relative",children:[jsxRuntime.jsxs("div",{className:K,children:[R&&he().length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:he().map((z,q)=>jsxRuntime.jsx(Ut,{option:z,labelKey:a,valueKey:l,onRemove:J},String(z[l]??q)))}),jsxRuntime.jsx("input",{ref:T,...M,name:o,type:"text",placeholder:i,value:A,onChange:z=>{let q=z.target.value;S(q),!F&&q.trim()!==""&&I(!0);},onKeyDown:k,onMouseDown:z=>{document.activeElement===T.current&&(z.preventDefault(),I(q=>{let j=!q;return j&&N(0),j}));},onFocus:()=>{I(!0),N(0);},disabled:m,className:G,role:"combobox","aria-expanded":F,"aria-controls":C,"aria-activedescendant":g>=0?`${C}-opt-${g}`:void 0}),L&&!!E.length&&jsxRuntime.jsx("button",{type:"button",onMouseDown:z=>z.preventDefault(),onClick:te,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsxRuntime.jsx(Me,{width:12,height:12})})]}),F&&jsxRuntime.jsx("div",{ref:P,id:C,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":R||void 0,children:f.length===0?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):f.map((z,q)=>{let j=String(z[l]),w=E.includes(j),U=q===g;return jsxRuntime.jsx("button",{id:`${C}-opt-${q}`,"data-index":q,role:"option","aria-selected":w,type:"button",onMouseDown:we=>we.preventDefault(),onClick:()=>V(z),className:x("w-full px-3 py-2 text-left text-sm transition-colors",U&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!U&&w&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!w&&!U&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsxRuntime.jsx("span",{children:String(z[a])})},j)})})]}),b&&jsxRuntime.jsx(O,{children:b}),!b&&y&&jsxRuntime.jsx($,{children:y})]})})}function Mn(){let e=jr.forwardRef(Dn);return e.displayName="ComboBox",e}var En=Mn(),ts=En;var Fn=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),qt=Fn;var In=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),ie=In;var Sn=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),se=Sn;var me=["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var Kt=["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"];var We=({type:e,currentMonth:t,selectedDate:r,onChange:n,onNavigate:o,onMonthClick:i,onYearClick:a})=>{let l=s=>{let p=s.getFullYear(),d=s.getMonth(),c=new Date(p,d,1),m=new Date(p,d+1,0).getDate(),L=c.getDay(),y=[];for(let b=L-1;b>=0;b--)y.push({date:new Date(p,d,-b),isCurrentMonth:!1});for(let b=1;b<=m;b++)y.push({date:new Date(p,d,b),isCurrentMonth:!0});for(;y.length<42;)y.push({date:new Date(p,d+1,y.length-m+1),isCurrentMonth:!1});return y};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ie,{width:16,height:16})}),jsxRuntime.jsxs("div",{className:"font-medium flex gap-1",children:[jsxRuntime.jsx("span",{className:"cursor-pointer hover:underline",onClick:i,children:me[t.getMonth()]}),jsxRuntime.jsx("span",{className:"cursor-pointer hover:underline",onClick:a,children:t.getFullYear()})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(se,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:Kt.map(s=>jsxRuntime.jsx("div",{className:"text-center text-xs font-medium text-muted-foreground p-2",children:s},s))}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1",children:l(t).map((s,p)=>{let c=r&&s.date.toDateString()===r.toDateString(),u=s.date.toDateString()===new Date().toDateString();return jsxRuntime.jsx("button",{type:"button",onClick:()=>{if(e==="datetime-local"){let m=r??new Date,L=new Date(s.date.getFullYear(),s.date.getMonth(),s.date.getDate(),m.getHours(),m.getMinutes(),m.getSeconds());n(L);}else n(s.date);},className:`
33
+ p-2 cursor-pointer text-sm rounded hover:bg-accent
34
+ ${s.isCurrentMonth?"text-foreground":"text-muted-foreground"}
35
+ ${c?"bg-primary text-primary-foreground hover:bg-primary":""}
36
+ ${u&&!c?"bg-accent font-medium":""}
37
+ `,children:s.date.getDate()},p)})})]})};var _t=(e,t)=>{let r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");switch(t){case"date":return `${r}-${n}-${o}`;case"datetime-local":return `${r}-${n}-${o}T${i}:${a}:${l}`;case"year":return `${r}`;case"month":return `${r}-${n}`;case"week":{let s=new Date(e);s.setHours(0,0,0,0),s.setDate(s.getDate()+3-(s.getDay()+6)%7);let p=new Date(s.getFullYear(),0,4),d=1+Math.round(((s.getTime()-p.getTime())/864e5-3+(p.getDay()+6)%7)/7);return `${s.getFullYear()}-W${String(d).padStart(2,"0")}`}}};var Ye=(e,t,r="pt-BR")=>{switch(t){case"date":return e.toLocaleDateString(r);case"datetime-local":return e.toLocaleString(r);case"year":return `${e.getFullYear()}`;case"month":return me?`${me[e.getMonth()]} ${e.getFullYear()}`:e.toLocaleDateString(r,{month:"long",year:"numeric"});case"week":{let n=new Date(e);n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);let o=new Date(n.getFullYear(),0,4);return `Semana ${1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)} \u2022 ${n.getFullYear()}`}}};var An=(e,t)=>{jr.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Xt=An;var jt=({onChange:e,currentMonth:t,selectedDate:r,setIsOpen:n,onNavigate:o,onHeaderClick:i,closeOnSelect:a})=>{let l=t.getFullYear();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ie,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:i,children:l}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(se,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-2",children:me.map((s,p)=>{let d=r,c=d&&d.getFullYear()===l&&d.getMonth()===p;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{e(new Date(l,p,1)),a&&n(!1);},className:`p-2 cursor-pointer text-sm rounded hover:bg-accent ${c?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:s},s)})})]})};var Zt=({selectedDate:e,onChange:t})=>{let r=e??new Date,n=r.getHours(),o=r.getMinutes(),i=r.getSeconds(),a=`
38
+ ${String(n).padStart(2,"0")}:
39
+ ${String(o).padStart(2,"0")}:
40
+ ${String(i).padStart(2,"0")}
41
+ `,l=Array.from({length:24},(c,u)=>u),s=Array.from({length:60},(c,u)=>u),p=Array.from({length:60},(c,u)=>u),d=(c,u,m)=>{let L=new Date(r.getFullYear(),r.getMonth(),r.getDate(),c,u,m);t(L);};return jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs(D,{className:"flex items-center gap-2",children:["Hora",jsxRuntime.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:a})]}),jsxRuntime.jsxs("div",{className:"flex h-full max-h-72 gap-2",children:[jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:l.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>d(c,o,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===n?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:s.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>d(n,c,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===o?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:p.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>d(n,o,c),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===i?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))})]})]})};var Qt=({selectedDate:e,currentMonth:t,onChange:r,onNavigate:n,onHeaderClick:o,setIsOpen:i})=>{let a=t.getFullYear(),l=Array.from({length:52},(c,u)=>u+1),s=e,p=c=>{let u=new Date(a,0,1+(c-1)*7);r(u),i(!1);},d=(()=>{if(!s)return null;let c=new Date(s);c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);let u=new Date(c.getFullYear(),0,4),m=1+Math.round(((c.getTime()-u.getTime())/864e5-3+(u.getDay()+6)%7)/7);return {year:c.getFullYear(),week:m}})();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ie,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:o,children:a}),jsxRuntime.jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(se,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-4 gap-2",children:l.map(c=>{let u=d&&d.year===a&&d.week===c;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>p(c),className:`p-2 text-sm rounded cursor-pointer hover:bg-accent ${u?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:["Semana ",c]},c)})})]})};var tr=({currentYear:e,selectedDate:t,onPick:r,onNavigate:n})=>{let o=e-6,i=Array.from({length:12},(a,l)=>o+l);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ie,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium",children:e}),jsxRuntime.jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(se,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-2",children:i.map(a=>{let l=t?.getFullYear()===a;return jsxRuntime.jsx("button",{type:"button",onClick:()=>r(a),className:`p-2 text-sm rounded hover:bg-accent ${l?"bg-primary text-primary-foreground":""}`,children:a},a)})})]})};var nr=jr.forwardRef(({label:e,required:t,value:r,name:n,onChange:o,placeholder:i="Selecione uma data",type:a="date",locale:l="pt-BR",disabled:s=!1,error:p=!1,helperText:d,className:c,...u},m)=>{let L=jr.useId(),y=jr.useRef(null),b=jr.useRef(null),[h,M]=jr.useState(!1),[R,F]=jr.useState(0),[I,A]=jr.useState(r),[S,B]=jr.useState(()=>r?Ye(r,a,l):""),[P,T]=jr.useState(()=>a==="month"?"month":a==="week"?"week":a==="year"?"year":"day");Xt(y,()=>M(!1));let f=I??new Date,g=new Date(f.getFullYear(),f.getMonth()+R,1),N=k=>{b.current=k,typeof m=="function"?m(k):m&&(m.current=k);},E=k=>{A(k);let C=_t(k,a),G=Ye(k,a,l);B(G),b.current&&(b.current.value=C,o?.({target:{name:b.current.name,value:C},type:"change"}),F(0));},V=(k,C,G)=>{let K=new Date(k,C+1,0).getDate();return Math.min(G,K)},J=k=>{let C=k.replace(/\D/g,"").slice(0,8),G=[];return C.length>=2&&G.push(C.slice(0,2)),C.length>=4&&G.push(C.slice(2,4)),C.length>4&&G.push(C.slice(4)),G.join("/")},te=k=>{let C=k.target.value,G=J(C);if(B(G),G.length===10){let[K,z,q]=G.split("/").map(Number),j=new Date(q,z-1,K);isNaN(j.getTime())||E(j);}},he=()=>{switch(P){case"year":return jsxRuntime.jsx(tr,{currentYear:g.getFullYear(),selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onPick:k=>{let C=I??new Date,G=V(k,C.getMonth(),C.getDate()),K=new Date(k,C.getMonth(),G,C.getHours(),C.getMinutes(),C.getSeconds());A(K),a==="year"?(E(K),M(!1)):T(a==="month"?"month":a==="week"?"week":"month");}});case"month":return jsxRuntime.jsx(jt,{currentMonth:g,selectedDate:I,setIsOpen:M,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onHeaderClick:()=>T("year"),closeOnSelect:a==="month",onChange:k=>{let C=I??new Date,G=V(k.getFullYear(),k.getMonth(),C.getDate()),K=new Date(k.getFullYear(),k.getMonth(),G,C.getHours(),C.getMinutes(),C.getSeconds());A(K),a==="month"?(E(K),M(!1)):T("day");}});case"week":return jsxRuntime.jsx(Qt,{currentMonth:g,selectedDate:I,setIsOpen:M,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onHeaderClick:()=>T("year"),onChange:k=>{E(k),M(!1);}});case"day":default:return a==="datetime-local"?jsxRuntime.jsxs("div",{className:"flex h-fit gap-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(We,{type:a,currentMonth:g,selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?1:-1)),onMonthClick:()=>T("month"),onYearClick:()=>T("year"),onChange:k=>{let C=I??new Date,G=new Date(k.getFullYear(),k.getMonth(),k.getDate(),C.getHours(),C.getMinutes(),C.getSeconds());E(G);}})}),jsxRuntime.jsx("div",{className:"w-fit",children:jsxRuntime.jsx(Zt,{selectedDate:I,onChange:k=>E(k)})})]}):jsxRuntime.jsx(We,{type:a,currentMonth:g,selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?1:-1)),onMonthClick:()=>T("month"),onYearClick:()=>T("year"),onChange:k=>{E(k),M(!1);}})}};return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsxRuntime.jsx(D,{htmlFor:L,required:t,children:e}),jsxRuntime.jsx("input",{ref:N,id:L,name:n,type:"text",className:"sr-only",disabled:s,...u}),jsxRuntime.jsxs("div",{ref:y,className:"relative",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:"text",value:S,onChange:te,onFocus:()=>!s&&M(!0),placeholder:i,disabled:s,className:`
42
+ w-full px-3 py-2 pr-9 border rounded-md bg-background
43
+ ${p?"border-red-500":"border-input"}
44
+ ${s?"opacity-50 cursor-not-allowed":"hover:border-ring"}
45
+ focus:ring-2 focus:ring-ring focus:ring-offset-2
46
+ `}),jsxRuntime.jsx(qt,{width:16,height:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"})]}),h&&jsxRuntime.jsx("div",{className:"absolute z-50 mt-1 bg-popover border border-border rounded-md shadow-lg p-4 min-w-70",children:he()})]}),p&&jsxRuntime.jsx(O,{children:p}),!p&&d&&jsxRuntime.jsx($,{children:d})]})})});nr.displayName="DatePicker";var el=nr;var qn=({children:e,before:t,after:r,className:n})=>{let i=zn__default.default("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsxRuntime.jsx("div",{className:i,children:jsxRuntime.jsx("span",{children:e})})},Xe=qn;var Wn=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),ir=Wn;var Yn=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),lr=Yn;function cr(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function dr(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=a,e}function ur(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function mr(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function pr(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function fr(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function gr(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function br(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var Kn=({e,mask:t})=>{switch(t){case"money":return dr(e);case"mobile":return mr(e);case"phone":return pr(e);case"cpfCnpj":return fr(e);case"cpf":return ur(e);case"rg":return gr(e);case"cnpj":return br(e);case"cep":return cr(e);default:return e}},vr=Kn;var Jn=({mask:e,initialValue:t=""})=>{let[r,n]=jr.useState(t);jr.useEffect(()=>{t!==r&&n(t);},[t]);let o=jr.useCallback(a=>{let s=vr({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;n(s);},[e]),i=jr.useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:i}},xr=Jn;var yr=jr.forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:i,addonBefore:a,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:p,ClearEnabled:d=!0,className:c,overrideClassName:u=!1,error:m,helperText:L,value:y=void 0,onChange:b,...h},M)=>{let R=jr.useId(),{handleChange:F,handleClear:I,setValue:A}=xr({mask:r,initialValue:y}),S=x("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",m&&"border-destructive focus-visible:ring-destructive",!o&&!i&&"px-3",o&&!i&&"pl-10 pr-3",i&&!o&&"pl-3 pr-10",o&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",c),B=T=>{F(T),b?.(T);},P=()=>{I(),A(""),b?.({target:{name:n||"",value:""}});};return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(D,{htmlFor:R,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative flex",children:[a&&jsxRuntime.jsx(Xe,{before:!0,className:l,children:a}),jsxRuntime.jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsxRuntime.jsx(ir,{children:o}),jsxRuntime.jsx("input",{id:R,ref:M,name:n,onChange:B,className:u?c:S,...h}),d&&y&&jsxRuntime.jsx(Me,{onClick:P,width:12,height:12,className:x("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsxRuntime.jsx(lr,{children:i})]}),s&&jsxRuntime.jsx(Xe,{after:!0,className:p,children:s})]}),m&&jsxRuntime.jsx(O,{children:m}),!m&&L&&jsxRuntime.jsx($,{children:L})]})})});yr.displayName="Input";var Nl=yr;var wr=jr.forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:i=!1,helperText:a,error:l,onChange:s,onBlur:p,className:d,charType:c="numeric",customPattern:u,caseMode:m="none",...L},y)=>{let b=jr.useId(),h=jr.useRef([]),M=f=>{switch(m){case"upper":return f.toUpperCase();case"lower":case"visual-upper":return f.toLowerCase();case"visual-lower":return f.toUpperCase();default:return f}},R=f=>{if(!f)return "";let g=f.slice(0,1);switch(g=M(g),c){case"numeric":return /\d/.test(g)?g:"";case"alpha":return /[A-Za-z]/.test(g)?g:"";case"alphanumeric":return /[A-Za-z0-9]/.test(g)?g:"";case"custom":return u?.test(g)?g:"";default:return g}},F=()=>(r!=null?String(r):"").split("").map(R).slice(0,e),I=F().concat(Array(e).fill(" ")).slice(0,e),A=f=>{let g=f.split("").map(R).join("").slice(0,e),N=g===""?void 0:typeof r=="number"?Number(g):g;s?.({target:{name:n,value:N}});},S=(f,g)=>{let N=R(g),E=F();if(N===""){E[f]="",A(E.join(""));return}if(g.length>1){let V=g.split("").map(R).join("").slice(0,e);A(V),h.current[Math.min(V.length-1,e-1)]?.focus();return}N&&(E[f]=N,A(E.join("")),f<e-1&&h.current[f+1]?.focus());},B=f=>{let g=F();!g[f]&&f>0?g[f-1]="":g[f]="",A(g.join("")),f>0&&h.current[f-1]?.focus();},P=f=>{f.preventDefault();let N=f.clipboardData.getData("text").split("").map(R).join("").slice(0,e);N&&(A(N),h.current[Math.min(N.length-1,e-1)]?.focus());},T=f=>{switch(m){case"upper":case"visual-upper":return f.toUpperCase();case"lower":case"visual-lower":return f.toLowerCase();default:return f}};return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsxRuntime.jsx(D,{htmlFor:b,required:i,children:o}),jsxRuntime.jsx("div",{className:x("flex gap-3 items-center",l&&"text-red-500",d),...L,children:I.map((f,g)=>{let N=t&&g>0&&g%t===0;return jsxRuntime.jsxs(jr__default.default.Fragment,{children:[N&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsxRuntime.jsx("input",{id:b,type:"text",maxLength:1,inputMode:c==="numeric"?"numeric":"text",value:T(f).trim(),ref:E=>{h.current[g]=E,g===0&&y&&(typeof y=="function"?y(E):typeof y=="object"&&(y.current=E));},onPaste:P,onChange:E=>S(g,E.target.value),onKeyDown:E=>E.key==="Backspace"&&B(g),onBlur:p,className:x("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l&&"border-red-500")})]},g)})}),l&&jsxRuntime.jsx(O,{children:l}),!l&&a&&jsxRuntime.jsx($,{children:a})]})})});wr.displayName="OtpInput";var Hl=wr;var kr=jr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:i,overrideClassName:a,helperText:l,error:s,...p},d)=>{let c=jr.useId(),u=x("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",i);return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[e&&jsxRuntime.jsx(D,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{id:c,type:"radio",className:a?i:u,ref:d,...p}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:o&&o}),jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsxRuntime.jsx(D,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(D,{id:`${c}-description`,htmlFor:c,className:"text-xs text-muted-foreground",children:n})]})]})]}),s&&jsxRuntime.jsx(O,{children:s}),!s&&l&&jsxRuntime.jsx($,{children:l})]})})});kr.displayName="Radio";var Wl=kr;function so(e,t){let{label:r,required:n,name:o,labelKey:i,valueKey:a,options:l,alignment:s="vertical",className:p,overrideClassName:d=!1,helperText:c,error:u,typeSet:m="field",value:L,onChange:y,...b}=e,h=jr.useId(),M=jr.useMemo(()=>new Map(l.map(S=>[String(S[a]),S])),[l,a]),R=jr.useMemo(()=>L==null?"":String(m==="field"?L:L[a]),[L,m,a]),F=S=>{if(!y)return;let B;if(m==="field"){let P=M.get(S);if(P)B=P[a];else {let T=Number(S);B=Number.isNaN(T)?S:T;}}else B=M.get(S)??void 0;y({target:{name:o,value:B,type:"radiogroup",checked:!0}});},I=s==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",A=x("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",u&&"border-destructive");return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:x("flex flex-col gap-3",p),children:[r&&jsxRuntime.jsx(D,{required:n,children:r}),jsxRuntime.jsx("div",{className:I,children:l.map((S,B)=>{let P=String(S[a]),T=`${h}-${P}-${B}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...b,id:T,ref:t,name:o,type:"radio",checked:R===P,onChange:()=>F(P),className:d?p:A}),jsxRuntime.jsx(D,{htmlFor:T,children:String(S[i])})]},T)})}),u&&jsxRuntime.jsx(O,{children:String(u)}),!u&&c&&jsxRuntime.jsx($,{children:c})]})})}function lo(){let e=jr.forwardRef(so);return e.displayName="RadioGroup",e}var co=lo(),rc=co;function po({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:i,error:a,helperText:l,className:s,...p},d){let c=jr.useId(),u=x("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",s);return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(D,{htmlFor:c,required:t,children:e}),jsxRuntime.jsxs("select",{id:c,ref:d,className:u,...p,children:[i&&jsxRuntime.jsx("option",{value:"",disabled:!0,children:i}),r.map((m,L)=>jsxRuntime.jsx("option",{value:String(m[o]),children:String(m[n])},L))]}),a&&jsxRuntime.jsx(O,{children:a}),!a&&l&&jsxRuntime.jsx($,{children:l})]})})}function fo(){let e=jr.forwardRef(po);return e.displayName="Select",e}var go=fo(),pc=go;var Nr=jr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:i=!1,className:a,overrideClassName:l,error:s,name:p,...d},c)=>{let u=jr.useId();return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsxRuntime.jsx(D,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"checkbox",id:u,name:p,checked:i,className:"peer sr-only",ref:c,...d}),jsxRuntime.jsx("label",{htmlFor:u,className:x("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",a),children:jsxRuntime.jsx("span",{className:x("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",i?"translate-x-5":"translate-x-1")})}),jsxRuntime.jsx("span",{children:o&&o}),(r||n)&&jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsxRuntime.jsx(D,{id:`${u}-label`,htmlFor:u,className:"text-sm font-medium leading-none",children:r}),n&&jsxRuntime.jsx(D,{id:`${u}-description`,htmlFor:u,className:"text-xs text-muted-foreground",children:n})]})]})]})})});Nr.displayName="Switch";var Cc=Nr;var Rr=jr__default.default.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:i=!1,error:a,helperText:l,...s},p)=>{let d=jr.useId(),[c,u]=jr.useState(0),m=x("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",o);return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(D,{htmlFor:d,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("textarea",{id:d,className:i?o:m,maxLength:n,onInput:L=>u(L.currentTarget.textLength),ref:p,...s}),r&&jsxRuntime.jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[c,n?` / ${n}`:""]})]}),a&&jsxRuntime.jsx(O,{children:a}),!a&&l&&jsxRuntime.jsx($,{children:l})]})})});Rr.displayName="TextArea";var Mc=Rr;var Co=({files:e,removeFile:t})=>jsxRuntime.jsx("div",{className:"space-y-2",children:e?.length>0&&e?.map((r,n)=>jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-2 bg-secondary rounded",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"text-sm truncate",children:r.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[(r?.size/1024).toFixed(1)," KB"]})]}),jsxRuntime.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),t(n);},className:"ml-2 p-1 hover:bg-destructive/20 rounded",children:"\u2715"})]},`${r?.name}-${n}`))}),Dr=Co;var wo=({accept:e,maxSize:t})=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("svg",{className:"w-8 h-8 mx-auto text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("p",{className:"text-sm text-foreground",children:"Clique para selecionar ou arraste arquivos aqui"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[e&&`Tipos aceitos: ${e}`,t&&` \u2022 Tamanho m\xE1ximo: ${t}MB`]})]})]}),Mr=wo;var Er=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=i=>i})=>{let i=jr.useRef(null),[a,l]=jr.useState(!1),s=jr.useCallback(u=>{u.preventDefault(),!n&&l(!0);},[n]),p=jr.useCallback(()=>{l(!1);},[]),d=jr.useCallback(u=>{if(u.preventDefault(),n||!i.current)return;l(!1);let m=Array.from(u.dataTransfer.files);if(!r&&!e||!r&&m.length>1)return;let L=o(m),y=r?L:L.slice(0,1);t(y);let b=new DataTransfer;y.forEach(h=>b.items.add(h)),i.current.files=b.files,i.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),c=jr.useCallback(()=>{t([]),i.current&&(i.current.value="");},[]);return {files:e,setFiles:t,clearFiles:c,inputRef:i,isDragOver:a,setIsDragOver:l,handleDrop:d,handleDragOver:s,handleDragLeave:p}};var Fr=({files:e,setFiles:t,inputRef:r})=>({removeFile:jr.useCallback(o=>{if(!r.current)return;let i=e?.filter((l,s)=>s!==o);t(i);let a=new DataTransfer;i?.forEach(l=>a.items.add(l)),r.current.files=a.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var No=({previews:e,onRemove:t})=>{let[r,n]=jr.useState(0),o=()=>n(a=>a===0?e?.length-1:a-1),i=()=>n(a=>a===e?.length-1?0:a+1);return jsxRuntime.jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsxRuntime.jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsxRuntime.jsx("button",{type:"button",onClick:i,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},Sr=No;var Hr=jr.forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:i=!1,maxSize:a=10,disabled:l=!1,error:s=!1,helperText:p,className:d,name:c,onChange:u,onBlur:m,...L},y)=>{let b=jr.useId(),[h,M]=jr.useState([]),R=1024*1024,F=V=>V.filter(J=>(!a||J.size<=a*R)&&(!r||J.type.match(r))),{inputRef:I,isDragOver:A,handleDrop:S,handleDragOver:B,handleDragLeave:P}=Er({files:h,setFiles:M,multiple:i,filterFiles:F}),{removeFile:T}=Fr({files:h,setFiles:M,inputRef:I}),f=V=>{I.current=V,typeof y=="function"?y(V):y&&(y.current=V);},g=V=>{let J=Array.from(V.target.files??[]);if(!J.length)return;let te=F(J);M(i?te:te.slice(0,1)),u?.(V);},N=jr.useMemo(()=>!o||!h||!h.length?[]:h.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[h,o]);jr.useEffect(()=>()=>N.forEach(V=>URL.revokeObjectURL(V.url)),[N]);let E=o&&N.length>0;return jsxRuntime.jsx(v,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${d}`,children:[e&&jsxRuntime.jsx(D,{htmlFor:b,required:t,children:e}),jsxRuntime.jsxs("div",{onDrop:S,onDragOver:B,onDragLeave:P,onClick:()=>{!l&&!E&&I.current?.click();},className:`
33
47
  border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
34
48
  transition-colors
35
- ${$?"border-primary bg-primary/5":"border-border"}
36
- ${l?"border-red-500":""}
37
- ${s?"opacity-50 cursor-not-allowed":"hover:border-primary"}
38
- `,children:[jsxRuntime.jsx("input",{ref:m,id:y,name:h,type:"file",accept:r,multiple:a,disabled:s,onChange:u,onBlur:d,className:"hidden",...R}),o&&T.length>0?jsxRuntime.jsx(nr,{previews:T,onRemove:w}):jsxRuntime.jsx(Qt,{accept:r,maxSize:i})]}),n?n({files:v,removeFile:w}):v&&v.length>0&&jsxRuntime.jsx(Yt,{files:v,removeFile:w}),l&&jsxRuntime.jsx(A,{children:l}),!l&&g&&jsxRuntime.jsx(D,{children:g})]})})});ar.displayName="UploadFile";var gl=ar;
49
+ ${A?"border-primary bg-primary/5":"border-border"}
50
+ ${s?"border-red-500":""}
51
+ ${l?"opacity-50 cursor-not-allowed":"hover:border-primary"}
52
+ `,children:[jsxRuntime.jsx("input",{ref:f,id:b,name:c,type:"file",accept:r,multiple:i,disabled:l,onChange:g,onBlur:m,className:"hidden",...L}),o&&N.length>0?jsxRuntime.jsx(Sr,{previews:N,onRemove:T}):jsxRuntime.jsx(Mr,{accept:r,maxSize:a})]}),n?n({files:h,removeFile:T}):h&&h.length>0&&jsxRuntime.jsx(Dr,{files:h,removeFile:T}),s&&jsxRuntime.jsx(O,{children:s}),!s&&p&&jsxRuntime.jsx($,{children:p})]})})});Hr.displayName="UploadFile";var rd=Hr;
39
53
 
40
- exports.AccordionPrimitive = mo;
41
- exports.BadgePrimitive = To;
42
- exports.ButtonPrimitive = ko;
43
- exports.CardContentPrimitive = Bo;
44
- exports.CardDescriptionPrimitive = $o;
45
- exports.CardFooterPrimitive = Oo;
46
- exports.CardHeaderPrimitive = Ao;
47
- exports.CardPrimitive = Do;
48
- exports.CardTitlePrimitive = So;
49
- exports.CheckBoxGroupPrimitive = Ma;
50
- exports.CheckBoxPrimitive = ha;
51
- exports.ColorPicker = Ct;
52
- exports.ColorPickerPrimitive = $a;
53
- exports.ComboBoxPrimitive = ui;
54
- exports.DropdownMenuContentPrimitive = Jo;
55
- exports.DropdownMenuItemPrimitive = jo;
56
- exports.DropdownMenuLabelPrimitive = Yo;
57
- exports.DropdownMenuPrimitive = Xo;
58
- exports.DropdownMenuSeparatorPrimitive = Zo;
59
- exports.DropdownMenuTriggerPrimitive = _o;
60
- exports.HelperFieldPrimitive = D;
61
- exports.InputPrimitive = Oi;
62
- exports.LabelPrimitive = N;
63
- exports.LicenseProvider = dr;
64
- exports.OtpInputPrimitive = Ji;
65
- exports.RadioGroupPrimitive = gs;
66
- exports.RadioPrimitive = os;
67
- exports.SelectPrimitive = ws;
68
- exports.SwitchPrimitive = Hs;
69
- exports.TextAreaPrimitive = qs;
70
- exports.UploadFilePrimitive = gl;
71
- exports.ValidateFieldPrimitive = A;
54
+ exports.AccordionPrimitive = ea;
55
+ exports.BadgePrimitive = da;
56
+ exports.ButtonPrimitive = ba;
57
+ exports.CardContentPrimitive = Na;
58
+ exports.CardDescriptionPrimitive = La;
59
+ exports.CardFooterPrimitive = Ra;
60
+ exports.CardHeaderPrimitive = Pa;
61
+ exports.CardPrimitive = ka;
62
+ exports.CardTitlePrimitive = Ta;
63
+ exports.CheckBoxGroupPrimitive = hi;
64
+ exports.CheckBoxPrimitive = si;
65
+ exports.ColorPicker = At;
66
+ exports.ColorPickerPrimitive = Li;
67
+ exports.ComboBoxPrimitive = ts;
68
+ exports.DatePickerPrimitive = el;
69
+ exports.DropdownMenuContentPrimitive = Aa;
70
+ exports.DropdownMenuItemPrimitive = $a;
71
+ exports.DropdownMenuLabelPrimitive = Ba;
72
+ exports.DropdownMenuPrimitive = Va;
73
+ exports.DropdownMenuSeparatorPrimitive = Oa;
74
+ exports.DropdownMenuTriggerPrimitive = Ha;
75
+ exports.HelperFieldPrimitive = $;
76
+ exports.InputPrimitive = Nl;
77
+ exports.LabelPrimitive = D;
78
+ exports.LicenseProvider = Gr;
79
+ exports.OtpInputPrimitive = Hl;
80
+ exports.RadioGroupPrimitive = rc;
81
+ exports.RadioPrimitive = Wl;
82
+ exports.SelectPrimitive = pc;
83
+ exports.SwitchPrimitive = Cc;
84
+ exports.TextAreaPrimitive = Mc;
85
+ exports.UploadFilePrimitive = rd;
86
+ exports.ValidateFieldPrimitive = O;
package/dist/page.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import yr, { createContext, forwardRef, useState, useContext, useRef, useEffect, useId, useMemo, useCallback, cloneElement, useImperativeHandle } from 'react';
3
- import en, { clsx } from 'clsx';
2
+ import jr, { createContext, forwardRef, useState, useContext, useRef, useEffect, useId, useMemo, useCallback, cloneElement, useImperativeHandle } from 'react';
3
+ import zn, { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
 
6
- var Ue=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M12 9v4"}),jsx("path",{d:"M12 17h.01"}),jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsx("div",{className:"flex flex-col gap-3",children:o.map((a,i)=>{let s=a.variant!=="secondary";return jsx("button",{onClick:a.onClick,className:s?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:a.label},i)})})]})});var qe=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
6
+ var ot=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M12 9v4"}),jsx("path",{d:"M12 17h.01"}),jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsx("div",{className:"flex flex-col gap-3",children:o.map((i,a)=>{let l=i.variant!=="secondary";return jsx("button",{onClick:i.onClick,className:l?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i.label},a)})})]})});var at=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
7
7
  Ol\xE1,
8
8
 
9
9
  Estou enfrentando um problema com a licen\xE7a da aplica\xE7\xE3o.
@@ -12,22 +12,36 @@ Erro:
12
12
  ${t??"Licen\xE7a inv\xE1lida"}
13
13
 
14
14
  Aguardo retorno.
15
- `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var ze=(e,t)=>{let r=`
15
+ `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var it=(e,t)=>{let r=`
16
16
  Ol\xE1! Estou com um problema de licen\xE7a na aplica\xE7\xE3o.
17
17
 
18
18
  Erro:
19
19
  ${t??"Licen\xE7a inv\xE1lida"}
20
20
 
21
21
  Pode me ajudar?
22
- `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var We=createContext(void 0),dr=({children:e,licenseKey:t})=>{let[r,n]=useState(!1),[o,a]=useState(null),[i,s]=useState(!0),l=g=>{if(a(null),!g)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let c="chave-secreta-123";if(g!==c)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return useEffect(()=>{if(t){s(!0);try{l(t);}catch(g){a(g instanceof Error?g.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{s(!1);}}else a("\u{1F512} Licen\xE7a n\xE3o informada"),s(!1);},[t]),i?null:jsx(We.Provider,{value:{isLicenseValid:r,validateLicense:l,licenseError:o},children:r?e:jsx(Ue,{badge:"Licen\xE7a necess\xE1ria",title:"Erro de Licen\xE7a",message:o||"Licen\xE7a inv\xE1lida",description:"Sua aplica\xE7\xE3o precisa de uma licen\xE7a v\xE1lida para continuar.",actions:[{label:"Tentar novamente",onClick:()=>window.location.reload()},{label:"Falar no WhatsApp",variant:"secondary",onClick:()=>ze("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>qe("marcos.vinicius.engsof@gmail.com",o)}]})})},Xe=()=>{let e=useContext(We);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var Je=({message:e="Component locked - Please validate your license"})=>jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsx("span",{children:e})]});var f=({children:e})=>{let{isLicenseValid:t}=Xe();return t?jsx(Fragment,{children:e}):jsx(Je,{})};var Ye=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:a=""})=>{let i=c=>c===void 0?[]:Array.isArray(c)?c:[c],[s,l]=useState(i(n??r));useEffect(()=>{n!==void 0&&l(i(n));},[n]);let g=useCallback(c=>{l(h=>{let p;return t==="single"?p=h.includes(c)?[]:[c]:p=h.includes(c)?h.filter(d=>d!==c):[...h,c],o?.(t==="single"?p[0]??"":p),p});},[t,o]);return jsx("div",{className:`space-y-2 ${a}`,children:e.map(c=>jsx(br,{...c,isOpen:s.includes(c.id),onToggle:()=>g(c.id)},c.id))})},br=({title:e,content:t,disabled:r=!1,isOpen:n,onToggle:o})=>jsx(f,{children:jsxs("div",{className:"border border-border rounded-md overflow-hidden",children:[jsx("button",{onClick:o,disabled:r,className:`w-full px-4 py-3 text-left font-medium transition-colors
22
+ `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var lt=createContext(void 0),Gr=({children:e,licenseKey:t})=>{let[r,n]=useState(!1),[o,i]=useState(null),[a,l]=useState(!0),s=p=>{if(i(null),!p)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let d="chave-secreta-123";if(p!==d)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return useEffect(()=>{if(t){l(!0);try{s(t);}catch(p){i(p instanceof Error?p.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),a?null:jsx(lt.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:o},children:r?e:jsx(ot,{badge:"Licen\xE7a necess\xE1ria",title:"Erro de Licen\xE7a",message:o||"Licen\xE7a inv\xE1lida",description:"Sua aplica\xE7\xE3o precisa de uma licen\xE7a v\xE1lida para continuar.",actions:[{label:"Tentar novamente",onClick:()=>window.location.reload()},{label:"Falar no WhatsApp",variant:"secondary",onClick:()=>it("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>at("marcos.vinicius.engsof@gmail.com",o)}]})})},ct=()=>{let e=useContext(lt);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var ut=({message:e="Component locked - Please validate your license"})=>jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsx("span",{children:e})]});var v=({children:e})=>{let{isLicenseValid:t}=ct();return t?jsx(Fragment,{children:e}):jsx(ut,{})};var ft=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:i=""})=>{let a=d=>d===void 0?[]:Array.isArray(d)?d:[d],[l,s]=useState(a(n??r));useEffect(()=>{n!==void 0&&s(a(n));},[n]);let p=useCallback(d=>{s(c=>{let u;return t==="single"?u=c.includes(d)?[]:[d]:u=c.includes(d)?c.filter(m=>m!==d):[...c,d],o?.(t==="single"?u[0]??"":u),u});},[t,o]);return jsx("div",{className:`space-y-2 ${i}`,children:e.map(d=>jsx(Kr,{...d,isOpen:l.includes(d.id),onToggle:()=>p(d.id)},d.id))})},Kr=({title:e,content:t,disabled:r=!1,isOpen:n,onToggle:o})=>jsx(v,{children:jsxs("div",{className:"border border-border rounded-md overflow-hidden",children:[jsx("button",{onClick:o,disabled:r,className:`w-full px-4 py-3 text-left font-medium transition-colors
23
23
  ${r?"opacity-50 cursor-not-allowed":"hover:bg-accent hover:text-accent-foreground"}
24
24
  ${n?"bg-accent text-accent-foreground":"bg-background text-foreground"}
25
- `,children:jsxs("div",{className:"flex items-center justify-between",children:[jsx("span",{children:e}),jsx("svg",{className:`w-5 h-5 transition-transform ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),n&&jsx("div",{className:"px-4 py-3 bg-background border-t border-border",children:t})]})});Ye.displayName="Accordion";var mo=Ye;function b(...e){return twMerge(clsx(e))}var et=forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},a)=>jsx(f,{children:jsx("div",{ref:a,className:t?e:b("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-red-500 text-white hover:bg-red-600",outline:"text-foreground border border-input",ghost:"bg-transparent text-foreground hover:bg-muted",link:"text-primary underline-offset-4 hover:underline",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-black hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",subtle:"bg-muted text-muted-foreground hover:bg-muted/80",dark:"bg-zinc-900 text-white hover:bg-zinc-800",light:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200"}[r],e),...o,children:n})}));et.displayName="Badge";var To=et;var tt=yr.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:a,loading:i=!1,loadingContent:s,...l},g)=>{let c="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",h={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},p={xs:"h-7 px-2 text-xs min-w-16",sm:"h-9 px-3 text-sm min-w-20",md:"h-10 px-4 py-2 text-base min-w-24",lg:"h-11 px-6 text-lg min-w-28",xl:"h-12 px-8 text-xl min-w-32"},d=t?e:b(c,h[r],p[n],e);return o?jsx(f,{children:jsx("a",{href:o,className:d,ref:g,children:i&&s?s:a})}):jsx(f,{children:jsx("button",{className:d,ref:g,...l,children:i&&s?s:a})})});tt.displayName="Button";var ko=tt;var rt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:b("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));rt.displayName="Card";var nt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:b("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));nt.displayName="CardHeader";var ot=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("h3",{ref:o,className:t?e:b("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));ot.displayName="CardTitle";var at=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("p",{ref:o,className:t?e:b("text-sm text-muted-foreground",e),...n,children:r})}));at.displayName="CardDescription";var it=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:b("p-6 pt-0",e),...n,children:r})}));it.displayName="CardContent";var st=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:b("flex items-center p-6 pt-0",e),...n,children:r})}));st.displayName="CardFooter";var Do=rt,Ao=nt,So=ot,$o=at,Bo=it,Oo=st;var ge=createContext(void 0),ct=forwardRef(({children:e,className:t,...r},n)=>{let[o,a]=useState(!1);return jsx(f,{children:jsx(ge.Provider,{value:{isOpen:o,setIsOpen:a},children:jsx("div",{ref:n,className:b("relative inline-block",t),...r,children:e})})})});ct.displayName="DropdownMenu";var dt=({children:e,asChild:t})=>{let r=useContext(ge);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return cloneElement(o,{onClick:a=>{o.props.onClick?.(a),n();}})}return jsx(f,{children:jsx("button",{onClick:n,children:e})})};dt.displayName="DropdownMenuTrigger";var pt=forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let a=useContext(ge),i=useRef(null);return useEffect(()=>{o&&(typeof o=="function"?o(i.current):o.current=i.current);},[o]),useEffect(()=>{let l=g=>{i.current&&!i.current.contains(g.target)&&a?.setIsOpen(!1);};return a?.isOpen&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l);}},[a?.isOpen]),a?.isOpen?jsx(f,{children:jsx("div",{ref:i,className:b("absolute z-50 mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md",{start:"left-0",center:"left-1/2 -translate-x-1/2",end:"right-0"}[t],r),...n,children:e})}):null});pt.displayName="DropdownMenuContent";var mt=forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},a)=>{let i=useContext(ge);return jsx(f,{children:jsx("button",{ref:a,onClick:l=>{t?.(l),i?.setIsOpen(!1);},className:b("w-full text-left px-4 py-2 text-sm hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none",r&&"text-red-600 hover:bg-red-50 hover:text-red-700 focus:bg-red-50 focus:text-red-700",n),...o,children:e})})});mt.displayName="DropdownMenuItem";var ut=forwardRef(({className:e,...t},r)=>jsx(f,{children:jsx("div",{ref:r,className:b("-mx-1 my-1 h-px bg-border",e),...t})}));ut.displayName="DropdownMenuSeparator";var ft=forwardRef(({children:e,className:t,...r},n)=>jsx(f,{children:jsx("div",{ref:n,className:b("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));ft.displayName="DropdownMenuLabel";var Xo=ct,_o=dt,Jo=pt,jo=mt,Zo=ut,Yo=ft;var Rr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(f,{children:jsx("p",{className:r?t:b("text-sm text-muted-foreground",t),children:e})})},D=Rr;var wr=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsx(f,{children:jsxs("div",{className:"flex items-center gap-1",children:[jsx("label",{...o,className:n?r:b("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsx("span",{className:"text-red-600",children:"*"})]})}),N=wr;var kr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(f,{children:jsx("p",{className:r?t:b("text-sm text-red-600 dark:text-red-400",t),children:e})})},A=kr;var vt=forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:a="left",className:i,overrideClassName:s=!1,helperText:l,error:g,...c},h)=>{let p=useId(),d=b("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",g&&"border-destructive",i);return jsx(f,{children:jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsx(N,{required:t,children:e}),jsxs("div",{className:`flex items-center ${a=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsx("input",{id:p,type:"checkbox",className:s?i:d,ref:h,...c}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{children:o&&o}),jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsx(N,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(N,{id:`${p}-description`,htmlFor:p,className:"text-xs text-muted-foreground",children:n})]})]})]}),g&&jsx(A,{children:g}),!g&&l&&jsx(D,{children:l})]})})});vt.displayName="CheckBox";var ha=vt;function Vr(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:a,labelKey:i,valueKey:s,options:l,alignment:g="vertical",className:c,overrideClassName:h=!1,helperText:p,error:d,label:R,name:L,required:y,...v}=e,k=useId(),P=useMemo(()=>new Map(l.map(C=>[String(C[s]),C])),[l,s]),F=useMemo(()=>o==null?[]:r==="field"?n?o.map(C=>String(C)):[String(o)]:n?o.map(C=>String(C[s])):[String(o[s])],[o,r,n,s]),S=(C,w)=>{if(!a)return;let m;if(r==="field")if(n)m=C.map(T=>{let I=P.get(T);return I?I[s]:T});else {let u=C[0];if(!u)m=void 0;else {let T=P.get(u);m=T?T[s]:u;}}else n?m=C.map(T=>P.get(T)).filter(T=>T!==void 0):m=P.get(C[0]??"")??void 0;a({target:{name:L,value:m,type:"checkboxgroup",checked:w}});},$=C=>{let w;n?w=F.includes(C)?F.filter(m=>m!==C):[...F,C]:w=F[0]===C?[]:[C],S(w,w.includes(C));},E=g==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",B=b("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",d&&"border-destructive");return jsx(f,{children:jsxs("div",{className:b("flex flex-col gap-3",c),children:[R&&jsx(N,{required:y,children:R}),jsx("div",{className:E,children:l.map((C,w)=>{let m=String(C[s]),u=F.includes(m),T=`${k}-${m}-${w}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...v,id:T,ref:t,type:"checkbox",name:L,checked:u,onChange:()=>$(m),className:h?c:B}),jsx(N,{htmlFor:T,children:String(C[i])})]},T)})}),!!d&&jsx(A,{children:String(d)}),!d&&p&&jsx(D,{children:p})]})})}function Hr(){let e=forwardRef(Vr);return e.displayName="CheckBoxGroup",e}var Dr=Hr(),Ma=Dr;var Br=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],Ct=yr.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=Br,showPresets:a=!0,className:i,error:s,helperText:l,name:g},c)=>{let h=useId(),p=useRef(null),[d,R]=useState(!1),[L,y]=useState("COLOR"),[v,k]=useState("HEX"),[P,F]=useState("#000000"),[S,$]=useState(0),[E,B]=useState(0),[C,w]=useState(0),[m,u]=useState(1),[T,I]=useState("#000000"),[V,_]=useState("#ffffff"),[j,ue]=useState(90),[Ce,ne]=useState("linear-gradient(90deg, #000000, #ffffff)"),Te=(x,H,ce)=>Math.min(ce,Math.max(H,x)),Le=x=>{let H=x.replace("#","");return {r:parseInt(H.slice(0,2),16),g:parseInt(H.slice(2,4),16),b:parseInt(H.slice(4,6),16)}},O=x=>{r?.({target:{value:x,name:g}});};useEffect(()=>{let x=H=>{p.current&&!p.current.contains(H.target)&&R(!1);};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(P)){let x=Le(P);$(x.r),B(x.g),w(x.b);}},[P]),useEffect(()=>{let x=`linear-gradient(${j}deg, ${T}, ${V})`;ne(x),L==="GRADIENT"&&O(x);},[T,V,j]);let G=()=>{if(m>=1){if(v==="HEX")return P;if(v==="RGB")return `rgb(${S}, ${E}, ${C})`}return `rgba(${S}, ${E}, ${C}, ${Number(m.toFixed(2))})`},Z=L==="GRADIENT"?Ce:G();return jsx(f,{children:jsxs("div",{className:`space-y-2 ${i??""}`,children:[e&&jsx(N,{htmlFor:h,required:t,children:e}),jsxs("div",{ref:p,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>!n&&R(!d),className:"flex items-center gap-2 px-3 py-2 border rounded-md bg-background w-full",children:[jsx("div",{className:"w-6 h-6 rounded border",style:{background:Z}}),jsx("span",{className:"text-xs font-mono truncate",children:Z})]}),d&&jsxs("div",{className:"absolute z-50 mt-1 w-85 bg-popover border rounded-md p-4 space-y-3 shadow-lg",children:[jsx("div",{className:"flex gap-2",children:["COLOR","GRADIENT"].map(x=>jsx("button",{type:"button",onClick:()=>y(x),className:`px-2 py-1 text-xs rounded ${L===x?"bg-primary text-white":"border"}`,children:x==="COLOR"?"Cor":"Gradiente"},x))}),jsx("div",{className:"w-full h-10 rounded border",style:{background:Z}}),L==="COLOR"&&jsxs(Fragment,{children:[jsx("input",{ref:c,type:"color",value:P,onChange:x=>{F(x.target.value.toUpperCase()),O(G());},className:"w-full h-10 rounded"}),jsxs("div",{className:"flex gap-2 items-center",children:[jsxs("select",{value:v,onChange:x=>k(x.target.value),className:"px-2 py-1 text-xs border rounded",children:[jsx("option",{value:"HEX",children:"HEX"}),jsx("option",{value:"RGB",children:"RGB"}),jsx("option",{value:"RGBA",children:"RGBA"})]}),v==="HEX"&&jsx("input",{value:P,onChange:x=>{let H=x.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");H.startsWith("#")||(H="#"+H),H="#"+H.slice(1,7),F(H),/^#[0-9A-F]{6}$/.test(H)&&O(H);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(v==="RGB"||v==="RGBA")&&jsx("div",{className:"flex gap-2",children:[{l:"R",v:S,s:$},{l:"G",v:E,s:B},{l:"B",v:C,s:w}].map(({l:x,v:H,s:ce})=>jsxs("div",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-xs font-semibold",children:x}),jsx("input",{type:"number",min:0,max:255,value:H,onChange:ir=>{ce(Te(+ir.target.value,0,255)),O(G());},className:"w-14 px-1 py-1 text-xs border rounded"})]},x))})]}),v==="RGBA"&&jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs font-semibold",children:"A"}),jsx("input",{type:"range",min:0,max:1,step:.01,value:m,onChange:x=>{u(+x.target.value),O(G());},className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(m*100),"%"]})]}),a&&jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(x=>jsx("button",{type:"button",onClick:()=>{F(x),u(1),O(x);},className:"w-8 h-8 rounded border",style:{background:x}},x))})]}),L==="GRADIENT"&&jsxs(Fragment,{children:[jsxs("div",{className:"flex gap-2 items-center",children:[jsx("input",{type:"color",value:T,onChange:x=>I(x.target.value)}),jsx("span",{className:"text-xs",children:"\u2192"}),jsx("input",{type:"color",value:V,onChange:x=>_(x.target.value)})]}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs",children:"\xC2ngulo"}),jsx("input",{type:"range",min:0,max:360,value:j,onChange:x=>ue(+x.target.value),className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[j,"\xB0"]})]})]})]})]}),s&&jsx(A,{children:s}),!s&&l&&jsx(D,{children:l})]})})});Ct.displayName="ColorPicker";var $a=Ct;var Or=({...e})=>jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),ve=Or;var Ur=(e,t)=>{useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Lt=Ur;function ke({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:a,typeSet:i,name:s}){let[l,g]=useState([]),c=useMemo(()=>new Map(e.map(y=>[String(y[r]),y])),[e,r]),h=useCallback(()=>l.map(y=>c.get(y)).filter(y=>!!y),[l,c]),p=useCallback(y=>{if(!o)return;let v;if(i==="field"?n?v=y:v=y[0]??void 0:n?v=y.map(P=>c.get(P)).filter(P=>P!==void 0):v=c.get(y[0]??"")??void 0,a&&!n){let k=c.get(y[0]??"");k&&a(String(k[t]));}o({target:{name:s,value:v,type:"combobox"}});},[n,o,c,s,i,a,t]),d=useCallback(y=>{let v=String(y[r]),k=n?l.includes(v)?l.filter(P=>P!==v):[...l,v]:[v];g(k),p(k);},[n,l,p,r]),R=useCallback(y=>{let v=l.filter(k=>k!==y);g(v),p(v);},[l,p]),L=useCallback(()=>{g([]),a?.("");let y;i==="field"?y=n?[]:"":y=n?[]:void 0,o?.({target:{name:s,value:y,type:"combobox"}});},[n,o,s,a,i]);return {selectedValues:l,handleSelect:d,handleRemove:R,handleClear:L,getSelectedOptions:h}}function Ee(e,t,r){return useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var Rt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:a,filteredOptions:i,highlightedIndex:s,setHighlightedIndex:l,handleSelect:g,handleRemove:c})=>{let h=useCallback(d=>{if(i.length===0){l(-1);return}l(R=>R<0?d>0?0:i.length-1:(R+d+i.length)%i.length);},[i,l]);return useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),l(0),d.preventDefault();return}r&&d.key==="Backspace"&&n===""&&a.length>0&&(d.preventDefault(),c(a[a.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),h(1);break;case"ArrowUp":d.preventDefault(),h(-1);break;case"Enter":d.preventDefault();let R=s>=0?s:0,L=i[R];L&&g(L),r&&o&&o(""),r||(t(!1),l(-1));break;case"Escape":d.preventDefault(),t(!1),l(-1),r||o("");break;case"Tab":t(!1),l(-1);break;case"Home":d.preventDefault(),i.length>0&&l(0);break;case"End":d.preventDefault(),i.length>0&&l(i.length-1);break;case"Backspace":r&&n===""&&a.length>0&&(d.preventDefault(),c(a[a.length-1]));break}},[e,r,n,a,i,s,t,o,l,g,c,h])};function wt({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),a=String(e[r]);return jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsx("button",{type:"button",onMouseDown:i=>i.preventDefault(),onClick:()=>n(a),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},a)}function Zr(e,t){let{label:r,required:n=!1,name:o,placeholder:a="Buscar...",labelKey:i,valueKey:s,options:l,value:g,onChange:c,mode:h="single",typeSet:p="field",disabled:d=!1,ClearEnabled:R=!0,helperText:L,error:y=!1,className:v="",...k}=e,P=h==="multiple",[F,S]=useState(!1),[$,E]=useState(""),B=useRef(null),C=useRef(null),w=useRef(null);useImperativeHandle(t,()=>w.current),Lt(C,()=>S(!1));let m=Ee(l,i,$),[u,T]=useState(-1),{selectedValues:I,handleSelect:V,handleRemove:_,handleClear:j,getSelectedOptions:ue}=ke({options:l,labelKey:i,valueKey:s,value:g,multiple:P,onChange:c,typeSet:p,name:o,setSearchTerm:E}),Ce=Rt({isOpen:F,setIsOpen:S,multiple:P,searchTerm:$,setSearchTerm:E,selectedValues:I,filteredOptions:m,highlightedIndex:u,setHighlightedIndex:T,handleSelect:V,handleRemove:_}),ne=useId(),Te="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",Le=b("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",y?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsx(f,{children:jsxs("div",{className:`space-y-2 ${v}`,children:[r&&jsx(N,{htmlFor:ne,required:n,children:r}),jsxs("div",{ref:B,className:"relative",children:[jsxs("div",{className:Le,children:[P&&ue().length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:ue().map((O,G)=>jsx(wt,{option:O,labelKey:i,valueKey:s,onRemove:_},String(O[s]??G)))}),jsx("input",{ref:w,...k,name:o,type:"text",placeholder:a,value:$,onChange:O=>{let G=O.target.value;E(G),!F&&G.trim()!==""&&S(!0);},onKeyDown:Ce,onMouseDown:O=>{document.activeElement===w.current&&(O.preventDefault(),S(G=>{let Z=!G;return Z&&T(0),Z}));},onFocus:()=>{S(!0),T(0);},disabled:d,className:Te,role:"combobox","aria-expanded":F,"aria-controls":ne,"aria-activedescendant":u>=0?`${ne}-opt-${u}`:void 0}),R&&!!I.length&&jsx("button",{type:"button",onMouseDown:O=>O.preventDefault(),onClick:j,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsx(ve,{width:12,height:12})})]}),F&&jsx("div",{ref:C,id:ne,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":P||void 0,children:m.length===0?jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):m.map((O,G)=>{let Z=String(O[s]),x=I.includes(Z),H=G===u;return jsx("button",{id:`${ne}-opt-${G}`,"data-index":G,role:"option","aria-selected":x,type:"button",onMouseDown:ce=>ce.preventDefault(),onClick:()=>V(O),className:b("w-full px-3 py-2 text-left text-sm transition-colors",H&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!H&&x&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!x&&!H&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsx("span",{children:String(O[i])})},Z)})})]}),y&&jsx(A,{children:y}),!y&&L&&jsx(D,{children:L})]})})}function Yr(){let e=forwardRef(Zr);return e.displayName="ComboBox",e}var Qr=Yr(),ui=Qr;var tn=({children:e,before:t,after:r,className:n})=>{let a=en("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsx("div",{className:a,children:jsx("span",{children:e})})},Ve=tn;var rn=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),Et=rn;var nn=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),Ft=nn;function It(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Vt(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),i=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=i,e}function Ht(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Dt(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function At(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function St(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function $t(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function Bt(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var on=({e,mask:t})=>{switch(t){case"money":return Vt(e);case"mobile":return Dt(e);case"phone":return At(e);case"cpfCnpj":return St(e);case"cpf":return Ht(e);case"rg":return $t(e);case"cnpj":return Bt(e);case"cep":return It(e);default:return e}},Ot=on;var ln=({mask:e,initialValue:t=""})=>{let[r,n]=useState(t);useEffect(()=>{t!==r&&n(t);},[t]);let o=useCallback(i=>{let l=Ot({e:i,mask:e})?.currentTarget?.value??i.currentTarget.value;n(l);},[e]),a=useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:a}},Ut=ln;var qt=forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:a,addonBefore:i,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:g,ClearEnabled:c=!0,className:h,overrideClassName:p=!1,error:d,helperText:R,value:L=void 0,onChange:y,...v},k)=>{let P=useId(),{handleChange:F,handleClear:S,setValue:$}=Ut({mask:r,initialValue:L}),E=b("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!o&&!a&&"px-3",o&&!a&&"pl-10 pr-3",a&&!o&&"pl-3 pr-10",o&&a&&"pl-10 pr-10",i&&"rounded-l-none border-l-0",l&&"rounded-r-none border-r-0",h),B=w=>{F(w),y?.(w);},C=()=>{S(),$(""),y?.({target:{name:n||"",value:""}});};return jsx(f,{children:jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(N,{htmlFor:P,required:t,children:e}),jsxs("div",{className:"relative flex",children:[i&&jsx(Ve,{before:!0,className:s,children:i}),jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsx(Et,{children:o}),jsx("input",{id:P,ref:k,name:n,onChange:B,className:p?h:E,...v}),c&&L&&jsx(ve,{onClick:C,width:12,height:12,className:b("absolute right-2 cursor-pointer",a&&"right-8")}),a&&jsx(Ft,{children:a})]}),l&&jsx(Ve,{after:!0,className:g,children:l})]}),d&&jsx(A,{children:d}),!d&&R&&jsx(D,{children:R})]})})});qt.displayName="Input";var Oi=qt;var Kt=forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:a=!1,helperText:i,error:s,onChange:l,onBlur:g,className:c,charType:h="numeric",customPattern:p,caseMode:d="none",...R},L)=>{let y=useId(),v=useRef([]),k=m=>{switch(d){case"upper":return m.toUpperCase();case"lower":case"visual-upper":return m.toLowerCase();case"visual-lower":return m.toUpperCase();default:return m}},P=m=>{if(!m)return "";let u=m.slice(0,1);switch(u=k(u),h){case"numeric":return /\d/.test(u)?u:"";case"alpha":return /[A-Za-z]/.test(u)?u:"";case"alphanumeric":return /[A-Za-z0-9]/.test(u)?u:"";case"custom":return p?.test(u)?u:"";default:return u}},F=()=>(r!=null?String(r):"").split("").map(P).slice(0,e),S=F().concat(Array(e).fill(" ")).slice(0,e),$=m=>{let u=m.split("").map(P).join("").slice(0,e),T=u===""?void 0:typeof r=="number"?Number(u):u;l?.({target:{name:n,value:T}});},E=(m,u)=>{let T=P(u),I=F();if(T===""){I[m]="",$(I.join(""));return}if(u.length>1){let V=u.split("").map(P).join("").slice(0,e);$(V),v.current[Math.min(V.length-1,e-1)]?.focus();return}T&&(I[m]=T,$(I.join("")),m<e-1&&v.current[m+1]?.focus());},B=m=>{let u=F();!u[m]&&m>0?u[m-1]="":u[m]="",$(u.join("")),m>0&&v.current[m-1]?.focus();},C=m=>{m.preventDefault();let T=m.clipboardData.getData("text").split("").map(P).join("").slice(0,e);T&&($(T),v.current[Math.min(T.length-1,e-1)]?.focus());},w=m=>{switch(d){case"upper":case"visual-upper":return m.toUpperCase();case"lower":case"visual-lower":return m.toLowerCase();default:return m}};return jsx(f,{children:jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsx(N,{htmlFor:y,required:a,children:o}),jsx("div",{className:b("flex gap-3 items-center",s&&"text-red-500",c),...R,children:S.map((m,u)=>{let T=t&&u>0&&u%t===0;return jsxs(yr.Fragment,{children:[T&&jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsx("input",{id:y,type:"text",maxLength:1,inputMode:h==="numeric"?"numeric":"text",value:w(m).trim(),ref:I=>{v.current[u]=I,u===0&&L&&(typeof L=="function"?L(I):typeof L=="object"&&(L.current=I));},onPaste:C,onChange:I=>E(u,I.target.value),onKeyDown:I=>I.key==="Backspace"&&B(u),onBlur:g,className:b("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s&&"border-red-500")})]},u)})}),s&&jsx(A,{children:s}),!s&&i&&jsx(D,{children:i})]})})});Kt.displayName="OtpInput";var Ji=Kt;var Wt=forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:a,overrideClassName:i,helperText:s,error:l,...g},c)=>{let h=useId(),p=b("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l&&"border-destructive",a);return jsx(f,{children:jsxs("div",{className:"space-y-3",children:[e&&jsx(N,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{id:h,type:"radio",className:i?a:p,ref:c,...g}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{children:o&&o}),jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsx(N,{htmlFor:h,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(N,{id:`${h}-description`,htmlFor:h,className:"text-xs text-muted-foreground",children:n})]})]})]}),l&&jsx(A,{children:l}),!l&&s&&jsx(D,{children:s})]})})});Wt.displayName="Radio";var os=Wt;function hn(e,t){let{label:r,required:n,name:o,labelKey:a,valueKey:i,options:s,alignment:l="vertical",className:g,overrideClassName:c=!1,helperText:h,error:p,typeSet:d="field",value:R,onChange:L,...y}=e,v=useId(),k=useMemo(()=>new Map(s.map(E=>[String(E[i]),E])),[s,i]),P=useMemo(()=>R==null?"":String(d==="field"?R:R[i]),[R,d,i]),F=E=>{if(!L)return;let B;if(d==="field"){let C=k.get(E);if(C)B=C[i];else {let w=Number(E);B=Number.isNaN(w)?E:w;}}else B=k.get(E)??void 0;L({target:{name:o,value:B,type:"radiogroup",checked:!0}});},S=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=b("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",p&&"border-destructive");return jsx(f,{children:jsxs("div",{className:b("flex flex-col gap-3",g),children:[r&&jsx(N,{required:n,children:r}),jsx("div",{className:S,children:s.map((E,B)=>{let C=String(E[i]),w=`${v}-${C}-${B}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...y,id:w,ref:t,name:o,type:"radio",checked:P===C,onChange:()=>F(C),className:c?g:$}),jsx(N,{htmlFor:w,children:String(E[a])})]},w)})}),p&&jsx(A,{children:String(p)}),!p&&h&&jsx(D,{children:h})]})})}function yn(){let e=forwardRef(hn);return e.displayName="RadioGroup",e}var Cn=yn(),gs=Cn;function Pn({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:a,error:i,helperText:s,className:l,...g},c){let h=useId(),p=b("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",i&&"border-red-500 focus-visible:ring-red-500",l);return jsx(f,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(N,{htmlFor:h,required:t,children:e}),jsxs("select",{id:h,ref:c,className:p,...g,children:[a&&jsx("option",{value:"",disabled:!0,children:a}),r.map((d,R)=>jsx("option",{value:String(d[o]),children:String(d[n])},R))]}),i&&jsx(A,{children:i}),!i&&s&&jsx(D,{children:s})]})})}function Rn(){let e=forwardRef(Pn);return e.displayName="Select",e}var wn=Rn(),ws=wn;var jt=forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:a=!1,className:i,overrideClassName:s,error:l,name:g,...c},h)=>{let p=useId();return jsx(f,{children:jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsx(N,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{type:"checkbox",id:p,name:g,checked:a,className:"peer sr-only",ref:h,...c}),jsx("label",{htmlFor:p,className:b("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",i),children:jsx("span",{className:b("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",a?"translate-x-5":"translate-x-1")})}),jsx("span",{children:o&&o}),(r||n)&&jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsx(N,{id:`${p}-label`,htmlFor:p,className:"text-sm font-medium leading-none",children:r}),n&&jsx(N,{id:`${p}-description`,htmlFor:p,className:"text-xs text-muted-foreground",children:n})]})]})]})})});jt.displayName="Switch";var Hs=jt;var Zt=yr.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:a=!1,error:i,helperText:s,...l},g)=>{let c=useId(),[h,p]=useState(0),d=b("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i&&"border-red-500 focus-visible:ring-red-500",o);return jsx(f,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(N,{htmlFor:c,required:t,children:e}),jsxs("div",{className:"relative",children:[jsx("textarea",{id:c,className:a?o:d,maxLength:n,onInput:R=>p(R.currentTarget.textLength),ref:g,...l}),r&&jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[h,n?` / ${n}`:""]})]}),i&&jsx(A,{children:i}),!i&&s&&jsx(D,{children:s})]})})});Zt.displayName="TextArea";var qs=Zt;var In=({files:e,removeFile:t})=>jsx("div",{className:"space-y-2",children:e?.length>0&&e?.map((r,n)=>jsxs("div",{className:"flex items-center justify-between p-2 bg-secondary rounded",children:[jsxs("div",{children:[jsx("p",{className:"text-sm truncate",children:r.name}),jsxs("p",{className:"text-xs text-muted-foreground",children:[(r?.size/1024).toFixed(1)," KB"]})]}),jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),t(n);},className:"ml-2 p-1 hover:bg-destructive/20 rounded",children:"\u2715"})]},`${r?.name}-${n}`))}),Yt=In;var Vn=({accept:e,maxSize:t})=>jsxs("div",{className:"space-y-2",children:[jsx("svg",{className:"w-8 h-8 mx-auto text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),jsxs("div",{children:[jsx("p",{className:"text-sm text-foreground",children:"Clique para selecionar ou arraste arquivos aqui"}),jsxs("p",{className:"text-xs text-muted-foreground",children:[e&&`Tipos aceitos: ${e}`,t&&` \u2022 Tamanho m\xE1ximo: ${t}MB`]})]})]}),Qt=Vn;var er=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=a=>a})=>{let a=useRef(null),[i,s]=useState(!1),l=useCallback(p=>{p.preventDefault(),!n&&s(!0);},[n]),g=useCallback(()=>{s(!1);},[]),c=useCallback(p=>{if(p.preventDefault(),n||!a.current)return;s(!1);let d=Array.from(p.dataTransfer.files);if(!r&&!e||!r&&d.length>1)return;let R=o(d),L=r?R:R.slice(0,1);t(L);let y=new DataTransfer;L.forEach(v=>y.items.add(v)),a.current.files=y.files,a.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),h=useCallback(()=>{t([]),a.current&&(a.current.value="");},[]);return {files:e,setFiles:t,clearFiles:h,inputRef:a,isDragOver:i,setIsDragOver:s,handleDrop:c,handleDragOver:l,handleDragLeave:g}};var tr=({files:e,setFiles:t,inputRef:r})=>({removeFile:useCallback(o=>{if(!r.current)return;let a=e?.filter((s,l)=>l!==o);t(a);let i=new DataTransfer;a?.forEach(s=>i.items.add(s)),r.current.files=i.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var $n=({previews:e,onRemove:t})=>{let[r,n]=useState(0),o=()=>n(i=>i===0?e?.length-1:i-1),a=()=>n(i=>i===e?.length-1?0:i+1);return jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsx("button",{type:"button",onClick:a,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},nr=$n;var ar=forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:a=!1,maxSize:i=10,disabled:s=!1,error:l=!1,helperText:g,className:c,name:h,onChange:p,onBlur:d,...R},L)=>{let y=useId(),[v,k]=useState([]),P=1024*1024,F=V=>V.filter(_=>(!i||_.size<=i*P)&&(!r||_.type.match(r))),{inputRef:S,isDragOver:$,handleDrop:E,handleDragOver:B,handleDragLeave:C}=er({files:v,setFiles:k,multiple:a,filterFiles:F}),{removeFile:w}=tr({files:v,setFiles:k,inputRef:S}),m=V=>{S.current=V,typeof L=="function"?L(V):L&&(L.current=V);},u=V=>{let _=Array.from(V.target.files??[]);if(!_.length)return;let j=F(_);k(a?j:j.slice(0,1)),p?.(V);},T=useMemo(()=>!o||!v||!v.length?[]:v.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[v,o]);useEffect(()=>()=>T.forEach(V=>URL.revokeObjectURL(V.url)),[T]);let I=o&&T.length>0;return jsx(f,{children:jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsx(N,{htmlFor:y,required:t,children:e}),jsxs("div",{onDrop:E,onDragOver:B,onDragLeave:C,onClick:()=>{!s&&!I&&S.current?.click();},className:`
25
+ `,children:jsxs("div",{className:"flex items-center justify-between",children:[jsx("span",{children:e}),jsx("svg",{className:`w-5 h-5 transition-transform ${n?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),n&&jsx("div",{className:"px-4 py-3 bg-background border-t border-border",children:t})]})});ft.displayName="Accordion";var ea=ft;function x(...e){return twMerge(clsx(e))}var bt=forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsx(v,{children:jsx("div",{ref:i,className:t?e:x("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-red-500 text-white hover:bg-red-600",outline:"text-foreground border border-input",ghost:"bg-transparent text-foreground hover:bg-muted",link:"text-primary underline-offset-4 hover:underline",success:"bg-green-500 text-white hover:bg-green-600",warning:"bg-yellow-500 text-black hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",subtle:"bg-muted text-muted-foreground hover:bg-muted/80",dark:"bg-zinc-900 text-white hover:bg-zinc-800",light:"bg-zinc-100 text-zinc-900 hover:bg-zinc-200"}[r],e),...o,children:n})}));bt.displayName="Badge";var da=bt;var vt=jr.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:i,loading:a=!1,loadingContent:l,...s},p)=>{let d="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",c={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},u={xs:"h-7 px-2 text-xs min-w-16",sm:"h-9 px-3 text-sm min-w-20",md:"h-10 px-4 py-2 text-base min-w-24",lg:"h-11 px-6 text-lg min-w-28",xl:"h-12 px-8 text-xl min-w-32"},m=t?e:x(d,c[r],u[n],e);return o?jsx(v,{children:jsx("a",{href:o,className:m,ref:p,children:a&&l?l:i})}):jsx(v,{children:jsx("button",{className:m,ref:p,...s,children:a&&l?l:i})})});vt.displayName="Button";var ba=vt;var ht=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("div",{ref:o,className:t?e:x("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));ht.displayName="Card";var xt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("div",{ref:o,className:t?e:x("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));xt.displayName="CardHeader";var yt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("h3",{ref:o,className:t?e:x("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));yt.displayName="CardTitle";var Ct=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("p",{ref:o,className:t?e:x("text-sm text-muted-foreground",e),...n,children:r})}));Ct.displayName="CardDescription";var wt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("div",{ref:o,className:t?e:x("p-6 pt-0",e),...n,children:r})}));wt.displayName="CardContent";var kt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(v,{children:jsx("div",{ref:o,className:t?e:x("flex items-center p-6 pt-0",e),...n,children:r})}));kt.displayName="CardFooter";var ka=ht,Pa=xt,Ta=yt,La=Ct,Na=wt,Ra=kt;var Re=createContext(void 0),Tt=forwardRef(({children:e,className:t,...r},n)=>{let[o,i]=useState(!1);return jsx(v,{children:jsx(Re.Provider,{value:{isOpen:o,setIsOpen:i},children:jsx("div",{ref:n,className:x("relative inline-block",t),...r,children:e})})})});Tt.displayName="DropdownMenu";var Lt=({children:e,asChild:t})=>{let r=useContext(Re);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return cloneElement(o,{onClick:i=>{o.props.onClick?.(i),n();}})}return jsx(v,{children:jsx("button",{onClick:n,children:e})})};Lt.displayName="DropdownMenuTrigger";var Nt=forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let i=useContext(Re),a=useRef(null);return useEffect(()=>{o&&(typeof o=="function"?o(a.current):o.current=a.current);},[o]),useEffect(()=>{let s=p=>{a.current&&!a.current.contains(p.target)&&i?.setIsOpen(!1);};return i?.isOpen&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i?.isOpen]),i?.isOpen?jsx(v,{children:jsx("div",{ref:a,className:x("absolute z-50 mt-2 min-w-32 overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md",{start:"left-0",center:"left-1/2 -translate-x-1/2",end:"right-0"}[t],r),...n,children:e})}):null});Nt.displayName="DropdownMenuContent";var Rt=forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},i)=>{let a=useContext(Re);return jsx(v,{children:jsx("button",{ref:i,onClick:s=>{t?.(s),a?.setIsOpen(!1);},className:x("w-full text-left px-4 py-2 text-sm hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none",r&&"text-red-600 hover:bg-red-50 hover:text-red-700 focus:bg-red-50 focus:text-red-700",n),...o,children:e})})});Rt.displayName="DropdownMenuItem";var Dt=forwardRef(({className:e,...t},r)=>jsx(v,{children:jsx("div",{ref:r,className:x("-mx-1 my-1 h-px bg-border",e),...t})}));Dt.displayName="DropdownMenuSeparator";var Mt=forwardRef(({children:e,className:t,...r},n)=>jsx(v,{children:jsx("div",{ref:n,className:x("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));Mt.displayName="DropdownMenuLabel";var Va=Tt,Ha=Lt,Aa=Nt,$a=Rt,Oa=Dt,Ba=Mt;var rn=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(v,{children:jsx("p",{className:r?t:x("text-sm text-muted-foreground",t),children:e})})},$=rn;var nn=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsx(v,{children:jsxs("div",{className:"flex items-center gap-1",children:[jsx("label",{...o,className:n?r:x("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsx("span",{className:"text-red-600",children:"*"})]})}),D=nn;var an=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(v,{children:jsx("p",{className:r?t:x("text-sm text-red-600 dark:text-red-400",t),children:e})})},O=an;var It=forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:i="left",className:a,overrideClassName:l=!1,helperText:s,error:p,...d},c)=>{let u=useId(),m=x("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",p&&"border-destructive",a);return jsx(v,{children:jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsx(D,{required:t,children:e}),jsxs("div",{className:`flex items-center ${i=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsx("input",{id:u,type:"checkbox",className:l?a:m,ref:c,...d}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{children:o&&o}),jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsx(D,{htmlFor:u,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(D,{id:`${u}-description`,htmlFor:u,className:"text-xs text-muted-foreground",children:n})]})]})]}),p&&jsx(O,{children:p}),!p&&s&&jsx($,{children:s})]})})});It.displayName="CheckBox";var si=It;function un(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:i,labelKey:a,valueKey:l,options:s,alignment:p="vertical",className:d,overrideClassName:c=!1,helperText:u,error:m,label:L,name:y,required:b,...h}=e,M=useId(),R=useMemo(()=>new Map(s.map(P=>[String(P[l]),P])),[s,l]),F=useMemo(()=>o==null?[]:r==="field"?n?o.map(P=>String(P)):[String(o)]:n?o.map(P=>String(P[l])):[String(o[l])],[o,r,n,l]),I=(P,T)=>{if(!i)return;let f;if(r==="field")if(n)f=P.map(N=>{let E=R.get(N);return E?E[l]:N});else {let g=P[0];if(!g)f=void 0;else {let N=R.get(g);f=N?N[l]:g;}}else n?f=P.map(N=>R.get(N)).filter(N=>N!==void 0):f=R.get(P[0]??"")??void 0;i({target:{name:y,value:f,type:"checkboxgroup",checked:T}});},A=P=>{let T;n?T=F.includes(P)?F.filter(f=>f!==P):[...F,P]:T=F[0]===P?[]:[P],I(T,T.includes(P));},S=p==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",B=x("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",m&&"border-destructive");return jsx(v,{children:jsxs("div",{className:x("flex flex-col gap-3",d),children:[L&&jsx(D,{required:b,children:L}),jsx("div",{className:S,children:s.map((P,T)=>{let f=String(P[l]),g=F.includes(f),N=`${M}-${f}-${T}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...h,id:N,ref:t,type:"checkbox",name:y,checked:g,onChange:()=>A(f),className:c?d:B}),jsx(D,{htmlFor:N,children:String(P[a])})]},N)})}),!!m&&jsx(O,{children:String(m)}),!m&&u&&jsx($,{children:u})]})})}function mn(){let e=forwardRef(un);return e.displayName="CheckBoxGroup",e}var pn=mn(),hi=pn;var vn=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],At=jr.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=vn,showPresets:i=!0,className:a,error:l,helperText:s,name:p},d)=>{let c=useId(),u=useRef(null),[m,L]=useState(!1),[y,b]=useState("COLOR"),[h,M]=useState("HEX"),[R,F]=useState("#000000"),[I,A]=useState(0),[S,B]=useState(0),[P,T]=useState(0),[f,g]=useState(1),[N,E]=useState("#000000"),[V,J]=useState("#ffffff"),[te,he]=useState(90),[k,C]=useState("linear-gradient(90deg, #000000, #ffffff)"),G=(w,U,we)=>Math.min(we,Math.max(U,w)),K=w=>{let U=w.replace("#","");return {r:parseInt(U.slice(0,2),16),g:parseInt(U.slice(2,4),16),b:parseInt(U.slice(4,6),16)}},z=w=>{r?.({target:{value:w,name:p}});};useEffect(()=>{let w=U=>{u.current&&!u.current.contains(U.target)&&L(!1);};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(R)){let w=K(R);A(w.r),B(w.g),T(w.b);}},[R]),useEffect(()=>{let w=`linear-gradient(${te}deg, ${N}, ${V})`;C(w),y==="GRADIENT"&&z(w);},[N,V,te]);let q=()=>{if(f>=1){if(h==="HEX")return R;if(h==="RGB")return `rgb(${I}, ${S}, ${P})`}return `rgba(${I}, ${S}, ${P}, ${Number(f.toFixed(2))})`},j=y==="GRADIENT"?k:q();return jsx(v,{children:jsxs("div",{className:`space-y-2 ${a??""}`,children:[e&&jsx(D,{htmlFor:c,required:t,children:e}),jsxs("div",{ref:u,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>!n&&L(!m),className:"flex items-center gap-2 px-3 py-2 border rounded-md bg-background w-full",children:[jsx("div",{className:"w-6 h-6 rounded border",style:{background:j}}),jsx("span",{className:"text-xs font-mono truncate",children:j})]}),m&&jsxs("div",{className:"absolute z-50 mt-1 w-85 bg-popover border rounded-md p-4 space-y-3 shadow-lg",children:[jsx("div",{className:"flex gap-2",children:["COLOR","GRADIENT"].map(w=>jsx("button",{type:"button",onClick:()=>b(w),className:`px-2 py-1 text-xs rounded ${y===w?"bg-primary text-white":"border"}`,children:w==="COLOR"?"Cor":"Gradiente"},w))}),jsx("div",{className:"w-full h-10 rounded border",style:{background:j}}),y==="COLOR"&&jsxs(Fragment,{children:[jsx("input",{ref:d,type:"color",value:R,onChange:w=>{F(w.target.value.toUpperCase()),z(q());},className:"w-full h-10 rounded"}),jsxs("div",{className:"flex gap-2 items-center",children:[jsxs("select",{value:h,onChange:w=>M(w.target.value),className:"px-2 py-1 text-xs border rounded",children:[jsx("option",{value:"HEX",children:"HEX"}),jsx("option",{value:"RGB",children:"RGB"}),jsx("option",{value:"RGBA",children:"RGBA"})]}),h==="HEX"&&jsx("input",{value:R,onChange:w=>{let U=w.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");U.startsWith("#")||(U="#"+U),U="#"+U.slice(1,7),F(U),/^#[0-9A-F]{6}$/.test(U)&&z(U);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(h==="RGB"||h==="RGBA")&&jsx("div",{className:"flex gap-2",children:[{l:"R",v:I,s:A},{l:"G",v:S,s:B},{l:"B",v:P,s:T}].map(({l:w,v:U,s:we})=>jsxs("div",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-xs font-semibold",children:w}),jsx("input",{type:"number",min:0,max:255,value:U,onChange:Ar=>{we(G(+Ar.target.value,0,255)),z(q());},className:"w-14 px-1 py-1 text-xs border rounded"})]},w))})]}),h==="RGBA"&&jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs font-semibold",children:"A"}),jsx("input",{type:"range",min:0,max:1,step:.01,value:f,onChange:w=>{g(+w.target.value),z(q());},className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(f*100),"%"]})]}),i&&jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(w=>jsx("button",{type:"button",onClick:()=>{F(w),g(1),z(w);},className:"w-8 h-8 rounded border",style:{background:w}},w))})]}),y==="GRADIENT"&&jsxs(Fragment,{children:[jsxs("div",{className:"flex gap-2 items-center",children:[jsx("input",{type:"color",value:N,onChange:w=>E(w.target.value)}),jsx("span",{className:"text-xs",children:"\u2192"}),jsx("input",{type:"color",value:V,onChange:w=>J(w.target.value)})]}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{className:"text-xs",children:"\xC2ngulo"}),jsx("input",{type:"range",min:0,max:360,value:te,onChange:w=>he(+w.target.value),className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[te,"\xB0"]})]})]})]})]}),l&&jsx(O,{children:l}),!l&&s&&jsx($,{children:s})]})})});At.displayName="ColorPicker";var Li=At;var hn=({...e})=>jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Me=hn;var yn=(e,t)=>{useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Ot=yn;function Oe({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:i,typeSet:a,name:l}){let[s,p]=useState([]),d=useMemo(()=>new Map(e.map(b=>[String(b[r]),b])),[e,r]),c=useCallback(()=>s.map(b=>d.get(b)).filter(b=>!!b),[s,d]),u=useCallback(b=>{if(!o)return;let h;if(a==="field"?n?h=b:h=b[0]??void 0:n?h=b.map(R=>d.get(R)).filter(R=>R!==void 0):h=d.get(b[0]??"")??void 0,i&&!n){let M=d.get(b[0]??"");M&&i(String(M[t]));}o({target:{name:l,value:h,type:"combobox"}});},[n,o,d,l,a,i,t]),m=useCallback(b=>{let h=String(b[r]),M=n?s.includes(h)?s.filter(R=>R!==h):[...s,h]:[h];p(M),u(M);},[n,s,u,r]),L=useCallback(b=>{let h=s.filter(M=>M!==b);p(h),u(h);},[s,u]),y=useCallback(()=>{p([]),i?.("");let b;a==="field"?b=n?[]:"":b=n?[]:void 0,o?.({target:{name:l,value:b,type:"combobox"}});},[n,o,l,i,a]);return {selectedValues:s,handleSelect:m,handleRemove:L,handleClear:y,getSelectedOptions:c}}function Be(e,t,r){return useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var Gt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:i,filteredOptions:a,highlightedIndex:l,setHighlightedIndex:s,handleSelect:p,handleRemove:d})=>{let c=useCallback(m=>{if(a.length===0){s(-1);return}s(L=>L<0?m>0?0:a.length-1:(L+m+a.length)%a.length);},[a,s]);return useCallback(m=>{if(!e){if(m.key==="Enter"||m.key==="ArrowDown"){t(!0),s(0),m.preventDefault();return}r&&m.key==="Backspace"&&n===""&&i.length>0&&(m.preventDefault(),d(i[i.length-1]));return}switch(m.key){case"ArrowDown":m.preventDefault(),c(1);break;case"ArrowUp":m.preventDefault(),c(-1);break;case"Enter":m.preventDefault();let L=l>=0?l:0,y=a[L];y&&p(y),r&&o&&o(""),r||(t(!1),s(-1));break;case"Escape":m.preventDefault(),t(!1),s(-1),r||o("");break;case"Tab":t(!1),s(-1);break;case"Home":m.preventDefault(),a.length>0&&s(0);break;case"End":m.preventDefault(),a.length>0&&s(a.length-1);break;case"Backspace":r&&n===""&&i.length>0&&(m.preventDefault(),d(i[i.length-1]));break}},[e,r,n,i,a,l,t,o,s,p,d,c])};function Ut({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),i=String(e[r]);return jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>n(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},i)}function Dn(e,t){let{label:r,required:n=!1,name:o,placeholder:i="Buscar...",labelKey:a,valueKey:l,options:s,value:p,onChange:d,mode:c="single",typeSet:u="field",disabled:m=!1,ClearEnabled:L=!0,helperText:y,error:b=!1,className:h="",...M}=e,R=c==="multiple",[F,I]=useState(!1),[A,S]=useState(""),B=useRef(null),P=useRef(null),T=useRef(null);useImperativeHandle(t,()=>T.current),Ot(P,()=>I(!1));let f=Be(s,a,A),[g,N]=useState(-1),{selectedValues:E,handleSelect:V,handleRemove:J,handleClear:te,getSelectedOptions:he}=Oe({options:s,labelKey:a,valueKey:l,value:p,multiple:R,onChange:d,typeSet:u,name:o,setSearchTerm:S}),k=Gt({isOpen:F,setIsOpen:I,multiple:R,searchTerm:A,setSearchTerm:S,selectedValues:E,filteredOptions:f,highlightedIndex:g,setHighlightedIndex:N,handleSelect:V,handleRemove:J}),C=useId(),G="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",K=x("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",b?"border-red-500":"border-gray-300 dark:border-gray-600",m?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsx(v,{children:jsxs("div",{className:`space-y-2 ${h}`,children:[r&&jsx(D,{htmlFor:C,required:n,children:r}),jsxs("div",{ref:B,className:"relative",children:[jsxs("div",{className:K,children:[R&&he().length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:he().map((z,q)=>jsx(Ut,{option:z,labelKey:a,valueKey:l,onRemove:J},String(z[l]??q)))}),jsx("input",{ref:T,...M,name:o,type:"text",placeholder:i,value:A,onChange:z=>{let q=z.target.value;S(q),!F&&q.trim()!==""&&I(!0);},onKeyDown:k,onMouseDown:z=>{document.activeElement===T.current&&(z.preventDefault(),I(q=>{let j=!q;return j&&N(0),j}));},onFocus:()=>{I(!0),N(0);},disabled:m,className:G,role:"combobox","aria-expanded":F,"aria-controls":C,"aria-activedescendant":g>=0?`${C}-opt-${g}`:void 0}),L&&!!E.length&&jsx("button",{type:"button",onMouseDown:z=>z.preventDefault(),onClick:te,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsx(Me,{width:12,height:12})})]}),F&&jsx("div",{ref:P,id:C,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":R||void 0,children:f.length===0?jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):f.map((z,q)=>{let j=String(z[l]),w=E.includes(j),U=q===g;return jsx("button",{id:`${C}-opt-${q}`,"data-index":q,role:"option","aria-selected":w,type:"button",onMouseDown:we=>we.preventDefault(),onClick:()=>V(z),className:x("w-full px-3 py-2 text-left text-sm transition-colors",U&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!U&&w&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!w&&!U&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsx("span",{children:String(z[a])})},j)})})]}),b&&jsx(O,{children:b}),!b&&y&&jsx($,{children:y})]})})}function Mn(){let e=forwardRef(Dn);return e.displayName="ComboBox",e}var En=Mn(),ts=En;var Fn=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),qt=Fn;var In=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),ie=In;var Sn=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),se=Sn;var me=["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var Kt=["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"];var We=({type:e,currentMonth:t,selectedDate:r,onChange:n,onNavigate:o,onMonthClick:i,onYearClick:a})=>{let l=s=>{let p=s.getFullYear(),d=s.getMonth(),c=new Date(p,d,1),m=new Date(p,d+1,0).getDate(),L=c.getDay(),y=[];for(let b=L-1;b>=0;b--)y.push({date:new Date(p,d,-b),isCurrentMonth:!1});for(let b=1;b<=m;b++)y.push({date:new Date(p,d,b),isCurrentMonth:!0});for(;y.length<42;)y.push({date:new Date(p,d+1,y.length-m+1),isCurrentMonth:!1});return y};return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ie,{width:16,height:16})}),jsxs("div",{className:"font-medium flex gap-1",children:[jsx("span",{className:"cursor-pointer hover:underline",onClick:i,children:me[t.getMonth()]}),jsx("span",{className:"cursor-pointer hover:underline",onClick:a,children:t.getFullYear()})]}),jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(se,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:Kt.map(s=>jsx("div",{className:"text-center text-xs font-medium text-muted-foreground p-2",children:s},s))}),jsx("div",{className:"grid grid-cols-7 gap-1",children:l(t).map((s,p)=>{let c=r&&s.date.toDateString()===r.toDateString(),u=s.date.toDateString()===new Date().toDateString();return jsx("button",{type:"button",onClick:()=>{if(e==="datetime-local"){let m=r??new Date,L=new Date(s.date.getFullYear(),s.date.getMonth(),s.date.getDate(),m.getHours(),m.getMinutes(),m.getSeconds());n(L);}else n(s.date);},className:`
26
+ p-2 cursor-pointer text-sm rounded hover:bg-accent
27
+ ${s.isCurrentMonth?"text-foreground":"text-muted-foreground"}
28
+ ${c?"bg-primary text-primary-foreground hover:bg-primary":""}
29
+ ${u&&!c?"bg-accent font-medium":""}
30
+ `,children:s.date.getDate()},p)})})]})};var _t=(e,t)=>{let r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");switch(t){case"date":return `${r}-${n}-${o}`;case"datetime-local":return `${r}-${n}-${o}T${i}:${a}:${l}`;case"year":return `${r}`;case"month":return `${r}-${n}`;case"week":{let s=new Date(e);s.setHours(0,0,0,0),s.setDate(s.getDate()+3-(s.getDay()+6)%7);let p=new Date(s.getFullYear(),0,4),d=1+Math.round(((s.getTime()-p.getTime())/864e5-3+(p.getDay()+6)%7)/7);return `${s.getFullYear()}-W${String(d).padStart(2,"0")}`}}};var Ye=(e,t,r="pt-BR")=>{switch(t){case"date":return e.toLocaleDateString(r);case"datetime-local":return e.toLocaleString(r);case"year":return `${e.getFullYear()}`;case"month":return me?`${me[e.getMonth()]} ${e.getFullYear()}`:e.toLocaleDateString(r,{month:"long",year:"numeric"});case"week":{let n=new Date(e);n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);let o=new Date(n.getFullYear(),0,4);return `Semana ${1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)} \u2022 ${n.getFullYear()}`}}};var An=(e,t)=>{useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Xt=An;var jt=({onChange:e,currentMonth:t,selectedDate:r,setIsOpen:n,onNavigate:o,onHeaderClick:i,closeOnSelect:a})=>{let l=t.getFullYear();return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ie,{width:16,height:16})}),jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:i,children:l}),jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(se,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-3 gap-2",children:me.map((s,p)=>{let d=r,c=d&&d.getFullYear()===l&&d.getMonth()===p;return jsx("button",{type:"button",onClick:()=>{e(new Date(l,p,1)),a&&n(!1);},className:`p-2 cursor-pointer text-sm rounded hover:bg-accent ${c?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:s},s)})})]})};var Zt=({selectedDate:e,onChange:t})=>{let r=e??new Date,n=r.getHours(),o=r.getMinutes(),i=r.getSeconds(),a=`
31
+ ${String(n).padStart(2,"0")}:
32
+ ${String(o).padStart(2,"0")}:
33
+ ${String(i).padStart(2,"0")}
34
+ `,l=Array.from({length:24},(c,u)=>u),s=Array.from({length:60},(c,u)=>u),p=Array.from({length:60},(c,u)=>u),d=(c,u,m)=>{let L=new Date(r.getFullYear(),r.getMonth(),r.getDate(),c,u,m);t(L);};return jsxs("div",{className:"space-y-2",children:[jsxs(D,{className:"flex items-center gap-2",children:["Hora",jsx("span",{className:"text-sm font-normal text-muted-foreground",children:a})]}),jsxs("div",{className:"flex h-full max-h-72 gap-2",children:[jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:l.map(c=>jsx("button",{type:"button",onClick:()=>d(c,o,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===n?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:s.map(c=>jsx("button",{type:"button",onClick:()=>d(n,c,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===o?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:p.map(c=>jsx("button",{type:"button",onClick:()=>d(n,o,c),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===i?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))})]})]})};var Qt=({selectedDate:e,currentMonth:t,onChange:r,onNavigate:n,onHeaderClick:o,setIsOpen:i})=>{let a=t.getFullYear(),l=Array.from({length:52},(c,u)=>u+1),s=e,p=c=>{let u=new Date(a,0,1+(c-1)*7);r(u),i(!1);},d=(()=>{if(!s)return null;let c=new Date(s);c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);let u=new Date(c.getFullYear(),0,4),m=1+Math.round(((c.getTime()-u.getTime())/864e5-3+(u.getDay()+6)%7)/7);return {year:c.getFullYear(),week:m}})();return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ie,{width:16,height:16})}),jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:o,children:a}),jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(se,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-4 gap-2",children:l.map(c=>{let u=d&&d.year===a&&d.week===c;return jsxs("button",{type:"button",onClick:()=>p(c),className:`p-2 text-sm rounded cursor-pointer hover:bg-accent ${u?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:["Semana ",c]},c)})})]})};var tr=({currentYear:e,selectedDate:t,onPick:r,onNavigate:n})=>{let o=e-6,i=Array.from({length:12},(a,l)=>o+l);return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ie,{width:16,height:16})}),jsx("h3",{className:"font-medium",children:e}),jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(se,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-3 gap-2",children:i.map(a=>{let l=t?.getFullYear()===a;return jsx("button",{type:"button",onClick:()=>r(a),className:`p-2 text-sm rounded hover:bg-accent ${l?"bg-primary text-primary-foreground":""}`,children:a},a)})})]})};var nr=forwardRef(({label:e,required:t,value:r,name:n,onChange:o,placeholder:i="Selecione uma data",type:a="date",locale:l="pt-BR",disabled:s=!1,error:p=!1,helperText:d,className:c,...u},m)=>{let L=useId(),y=useRef(null),b=useRef(null),[h,M]=useState(!1),[R,F]=useState(0),[I,A]=useState(r),[S,B]=useState(()=>r?Ye(r,a,l):""),[P,T]=useState(()=>a==="month"?"month":a==="week"?"week":a==="year"?"year":"day");Xt(y,()=>M(!1));let f=I??new Date,g=new Date(f.getFullYear(),f.getMonth()+R,1),N=k=>{b.current=k,typeof m=="function"?m(k):m&&(m.current=k);},E=k=>{A(k);let C=_t(k,a),G=Ye(k,a,l);B(G),b.current&&(b.current.value=C,o?.({target:{name:b.current.name,value:C},type:"change"}),F(0));},V=(k,C,G)=>{let K=new Date(k,C+1,0).getDate();return Math.min(G,K)},J=k=>{let C=k.replace(/\D/g,"").slice(0,8),G=[];return C.length>=2&&G.push(C.slice(0,2)),C.length>=4&&G.push(C.slice(2,4)),C.length>4&&G.push(C.slice(4)),G.join("/")},te=k=>{let C=k.target.value,G=J(C);if(B(G),G.length===10){let[K,z,q]=G.split("/").map(Number),j=new Date(q,z-1,K);isNaN(j.getTime())||E(j);}},he=()=>{switch(P){case"year":return jsx(tr,{currentYear:g.getFullYear(),selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onPick:k=>{let C=I??new Date,G=V(k,C.getMonth(),C.getDate()),K=new Date(k,C.getMonth(),G,C.getHours(),C.getMinutes(),C.getSeconds());A(K),a==="year"?(E(K),M(!1)):T(a==="month"?"month":a==="week"?"week":"month");}});case"month":return jsx(jt,{currentMonth:g,selectedDate:I,setIsOpen:M,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onHeaderClick:()=>T("year"),closeOnSelect:a==="month",onChange:k=>{let C=I??new Date,G=V(k.getFullYear(),k.getMonth(),C.getDate()),K=new Date(k.getFullYear(),k.getMonth(),G,C.getHours(),C.getMinutes(),C.getSeconds());A(K),a==="month"?(E(K),M(!1)):T("day");}});case"week":return jsx(Qt,{currentMonth:g,selectedDate:I,setIsOpen:M,onNavigate:k=>F(C=>C+(k==="next"?12:-12)),onHeaderClick:()=>T("year"),onChange:k=>{E(k),M(!1);}});case"day":default:return a==="datetime-local"?jsxs("div",{className:"flex h-fit gap-4",children:[jsx("div",{className:"flex-1",children:jsx(We,{type:a,currentMonth:g,selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?1:-1)),onMonthClick:()=>T("month"),onYearClick:()=>T("year"),onChange:k=>{let C=I??new Date,G=new Date(k.getFullYear(),k.getMonth(),k.getDate(),C.getHours(),C.getMinutes(),C.getSeconds());E(G);}})}),jsx("div",{className:"w-fit",children:jsx(Zt,{selectedDate:I,onChange:k=>E(k)})})]}):jsx(We,{type:a,currentMonth:g,selectedDate:I,onNavigate:k=>F(C=>C+(k==="next"?1:-1)),onMonthClick:()=>T("month"),onYearClick:()=>T("year"),onChange:k=>{E(k),M(!1);}})}};return jsx(v,{children:jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsx(D,{htmlFor:L,required:t,children:e}),jsx("input",{ref:N,id:L,name:n,type:"text",className:"sr-only",disabled:s,...u}),jsxs("div",{ref:y,className:"relative",children:[jsxs("div",{className:"relative",children:[jsx("input",{type:"text",value:S,onChange:te,onFocus:()=>!s&&M(!0),placeholder:i,disabled:s,className:`
35
+ w-full px-3 py-2 pr-9 border rounded-md bg-background
36
+ ${p?"border-red-500":"border-input"}
37
+ ${s?"opacity-50 cursor-not-allowed":"hover:border-ring"}
38
+ focus:ring-2 focus:ring-ring focus:ring-offset-2
39
+ `}),jsx(qt,{width:16,height:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"})]}),h&&jsx("div",{className:"absolute z-50 mt-1 bg-popover border border-border rounded-md shadow-lg p-4 min-w-70",children:he()})]}),p&&jsx(O,{children:p}),!p&&d&&jsx($,{children:d})]})})});nr.displayName="DatePicker";var el=nr;var qn=({children:e,before:t,after:r,className:n})=>{let i=zn("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsx("div",{className:i,children:jsx("span",{children:e})})},Xe=qn;var Wn=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),ir=Wn;var Yn=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),lr=Yn;function cr(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function dr(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=a,e}function ur(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function mr(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function pr(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function fr(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function gr(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function br(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var Kn=({e,mask:t})=>{switch(t){case"money":return dr(e);case"mobile":return mr(e);case"phone":return pr(e);case"cpfCnpj":return fr(e);case"cpf":return ur(e);case"rg":return gr(e);case"cnpj":return br(e);case"cep":return cr(e);default:return e}},vr=Kn;var Jn=({mask:e,initialValue:t=""})=>{let[r,n]=useState(t);useEffect(()=>{t!==r&&n(t);},[t]);let o=useCallback(a=>{let s=vr({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;n(s);},[e]),i=useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:i}},xr=Jn;var yr=forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:i,addonBefore:a,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:p,ClearEnabled:d=!0,className:c,overrideClassName:u=!1,error:m,helperText:L,value:y=void 0,onChange:b,...h},M)=>{let R=useId(),{handleChange:F,handleClear:I,setValue:A}=xr({mask:r,initialValue:y}),S=x("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",m&&"border-destructive focus-visible:ring-destructive",!o&&!i&&"px-3",o&&!i&&"pl-10 pr-3",i&&!o&&"pl-3 pr-10",o&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",c),B=T=>{F(T),b?.(T);},P=()=>{I(),A(""),b?.({target:{name:n||"",value:""}});};return jsx(v,{children:jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(D,{htmlFor:R,required:t,children:e}),jsxs("div",{className:"relative flex",children:[a&&jsx(Xe,{before:!0,className:l,children:a}),jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsx(ir,{children:o}),jsx("input",{id:R,ref:M,name:n,onChange:B,className:u?c:S,...h}),d&&y&&jsx(Me,{onClick:P,width:12,height:12,className:x("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsx(lr,{children:i})]}),s&&jsx(Xe,{after:!0,className:p,children:s})]}),m&&jsx(O,{children:m}),!m&&L&&jsx($,{children:L})]})})});yr.displayName="Input";var Nl=yr;var wr=forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:i=!1,helperText:a,error:l,onChange:s,onBlur:p,className:d,charType:c="numeric",customPattern:u,caseMode:m="none",...L},y)=>{let b=useId(),h=useRef([]),M=f=>{switch(m){case"upper":return f.toUpperCase();case"lower":case"visual-upper":return f.toLowerCase();case"visual-lower":return f.toUpperCase();default:return f}},R=f=>{if(!f)return "";let g=f.slice(0,1);switch(g=M(g),c){case"numeric":return /\d/.test(g)?g:"";case"alpha":return /[A-Za-z]/.test(g)?g:"";case"alphanumeric":return /[A-Za-z0-9]/.test(g)?g:"";case"custom":return u?.test(g)?g:"";default:return g}},F=()=>(r!=null?String(r):"").split("").map(R).slice(0,e),I=F().concat(Array(e).fill(" ")).slice(0,e),A=f=>{let g=f.split("").map(R).join("").slice(0,e),N=g===""?void 0:typeof r=="number"?Number(g):g;s?.({target:{name:n,value:N}});},S=(f,g)=>{let N=R(g),E=F();if(N===""){E[f]="",A(E.join(""));return}if(g.length>1){let V=g.split("").map(R).join("").slice(0,e);A(V),h.current[Math.min(V.length-1,e-1)]?.focus();return}N&&(E[f]=N,A(E.join("")),f<e-1&&h.current[f+1]?.focus());},B=f=>{let g=F();!g[f]&&f>0?g[f-1]="":g[f]="",A(g.join("")),f>0&&h.current[f-1]?.focus();},P=f=>{f.preventDefault();let N=f.clipboardData.getData("text").split("").map(R).join("").slice(0,e);N&&(A(N),h.current[Math.min(N.length-1,e-1)]?.focus());},T=f=>{switch(m){case"upper":case"visual-upper":return f.toUpperCase();case"lower":case"visual-lower":return f.toLowerCase();default:return f}};return jsx(v,{children:jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsx(D,{htmlFor:b,required:i,children:o}),jsx("div",{className:x("flex gap-3 items-center",l&&"text-red-500",d),...L,children:I.map((f,g)=>{let N=t&&g>0&&g%t===0;return jsxs(jr.Fragment,{children:[N&&jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsx("input",{id:b,type:"text",maxLength:1,inputMode:c==="numeric"?"numeric":"text",value:T(f).trim(),ref:E=>{h.current[g]=E,g===0&&y&&(typeof y=="function"?y(E):typeof y=="object"&&(y.current=E));},onPaste:P,onChange:E=>S(g,E.target.value),onKeyDown:E=>E.key==="Backspace"&&B(g),onBlur:p,className:x("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l&&"border-red-500")})]},g)})}),l&&jsx(O,{children:l}),!l&&a&&jsx($,{children:a})]})})});wr.displayName="OtpInput";var Hl=wr;var kr=forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:i,overrideClassName:a,helperText:l,error:s,...p},d)=>{let c=useId(),u=x("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",i);return jsx(v,{children:jsxs("div",{className:"space-y-3",children:[e&&jsx(D,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{id:c,type:"radio",className:a?i:u,ref:d,...p}),jsxs("div",{className:"flex items-center gap-2",children:[jsx("span",{children:o&&o}),jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[r&&jsx(D,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(D,{id:`${c}-description`,htmlFor:c,className:"text-xs text-muted-foreground",children:n})]})]})]}),s&&jsx(O,{children:s}),!s&&l&&jsx($,{children:l})]})})});kr.displayName="Radio";var Wl=kr;function so(e,t){let{label:r,required:n,name:o,labelKey:i,valueKey:a,options:l,alignment:s="vertical",className:p,overrideClassName:d=!1,helperText:c,error:u,typeSet:m="field",value:L,onChange:y,...b}=e,h=useId(),M=useMemo(()=>new Map(l.map(S=>[String(S[a]),S])),[l,a]),R=useMemo(()=>L==null?"":String(m==="field"?L:L[a]),[L,m,a]),F=S=>{if(!y)return;let B;if(m==="field"){let P=M.get(S);if(P)B=P[a];else {let T=Number(S);B=Number.isNaN(T)?S:T;}}else B=M.get(S)??void 0;y({target:{name:o,value:B,type:"radiogroup",checked:!0}});},I=s==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",A=x("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",u&&"border-destructive");return jsx(v,{children:jsxs("div",{className:x("flex flex-col gap-3",p),children:[r&&jsx(D,{required:n,children:r}),jsx("div",{className:I,children:l.map((S,B)=>{let P=String(S[a]),T=`${h}-${P}-${B}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...b,id:T,ref:t,name:o,type:"radio",checked:R===P,onChange:()=>F(P),className:d?p:A}),jsx(D,{htmlFor:T,children:String(S[i])})]},T)})}),u&&jsx(O,{children:String(u)}),!u&&c&&jsx($,{children:c})]})})}function lo(){let e=forwardRef(so);return e.displayName="RadioGroup",e}var co=lo(),rc=co;function po({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:i,error:a,helperText:l,className:s,...p},d){let c=useId(),u=x("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",s);return jsx(v,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(D,{htmlFor:c,required:t,children:e}),jsxs("select",{id:c,ref:d,className:u,...p,children:[i&&jsx("option",{value:"",disabled:!0,children:i}),r.map((m,L)=>jsx("option",{value:String(m[o]),children:String(m[n])},L))]}),a&&jsx(O,{children:a}),!a&&l&&jsx($,{children:l})]})})}function fo(){let e=forwardRef(po);return e.displayName="Select",e}var go=fo(),pc=go;var Nr=forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:i=!1,className:a,overrideClassName:l,error:s,name:p,...d},c)=>{let u=useId();return jsx(v,{children:jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsx(D,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{type:"checkbox",id:u,name:p,checked:i,className:"peer sr-only",ref:c,...d}),jsx("label",{htmlFor:u,className:x("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",a),children:jsx("span",{className:x("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",i?"translate-x-5":"translate-x-1")})}),jsx("span",{children:o&&o}),(r||n)&&jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsx(D,{id:`${u}-label`,htmlFor:u,className:"text-sm font-medium leading-none",children:r}),n&&jsx(D,{id:`${u}-description`,htmlFor:u,className:"text-xs text-muted-foreground",children:n})]})]})]})})});Nr.displayName="Switch";var Cc=Nr;var Rr=jr.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:i=!1,error:a,helperText:l,...s},p)=>{let d=useId(),[c,u]=useState(0),m=x("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",o);return jsx(v,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(D,{htmlFor:d,required:t,children:e}),jsxs("div",{className:"relative",children:[jsx("textarea",{id:d,className:i?o:m,maxLength:n,onInput:L=>u(L.currentTarget.textLength),ref:p,...s}),r&&jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[c,n?` / ${n}`:""]})]}),a&&jsx(O,{children:a}),!a&&l&&jsx($,{children:l})]})})});Rr.displayName="TextArea";var Mc=Rr;var Co=({files:e,removeFile:t})=>jsx("div",{className:"space-y-2",children:e?.length>0&&e?.map((r,n)=>jsxs("div",{className:"flex items-center justify-between p-2 bg-secondary rounded",children:[jsxs("div",{children:[jsx("p",{className:"text-sm truncate",children:r.name}),jsxs("p",{className:"text-xs text-muted-foreground",children:[(r?.size/1024).toFixed(1)," KB"]})]}),jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),t(n);},className:"ml-2 p-1 hover:bg-destructive/20 rounded",children:"\u2715"})]},`${r?.name}-${n}`))}),Dr=Co;var wo=({accept:e,maxSize:t})=>jsxs("div",{className:"space-y-2",children:[jsx("svg",{className:"w-8 h-8 mx-auto text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),jsxs("div",{children:[jsx("p",{className:"text-sm text-foreground",children:"Clique para selecionar ou arraste arquivos aqui"}),jsxs("p",{className:"text-xs text-muted-foreground",children:[e&&`Tipos aceitos: ${e}`,t&&` \u2022 Tamanho m\xE1ximo: ${t}MB`]})]})]}),Mr=wo;var Er=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=i=>i})=>{let i=useRef(null),[a,l]=useState(!1),s=useCallback(u=>{u.preventDefault(),!n&&l(!0);},[n]),p=useCallback(()=>{l(!1);},[]),d=useCallback(u=>{if(u.preventDefault(),n||!i.current)return;l(!1);let m=Array.from(u.dataTransfer.files);if(!r&&!e||!r&&m.length>1)return;let L=o(m),y=r?L:L.slice(0,1);t(y);let b=new DataTransfer;y.forEach(h=>b.items.add(h)),i.current.files=b.files,i.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),c=useCallback(()=>{t([]),i.current&&(i.current.value="");},[]);return {files:e,setFiles:t,clearFiles:c,inputRef:i,isDragOver:a,setIsDragOver:l,handleDrop:d,handleDragOver:s,handleDragLeave:p}};var Fr=({files:e,setFiles:t,inputRef:r})=>({removeFile:useCallback(o=>{if(!r.current)return;let i=e?.filter((l,s)=>s!==o);t(i);let a=new DataTransfer;i?.forEach(l=>a.items.add(l)),r.current.files=a.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var No=({previews:e,onRemove:t})=>{let[r,n]=useState(0),o=()=>n(a=>a===0?e?.length-1:a-1),i=()=>n(a=>a===e?.length-1?0:a+1);return jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsx("button",{type:"button",onClick:i,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},Sr=No;var Hr=forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:i=!1,maxSize:a=10,disabled:l=!1,error:s=!1,helperText:p,className:d,name:c,onChange:u,onBlur:m,...L},y)=>{let b=useId(),[h,M]=useState([]),R=1024*1024,F=V=>V.filter(J=>(!a||J.size<=a*R)&&(!r||J.type.match(r))),{inputRef:I,isDragOver:A,handleDrop:S,handleDragOver:B,handleDragLeave:P}=Er({files:h,setFiles:M,multiple:i,filterFiles:F}),{removeFile:T}=Fr({files:h,setFiles:M,inputRef:I}),f=V=>{I.current=V,typeof y=="function"?y(V):y&&(y.current=V);},g=V=>{let J=Array.from(V.target.files??[]);if(!J.length)return;let te=F(J);M(i?te:te.slice(0,1)),u?.(V);},N=useMemo(()=>!o||!h||!h.length?[]:h.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[h,o]);useEffect(()=>()=>N.forEach(V=>URL.revokeObjectURL(V.url)),[N]);let E=o&&N.length>0;return jsx(v,{children:jsxs("div",{className:`space-y-2 ${d}`,children:[e&&jsx(D,{htmlFor:b,required:t,children:e}),jsxs("div",{onDrop:S,onDragOver:B,onDragLeave:P,onClick:()=>{!l&&!E&&I.current?.click();},className:`
26
40
  border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
27
41
  transition-colors
28
- ${$?"border-primary bg-primary/5":"border-border"}
29
- ${l?"border-red-500":""}
30
- ${s?"opacity-50 cursor-not-allowed":"hover:border-primary"}
31
- `,children:[jsx("input",{ref:m,id:y,name:h,type:"file",accept:r,multiple:a,disabled:s,onChange:u,onBlur:d,className:"hidden",...R}),o&&T.length>0?jsx(nr,{previews:T,onRemove:w}):jsx(Qt,{accept:r,maxSize:i})]}),n?n({files:v,removeFile:w}):v&&v.length>0&&jsx(Yt,{files:v,removeFile:w}),l&&jsx(A,{children:l}),!l&&g&&jsx(D,{children:g})]})})});ar.displayName="UploadFile";var gl=ar;
42
+ ${A?"border-primary bg-primary/5":"border-border"}
43
+ ${s?"border-red-500":""}
44
+ ${l?"opacity-50 cursor-not-allowed":"hover:border-primary"}
45
+ `,children:[jsx("input",{ref:f,id:b,name:c,type:"file",accept:r,multiple:i,disabled:l,onChange:g,onBlur:m,className:"hidden",...L}),o&&N.length>0?jsx(Sr,{previews:N,onRemove:T}):jsx(Mr,{accept:r,maxSize:a})]}),n?n({files:h,removeFile:T}):h&&h.length>0&&jsx(Dr,{files:h,removeFile:T}),s&&jsx(O,{children:s}),!s&&p&&jsx($,{children:p})]})})});Hr.displayName="UploadFile";var rd=Hr;
32
46
 
33
- export { mo as AccordionPrimitive, To as BadgePrimitive, ko as ButtonPrimitive, Bo as CardContentPrimitive, $o as CardDescriptionPrimitive, Oo as CardFooterPrimitive, Ao as CardHeaderPrimitive, Do as CardPrimitive, So as CardTitlePrimitive, Ma as CheckBoxGroupPrimitive, ha as CheckBoxPrimitive, Ct as ColorPicker, $a as ColorPickerPrimitive, ui as ComboBoxPrimitive, Jo as DropdownMenuContentPrimitive, jo as DropdownMenuItemPrimitive, Yo as DropdownMenuLabelPrimitive, Xo as DropdownMenuPrimitive, Zo as DropdownMenuSeparatorPrimitive, _o as DropdownMenuTriggerPrimitive, D as HelperFieldPrimitive, Oi as InputPrimitive, N as LabelPrimitive, dr as LicenseProvider, Ji as OtpInputPrimitive, gs as RadioGroupPrimitive, os as RadioPrimitive, ws as SelectPrimitive, Hs as SwitchPrimitive, qs as TextAreaPrimitive, gl as UploadFilePrimitive, A as ValidateFieldPrimitive };
47
+ export { ea as AccordionPrimitive, da as BadgePrimitive, ba as ButtonPrimitive, Na as CardContentPrimitive, La as CardDescriptionPrimitive, Ra as CardFooterPrimitive, Pa as CardHeaderPrimitive, ka as CardPrimitive, Ta as CardTitlePrimitive, hi as CheckBoxGroupPrimitive, si as CheckBoxPrimitive, At as ColorPicker, Li as ColorPickerPrimitive, ts as ComboBoxPrimitive, el as DatePickerPrimitive, Aa as DropdownMenuContentPrimitive, $a as DropdownMenuItemPrimitive, Ba as DropdownMenuLabelPrimitive, Va as DropdownMenuPrimitive, Oa as DropdownMenuSeparatorPrimitive, Ha as DropdownMenuTriggerPrimitive, $ as HelperFieldPrimitive, Nl as InputPrimitive, D as LabelPrimitive, Gr as LicenseProvider, Hl as OtpInputPrimitive, rc as RadioGroupPrimitive, Wl as RadioPrimitive, pc as SelectPrimitive, Cc as SwitchPrimitive, Mc as TextAreaPrimitive, rd as UploadFilePrimitive, O as ValidateFieldPrimitive };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mvr-ui/components",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "sideEffects": false,
5
5
  "main": "dist/page.cjs",
6
6
  "module": "dist/page.js",