@mvr-ui/components 1.0.100 → 1.0.102
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 +1 -1
- package/dist/page.d.mts +9 -1
- package/dist/page.d.ts +9 -1
- package/dist/page.js +37 -36
- package/dist/page.mjs +7 -7
- package/package.json +1 -1
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-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-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-600{background-color:var(--color-green-600)}.bg-input{background-color:var(--input)}.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-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-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-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-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.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-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-700:hover{background-color:var(--color-green-700)}.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-700:hover{background-color:var(--color-red-700)}.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-zinc-100:hover{background-color:var(--color-zinc-100)}.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-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))}}
|
package/dist/page.d.mts
CHANGED
|
@@ -23,6 +23,14 @@ interface AccordionProps {
|
|
|
23
23
|
}
|
|
24
24
|
declare const AccordionPrimitive: React__default.FC<AccordionProps>;
|
|
25
25
|
|
|
26
|
+
type VariantType = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "success" | "warning" | "info" | "subtle" | "dark" | "light";
|
|
27
|
+
interface BadgeProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
children: React__default.ReactNode;
|
|
29
|
+
variant?: VariantType;
|
|
30
|
+
overrideClassName?: boolean;
|
|
31
|
+
}
|
|
32
|
+
declare const BadgePrimitive: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
|
|
26
34
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
27
35
|
variant?: "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "warning" | "info" | "link" | "gradient" | "glass" | "soft" | "dark" | "light" | "accent" | "obsidian" | "polar";
|
|
28
36
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -364,4 +372,4 @@ interface ValidateFieldProps {
|
|
|
364
372
|
}
|
|
365
373
|
declare const ValidateFieldPrimitive: React$1.FunctionComponent<ValidateFieldProps>;
|
|
366
374
|
|
|
367
|
-
export { AccordionItemData, AccordionPrimitive, AccordionProps, 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 };
|
|
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 };
|
package/dist/page.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ interface AccordionProps {
|
|
|
23
23
|
}
|
|
24
24
|
declare const AccordionPrimitive: React__default.FC<AccordionProps>;
|
|
25
25
|
|
|
26
|
+
type VariantType = "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | "success" | "warning" | "info" | "subtle" | "dark" | "light";
|
|
27
|
+
interface BadgeProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
children: React__default.ReactNode;
|
|
29
|
+
variant?: VariantType;
|
|
30
|
+
overrideClassName?: boolean;
|
|
31
|
+
}
|
|
32
|
+
declare const BadgePrimitive: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
|
|
26
34
|
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
27
35
|
variant?: "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "warning" | "info" | "link" | "gradient" | "glass" | "soft" | "dark" | "light" | "accent" | "obsidian" | "polar";
|
|
28
36
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -364,4 +372,4 @@ interface ValidateFieldProps {
|
|
|
364
372
|
}
|
|
365
373
|
declare const ValidateFieldPrimitive: React$1.FunctionComponent<ValidateFieldProps>;
|
|
366
374
|
|
|
367
|
-
export { AccordionItemData, AccordionPrimitive, AccordionProps, 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 };
|
|
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 };
|
package/dist/page.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var yr = require('react');
|
|
5
|
+
var en = 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
|
|
11
|
-
var
|
|
10
|
+
var yr__default = /*#__PURE__*/_interopDefault(yr);
|
|
11
|
+
var en__default = /*#__PURE__*/_interopDefault(en);
|
|
12
12
|
|
|
13
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=`
|
|
14
14
|
Ol\xE1,
|
|
@@ -19,52 +19,53 @@ 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
|
|
22
|
+
`,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var ze=(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=
|
|
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
|
|
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 lo=Ye;function v(...e){return tailwindMerge.twMerge(Zr.clsx(e))}var Qe=vr__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:a,loading:i=!1,loadingContent:s,...l},f)=>{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:v(c,h[r],p[n],e);return o?jsxRuntime.jsx(g,{children:jsxRuntime.jsx("a",{href:o,className:d,ref:f,children:i&&s?s:a})}):jsxRuntime.jsx(g,{children:jsxRuntime.jsx("button",{className:d,ref:f,...l,children:i&&s?s:a})})});Qe.displayName="Button";var xo=Qe;var et=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:v("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));et.displayName="Card";var tt=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:v("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));tt.displayName="CardHeader";var rt=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("h3",{ref:o,className:t?e:v("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));rt.displayName="CardTitle";var nt=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("p",{ref:o,className:t?e:v("text-sm text-muted-foreground",e),...n,children:r})}));nt.displayName="CardDescription";var ot=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:v("p-6 pt-0",e),...n,children:r})}));ot.displayName="CardContent";var at=vr.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:v("flex items-center p-6 pt-0",e),...n,children:r})}));at.displayName="CardFooter";var Ro=et,wo=tt,No=rt,ko=nt,Eo=ot,Mo=at;var ge=vr.createContext(void 0),st=vr.forwardRef(({children:e,className:t,...r},n)=>{let[o,a]=vr.useState(!1);return jsxRuntime.jsx(g,{children:jsxRuntime.jsx(ge.Provider,{value:{isOpen:o,setIsOpen:a},children:jsxRuntime.jsx("div",{ref:n,className:v("relative inline-block",t),...r,children:e})})})});st.displayName="DropdownMenu";var lt=({children:e,asChild:t})=>{let r=vr.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 vr.cloneElement(o,{onClick:a=>{o.props.onClick?.(a),n();}})}return jsxRuntime.jsx(g,{children:jsxRuntime.jsx("button",{onClick:n,children:e})})};lt.displayName="DropdownMenuTrigger";var ct=vr.forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let a=vr.useContext(ge),i=vr.useRef(null);return vr.useEffect(()=>{o&&(typeof o=="function"?o(i.current):o.current=i.current);},[o]),vr.useEffect(()=>{let l=f=>{i.current&&!i.current.contains(f.target)&&a?.setIsOpen(!1);};return a?.isOpen&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l);}},[a?.isOpen]),a?.isOpen?jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:i,className:v("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});ct.displayName="DropdownMenuContent";var dt=vr.forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},a)=>{let i=vr.useContext(ge);return jsxRuntime.jsx(g,{children:jsxRuntime.jsx("button",{ref:a,onClick:l=>{t?.(l),i?.setIsOpen(!1);},className:v("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})})});dt.displayName="DropdownMenuItem";var pt=vr.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:r,className:v("-mx-1 my-1 h-px bg-border",e),...t})}));pt.displayName="DropdownMenuSeparator";var mt=vr.forwardRef(({children:e,className:t,...r},n)=>jsxRuntime.jsx(g,{children:jsxRuntime.jsx("div",{ref:n,className:v("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));mt.displayName="DropdownMenuLabel";var So=st,$o=lt,Oo=ct,Bo=dt,Go=pt,Uo=mt;var Tr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(g,{children:jsxRuntime.jsx("p",{className:r?t:v("text-sm text-muted-foreground",t),children:e})})},D=Tr;var Lr=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsxRuntime.jsx(g,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("label",{...o,className:n?r:v("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=Lr;var Rr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(g,{children:jsxRuntime.jsx("p",{className:r?t:v("text-sm text-red-600 dark:text-red-400",t),children:e})})},A=Rr;var gt=vr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:a="left",className:i,overrideClassName:s=!1,helperText:l,error:f,...c},h)=>{let p=vr.useId(),d=v("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",f&&"border-destructive",i);return jsxRuntime.jsx(g,{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})]})]})]}),f&&jsxRuntime.jsx(A,{children:f}),!f&&l&&jsxRuntime.jsx(D,{children:l})]})})});gt.displayName="CheckBox";var ca=gt;function Mr(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:a,labelKey:i,valueKey:s,options:l,alignment:f="vertical",className:c,overrideClassName:h=!1,helperText:p,error:d,label:R,name:L,required:C,...b}=e,k=vr.useId(),P=vr.useMemo(()=>new Map(l.map(y=>[String(y[s]),y])),[l,s]),F=vr.useMemo(()=>o==null?[]:r==="field"?n?o.map(y=>String(y)):[String(o)]:n?o.map(y=>String(y[s])):[String(o[s])],[o,r,n,s]),S=(y,w)=>{if(!a)return;let m;if(r==="field")if(n)m=y.map(T=>{let I=P.get(T);return I?I[s]:T});else {let u=y[0];if(!u)m=void 0;else {let T=P.get(u);m=T?T[s]:u;}}else n?m=y.map(T=>P.get(T)).filter(T=>T!==void 0):m=P.get(y[0]??"")??void 0;a({target:{name:L,value:m,type:"checkboxgroup",checked:w}});},$=y=>{let w;n?w=F.includes(y)?F.filter(m=>m!==y):[...F,y]:w=F[0]===y?[]:[y],S(w,w.includes(y));},E=f==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",O=v("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(g,{children:jsxRuntime.jsxs("div",{className:v("flex flex-col gap-3",c),children:[R&&jsxRuntime.jsx(N,{required:C,children:R}),jsxRuntime.jsx("div",{className:E,children:l.map((y,w)=>{let m=String(y[s]),u=F.includes(m),T=`${k}-${m}-${w}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...b,id:T,ref:t,type:"checkbox",name:L,checked:u,onChange:()=>$(m),className:h?c:O}),jsxRuntime.jsx(N,{htmlFor:T,children:String(y[i])})]},T)})}),!!d&&jsxRuntime.jsx(A,{children:String(d)}),!d&&p&&jsxRuntime.jsx(D,{children:p})]})})}function Fr(){let e=vr.forwardRef(Mr);return e.displayName="CheckBoxGroup",e}var Ir=Fr(),Ca=Ir;var Ar=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],ht=vr__default.default.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=Ar,showPresets:a=!0,className:i,error:s,helperText:l,name:f},c)=>{let h=vr.useId(),p=vr.useRef(null),[d,R]=vr.useState(!1),[L,C]=vr.useState("COLOR"),[b,k]=vr.useState("HEX"),[P,F]=vr.useState("#000000"),[S,$]=vr.useState(0),[E,O]=vr.useState(0),[y,w]=vr.useState(0),[m,u]=vr.useState(1),[T,I]=vr.useState("#000000"),[V,_]=vr.useState("#ffffff"),[j,ue]=vr.useState(90),[ye,ne]=vr.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)}},B=x=>{r?.({target:{value:x,name:f}});};vr.useEffect(()=>{let x=H=>{p.current&&!p.current.contains(H.target)&&R(!1);};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]),vr.useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(P)){let x=Le(P);$(x.r),O(x.g),w(x.b);}},[P]),vr.useEffect(()=>{let x=`linear-gradient(${j}deg, ${T}, ${V})`;ne(x),L==="GRADIENT"&&B(x);},[T,V,j]);let G=()=>{if(m>=1){if(b==="HEX")return P;if(b==="RGB")return `rgb(${S}, ${E}, ${y})`}return `rgba(${S}, ${E}, ${y}, ${Number(m.toFixed(2))})`},Z=L==="GRADIENT"?ye:G();return jsxRuntime.jsx(g,{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:()=>C(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()),B(G());},className:"w-full h-10 rounded"}),jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsxs("select",{value:b,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"})]}),b==="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)&&B(H);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(b==="RGB"||b==="RGBA")&&jsxRuntime.jsx("div",{className:"flex gap-2",children:[{l:"R",v:S,s:$},{l:"G",v:E,s:O},{l:"B",v:y,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:or=>{ce(Te(+or.target.value,0,255)),B(G());},className:"w-14 px-1 py-1 text-xs border rounded"})]},x))})]}),b==="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),B(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),B(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})]})})});ht.displayName="ColorPicker";var ka=ht;var Sr=({...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=Sr;var Or=(e,t)=>{vr.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},yt=Or;function ke({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:a,typeSet:i,name:s}){let[l,f]=vr.useState([]),c=vr.useMemo(()=>new Map(e.map(C=>[String(C[r]),C])),[e,r]),h=vr.useCallback(()=>l.map(C=>c.get(C)).filter(C=>!!C),[l,c]),p=vr.useCallback(C=>{if(!o)return;let b;if(i==="field"?n?b=C:b=C[0]??void 0:n?b=C.map(P=>c.get(P)).filter(P=>P!==void 0):b=c.get(C[0]??"")??void 0,a&&!n){let k=c.get(C[0]??"");k&&a(String(k[t]));}o({target:{name:s,value:b,type:"combobox"}});},[n,o,c,s,i,a,t]),d=vr.useCallback(C=>{let b=String(C[r]),k=n?l.includes(b)?l.filter(P=>P!==b):[...l,b]:[b];f(k),p(k);},[n,l,p,r]),R=vr.useCallback(C=>{let b=l.filter(k=>k!==C);f(b),p(b);},[l,p]),L=vr.useCallback(()=>{f([]),a?.("");let C;i==="field"?C=n?[]:"":C=n?[]:void 0,o?.({target:{name:s,value:C,type:"combobox"}});},[n,o,s,a,i]);return {selectedValues:l,handleSelect:d,handleRemove:R,handleClear:L,getSelectedOptions:h}}function Ee(e,t,r){return vr.useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var Lt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:a,filteredOptions:i,highlightedIndex:s,setHighlightedIndex:l,handleSelect:f,handleRemove:c})=>{let h=vr.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 vr.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&&f(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,f,c,h])};function Pt({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 _r(e,t){let{label:r,required:n=!1,name:o,placeholder:a="Buscar...",labelKey:i,valueKey:s,options:l,value:f,onChange:c,mode:h="single",typeSet:p="field",disabled:d=!1,ClearEnabled:R=!0,helperText:L,error:C=!1,className:b="",...k}=e,P=h==="multiple",[F,S]=vr.useState(!1),[$,E]=vr.useState(""),O=vr.useRef(null),y=vr.useRef(null),w=vr.useRef(null);vr.useImperativeHandle(t,()=>w.current),yt(y,()=>S(!1));let m=Ee(l,i,$),[u,T]=vr.useState(-1),{selectedValues:I,handleSelect:V,handleRemove:_,handleClear:j,getSelectedOptions:ue}=ke({options:l,labelKey:i,valueKey:s,value:f,multiple:P,onChange:c,typeSet:p,name:o,setSearchTerm:E}),ye=Lt({isOpen:F,setIsOpen:S,multiple:P,searchTerm:$,setSearchTerm:E,selectedValues:I,filteredOptions:m,highlightedIndex:u,setHighlightedIndex:T,handleSelect:V,handleRemove:_}),ne=vr.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=v("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",C?"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(g,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${b}`,children:[r&&jsxRuntime.jsx(N,{htmlFor:ne,required:n,children:r}),jsxRuntime.jsxs("div",{ref:O,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((B,G)=>jsxRuntime.jsx(Pt,{option:B,labelKey:i,valueKey:s,onRemove:_},String(B[s]??G)))}),jsxRuntime.jsx("input",{ref:w,...k,name:o,type:"text",placeholder:a,value:$,onChange:B=>{let G=B.target.value;E(G),!F&&G.trim()!==""&&S(!0);},onKeyDown:ye,onMouseDown:B=>{document.activeElement===w.current&&(B.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:B=>B.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:y,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((B,G)=>{let Z=String(B[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(B),className:v("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(B[i])})},Z)})})]}),C&&jsxRuntime.jsx(A,{children:C}),!C&&L&&jsxRuntime.jsx(D,{children:L})]})})}function Jr(){let e=vr.forwardRef(_r);return e.displayName="ComboBox",e}var jr=Jr(),ni=jr;var Yr=({children:e,before:t,after:r,className:n})=>{let a=Zr__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=Yr;var Qr=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),Nt=Qr;var en=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),Et=en;function Mt(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 Ft(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 It(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 Vt(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 Ht(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 Dt(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 At(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 St(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 tn=({e,mask:t})=>{switch(t){case"money":return Ft(e);case"mobile":return Vt(e);case"phone":return Ht(e);case"cpfCnpj":return Dt(e);case"cpf":return It(e);case"rg":return At(e);case"cnpj":return St(e);case"cep":return Mt(e);default:return e}},$t=tn;var on=({mask:e,initialValue:t=""})=>{let[r,n]=vr.useState(t);vr.useEffect(()=>{t!==r&&n(t);},[t]);let o=vr.useCallback(i=>{let l=$t({e:i,mask:e})?.currentTarget?.value??i.currentTarget.value;n(l);},[e]),a=vr.useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:a}},Bt=on;var Gt=vr.forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:a,addonBefore:i,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:f,ClearEnabled:c=!0,className:h,overrideClassName:p=!1,error:d,helperText:R,value:L=void 0,onChange:C,...b},k)=>{let P=vr.useId(),{handleChange:F,handleClear:S,setValue:$}=Bt({mask:r,initialValue:L}),E=v("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),O=w=>{F(w),C?.(w);},y=()=>{S(),$(""),C?.({target:{name:n||"",value:""}});};return jsxRuntime.jsx(g,{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(Nt,{children:o}),jsxRuntime.jsx("input",{id:P,ref:k,name:n,onChange:O,className:p?h:E,...b}),c&&L&&jsxRuntime.jsx(ve,{onClick:y,width:12,height:12,className:v("absolute right-2 cursor-pointer",a&&"right-8")}),a&&jsxRuntime.jsx(Et,{children:a})]}),l&&jsxRuntime.jsx(Ve,{after:!0,className:f,children:l})]}),d&&jsxRuntime.jsx(A,{children:d}),!d&&R&&jsxRuntime.jsx(D,{children:R})]})})});Gt.displayName="Input";var Mi=Gt;var qt=vr.forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:a=!1,helperText:i,error:s,onChange:l,onBlur:f,className:c,charType:h="numeric",customPattern:p,caseMode:d="none",...R},L)=>{let C=vr.useId(),b=vr.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),b.current[Math.min(V.length-1,e-1)]?.focus();return}T&&(I[m]=T,$(I.join("")),m<e-1&&b.current[m+1]?.focus());},O=m=>{let u=F();!u[m]&&m>0?u[m-1]="":u[m]="",$(u.join("")),m>0&&b.current[m-1]?.focus();},y=m=>{m.preventDefault();let T=m.clipboardData.getData("text").split("").map(P).join("").slice(0,e);T&&($(T),b.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(g,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsxRuntime.jsx(N,{htmlFor:C,required:a,children:o}),jsxRuntime.jsx("div",{className:v("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(vr__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:C,type:"text",maxLength:1,inputMode:h==="numeric"?"numeric":"text",value:w(m).trim(),ref:I=>{b.current[u]=I,u===0&&L&&(typeof L=="function"?L(I):typeof L=="object"&&(L.current=I));},onPaste:y,onChange:I=>E(u,I.target.value),onKeyDown:I=>I.key==="Backspace"&&O(u),onBlur:f,className:v("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})]})})});qt.displayName="OtpInput";var Oi=qt;var Kt=vr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:a,overrideClassName:i,helperText:s,error:l,...f},c)=>{let h=vr.useId(),p=v("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(g,{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,...f}),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})]})})});Kt.displayName="Radio";var _i=Kt;function bn(e,t){let{label:r,required:n,name:o,labelKey:a,valueKey:i,options:s,alignment:l="vertical",className:f,overrideClassName:c=!1,helperText:h,error:p,typeSet:d="field",value:R,onChange:L,...C}=e,b=vr.useId(),k=vr.useMemo(()=>new Map(s.map(E=>[String(E[i]),E])),[s,i]),P=vr.useMemo(()=>R==null?"":String(d==="field"?R:R[i]),[R,d,i]),F=E=>{if(!L)return;let O;if(d==="field"){let y=k.get(E);if(y)O=y[i];else {let w=Number(E);O=Number.isNaN(w)?E:w;}}else O=k.get(E)??void 0;L({target:{name:o,value:O,type:"radiogroup",checked:!0}});},S=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=v("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(g,{children:jsxRuntime.jsxs("div",{className:v("flex flex-col gap-3",f),children:[r&&jsxRuntime.jsx(N,{required:n,children:r}),jsxRuntime.jsx("div",{className:S,children:s.map((E,O)=>{let y=String(E[i]),w=`${b}-${y}-${O}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...C,id:w,ref:t,name:o,type:"radio",checked:P===y,onChange:()=>F(y),className:c?f:$}),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 vn(){let e=vr.forwardRef(bn);return e.displayName="RadioGroup",e}var xn=vn(),as=xn;function yn({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:a,error:i,helperText:s,className:l,...f},c){let h=vr.useId(),p=v("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(g,{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,...f,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 Tn(){let e=vr.forwardRef(yn);return e.displayName="Select",e}var Ln=Tn(),bs=Ln;var _t=vr.forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:a=!1,className:i,overrideClassName:s,error:l,name:f,...c},h)=>{let p=vr.useId();return jsxRuntime.jsx(g,{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:f,checked:a,className:"peer sr-only",ref:h,...c}),jsxRuntime.jsx("label",{htmlFor:p,className:v("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:v("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})]})]})]})})});_t.displayName="Switch";var Ps=_t;var Jt=vr__default.default.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:a=!1,error:i,helperText:s,...l},f)=>{let c=vr.useId(),[h,p]=vr.useState(0),d=v("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(g,{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:f,...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})]})})});Jt.displayName="TextArea";var Vs=Jt;var En=({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}`))}),jt=En;var Mn=({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`]})]})]}),Zt=Mn;var Yt=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=a=>a})=>{let a=vr.useRef(null),[i,s]=vr.useState(!1),l=vr.useCallback(p=>{p.preventDefault(),!n&&s(!0);},[n]),f=vr.useCallback(()=>{s(!1);},[]),c=vr.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 C=new DataTransfer;L.forEach(b=>C.items.add(b)),a.current.files=C.files,a.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),h=vr.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:f}};var Qt=({files:e,setFiles:t,inputRef:r})=>({removeFile:vr.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 Dn=({previews:e,onRemove:t})=>{let[r,n]=vr.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"})]})},tr=Dn;var nr=vr.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:f,className:c,name:h,onChange:p,onBlur:d,...R},L)=>{let C=vr.useId(),[b,k]=vr.useState([]),P=1024*1024,F=V=>V.filter(_=>(!i||_.size<=i*P)&&(!r||_.type.match(r))),{inputRef:S,isDragOver:$,handleDrop:E,handleDragOver:O,handleDragLeave:y}=Yt({files:b,setFiles:k,multiple:a,filterFiles:F}),{removeFile:w}=Qt({files:b,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=vr.useMemo(()=>!o||!b||!b.length?[]:b.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[b,o]);vr.useEffect(()=>()=>T.forEach(V=>URL.revokeObjectURL(V.url)),[T]);let I=o&&T.length>0;return jsxRuntime.jsx(g,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsxRuntime.jsx(N,{htmlFor:C,required:t,children:e}),jsxRuntime.jsxs("div",{onDrop:E,onDragOver:O,onDragLeave:y,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})]})});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:`
|
|
33
33
|
border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
|
|
34
34
|
transition-colors
|
|
35
35
|
${$?"border-primary bg-primary/5":"border-border"}
|
|
36
36
|
${l?"border-red-500":""}
|
|
37
37
|
${s?"opacity-50 cursor-not-allowed":"hover:border-primary"}
|
|
38
|
-
`,children:[jsxRuntime.jsx("input",{ref:m,id:
|
|
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;
|
|
39
39
|
|
|
40
|
-
exports.AccordionPrimitive =
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
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;
|
|
59
60
|
exports.HelperFieldPrimitive = D;
|
|
60
|
-
exports.InputPrimitive =
|
|
61
|
+
exports.InputPrimitive = Oi;
|
|
61
62
|
exports.LabelPrimitive = N;
|
|
62
|
-
exports.LicenseProvider =
|
|
63
|
-
exports.OtpInputPrimitive =
|
|
64
|
-
exports.RadioGroupPrimitive =
|
|
65
|
-
exports.RadioPrimitive =
|
|
66
|
-
exports.SelectPrimitive =
|
|
67
|
-
exports.SwitchPrimitive =
|
|
68
|
-
exports.TextAreaPrimitive =
|
|
69
|
-
exports.UploadFilePrimitive =
|
|
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;
|
|
70
71
|
exports.ValidateFieldPrimitive = A;
|
package/dist/page.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import yr, { createContext, forwardRef, useState, useContext, useRef, useEffect, useId, useMemo, useCallback, cloneElement, useImperativeHandle } from 'react';
|
|
3
|
+
import en, { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
|
|
6
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=`
|
|
@@ -12,22 +12,22 @@ 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
|
|
15
|
+
`,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var ze=(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),
|
|
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
|
|
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 lo=Ye;function v(...e){return twMerge(clsx(e))}var Qe=vr.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:a,loading:i=!1,loadingContent:s,...l},f)=>{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:v(c,h[r],p[n],e);return o?jsx(g,{children:jsx("a",{href:o,className:d,ref:f,children:i&&s?s:a})}):jsx(g,{children:jsx("button",{className:d,ref:f,...l,children:i&&s?s:a})})});Qe.displayName="Button";var xo=Qe;var et=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("div",{ref:o,className:t?e:v("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));et.displayName="Card";var tt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("div",{ref:o,className:t?e:v("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));tt.displayName="CardHeader";var rt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("h3",{ref:o,className:t?e:v("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));rt.displayName="CardTitle";var nt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("p",{ref:o,className:t?e:v("text-sm text-muted-foreground",e),...n,children:r})}));nt.displayName="CardDescription";var ot=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("div",{ref:o,className:t?e:v("p-6 pt-0",e),...n,children:r})}));ot.displayName="CardContent";var at=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(g,{children:jsx("div",{ref:o,className:t?e:v("flex items-center p-6 pt-0",e),...n,children:r})}));at.displayName="CardFooter";var Ro=et,wo=tt,No=rt,ko=nt,Eo=ot,Mo=at;var ge=createContext(void 0),st=forwardRef(({children:e,className:t,...r},n)=>{let[o,a]=useState(!1);return jsx(g,{children:jsx(ge.Provider,{value:{isOpen:o,setIsOpen:a},children:jsx("div",{ref:n,className:v("relative inline-block",t),...r,children:e})})})});st.displayName="DropdownMenu";var lt=({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(g,{children:jsx("button",{onClick:n,children:e})})};lt.displayName="DropdownMenuTrigger";var ct=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=f=>{i.current&&!i.current.contains(f.target)&&a?.setIsOpen(!1);};return a?.isOpen&&document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l);}},[a?.isOpen]),a?.isOpen?jsx(g,{children:jsx("div",{ref:i,className:v("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});ct.displayName="DropdownMenuContent";var dt=forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},a)=>{let i=useContext(ge);return jsx(g,{children:jsx("button",{ref:a,onClick:l=>{t?.(l),i?.setIsOpen(!1);},className:v("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})})});dt.displayName="DropdownMenuItem";var pt=forwardRef(({className:e,...t},r)=>jsx(g,{children:jsx("div",{ref:r,className:v("-mx-1 my-1 h-px bg-border",e),...t})}));pt.displayName="DropdownMenuSeparator";var mt=forwardRef(({children:e,className:t,...r},n)=>jsx(g,{children:jsx("div",{ref:n,className:v("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));mt.displayName="DropdownMenuLabel";var So=st,$o=lt,Oo=ct,Bo=dt,Go=pt,Uo=mt;var Tr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(g,{children:jsx("p",{className:r?t:v("text-sm text-muted-foreground",t),children:e})})},D=Tr;var Lr=({children:e,required:t,className:r,overrideClassName:n=!1,...o})=>jsx(g,{children:jsxs("div",{className:"flex items-center gap-1",children:[jsx("label",{...o,className:n?r:v("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=Lr;var Rr=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(g,{children:jsx("p",{className:r?t:v("text-sm text-red-600 dark:text-red-400",t),children:e})})},A=Rr;var gt=forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:a="left",className:i,overrideClassName:s=!1,helperText:l,error:f,...c},h)=>{let p=useId(),d=v("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",f&&"border-destructive",i);return jsx(g,{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})]})]})]}),f&&jsx(A,{children:f}),!f&&l&&jsx(D,{children:l})]})})});gt.displayName="CheckBox";var ca=gt;function Mr(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:a,labelKey:i,valueKey:s,options:l,alignment:f="vertical",className:c,overrideClassName:h=!1,helperText:p,error:d,label:R,name:L,required:C,...b}=e,k=useId(),P=useMemo(()=>new Map(l.map(y=>[String(y[s]),y])),[l,s]),F=useMemo(()=>o==null?[]:r==="field"?n?o.map(y=>String(y)):[String(o)]:n?o.map(y=>String(y[s])):[String(o[s])],[o,r,n,s]),S=(y,w)=>{if(!a)return;let m;if(r==="field")if(n)m=y.map(T=>{let I=P.get(T);return I?I[s]:T});else {let u=y[0];if(!u)m=void 0;else {let T=P.get(u);m=T?T[s]:u;}}else n?m=y.map(T=>P.get(T)).filter(T=>T!==void 0):m=P.get(y[0]??"")??void 0;a({target:{name:L,value:m,type:"checkboxgroup",checked:w}});},$=y=>{let w;n?w=F.includes(y)?F.filter(m=>m!==y):[...F,y]:w=F[0]===y?[]:[y],S(w,w.includes(y));},E=f==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",O=v("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(g,{children:jsxs("div",{className:v("flex flex-col gap-3",c),children:[R&&jsx(N,{required:C,children:R}),jsx("div",{className:E,children:l.map((y,w)=>{let m=String(y[s]),u=F.includes(m),T=`${k}-${m}-${w}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...b,id:T,ref:t,type:"checkbox",name:L,checked:u,onChange:()=>$(m),className:h?c:O}),jsx(N,{htmlFor:T,children:String(y[i])})]},T)})}),!!d&&jsx(A,{children:String(d)}),!d&&p&&jsx(D,{children:p})]})})}function Fr(){let e=forwardRef(Mr);return e.displayName="CheckBoxGroup",e}var Ir=Fr(),Ca=Ir;var Ar=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],ht=vr.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=Ar,showPresets:a=!0,className:i,error:s,helperText:l,name:f},c)=>{let h=useId(),p=useRef(null),[d,R]=useState(!1),[L,C]=useState("COLOR"),[b,k]=useState("HEX"),[P,F]=useState("#000000"),[S,$]=useState(0),[E,O]=useState(0),[y,w]=useState(0),[m,u]=useState(1),[T,I]=useState("#000000"),[V,_]=useState("#ffffff"),[j,ue]=useState(90),[ye,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)}},B=x=>{r?.({target:{value:x,name:f}});};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),O(x.g),w(x.b);}},[P]),useEffect(()=>{let x=`linear-gradient(${j}deg, ${T}, ${V})`;ne(x),L==="GRADIENT"&&B(x);},[T,V,j]);let G=()=>{if(m>=1){if(b==="HEX")return P;if(b==="RGB")return `rgb(${S}, ${E}, ${y})`}return `rgba(${S}, ${E}, ${y}, ${Number(m.toFixed(2))})`},Z=L==="GRADIENT"?ye:G();return jsx(g,{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:()=>C(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()),B(G());},className:"w-full h-10 rounded"}),jsxs("div",{className:"flex gap-2 items-center",children:[jsxs("select",{value:b,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"})]}),b==="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)&&B(H);},className:"flex-1 px-2 py-1 text-xs font-mono border rounded",placeholder:"#000000"}),(b==="RGB"||b==="RGBA")&&jsx("div",{className:"flex gap-2",children:[{l:"R",v:S,s:$},{l:"G",v:E,s:O},{l:"B",v:y,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:or=>{ce(Te(+or.target.value,0,255)),B(G());},className:"w-14 px-1 py-1 text-xs border rounded"})]},x))})]}),b==="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),B(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),B(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})]})})});ht.displayName="ColorPicker";var ka=ht;var Sr=({...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=Sr;var Or=(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]);},yt=Or;function ke({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:a,typeSet:i,name:s}){let[l,f]=useState([]),c=useMemo(()=>new Map(e.map(C=>[String(C[r]),C])),[e,r]),h=useCallback(()=>l.map(C=>c.get(C)).filter(C=>!!C),[l,c]),p=useCallback(C=>{if(!o)return;let b;if(i==="field"?n?b=C:b=C[0]??void 0:n?b=C.map(P=>c.get(P)).filter(P=>P!==void 0):b=c.get(C[0]??"")??void 0,a&&!n){let k=c.get(C[0]??"");k&&a(String(k[t]));}o({target:{name:s,value:b,type:"combobox"}});},[n,o,c,s,i,a,t]),d=useCallback(C=>{let b=String(C[r]),k=n?l.includes(b)?l.filter(P=>P!==b):[...l,b]:[b];f(k),p(k);},[n,l,p,r]),R=useCallback(C=>{let b=l.filter(k=>k!==C);f(b),p(b);},[l,p]),L=useCallback(()=>{f([]),a?.("");let C;i==="field"?C=n?[]:"":C=n?[]:void 0,o?.({target:{name:s,value:C,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 Lt=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:a,filteredOptions:i,highlightedIndex:s,setHighlightedIndex:l,handleSelect:f,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&&f(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,f,c,h])};function Pt({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 _r(e,t){let{label:r,required:n=!1,name:o,placeholder:a="Buscar...",labelKey:i,valueKey:s,options:l,value:f,onChange:c,mode:h="single",typeSet:p="field",disabled:d=!1,ClearEnabled:R=!0,helperText:L,error:C=!1,className:b="",...k}=e,P=h==="multiple",[F,S]=useState(!1),[$,E]=useState(""),O=useRef(null),y=useRef(null),w=useRef(null);useImperativeHandle(t,()=>w.current),yt(y,()=>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:f,multiple:P,onChange:c,typeSet:p,name:o,setSearchTerm:E}),ye=Lt({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=v("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",C?"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(g,{children:jsxs("div",{className:`space-y-2 ${b}`,children:[r&&jsx(N,{htmlFor:ne,required:n,children:r}),jsxs("div",{ref:O,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((B,G)=>jsx(Pt,{option:B,labelKey:i,valueKey:s,onRemove:_},String(B[s]??G)))}),jsx("input",{ref:w,...k,name:o,type:"text",placeholder:a,value:$,onChange:B=>{let G=B.target.value;E(G),!F&&G.trim()!==""&&S(!0);},onKeyDown:ye,onMouseDown:B=>{document.activeElement===w.current&&(B.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:B=>B.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:y,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((B,G)=>{let Z=String(B[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(B),className:v("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(B[i])})},Z)})})]}),C&&jsx(A,{children:C}),!C&&L&&jsx(D,{children:L})]})})}function Jr(){let e=forwardRef(_r);return e.displayName="ComboBox",e}var jr=Jr(),ni=jr;var Yr=({children:e,before:t,after:r,className:n})=>{let a=Zr("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=Yr;var Qr=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),Nt=Qr;var en=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),Et=en;function Mt(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 Ft(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 It(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 Vt(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 Ht(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 Dt(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 At(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 St(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 tn=({e,mask:t})=>{switch(t){case"money":return Ft(e);case"mobile":return Vt(e);case"phone":return Ht(e);case"cpfCnpj":return Dt(e);case"cpf":return It(e);case"rg":return At(e);case"cnpj":return St(e);case"cep":return Mt(e);default:return e}},$t=tn;var on=({mask:e,initialValue:t=""})=>{let[r,n]=useState(t);useEffect(()=>{t!==r&&n(t);},[t]);let o=useCallback(i=>{let l=$t({e:i,mask:e})?.currentTarget?.value??i.currentTarget.value;n(l);},[e]),a=useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:a}},Bt=on;var Gt=forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:a,addonBefore:i,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:f,ClearEnabled:c=!0,className:h,overrideClassName:p=!1,error:d,helperText:R,value:L=void 0,onChange:C,...b},k)=>{let P=useId(),{handleChange:F,handleClear:S,setValue:$}=Bt({mask:r,initialValue:L}),E=v("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),O=w=>{F(w),C?.(w);},y=()=>{S(),$(""),C?.({target:{name:n||"",value:""}});};return jsx(g,{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(Nt,{children:o}),jsx("input",{id:P,ref:k,name:n,onChange:O,className:p?h:E,...b}),c&&L&&jsx(ve,{onClick:y,width:12,height:12,className:v("absolute right-2 cursor-pointer",a&&"right-8")}),a&&jsx(Et,{children:a})]}),l&&jsx(Ve,{after:!0,className:f,children:l})]}),d&&jsx(A,{children:d}),!d&&R&&jsx(D,{children:R})]})})});Gt.displayName="Input";var Mi=Gt;var qt=forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:a=!1,helperText:i,error:s,onChange:l,onBlur:f,className:c,charType:h="numeric",customPattern:p,caseMode:d="none",...R},L)=>{let C=useId(),b=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),b.current[Math.min(V.length-1,e-1)]?.focus();return}T&&(I[m]=T,$(I.join("")),m<e-1&&b.current[m+1]?.focus());},O=m=>{let u=F();!u[m]&&m>0?u[m-1]="":u[m]="",$(u.join("")),m>0&&b.current[m-1]?.focus();},y=m=>{m.preventDefault();let T=m.clipboardData.getData("text").split("").map(P).join("").slice(0,e);T&&($(T),b.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(g,{children:jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsx(N,{htmlFor:C,required:a,children:o}),jsx("div",{className:v("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(vr.Fragment,{children:[T&&jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsx("input",{id:C,type:"text",maxLength:1,inputMode:h==="numeric"?"numeric":"text",value:w(m).trim(),ref:I=>{b.current[u]=I,u===0&&L&&(typeof L=="function"?L(I):typeof L=="object"&&(L.current=I));},onPaste:y,onChange:I=>E(u,I.target.value),onKeyDown:I=>I.key==="Backspace"&&O(u),onBlur:f,className:v("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})]})})});qt.displayName="OtpInput";var Oi=qt;var Kt=forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:a,overrideClassName:i,helperText:s,error:l,...f},c)=>{let h=useId(),p=v("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(g,{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,...f}),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})]})})});Kt.displayName="Radio";var _i=Kt;function bn(e,t){let{label:r,required:n,name:o,labelKey:a,valueKey:i,options:s,alignment:l="vertical",className:f,overrideClassName:c=!1,helperText:h,error:p,typeSet:d="field",value:R,onChange:L,...C}=e,b=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 O;if(d==="field"){let y=k.get(E);if(y)O=y[i];else {let w=Number(E);O=Number.isNaN(w)?E:w;}}else O=k.get(E)??void 0;L({target:{name:o,value:O,type:"radiogroup",checked:!0}});},S=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=v("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(g,{children:jsxs("div",{className:v("flex flex-col gap-3",f),children:[r&&jsx(N,{required:n,children:r}),jsx("div",{className:S,children:s.map((E,O)=>{let y=String(E[i]),w=`${b}-${y}-${O}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...C,id:w,ref:t,name:o,type:"radio",checked:P===y,onChange:()=>F(y),className:c?f:$}),jsx(N,{htmlFor:w,children:String(E[a])})]},w)})}),p&&jsx(A,{children:String(p)}),!p&&h&&jsx(D,{children:h})]})})}function vn(){let e=forwardRef(bn);return e.displayName="RadioGroup",e}var xn=vn(),as=xn;function yn({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:a,error:i,helperText:s,className:l,...f},c){let h=useId(),p=v("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(g,{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,...f,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 Tn(){let e=forwardRef(yn);return e.displayName="Select",e}var Ln=Tn(),bs=Ln;var _t=forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:a=!1,className:i,overrideClassName:s,error:l,name:f,...c},h)=>{let p=useId();return jsx(g,{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:f,checked:a,className:"peer sr-only",ref:h,...c}),jsx("label",{htmlFor:p,className:v("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:v("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})]})]})]})})});_t.displayName="Switch";var Ps=_t;var Jt=vr.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:a=!1,error:i,helperText:s,...l},f)=>{let c=useId(),[h,p]=useState(0),d=v("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(g,{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:f,...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})]})})});Jt.displayName="TextArea";var Vs=Jt;var En=({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}`))}),jt=En;var Mn=({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`]})]})]}),Zt=Mn;var Yt=({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]),f=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 C=new DataTransfer;L.forEach(b=>C.items.add(b)),a.current.files=C.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:f}};var Qt=({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 Dn=({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"})]})},tr=Dn;var nr=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:f,className:c,name:h,onChange:p,onBlur:d,...R},L)=>{let C=useId(),[b,k]=useState([]),P=1024*1024,F=V=>V.filter(_=>(!i||_.size<=i*P)&&(!r||_.type.match(r))),{inputRef:S,isDragOver:$,handleDrop:E,handleDragOver:O,handleDragLeave:y}=Yt({files:b,setFiles:k,multiple:a,filterFiles:F}),{removeFile:w}=Qt({files:b,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||!b||!b.length?[]:b.filter(V=>V.type.startsWith("image/")).map(V=>({file:V,url:URL.createObjectURL(V)})),[b,o]);useEffect(()=>()=>T.forEach(V=>URL.revokeObjectURL(V.url)),[T]);let I=o&&T.length>0;return jsx(g,{children:jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsx(N,{htmlFor:C,required:t,children:e}),jsxs("div",{onDrop:E,onDragOver:O,onDragLeave:y,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})]})});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:`
|
|
26
26
|
border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
|
|
27
27
|
transition-colors
|
|
28
28
|
${$?"border-primary bg-primary/5":"border-border"}
|
|
29
29
|
${l?"border-red-500":""}
|
|
30
30
|
${s?"opacity-50 cursor-not-allowed":"hover:border-primary"}
|
|
31
|
-
`,children:[jsx("input",{ref:m,id:
|
|
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;
|
|
32
32
|
|
|
33
|
-
export {
|
|
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 };
|