@mvr-ui/components 1.0.106 → 1.0.107

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mvr-ui/components",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "sideEffects": false,
5
5
  "main": "dist/page.cjs",
6
6
  "module": "dist/page.js",
package/dist/mvr-ui.css DELETED
@@ -1,2 +0,0 @@
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-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-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-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--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-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--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-400:oklch(70.7% .165 254.624);--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;--container-lg:32rem;--container-2xl:42rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--leading-relaxed:1.625;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--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-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-8{right:calc(var(--spacing)*8)}.right-full{right:100%}.bottom-2{bottom:calc(var(--spacing)*2)}.bottom-full{bottom:100%}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-full{left:100%}.z-50{z-index:50}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.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)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-square{aspect-ratio:1}.h-0{height:calc(var(--spacing)*0)}.h-0\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-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-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-56{height:calc(var(--spacing)*56)}.h-auto{height:auto}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-72{max-height:calc(var(--spacing)*72)}.min-h-\[40px\]{min-height:40px}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-0\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-2\/5{width:40%}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-10{width:calc(var(--spacing)*10)}.w-11{width:calc(var(--spacing)*11)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-85{width:calc(var(--spacing)*85)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.min-w-16{min-width:calc(var(--spacing)*16)}.min-w-20{min-width:calc(var(--spacing)*20)}.min-w-24{min-width:calc(var(--spacing)*24)}.min-w-28{min-width:calc(var(--spacing)*28)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-70{min-width:calc(var(--spacing)*70)}.min-w-80{min-width:calc(var(--spacing)*80)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-left{transform-origin:0}.-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)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-\[spin_0\.5s_linear_infinite\]{animation:.5s linear infinite spin}.animate-\[spin_2s_linear_infinite\]{animation:2s linear infinite spin}.animate-bounce{animation:var(--animate-bounce)}.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)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.appearance-none{appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}: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-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-0>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*0)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.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-current{border-color:currentColor}.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-green-200{border-color:var(--color-green-200)}.border-green-500\/50{border-color:#00c75880}@supports (color:color-mix(in lab, red, red)){.border-green-500\/50{border-color:color-mix(in oklab,var(--color-green-500)50%,transparent)}}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-red-500\/50{border-color:#fb2c3680}@supports (color:color-mix(in lab, red, red)){.border-red-500\/50{border-color:color-mix(in oklab,var(--color-red-500)50%,transparent)}}.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-yellow-200{border-color:var(--color-yellow-200)}.border-yellow-500\/50{border-color:#edb20080}@supports (color:color-mix(in lab, red, red)){.border-yellow-500\/50{border-color:color-mix(in oklab,var(--color-yellow-500)50%,transparent)}}.border-zinc-200{border-color:var(--color-zinc-200)}.border-t-current{border-top-color:currentColor}.border-t-gray-900{border-top-color:var(--color-gray-900)}.border-t-transparent{border-top-color:#0000}.border-r-gray-900{border-right-color:var(--color-gray-900)}.border-r-transparent{border-right-color:#0000}.border-b-gray-900{border-bottom-color:var(--color-gray-900)}.border-b-transparent{border-bottom-color:#0000}.border-l-gray-900{border-left-color:var(--color-gray-900)}.border-l-transparent{border-left-color:#0000}.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-current{background-color:currentColor}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-50{background-color:var(--color-green-50)}.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\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white)80%,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-50{background-color:var(--color-yellow-50)}.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)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-9{padding-right:calc(var(--spacing)*9)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--accent-foreground)}.text-black{color:var(--color-black)}.text-blue-400{color:var(--color-blue-400)}.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-current{color:currentColor}.text-foreground{color:var(--foreground)}.text-gray-200{color:var(--color-gray-200)}.text-gray-400{color:var(--color-gray-400)}.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-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.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-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.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-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.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{--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-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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.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}.slide-in-from-right-full{--tw-enter-translate-x:calc(1*100%)}.group-focus-within\:pointer-events-auto:is(:where(.group):focus-within *){pointer-events:auto}.group-focus-within\:scale-100:is(:where(.group):focus-within *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-focus-within\:opacity-100:is(:where(.group):focus-within *){opacity:1}@media (hover:hover){.group-hover\:pointer-events-auto:is(:where(.group):hover *){pointer-events:auto}.group-hover\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.peer-checked\:bg-primary:is(:where(.peer):checked~*){background-color:var(--primary)}.peer-focus\:ring-2:is(:where(.peer):focus~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-focus\:ring-ring:is(:where(.peer):focus~*){--tw-ring-color:var(--ring)}.peer-focus\:ring-offset-2:is(:where(.peer):focus~*){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.peer-focus\:ring-offset-background:is(:where(.peer):focus~*){--tw-ring-offset-color:var(--background)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-gray-500::placeholder{color:var(--color-gray-500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.focus-within\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-blue-500:focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:border-ring:hover{border-color:var(--ring)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-gray-900:hover{background-color:var(--color-gray-900)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-muted:hover,.hover\:bg-muted\/80:hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/80:hover{background-color:color-mix(in oklab,var(--muted)80%,transparent)}}.hover\:bg-primary:hover,.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab,var(--primary)80%,transparent)}}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:bg-zinc-200:hover{background-color:var(--color-zinc-200)}.hover\:bg-zinc-800:hover{background-color:var(--color-zinc-800)}.hover\:from-blue-700:hover{--tw-gradient-from:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-purple-700:hover{--tw-gradient-to:var(--color-purple-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--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-green-800:is(.dark *){border-color:var(--color-green-800)}.dark\:border-red-800:is(.dark *){border-color:var(--color-red-800)}.dark\:border-yellow-800:is(.dark *){border-color:var(--color-yellow-800)}.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-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900\/80:is(.dark *){background-color:#101828cc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-900\/80:is(.dark *){background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}}.dark\:bg-green-900\/20:is(.dark *){background-color:#0d542b33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.dark\:bg-green-950\/50:is(.dark *){background-color:#032e1580}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-green-950)50%,transparent)}}.dark\:bg-red-900\/20:is(.dark *){background-color:#82181a33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.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-red-950\/50:is(.dark *){background-color:#46080980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-red-950)50%,transparent)}}.dark\:bg-yellow-900\/20:is(.dark *){background-color:#733e0a33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-yellow-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)20%,transparent)}}.dark\:bg-yellow-950\/50:is(.dark *){background-color:#43200480}@supports (color:color-mix(in lab, red, red)){.dark\:bg-yellow-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-yellow-950)50%,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-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\:text-gray-100:is(.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:is(.dark *){color:var(--color-gray-500)}.dark\:text-gray-700:is(.dark *){color:var(--color-gray-700)}.dark\:text-green-200:is(.dark *){color:var(--color-green-200)}.dark\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\:text-red-200:is(.dark *){color:var(--color-red-200)}.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-yellow-200:is(.dark *){color:var(--color-yellow-200)}.dark\:text-yellow-400:is(.dark *){color:var(--color-yellow-400)}.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)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:top-4>svg{top:calc(var(--spacing)*4)}.\[\&\>svg\]\:left-4>svg{left:calc(var(--spacing)*4)}.\[\&\>svg\]\:text-foreground>svg{color:var(--foreground)}.\[\&\>svg\]\:text-green-600>svg{color:var(--color-green-600)}.\[\&\>svg\]\:text-red-600>svg{color:var(--color-red-600)}.\[\&\>svg\]\:text-yellow-600>svg{color:var(--color-yellow-600)}.dark\:\[\&\>svg\]\:text-green-400:is(.dark *)>svg{color:var(--color-green-400)}.dark\:\[\&\>svg\]\:text-red-400:is(.dark *)>svg{color:var(--color-red-400)}.dark\:\[\&\>svg\]\:text-yellow-400:is(.dark *)>svg{color:var(--color-yellow-400)}.\[\&\>svg\+div\]\:-translate-y-0\.75>svg+div{--tw-translate-y:calc(var(--spacing)*-.75);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:calc(var(--spacing)*7)}}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-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 spin{to{transform:rotate(360deg)}}@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.js DELETED
@@ -1,113 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var qn = require('react');
5
- var zo = require('clsx');
6
- var tailwindMerge = require('tailwind-merge');
7
-
8
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
-
10
- var qn__default = /*#__PURE__*/_interopDefault(qn);
11
- var zo__default = /*#__PURE__*/_interopDefault(zo);
12
-
13
- var kt=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsxRuntime.jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsxRuntime.jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsxRuntime.jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxRuntime.jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsxRuntime.jsx("path",{d:"M12 9v4"}),jsxRuntime.jsx("path",{d:"M12 17h.01"}),jsxRuntime.jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsxRuntime.jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsxRuntime.jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsxRuntime.jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsxRuntime.jsx("div",{className:"flex flex-col gap-3",children:o.map((i,a)=>{let l=i.variant!=="secondary";return jsxRuntime.jsx("button",{onClick:i.onClick,className:l?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i.label},a)})})]})});var Nt=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
14
- Ol\xE1,
15
-
16
- Estou enfrentando um problema com a licen\xE7a da aplica\xE7\xE3o.
17
-
18
- Erro:
19
- ${t??"Licen\xE7a inv\xE1lida"}
20
-
21
- Aguardo retorno.
22
- `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var Pt=(e,t)=>{let r=`
23
- Ol\xE1! Estou com um problema de licen\xE7a na aplica\xE7\xE3o.
24
-
25
- Erro:
26
- ${t??"Licen\xE7a inv\xE1lida"}
27
-
28
- Pode me ajudar?
29
- `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var Lt=qn.createContext(void 0),Vn=({children:e,licenseKey:t})=>{let[r,n]=qn.useState(!1),[o,i]=qn.useState(null),[a,l]=qn.useState(!0),s=m=>{if(i(null),!m)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let u="chave-secreta-123";if(m!==u)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return qn.useEffect(()=>{if(t){l(!0);try{s(t);}catch(m){i(m instanceof Error?m.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),a?null:jsxRuntime.jsx(Lt.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:o},children:r?e:jsxRuntime.jsx(kt,{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:()=>Pt("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>Nt("marcos.vinicius.engsof@gmail.com",o)}]})})},Rt=()=>{let e=qn.useContext(Lt);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var Mt=({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}=Rt();return t?jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):jsxRuntime.jsx(Mt,{})};var St=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:i=""})=>{let a=u=>u===void 0?[]:Array.isArray(u)?u:[u],[l,s]=qn.useState(a(n??r));qn.useEffect(()=>{n!==void 0&&s(a(n));},[n]);let m=qn.useCallback(u=>{s(c=>{let d;return t==="single"?d=c.includes(u)?[]:[u]:d=c.includes(u)?c.filter(p=>p!==u):[...c,u],o?.(t==="single"?d[0]??"":d),d});},[t,o]);return jsxRuntime.jsx("div",{className:`space-y-2 ${i}`,children:e.map(u=>jsxRuntime.jsx(On,{...u,isOpen:l.includes(u.id),onToggle:()=>m(u.id)},u.id))})},On=({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
- ${r?"opacity-50 cursor-not-allowed":"hover:bg-accent hover:text-accent-foreground"}
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})]})});St.displayName="Accordion";var pi=St;function g(...e){return tailwindMerge.twMerge(zo.clsx(e))}var Vt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("h5",{ref:o,className:t?e:g("mb-1 font-medium leading-none tracking-tight",e),...n,children:r})}));Vt.displayName="AlertTitle";var It=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:g("text-sm [&_p]:leading-relaxed",e),...n,children:r})}));It.displayName="AlertDescription";var Ht=qn.forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:i,role:"alert",className:t?e:g("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:-translate-y-0.75 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{default:"bg-background text-foreground border-border",destructive:"border-red-500/50 text-red-700 dark:text-red-400 bg-red-50 dark:bg-red-950/50 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",warning:"border-yellow-500/50 text-yellow-700 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-950/50 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-400",success:"border-green-500/50 text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/50 [&>svg]:text-green-600 dark:[&>svg]:text-green-400"}[r],e),...o,children:n})}));Ht.displayName="Alert";var ki=Ht,Ni=Vt,Pi=It;var At=qn.forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:i,className:t?e:g("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})}));At.displayName="Badge";var Fi=At;var Bt=({items:e,separator:t="/",overrideClassName:r,className:n})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("nav",{"aria-label":"Breadcrumb",className:r?n:g("flex",n),children:jsxRuntime.jsx("ol",{className:"flex items-center space-x-2",children:e.map((o,i)=>jsxRuntime.jsxs("li",{className:"flex items-center",children:[i>0&&jsxRuntime.jsx("span",{className:"mx-2 text-muted-foreground",children:t}),o.href&&!o.current?jsxRuntime.jsx("a",{href:o.href,className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:o.label}):jsxRuntime.jsx("span",{className:g("text-sm font-medium",o.current?"text-foreground":"text-muted-foreground"),"aria-current":o.current?"page":void 0,children:o.label})]},i))})})});Bt.displayName="Breadcrumb";var $i=Bt;var Ot=qn__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:i,loading:a=!1,loadingContent:l,...s},m)=>{let u="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",c={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},d={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"},p=t?e:g(u,c[r],d[n],e);return o?jsxRuntime.jsx(f,{children:jsxRuntime.jsx("a",{href:o,className:p,ref:m,children:a&&l?l:i})}):jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{className:p,ref:m,...s,children:a&&l?l:i})})});Ot.displayName="Button";var Ui=Ot;var Gt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:g("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));Gt.displayName="Card";var zt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:g("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));zt.displayName="CardHeader";var Ut=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("h3",{ref:o,className:t?e:g("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));Ut.displayName="CardTitle";var Wt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{ref:o,className:t?e:g("text-sm text-muted-foreground",e),...n,children:r})}));Wt.displayName="CardDescription";var qt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:g("p-6 pt-0",e),...n,children:r})}));qt.displayName="CardContent";var Yt=qn.forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:t?e:g("flex items-center p-6 pt-0",e),...n,children:r})}));Yt.displayName="CardFooter";var Ji=Gt,ji=zt,Zi=Ut,Qi=Wt,es=qt,ts=Yt;var _t=qn.forwardRef(({children:e,isOpen:t,onClose:r,size:n="md",className:o,overrideClassName:i=!1,...a},l)=>(qn.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset";}),[t]),qn.useEffect(()=>{let m=u=>{u.key==="Escape"&&r();};return t&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,r]),t?jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{ref:l,className:"fixed inset-0 z-50 flex items-center justify-center",...a,children:[jsxRuntime.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm",onClick:r}),jsxRuntime.jsx("div",{className:i?o:g("relative bg-background border border-border rounded-lg shadow-lg w-full mx-4",{sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}[n],o),children:e})]})}):null));_t.displayName="Dialog";var Xt=qn.forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:r?t:g("px-6 py-4 border-b border-border",t),...n,children:e})}));Xt.displayName="DialogHeader";var Jt=qn.forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("h2",{ref:o,className:r?t:g("text-lg font-semibold text-foreground",t),...n,children:e})}));Jt.displayName="DialogTitle";var jt=qn.forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:r?t:g("px-6 py-4",t),...n,children:e})}));jt.displayName="DialogContent";var Zt=qn.forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:o,className:r?t:g("px-6 py-4 border-t border-border flex justify-end space-x-2",t),...n,children:e})}));Zt.displayName="DialogFooter";var ls=_t,cs=Xt,ds=Jt,us=jt,ms=Zt;var Ae=qn.createContext(void 0),er=qn.forwardRef(({children:e,className:t,...r},n)=>{let[o,i]=qn.useState(!1);return jsxRuntime.jsx(f,{children:jsxRuntime.jsx(Ae.Provider,{value:{isOpen:o,setIsOpen:i},children:jsxRuntime.jsx("div",{ref:n,className:g("relative inline-block",t),...r,children:e})})})});er.displayName="DropdownMenu";var tr=({children:e,asChild:t})=>{let r=qn.useContext(Ae);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return qn.cloneElement(o,{onClick:i=>{o.props.onClick?.(i),n();}})}return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{onClick:n,children:e})})};tr.displayName="DropdownMenuTrigger";var rr=qn.forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let i=qn.useContext(Ae),a=qn.useRef(null);return qn.useEffect(()=>{o&&(typeof o=="function"?o(a.current):o.current=a.current);},[o]),qn.useEffect(()=>{let s=m=>{a.current&&!a.current.contains(m.target)&&i?.setIsOpen(!1);};return i?.isOpen&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i?.isOpen]),i?.isOpen?jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:a,className:g("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});rr.displayName="DropdownMenuContent";var nr=qn.forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},i)=>{let a=qn.useContext(Ae);return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("button",{ref:i,onClick:s=>{t?.(s),a?.setIsOpen(!1);},className:g("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})})});nr.displayName="DropdownMenuItem";var or=qn.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:r,className:g("-mx-1 my-1 h-px bg-border",e),...t})}));or.displayName="DropdownMenuSeparator";var ar=qn.forwardRef(({children:e,className:t,...r},n)=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{ref:n,className:g("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));ar.displayName="DropdownMenuLabel";var hs=er,ys=tr,ws=rr,Cs=nr,ks=or,Ns=ar;var ir=({src:e,alt:t="",fallback:r,size:n="md",className:o})=>{let[i,a]=qn.useState(!1),l={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"},s=m=>m.split(" ").map(u=>u.charAt(0)).join("").toUpperCase().slice(0,2);return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:g("relative flex shrink-0 overflow-hidden rounded-full bg-muted",l[n],o),children:e&&!i?jsxRuntime.jsx("img",{src:e||"/placeholder.svg",alt:t,className:"aspect-square h-full w-full object-cover",onError:()=>a(!0)}):jsxRuntime.jsx("div",{className:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground",children:r?s(r):"?"})})})};ir.displayName="Avatar";var Es=ir;var Zn=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{className:r?t:g("text-sm text-muted-foreground",t),children:e})})},O=Zn;var Qn=({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:g("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:"*"})]})}),F=Qn;var to=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx(f,{children:jsxRuntime.jsx("p",{className:r?t:g("text-sm text-red-600 dark:text-red-400",t),children:e})})},G=to;var cr=qn.forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:i="left",className:a,overrideClassName:l=!1,helperText:s,error:m,...u},c)=>{let d=qn.useId(),p=g("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",m&&"border-destructive",a);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsxRuntime.jsx(F,{required:t,children:e}),jsxRuntime.jsxs("div",{className:`flex items-center ${i=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsxRuntime.jsx("input",{id:d,type:"checkbox",className:l?a:p,ref:c,...u}),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(F,{htmlFor:d,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(F,{id:`${d}-description`,htmlFor:d,className:"text-xs text-muted-foreground",children:n})]})]})]}),m&&jsxRuntime.jsx(G,{children:m}),!m&&s&&jsxRuntime.jsx(O,{children:s})]})})});cr.displayName="CheckBox";var Zs=cr;function io(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:i,labelKey:a,valueKey:l,options:s,alignment:m="vertical",className:u,overrideClassName:c=!1,helperText:d,error:p,label:w,name:y,required:b,...v}=e,E=qn.useId(),D=qn.useMemo(()=>new Map(s.map(k=>[String(k[l]),k])),[s,l]),V=qn.useMemo(()=>o==null?[]:r==="field"?n?o.map(k=>String(k)):[String(o)]:n?o.map(k=>String(k[l])):[String(o[l])],[o,r,n,l]),P=(k,N)=>{if(!i)return;let x;if(r==="field")if(n)x=k.map(M=>{let H=D.get(M);return H?H[l]:M});else {let h=k[0];if(!h)x=void 0;else {let M=D.get(h);x=M?M[l]:h;}}else n?x=k.map(M=>D.get(M)).filter(M=>M!==void 0):x=D.get(k[0]??"")??void 0;i({target:{name:y,value:x,type:"checkboxgroup",checked:N}});},$=k=>{let N;n?N=V.includes(k)?V.filter(x=>x!==k):[...V,k]:N=V[0]===k?[]:[k],P(N,N.includes(k));},I=m==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",S=g("h-4 w-4 rounded 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:g("flex flex-col gap-3",u),children:[w&&jsxRuntime.jsx(F,{required:b,children:w}),jsxRuntime.jsx("div",{className:I,children:s.map((k,N)=>{let x=String(k[l]),h=V.includes(x),M=`${E}-${x}-${N}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...v,id:M,ref:t,type:"checkbox",name:y,checked:h,onChange:()=>$(x),className:c?u:S}),jsxRuntime.jsx(F,{htmlFor:M,children:String(k[a])})]},M)})}),!!p&&jsxRuntime.jsx(G,{children:String(p)}),!p&&d&&jsxRuntime.jsx(O,{children:d})]})})}function so(){let e=qn.forwardRef(io);return e.displayName="CheckBoxGroup",e}var lo=so(),cl=lo;var po=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],pr=qn__default.default.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=po,showPresets:i=!0,className:a,error:l,helperText:s,name:m},u)=>{let c=qn.useId(),d=qn.useRef(null),[p,w]=qn.useState(!1),[y,b]=qn.useState("COLOR"),[v,E]=qn.useState("HEX"),[D,V]=qn.useState("#000000"),[P,$]=qn.useState(0),[I,S]=qn.useState(0),[k,N]=qn.useState(0),[x,h]=qn.useState(1),[M,H]=qn.useState("#000000"),[A,j]=qn.useState("#ffffff"),[re,Ce]=qn.useState(90),[R,T]=qn.useState("linear-gradient(90deg, #000000, #ffffff)"),z=(L,U,De)=>Math.min(De,Math.max(U,L)),_=L=>{let U=L.replace("#","");return {r:parseInt(U.slice(0,2),16),g:parseInt(U.slice(2,4),16),b:parseInt(U.slice(4,6),16)}},W=L=>{r?.({target:{value:L,name:m}});};qn.useEffect(()=>{let L=U=>{d.current&&!d.current.contains(U.target)&&w(!1);};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]),qn.useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(D)){let L=_(D);$(L.r),S(L.g),N(L.b);}},[D]),qn.useEffect(()=>{let L=`linear-gradient(${re}deg, ${M}, ${A})`;T(L),y==="GRADIENT"&&W(L);},[M,A,re]);let q=()=>{if(x>=1){if(v==="HEX")return D;if(v==="RGB")return `rgb(${P}, ${I}, ${k})`}return `rgba(${P}, ${I}, ${k}, ${Number(x.toFixed(2))})`},Z=y==="GRADIENT"?R:q();return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${a??""}`,children:[e&&jsxRuntime.jsx(F,{htmlFor:c,required:t,children:e}),jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>!n&&w(!p),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})]}),p&&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(L=>jsxRuntime.jsx("button",{type:"button",onClick:()=>b(L),className:`px-2 py-1 text-xs rounded ${y===L?"bg-primary text-white":"border"}`,children:L==="COLOR"?"Cor":"Gradiente"},L))}),jsxRuntime.jsx("div",{className:"w-full h-10 rounded border",style:{background:Z}}),y==="COLOR"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{ref:u,type:"color",value:D,onChange:L=>{V(L.target.value.toUpperCase()),W(q());},className:"w-full h-10 rounded"}),jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsxs("select",{value:v,onChange:L=>E(L.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:D,onChange:L=>{let U=L.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");U.startsWith("#")||(U="#"+U),U="#"+U.slice(1,7),V(U),/^#[0-9A-F]{6}$/.test(U)&&W(U);},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:P,s:$},{l:"G",v:I,s:S},{l:"B",v:k,s:N}].map(({l:L,v:U,s:De})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("span",{className:"text-xs font-semibold",children:L}),jsxRuntime.jsx("input",{type:"number",min:0,max:255,value:U,onChange:Mn=>{De(z(+Mn.target.value,0,255)),W(q());},className:"w-14 px-1 py-1 text-xs border rounded"})]},L))})]}),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:x,onChange:L=>{h(+L.target.value),W(q());},className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(x*100),"%"]})]}),i&&jsxRuntime.jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(L=>jsxRuntime.jsx("button",{type:"button",onClick:()=>{V(L),h(1),W(L);},className:"w-8 h-8 rounded border",style:{background:L}},L))})]}),y==="GRADIENT"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex gap-2 items-center",children:[jsxRuntime.jsx("input",{type:"color",value:M,onChange:L=>H(L.target.value)}),jsxRuntime.jsx("span",{className:"text-xs",children:"\u2192"}),jsxRuntime.jsx("input",{type:"color",value:A,onChange:L=>j(L.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:re,onChange:L=>Ce(+L.target.value),className:"flex-1"}),jsxRuntime.jsxs("span",{className:"text-xs w-10 text-right",children:[re,"\xB0"]})]})]})]})]}),l&&jsxRuntime.jsx(G,{children:l}),!l&&s&&jsxRuntime.jsx(O,{children:s})]})})});pr.displayName="ColorPicker";var vl=pr;var fo=({...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"})}),Ge=fo;var bo=(e,t)=>{qn.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},gr=bo;function tt({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:i,typeSet:a,name:l}){let[s,m]=qn.useState([]),u=qn.useMemo(()=>new Map(e.map(b=>[String(b[r]),b])),[e,r]),c=qn.useCallback(()=>s.map(b=>u.get(b)).filter(b=>!!b),[s,u]),d=qn.useCallback(b=>{if(!o)return;let v;if(a==="field"?n?v=b:v=b[0]??void 0:n?v=b.map(D=>u.get(D)).filter(D=>D!==void 0):v=u.get(b[0]??"")??void 0,i&&!n){let E=u.get(b[0]??"");E&&i(String(E[t]));}o({target:{name:l,value:v,type:"combobox"}});},[n,o,u,l,a,i,t]),p=qn.useCallback(b=>{let v=String(b[r]),E=n?s.includes(v)?s.filter(D=>D!==v):[...s,v]:[v];m(E),d(E);},[n,s,d,r]),w=qn.useCallback(b=>{let v=s.filter(E=>E!==b);m(v),d(v);},[s,d]),y=qn.useCallback(()=>{m([]),i?.("");let b;a==="field"?b=n?[]:"":b=n?[]:void 0,o?.({target:{name:l,value:b,type:"combobox"}});},[n,o,l,i,a]);return {selectedValues:s,handleSelect:p,handleRemove:w,handleClear:y,getSelectedOptions:c}}function rt(e,t,r){return qn.useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var vr=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:i,filteredOptions:a,highlightedIndex:l,setHighlightedIndex:s,handleSelect:m,handleRemove:u})=>{let c=qn.useCallback(p=>{if(a.length===0){s(-1);return}s(w=>w<0?p>0?0:a.length-1:(w+p+a.length)%a.length);},[a,s]);return qn.useCallback(p=>{if(!e){if(p.key==="Enter"||p.key==="ArrowDown"){t(!0),s(0),p.preventDefault();return}r&&p.key==="Backspace"&&n===""&&i.length>0&&(p.preventDefault(),u(i[i.length-1]));return}switch(p.key){case"ArrowDown":p.preventDefault(),c(1);break;case"ArrowUp":p.preventDefault(),c(-1);break;case"Enter":p.preventDefault();let w=l>=0?l:0,y=a[w];y&&m(y),r&&o&&o(""),r||(t(!1),s(-1));break;case"Escape":p.preventDefault(),t(!1),s(-1),r||o("");break;case"Tab":t(!1),s(-1);break;case"Home":p.preventDefault(),a.length>0&&s(0);break;case"End":p.preventDefault(),a.length>0&&s(a.length-1);break;case"Backspace":r&&n===""&&i.length>0&&(p.preventDefault(),u(i[i.length-1]));break}},[e,r,n,i,a,l,t,o,s,m,u,c])};function xr({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),i=String(e[r]);return jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsxRuntime.jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>n(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},i)}function Po(e,t){let{label:r,required:n=!1,name:o,placeholder:i="Buscar...",labelKey:a,valueKey:l,options:s,value:m,onChange:u,mode:c="single",typeSet:d="field",disabled:p=!1,ClearEnabled:w=!0,helperText:y,error:b=!1,className:v="",...E}=e,D=c==="multiple",[V,P]=qn.useState(!1),[$,I]=qn.useState(""),S=qn.useRef(null),k=qn.useRef(null),N=qn.useRef(null);qn.useImperativeHandle(t,()=>N.current),gr(k,()=>P(!1));let x=rt(s,a,$),[h,M]=qn.useState(-1),{selectedValues:H,handleSelect:A,handleRemove:j,handleClear:re,getSelectedOptions:Ce}=tt({options:s,labelKey:a,valueKey:l,value:m,multiple:D,onChange:u,typeSet:d,name:o,setSearchTerm:I}),R=vr({isOpen:V,setIsOpen:P,multiple:D,searchTerm:$,setSearchTerm:I,selectedValues:H,filteredOptions:x,highlightedIndex:h,setHighlightedIndex:M,handleSelect:A,handleRemove:j}),T=qn.useId(),z="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",_=g("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",b?"border-red-500":"border-gray-300 dark:border-gray-600",p?"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(F,{htmlFor:T,required:n,children:r}),jsxRuntime.jsxs("div",{ref:S,className:"relative",children:[jsxRuntime.jsxs("div",{className:_,children:[D&&Ce().length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:Ce().map((W,q)=>jsxRuntime.jsx(xr,{option:W,labelKey:a,valueKey:l,onRemove:j},String(W[l]??q)))}),jsxRuntime.jsx("input",{ref:N,...E,name:o,type:"text",placeholder:i,value:$,onChange:W=>{let q=W.target.value;I(q),!V&&q.trim()!==""&&P(!0);},onKeyDown:R,onMouseDown:W=>{document.activeElement===N.current&&(W.preventDefault(),P(q=>{let Z=!q;return Z&&M(0),Z}));},onFocus:()=>{P(!0),M(0);},disabled:p,className:z,role:"combobox","aria-expanded":V,"aria-controls":T,"aria-activedescendant":h>=0?`${T}-opt-${h}`:void 0}),w&&!!H.length&&jsxRuntime.jsx("button",{type:"button",onMouseDown:W=>W.preventDefault(),onClick:re,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(Ge,{width:12,height:12})})]}),V&&jsxRuntime.jsx("div",{ref:k,id:T,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":D||void 0,children:x.length===0?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):x.map((W,q)=>{let Z=String(W[l]),L=H.includes(Z),U=q===h;return jsxRuntime.jsx("button",{id:`${T}-opt-${q}`,"data-index":q,role:"option","aria-selected":L,type:"button",onMouseDown:De=>De.preventDefault(),onClick:()=>A(W),className:g("w-full px-3 py-2 text-left text-sm transition-colors",U&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!U&&L&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!L&&!U&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsxRuntime.jsx("span",{children:String(W[a])})},Z)})})]}),b&&jsxRuntime.jsx(G,{children:b}),!b&&y&&jsxRuntime.jsx(O,{children:y})]})})}function To(){let e=qn.forwardRef(Po);return e.displayName="ComboBox",e}var Lo=To(),Yl=Lo;var Ro=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),yr=Ro;var Do=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),de=Do;var Mo=({...e})=>jsxRuntime.jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),ue=Mo;var be=["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var kr=["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"];var st=({type:e,currentMonth:t,selectedDate:r,onChange:n,onNavigate:o,onMonthClick:i,onYearClick:a})=>{let l=s=>{let m=s.getFullYear(),u=s.getMonth(),c=new Date(m,u,1),p=new Date(m,u+1,0).getDate(),w=c.getDay(),y=[];for(let b=w-1;b>=0;b--)y.push({date:new Date(m,u,-b),isCurrentMonth:!1});for(let b=1;b<=p;b++)y.push({date:new Date(m,u,b),isCurrentMonth:!0});for(;y.length<42;)y.push({date:new Date(m,u+1,y.length-p+1),isCurrentMonth:!1});return y};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(de,{width:16,height:16})}),jsxRuntime.jsxs("div",{className:"font-medium flex gap-1",children:[jsxRuntime.jsx("span",{className:"cursor-pointer hover:underline",onClick:i,children:be[t.getMonth()]}),jsxRuntime.jsx("span",{className:"cursor-pointer hover:underline",onClick:a,children:t.getFullYear()})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ue,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:kr.map(s=>jsxRuntime.jsx("div",{className:"text-center text-xs font-medium text-muted-foreground p-2",children:s},s))}),jsxRuntime.jsx("div",{className:"grid grid-cols-7 gap-1",children:l(t).map((s,m)=>{let c=r&&s.date.toDateString()===r.toDateString(),d=s.date.toDateString()===new Date().toDateString();return jsxRuntime.jsx("button",{type:"button",onClick:()=>{if(e==="datetime-local"){let p=r??new Date,w=new Date(s.date.getFullYear(),s.date.getMonth(),s.date.getDate(),p.getHours(),p.getMinutes(),p.getSeconds());n(w);}else n(s.date);},className:`
33
- p-2 cursor-pointer text-sm rounded hover:bg-accent
34
- ${s.isCurrentMonth?"text-foreground":"text-muted-foreground"}
35
- ${c?"bg-primary text-primary-foreground hover:bg-primary":""}
36
- ${d&&!c?"bg-accent font-medium":""}
37
- `,children:s.date.getDate()},m)})})]})};var Nr=(e,t)=>{let r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");switch(t){case"date":return `${r}-${n}-${o}`;case"datetime-local":return `${r}-${n}-${o}T${i}:${a}:${l}`;case"year":return `${r}`;case"month":return `${r}-${n}`;case"week":{let s=new Date(e);s.setHours(0,0,0,0),s.setDate(s.getDate()+3-(s.getDay()+6)%7);let m=new Date(s.getFullYear(),0,4),u=1+Math.round(((s.getTime()-m.getTime())/864e5-3+(m.getDay()+6)%7)/7);return `${s.getFullYear()}-W${String(u).padStart(2,"0")}`}}};var lt=(e,t,r="pt-BR")=>{switch(t){case"date":return e.toLocaleDateString(r);case"datetime-local":return e.toLocaleString(r);case"year":return `${e.getFullYear()}`;case"month":return be?`${be[e.getMonth()]} ${e.getFullYear()}`:e.toLocaleDateString(r,{month:"long",year:"numeric"});case"week":{let n=new Date(e);n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);let o=new Date(n.getFullYear(),0,4);return `Semana ${1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)} \u2022 ${n.getFullYear()}`}}};var So=(e,t)=>{qn.useEffect(()=>{let r=n=>{e.current&&!e.current.contains(n.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Pr=So;var Lr=({onChange:e,currentMonth:t,selectedDate:r,setIsOpen:n,onNavigate:o,onHeaderClick:i,closeOnSelect:a})=>{let l=t.getFullYear();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(de,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:i,children:l}),jsxRuntime.jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ue,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-2",children:be.map((s,m)=>{let u=r,c=u&&u.getFullYear()===l&&u.getMonth()===m;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{e(new Date(l,m,1)),a&&n(!1);},className:`p-2 cursor-pointer text-sm rounded hover:bg-accent ${c?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:s},s)})})]})};var Rr=({selectedDate:e,onChange:t})=>{let r=e??new Date,n=r.getHours(),o=r.getMinutes(),i=r.getSeconds(),a=`
38
- ${String(n).padStart(2,"0")}:
39
- ${String(o).padStart(2,"0")}:
40
- ${String(i).padStart(2,"0")}
41
- `,l=Array.from({length:24},(c,d)=>d),s=Array.from({length:60},(c,d)=>d),m=Array.from({length:60},(c,d)=>d),u=(c,d,p)=>{let w=new Date(r.getFullYear(),r.getMonth(),r.getDate(),c,d,p);t(w);};return jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs(F,{className:"flex items-center gap-2",children:["Hora",jsxRuntime.jsx("span",{className:"text-sm font-normal text-muted-foreground",children:a})]}),jsxRuntime.jsxs("div",{className:"flex h-full max-h-72 gap-2",children:[jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:l.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>u(c,o,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===n?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:s.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>u(n,c,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===o?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsxRuntime.jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:m.map(c=>jsxRuntime.jsx("button",{type:"button",onClick:()=>u(n,o,c),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===i?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))})]})]})};var Dr=({selectedDate:e,currentMonth:t,onChange:r,onNavigate:n,onHeaderClick:o,setIsOpen:i})=>{let a=t.getFullYear(),l=Array.from({length:52},(c,d)=>d+1),s=e,m=c=>{let d=new Date(a,0,1+(c-1)*7);r(d),i(!1);},u=(()=>{if(!s)return null;let c=new Date(s);c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);let d=new Date(c.getFullYear(),0,4),p=1+Math.round(((c.getTime()-d.getTime())/864e5-3+(d.getDay()+6)%7)/7);return {year:c.getFullYear(),week:p}})();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(de,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:o,children:a}),jsxRuntime.jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ue,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-4 gap-2",children:l.map(c=>{let d=u&&u.year===a&&u.week===c;return jsxRuntime.jsxs("button",{type:"button",onClick:()=>m(c),className:`p-2 text-sm rounded cursor-pointer hover:bg-accent ${d?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:["Semana ",c]},c)})})]})};var Er=({currentYear:e,selectedDate:t,onPick:r,onNavigate:n})=>{let o=e-6,i=Array.from({length:12},(a,l)=>o+l);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(de,{width:16,height:16})}),jsxRuntime.jsx("h3",{className:"font-medium",children:e}),jsxRuntime.jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsxRuntime.jsx(ue,{width:16,height:16})})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-3 gap-2",children:i.map(a=>{let l=t?.getFullYear()===a;return jsxRuntime.jsx("button",{type:"button",onClick:()=>r(a),className:`p-2 text-sm rounded hover:bg-accent ${l?"bg-primary text-primary-foreground":""}`,children:a},a)})})]})};var Sr=qn.forwardRef(({label:e,required:t,value:r,name:n,onChange:o,placeholder:i="Selecione uma data",type:a="date",locale:l="pt-BR",disabled:s=!1,error:m=!1,helperText:u,className:c,...d},p)=>{let w=qn.useId(),y=qn.useRef(null),b=qn.useRef(null),[v,E]=qn.useState(!1),[D,V]=qn.useState(0),[P,$]=qn.useState(r),[I,S]=qn.useState(()=>r?lt(r,a,l):""),[k,N]=qn.useState(()=>a==="month"?"month":a==="week"?"week":a==="year"?"year":"day");Pr(y,()=>E(!1));let x=P??new Date,h=new Date(x.getFullYear(),x.getMonth()+D,1),M=R=>{b.current=R,typeof p=="function"?p(R):p&&(p.current=R);},H=R=>{$(R);let T=Nr(R,a),z=lt(R,a,l);S(z),b.current&&(b.current.value=T,o?.({target:{name:b.current.name,value:T},type:"change"}),V(0));},A=(R,T,z)=>{let _=new Date(R,T+1,0).getDate();return Math.min(z,_)},j=R=>{let T=R.replace(/\D/g,"").slice(0,8),z=[];return T.length>=2&&z.push(T.slice(0,2)),T.length>=4&&z.push(T.slice(2,4)),T.length>4&&z.push(T.slice(4)),z.join("/")},re=R=>{let T=R.target.value,z=j(T);if(S(z),z.length===10){let[_,W,q]=z.split("/").map(Number),Z=new Date(q,W-1,_);isNaN(Z.getTime())||H(Z);}},Ce=()=>{switch(k){case"year":return jsxRuntime.jsx(Er,{currentYear:h.getFullYear(),selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onPick:R=>{let T=P??new Date,z=A(R,T.getMonth(),T.getDate()),_=new Date(R,T.getMonth(),z,T.getHours(),T.getMinutes(),T.getSeconds());$(_),a==="year"?(H(_),E(!1)):N(a==="month"?"month":a==="week"?"week":"month");}});case"month":return jsxRuntime.jsx(Lr,{currentMonth:h,selectedDate:P,setIsOpen:E,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onHeaderClick:()=>N("year"),closeOnSelect:a==="month",onChange:R=>{let T=P??new Date,z=A(R.getFullYear(),R.getMonth(),T.getDate()),_=new Date(R.getFullYear(),R.getMonth(),z,T.getHours(),T.getMinutes(),T.getSeconds());$(_),a==="month"?(H(_),E(!1)):N("day");}});case"week":return jsxRuntime.jsx(Dr,{currentMonth:h,selectedDate:P,setIsOpen:E,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onHeaderClick:()=>N("year"),onChange:R=>{H(R),E(!1);}});case"day":default:return a==="datetime-local"?jsxRuntime.jsxs("div",{className:"flex h-fit gap-4",children:[jsxRuntime.jsx("div",{className:"flex-1",children:jsxRuntime.jsx(st,{type:a,currentMonth:h,selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?1:-1)),onMonthClick:()=>N("month"),onYearClick:()=>N("year"),onChange:R=>{let T=P??new Date,z=new Date(R.getFullYear(),R.getMonth(),R.getDate(),T.getHours(),T.getMinutes(),T.getSeconds());H(z);}})}),jsxRuntime.jsx("div",{className:"w-fit",children:jsxRuntime.jsx(Rr,{selectedDate:P,onChange:R=>H(R)})})]}):jsxRuntime.jsx(st,{type:a,currentMonth:h,selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?1:-1)),onMonthClick:()=>N("month"),onYearClick:()=>N("year"),onChange:R=>{H(R),E(!1);}})}};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsxRuntime.jsx(F,{htmlFor:w,required:t,children:e}),jsxRuntime.jsx("input",{ref:M,id:w,name:n,type:"text",className:"sr-only",disabled:s,...d}),jsxRuntime.jsxs("div",{ref:y,className:"relative",children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:"text",value:I,onChange:re,onFocus:()=>!s&&E(!0),placeholder:i,disabled:s,className:`
42
- w-full px-3 py-2 pr-9 border rounded-md bg-background
43
- ${m?"border-red-500":"border-input"}
44
- ${s?"opacity-50 cursor-not-allowed":"hover:border-ring"}
45
- focus:ring-2 focus:ring-ring focus:ring-offset-2
46
- `}),jsxRuntime.jsx(yr,{width:16,height:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"})]}),v&&jsxRuntime.jsx("div",{className:"absolute z-50 mt-1 bg-popover border border-border rounded-md shadow-lg p-4 min-w-70",children:Ce()})]}),m&&jsxRuntime.jsx(G,{children:m}),!m&&u&&jsxRuntime.jsx(O,{children:u})]})})});Sr.displayName="DatePicker";var qc=Sr;var Ue=({size:e="md",variant:t="default",color:r="primary",className:n="",speed:o="normal",text:i,textPosition:a="bottom",overlay:l=!1,progress:s})=>{let[m,u]=qn.useState(s||0);qn.useEffect(()=>{s!==void 0&&u(Math.min(Math.max(s,0),100));},[s]);let c=()=>{switch(e){case"xs":return "w-3 h-3";case"sm":return "w-4 h-4";case"lg":return "w-8 h-8";case"xl":return "w-12 h-12";case"xxl":return "w-16 h-16";default:return "w-6 h-6"}},d=()=>{switch(r){case"secondary":return "text-gray-500 dark:text-gray-400";case"muted":return "text-gray-400 dark:text-gray-500";case"success":return "text-green-600 dark:text-green-400";case"danger":return "text-red-600 dark:text-red-400";case"warning":return "text-yellow-600 dark:text-yellow-400";case"info":return "text-blue-400 dark:text-blue-300";case"white":return "text-white dark:text-gray-200";default:return "text-blue-600 dark:text-blue-400"}},p=()=>{switch(o){case"slow":return "animate-[spin_2s_linear_infinite]";case"fast":return "animate-[spin_0.5s_linear_infinite]";default:return "animate-spin"}},w=()=>{switch(o){case"slow":return "animate-pulseSlow";case"fast":return "animate-pulseFast";default:return "animate-pulse"}},y=()=>{switch(o){case"slow":return "animate-bounceSlow";case"fast":return "animate-bounceFast";default:return "animate-bounce"}},b=()=>{switch(e){case"xs":return "w-1 h-1";case"sm":return "w-1.5 h-1.5";case"lg":return "w-3 h-3";case"xl":return "w-4 h-4";case"xxl":return "w-5 h-5";default:return "w-2 h-2"}},v=()=>{switch(e){case"xs":return "w-0.5 h-3";case"sm":return "w-0.5 h-4";case"lg":return "w-1 h-8";case"xl":return "w-1.5 h-12";case"xxl":return "w-2 h-16";default:return "w-1 h-6"}},E=()=>{switch(e){case"xs":return "w-0.5";case"sm":return "w-1";case"lg":return "w-1.5";case"xl":return "w-2";case"xxl":return "w-2.5";default:return "w-1"}},D=()=>{switch(e){case"xs":return "w-1 h-1";case"sm":return "w-1.5 h-1.5";case"lg":return "w-2 h-2";case"xl":return "w-3 h-3";case"xxl":return "w-4 h-4";default:return "w-1.5 h-1.5"}},V=()=>t==="dots"?jsxRuntime.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(S=>jsxRuntime.jsx("div",{className:`${b()} ${d()} bg-current rounded-full ${w()}`,style:{animationDelay:`${S*.2}s`}},S))}):t==="bars"?jsxRuntime.jsx("div",{className:"flex items-end space-x-1",children:[0,1,2,3].map(S=>jsxRuntime.jsx("div",{className:`${v()} ${d()} bg-current ${w()}`,style:{animationDelay:`${S*.15}s`}},S))}):t==="ring"?jsxRuntime.jsx("div",{className:c(),children:jsxRuntime.jsx("div",{className:`w-full h-full border-2 border-gray-200 dark:border-gray-700 border-t-current rounded-full ${p()} ${d()}`})}):t==="pulse"?jsxRuntime.jsx("div",{className:`${c()} ${d()}`,children:jsxRuntime.jsx("div",{className:`w-full h-full bg-current rounded-full ${w()}`})}):t==="wave"?jsxRuntime.jsx("div",{className:"flex items-end space-x-1",children:[0,1,2,3,4].map(S=>jsxRuntime.jsx("div",{className:`${E()} ${d()} bg-current rounded animate-wave`,style:{animationDelay:`${S*.15}s`,height:e==="xs"?"8px":e==="sm"?"10px":e==="lg"?"16px":e==="xl"?"20px":e==="xxl"?"24px":"12px"}},S))}):t==="bounce"?jsxRuntime.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(S=>jsxRuntime.jsx("div",{className:`${b()} ${d()} bg-current rounded-full ${y()}`,style:{animationDelay:`${S*.2}s`}},S))}):t==="grid"?jsxRuntime.jsx("div",{className:`${c()} ${d()} grid grid-cols-3 gap-0.5`,children:[...Array(9)].map((S,k)=>jsxRuntime.jsx("div",{className:`${D()} bg-current rounded-full ${w()}`,style:{animationDelay:`${k*.1}s`}},k))}):t==="clock"?jsxRuntime.jsxs("div",{className:`${c()} relative ${d()}`,children:[jsxRuntime.jsx("div",{className:"w-full h-full border-2 border-current rounded-full"}),jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 w-1/2 h-0.5 bg-current origin-left -translate-y-1/2 animate-clock"}),jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 w-2/5 h-0.5 bg-current origin-left -translate-y-1/2 animate-clock",style:{animationDelay:"-4s"}})]}):t==="orbit"?jsxRuntime.jsxs("div",{className:`${c()} relative`,children:[jsxRuntime.jsx("div",{className:`w-full h-full border-2 border-gray-200 dark:border-gray-700 rounded-full ${d()}`}),jsxRuntime.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2",children:jsxRuntime.jsx("div",{className:`${b()} ${d()} bg-current rounded-full animate-orbit`})})]}):t==="cube"?jsxRuntime.jsxs("div",{className:`${c()} ${d()} relative transform-style-3d animate-rotateCube`,children:[jsxRuntime.jsx("div",{className:"absolute w-full h-full bg-current opacity-25"}),jsxRuntime.jsx("div",{className:"absolute w-full h-full bg-current opacity-25 transform-rotateY(90deg)"}),jsxRuntime.jsx("div",{className:"absolute w-full h-full bg-current opacity-25 transform-rotateX(90deg)"})]}):t==="circle-dots"?jsxRuntime.jsx("div",{className:`${c()} relative ${d()}`,children:[...Array(8)].map((S,k)=>jsxRuntime.jsx("div",{className:"absolute w-full h-full animate-circleDots",style:{transform:`rotate(${k*45}deg)`},children:jsxRuntime.jsx("div",{className:`${b()} bg-current rounded-full absolute top-0 left-1/2 -translate-x-1/2 animate-fadePulse`,style:{animationDelay:`${k*.1}s`}})},k))}):t==="infinity"?jsxRuntime.jsx("div",{className:`${c()} ${d()}`,children:jsxRuntime.jsxs("svg",{viewBox:"0 0 120 30",className:"w-full h-full",children:[jsxRuntime.jsx("circle",{cx:"15",cy:"15",r:"12",className:"animate-infinity1"}),jsxRuntime.jsx("circle",{cx:"60",cy:"15",r:"12",className:"animate-infinity2"}),jsxRuntime.jsx("circle",{cx:"105",cy:"15",r:"12",className:"animate-infinity3"})]})}):t==="progress"?jsxRuntime.jsxs("div",{className:`${c()} relative ${d()}`,children:[jsxRuntime.jsxs("svg",{className:"w-full h-full",viewBox:"0 0 36 36",children:[jsxRuntime.jsx("path",{className:"text-gray-200 dark:text-gray-700",stroke:"currentColor",strokeWidth:"3",fill:"transparent",d:`M18 2.0845\r
47
- a 15.9155 15.9155 0 0 1 0 31.831\r
48
- a 15.9155 15.9155 0 0 1 0 -31.831`}),jsxRuntime.jsx("path",{className:"transition-all duration-300",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",fill:"transparent",strokeDasharray:"100, 100",strokeDashoffset:100-m,d:`M18 2.0845\r
49
- a 15.9155 15.9155 0 0 1 0 31.831\r
50
- a 15.9155 15.9155 0 0 1 0 -31.831`})]}),e!=="xs"&&e!=="sm"&&jsxRuntime.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",children:[m,"%"]})]}):jsxRuntime.jsx("div",{className:c(),children:jsxRuntime.jsxs("svg",{className:`${p()} ${d()}`,fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),P=()=>{switch(a){case"top":return "flex-col-reverse";case"left":return "flex-row-reverse";case"right":return "flex-row";default:return "flex-col"}},$=()=>{switch(e){case"xs":case"sm":return "text-xs";case"lg":return "text-base";case"xl":case"xxl":return "text-lg";default:return "text-sm"}},I=jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`inline-flex ${i?`items-center ${P()} space-y-1 space-x-0 ${a==="left"||a==="right"?"space-y-0 space-x-2":""}`:""}`,children:[V(),i&&jsxRuntime.jsx("span",{className:`${$()} text-gray-500 dark:text-gray-400`,children:i})]})});return l?jsxRuntime.jsx("div",{className:"fixed inset-0 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm flex items-center justify-center z-50",children:I}):jsxRuntime.jsx("div",{className:n,children:I})};Ue.displayName="Spinner";var Vr=Ue,Ir=({text:e="Carregando...",size:t="md",variant:r="default",color:n="primary",className:o="",textPosition:i="right"})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsx(Ue,{size:t,variant:r,color:n,text:e,textPosition:i})})});Ir.displayName="LoadingSpinner";var Jc=Ir,Hr=({isVisible:e,text:t="Carregando...",variant:r="default",size:n="lg",className:o=""})=>e?jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:`fixed inset-0 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm flex items-center justify-center z-50 ${o}`,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[jsxRuntime.jsx(Ue,{size:n,variant:r}),jsxRuntime.jsx("p",{className:"text-gray-500 dark:text-gray-400",children:t})]})})}):null;Hr.displayName="LoadingOverlay";var jc=Hr,$r=({size:e="sm",color:t="primary"})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:`${(()=>{switch(e){case"xs":return "w-3 h-3";case"md":return "w-5 h-5";default:return "w-4 h-4"}})()} ${t==="white"?"text-white":"text-current"}`,children:jsxRuntime.jsxs("svg",{className:"animate-spin",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})});$r.displayName="ButtonSpinner";var Zc=$r,Ar=({lines:e=3,className:t=""})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:`space-y-3 ${t}`,children:[...Array(e)].map((r,n)=>jsxRuntime.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",style:{width:n===e-1?"60%":"100%"}},n))})});Ar.displayName="ContentLoader";var Qc=Ar,Br=({width:e="100%",height:t="1rem",circle:r=!1,className:n=""})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx("div",{className:`bg-gray-200 dark:bg-gray-700 animate-pulse ${r?"rounded-full":"rounded"} ${n}`,style:{width:e,height:t}})});Br.displayName="Skeleton";var ed=Br;var Or=({children:e,type:t,className:r,overrideClassName:n=!1})=>{if(e)switch(t){case"loading":return jsxRuntime.jsxs("p",{className:n?r:g("text-sm text-muted-foreground flex items-center gap-2",r),children:[jsxRuntime.jsx(Vr,{size:"xs"}),e]});case"error":return jsxRuntime.jsx("p",{className:n?r:g("text-sm text-red-600 dark:text-red-400",r),children:e});case"warning":return jsxRuntime.jsx("p",{className:n?r:g("text-sm text-yellow-600 dark:text-yellow-400",r),children:e});case"success":return jsxRuntime.jsx("p",{className:n?r:g("text-sm text-green-600 dark:text-green-400",r),children:e});case"info":return jsxRuntime.jsx("p",{className:n?r:g("text-sm text-blue-600 dark:text-blue-400",r),children:e});case"helper":return jsxRuntime.jsx("p",{className:n?r:g("text-sm text-muted-foreground",r),children:e});default:return null}};Or.displayName="FieldFeedback";var We=Or;var Uo=({children:e,before:t,after:r,className:n})=>{let i=zo__default.default("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsxRuntime.jsx("div",{className:i,children:jsxRuntime.jsx("span",{children:e})})},ut=Uo;var Wo=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),Ur=Wo;var qo=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),qr=qo;function Yr(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 Kr(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=a,e}function _r(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 Xr(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 Jr(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 jr(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 Zr(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 Qr(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 Yo=({e,mask:t})=>{switch(t){case"money":return Kr(e);case"mobile":return Xr(e);case"phone":return Jr(e);case"cpfCnpj":return jr(e);case"cpf":return _r(e);case"rg":return Zr(e);case"cnpj":return Qr(e);case"cep":return Yr(e);default:return e}},en=Yo;var Xo=({mask:e,initialValue:t=""})=>{let[r,n]=qn.useState(t);qn.useEffect(()=>{t!==r&&n(t);},[t]);let o=qn.useCallback(a=>{let s=en({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;n(s);},[e]),i=qn.useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:i}},rn=Xo;var nn=qn.forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:i,addonBefore:a,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:m,ClearEnabled:u=!0,className:c,overrideClassName:d=!1,error:p,helperText:w,value:y=void 0,onChange:b,...v},E)=>{let D=qn.useId(),{handleChange:V,handleClear:P,setValue:$}=rn({mask:r,initialValue:y}),I=g("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",p&&"border-destructive focus-visible:ring-destructive",!o&&!i&&"px-3",o&&!i&&"pl-10 pr-3",i&&!o&&"pl-3 pr-10",o&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",c),S=N=>{V(N),b?.(N);},k=()=>{P(),$(""),b?.({target:{name:n||"",value:""}});};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(F,{htmlFor:D,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative flex",children:[a&&jsxRuntime.jsx(ut,{before:!0,className:l,children:a}),jsxRuntime.jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsxRuntime.jsx(Ur,{children:o}),jsxRuntime.jsx("input",{id:D,ref:E,name:n,onChange:S,className:d?c:I,...v}),u&&y&&jsxRuntime.jsx(Ge,{onClick:k,width:12,height:12,className:g("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsxRuntime.jsx(qr,{children:i})]}),s&&jsxRuntime.jsx(ut,{after:!0,className:m,children:s})]}),p&&jsxRuntime.jsx(G,{children:p}),!p&&w&&jsxRuntime.jsx(O,{children:w})]})})});nn.displayName="Input";var Ed=nn;var an=qn.forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:i=!1,helperText:a,error:l,onChange:s,onBlur:m,className:u,charType:c="numeric",customPattern:d,caseMode:p="none",...w},y)=>{let b=qn.useId(),v=qn.useRef([]),E=x=>{switch(p){case"upper":return x.toUpperCase();case"lower":case"visual-upper":return x.toLowerCase();case"visual-lower":return x.toUpperCase();default:return x}},D=x=>{if(!x)return "";let h=x.slice(0,1);switch(h=E(h),c){case"numeric":return /\d/.test(h)?h:"";case"alpha":return /[A-Za-z]/.test(h)?h:"";case"alphanumeric":return /[A-Za-z0-9]/.test(h)?h:"";case"custom":return d?.test(h)?h:"";default:return h}},V=()=>(r!=null?String(r):"").split("").map(D).slice(0,e),P=V().concat(Array(e).fill(" ")).slice(0,e),$=x=>{let h=x.split("").map(D).join("").slice(0,e),M=h===""?void 0:typeof r=="number"?Number(h):h;s?.({target:{name:n,value:M}});},I=(x,h)=>{let M=D(h),H=V();if(M===""){H[x]="",$(H.join(""));return}if(h.length>1){let A=h.split("").map(D).join("").slice(0,e);$(A),v.current[Math.min(A.length-1,e-1)]?.focus();return}M&&(H[x]=M,$(H.join("")),x<e-1&&v.current[x+1]?.focus());},S=x=>{let h=V();!h[x]&&x>0?h[x-1]="":h[x]="",$(h.join("")),x>0&&v.current[x-1]?.focus();},k=x=>{x.preventDefault();let M=x.clipboardData.getData("text").split("").map(D).join("").slice(0,e);M&&($(M),v.current[Math.min(M.length-1,e-1)]?.focus());},N=x=>{switch(p){case"upper":case"visual-upper":return x.toUpperCase();case"lower":case"visual-lower":return x.toLowerCase();default:return x}};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsxRuntime.jsx(F,{htmlFor:b,required:i,children:o}),jsxRuntime.jsx("div",{className:g("flex gap-3 items-center",l&&"text-red-500",u),...w,children:P.map((x,h)=>{let M=t&&h>0&&h%t===0;return jsxRuntime.jsxs(qn__default.default.Fragment,{children:[M&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsxRuntime.jsx("input",{id:b,type:"text",maxLength:1,inputMode:c==="numeric"?"numeric":"text",value:N(x).trim(),ref:H=>{v.current[h]=H,h===0&&y&&(typeof y=="function"?y(H):typeof y=="object"&&(y.current=H));},onPaste:k,onChange:H=>I(h,H.target.value),onKeyDown:H=>H.key==="Backspace"&&S(h),onBlur:m,className:g("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l&&"border-red-500")})]},h)})}),l&&jsxRuntime.jsx(G,{children:l}),!l&&a&&jsxRuntime.jsx(O,{children:a})]})})});an.displayName="OtpInput";var Od=an;var sn=qn.forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:i,overrideClassName:a,helperText:l,error:s,...m},u)=>{let c=qn.useId(),d=g("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",i);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[e&&jsxRuntime.jsx(F,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{id:c,type:"radio",className:a?i:d,ref:u,...m}),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(F,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsxRuntime.jsx(F,{id:`${c}-description`,htmlFor:c,className:"text-xs text-muted-foreground",children:n})]})]})]}),s&&jsxRuntime.jsx(G,{children:s}),!s&&l&&jsxRuntime.jsx(O,{children:l})]})})});sn.displayName="Radio";var Xd=sn;function ia(e,t){let{label:r,required:n,name:o,labelKey:i,valueKey:a,options:l,alignment:s="vertical",className:m,overrideClassName:u=!1,helperText:c,error:d,typeSet:p="field",value:w,onChange:y,...b}=e,v=qn.useId(),E=qn.useMemo(()=>new Map(l.map(I=>[String(I[a]),I])),[l,a]),D=qn.useMemo(()=>w==null?"":String(p==="field"?w:w[a]),[w,p,a]),V=I=>{if(!y)return;let S;if(p==="field"){let k=E.get(I);if(k)S=k[a];else {let N=Number(I);S=Number.isNaN(N)?I:N;}}else S=E.get(I)??void 0;y({target:{name:o,value:S,type:"radiogroup",checked:!0}});},P=s==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=g("h-4 w-4 rounded-full 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:g("flex flex-col gap-3",m),children:[r&&jsxRuntime.jsx(F,{required:n,children:r}),jsxRuntime.jsx("div",{className:P,children:l.map((I,S)=>{let k=String(I[a]),N=`${v}-${k}-${S}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...b,id:N,ref:t,name:o,type:"radio",checked:D===k,onChange:()=>V(k),className:u?m:$}),jsxRuntime.jsx(F,{htmlFor:N,children:String(I[i])})]},N)})}),d&&jsxRuntime.jsx(G,{children:String(d)}),!d&&c&&jsxRuntime.jsx(O,{children:c})]})})}function sa(){let e=qn.forwardRef(ia);return e.displayName="RadioGroup",e}var la=sa(),iu=la;var ca=["loading","error","warning","success","info","helper"],Ye=e=>{if(!e)return null;let t=ca.find(r=>e[r]);return t?{type:t,message:e[t]}:null};var dn=qn.forwardRef(({label:e,required:t,className:r,showValue:n=!1,min:o=0,max:i=100,step:a=1,value:l,overrideClassName:s,feedback:m,...u},c)=>{let d=qn.useId(),p=(Number(l)-Number(o))/(Number(i)-Number(o))*100,w=Ye(m),y=g("w-full h-2 bg-secondary rounded-lg appearance-none cursor-pointer slider","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",r);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[(e||n)&&jsxRuntime.jsxs("div",{className:"flex justify-between items-center",children:[e&&jsxRuntime.jsx(F,{htmlFor:d,required:t,children:e}),n&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:"range",id:d,ref:c,min:o,max:i,step:a,value:l,className:s?r:y,style:{background:`linear-gradient(to right, hsl(var(--primary)) 0%, hsl(var(--primary)) ${p}%, hsl(var(--secondary)) ${p}%, hsl(var(--secondary)) 100%)`},...u}),w&&jsxRuntime.jsx(We,{type:w.type,children:w.message})]})]})})});dn.displayName="Range";var vu=dn;var pa=({value:e,defaultValue:t,onChange:r})=>{let[n,o]=qn.useState(t),i=e!==void 0;return [i?e:n??t,s=>{i||o(s),r?.(s);}]},un=pa;var pn=qn.forwardRef(({min:e=0,max:t=100,step:r=1,value:n,defaultValue:o=[e,t],onChange:i,disabled:a,label:l,showValues:s=!0,className:m="",feedback:u,required:c},d)=>{let p=qn.useId(),w=qn.useRef(null),y=qn.useRef(null),b=Ye(u),[v,E]=un({value:n,defaultValue:o,onChange:P=>i?.({target:{value:P}})}),D=P=>(P-e)/(t-e)*100,V=qn.useCallback(P=>{if(!w.current||!y.current||a)return;let $=w.current.getBoundingClientRect(),I=Math.min(100,Math.max(0,(P-$.left)/$.width*100)),S=e+I/100*(t-e),k=Math.round(S/r)*r,N=[...v];y.current==="min"?N[0]=Math.min(k,v[1]):N[1]=Math.max(k,v[0]),E(N);},[v,e,t,r,E,a]);return qn.useEffect(()=>{let P=I=>V(I.clientX),$=()=>y.current=null;return document.addEventListener("mousemove",P),document.addEventListener("mouseup",$),()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",$);}},[V]),jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{ref:d,className:`space-y-2 ${m}`,children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between",children:[jsxRuntime.jsx(F,{htmlFor:p,required:c,children:l}),s&&jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:[v[0]," \u2013 ",v[1]]})]}),jsxRuntime.jsxs("div",{ref:w,className:"relative h-2 bg-secondary rounded-full",children:[jsxRuntime.jsx("div",{className:"absolute h-2 bg-primary rounded-full",style:{left:`${D(v[0])}%`,width:`${D(v[1])-D(v[0])}%`}}),["min","max"].map(P=>jsxRuntime.jsx("div",{onMouseDown:()=>y.current=P,className:`absolute w-5 h-5 bg-background border-2 border-primary rounded-full\r
51
- top-1/2 -translate-y-1/2 -translate-x-1/2 cursor-pointer`,style:{left:`${D(P==="min"?v[0]:v[1])}%`}},P))]}),b&&jsxRuntime.jsx(We,{type:b.type,children:b.message})]})})});pn.displayName="RangeSlider";var Ru=pn;function ya({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:i,error:a,helperText:l,className:s,...m},u){let c=qn.useId(),d=g("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",s);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(F,{htmlFor:c,required:t,children:e}),jsxRuntime.jsxs("select",{id:c,ref:u,className:d,...m,children:[i&&jsxRuntime.jsx("option",{value:"",disabled:!0,children:i}),r.map((p,w)=>jsxRuntime.jsx("option",{value:String(p[o]),children:String(p[n])},w))]}),a&&jsxRuntime.jsx(G,{children:a}),!a&&l&&jsxRuntime.jsx(O,{children:l})]})})}function wa(){let e=qn.forwardRef(ya);return e.displayName="Select",e}var Ca=wa(),Bu=Ca;var gn=qn.forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:i=!1,className:a,overrideClassName:l,error:s,name:m,...u},c)=>{let d=qn.useId();return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsxRuntime.jsx(F,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{type:"checkbox",id:d,name:m,checked:i,className:"peer sr-only",ref:c,...u}),jsxRuntime.jsx("label",{htmlFor:d,className:g("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",a),children:jsxRuntime.jsx("span",{className:g("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",i?"translate-x-5":"translate-x-1")})}),jsxRuntime.jsx("span",{children:o&&o}),(r||n)&&jsxRuntime.jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsxRuntime.jsx(F,{id:`${d}-label`,htmlFor:d,className:"text-sm font-medium leading-none",children:r}),n&&jsxRuntime.jsx(F,{id:`${d}-description`,htmlFor:d,className:"text-xs text-muted-foreground",children:n})]})]})]})})});gn.displayName="Switch";var Ku=gn;var bn=qn__default.default.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:i=!1,error:a,helperText:l,...s},m)=>{let u=qn.useId(),[c,d]=qn.useState(0),p=g("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",o);return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(F,{htmlFor:u,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("textarea",{id:u,className:i?o:p,maxLength:n,onInput:w=>d(w.currentTarget.textLength),ref:m,...s}),r&&jsxRuntime.jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[c,n?` / ${n}`:""]})]}),a&&jsxRuntime.jsx(G,{children:a}),!a&&l&&jsxRuntime.jsx(O,{children:l})]})})});bn.displayName="TextArea";var rm=bn;var xn=qn.createContext(void 0),lm=()=>{let e=qn.useContext(xn);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},cm=({children:e})=>jsxRuntime.jsx(f,{children:jsxRuntime.jsx(Fa,{children:e})}),Fa=({children:e})=>{let[t,r]=qn.useState([]),n=qn.useCallback(a=>{r(l=>l.filter(s=>s.id!==a));},[]),o=qn.useCallback(a=>{let l=crypto.randomUUID(),s={...a,id:l};r(m=>[...m,s]),a.duration!==0&&setTimeout(()=>{n(l);},a.duration??5e3);},[n]),i=qn.useMemo(()=>({toasts:t,addToast:o,removeToast:n}),[t,o,n]);return jsxRuntime.jsxs(xn.Provider,{value:i,children:[e,jsxRuntime.jsx(Sa,{toasts:t,onRemove:n})]})},Sa=({toasts:e,onRemove:t})=>jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-50 flex flex-col gap-2",children:e.map(r=>jsxRuntime.jsx(hn,{toast:r,onRemove:t},r.id))}),hn=({toast:e,onRemove:t})=>jsxRuntime.jsx("div",{className:`min-w-80 max-w-md p-4 border rounded-md shadow-lg animate-in slide-in-from-right-full ${{default:"bg-white border-gray-200 text-gray-900 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100",success:"bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800 dark:text-green-200",warning:"bg-yellow-50 border-yellow-200 text-yellow-800 dark:bg-yellow-900/20 dark:border-yellow-800 dark:text-yellow-200",destructive:"bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800 dark:text-red-200"}[e.variant??"default"]}`,children:jsxRuntime.jsxs("div",{className:"flex items-start justify-between",children:[jsxRuntime.jsxs("div",{className:"flex-1",children:[e.title&&jsxRuntime.jsx("h4",{className:"font-medium mb-1",children:e.title}),jsxRuntime.jsx("p",{className:"text-sm",children:e.description})]}),jsxRuntime.jsx("button",{onClick:()=>t(e.id),className:"ml-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:jsxRuntime.jsx("svg",{className:"w-4 h-4",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"})})})]})});hn.displayName="ToastItem";var wn=({children:e,content:t,position:r="top",className:n,overrideClassName:o=!1})=>{let i={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},a={top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-gray-900",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-gray-900",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-gray-900",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-gray-900"};return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:"relative inline-block group",children:[jsxRuntime.jsx("div",{children:e}),jsxRuntime.jsxs("div",{className:o?n:g("absolute z-50 px-2 py-1 text-xs text-white bg-gray-900 rounded shadow-lg whitespace-nowrap","opacity-0 scale-95 pointer-events-none transition-all duration-150","group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto","group-focus-within:opacity-100 group-focus-within:scale-100 group-focus-within:pointer-events-auto",i[r],n),children:[t,jsxRuntime.jsx("div",{className:g("absolute w-0 h-0 border-4",a[r])})]})]})})};wn.displayName="Tooltip";var fm=wn;var Va=({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}`))}),Cn=Va;var Ia=({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`]})]})]}),kn=Ia;var Nn=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=i=>i})=>{let i=qn.useRef(null),[a,l]=qn.useState(!1),s=qn.useCallback(d=>{d.preventDefault(),!n&&l(!0);},[n]),m=qn.useCallback(()=>{l(!1);},[]),u=qn.useCallback(d=>{if(d.preventDefault(),n||!i.current)return;l(!1);let p=Array.from(d.dataTransfer.files);if(!r&&!e||!r&&p.length>1)return;let w=o(p),y=r?w:w.slice(0,1);t(y);let b=new DataTransfer;y.forEach(v=>b.items.add(v)),i.current.files=b.files,i.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),c=qn.useCallback(()=>{t([]),i.current&&(i.current.value="");},[]);return {files:e,setFiles:t,clearFiles:c,inputRef:i,isDragOver:a,setIsDragOver:l,handleDrop:u,handleDragOver:s,handleDragLeave:m}};var Pn=({files:e,setFiles:t,inputRef:r})=>({removeFile:qn.useCallback(o=>{if(!r.current)return;let i=e?.filter((l,s)=>s!==o);t(i);let a=new DataTransfer;i?.forEach(l=>a.items.add(l)),r.current.files=a.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var Oa=({previews:e,onRemove:t})=>{let[r,n]=qn.useState(0),o=()=>n(a=>a===0?e?.length-1:a-1),i=()=>n(a=>a===e?.length-1?0:a+1);return jsxRuntime.jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsxRuntime.jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsxRuntime.jsx("button",{type:"button",onClick:i,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},Ln=Oa;var Dn=qn.forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:i=!1,maxSize:a=10,disabled:l=!1,error:s=!1,helperText:m,className:u,name:c,onChange:d,onBlur:p,...w},y)=>{let b=qn.useId(),[v,E]=qn.useState([]),D=1024*1024,V=A=>A.filter(j=>(!a||j.size<=a*D)&&(!r||j.type.match(r))),{inputRef:P,isDragOver:$,handleDrop:I,handleDragOver:S,handleDragLeave:k}=Nn({files:v,setFiles:E,multiple:i,filterFiles:V}),{removeFile:N}=Pn({files:v,setFiles:E,inputRef:P}),x=A=>{P.current=A,typeof y=="function"?y(A):y&&(y.current=A);},h=A=>{let j=Array.from(A.target.files??[]);if(!j.length)return;let re=V(j);E(i?re:re.slice(0,1)),d?.(A);},M=qn.useMemo(()=>!o||!v||!v.length?[]:v.filter(A=>A.type.startsWith("image/")).map(A=>({file:A,url:URL.createObjectURL(A)})),[v,o]);qn.useEffect(()=>()=>M.forEach(A=>URL.revokeObjectURL(A.url)),[M]);let H=o&&M.length>0;return jsxRuntime.jsx(f,{children:jsxRuntime.jsxs("div",{className:`space-y-2 ${u}`,children:[e&&jsxRuntime.jsx(F,{htmlFor:b,required:t,children:e}),jsxRuntime.jsxs("div",{onDrop:I,onDragOver:S,onDragLeave:k,onClick:()=>{!l&&!H&&P.current?.click();},className:`
52
- border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
53
- transition-colors
54
- ${$?"border-primary bg-primary/5":"border-border"}
55
- ${s?"border-red-500":""}
56
- ${l?"opacity-50 cursor-not-allowed":"hover:border-primary"}
57
- `,children:[jsxRuntime.jsx("input",{ref:x,id:b,name:c,type:"file",accept:r,multiple:i,disabled:l,onChange:h,onBlur:p,className:"hidden",...w}),o&&M.length>0?jsxRuntime.jsx(Ln,{previews:M,onRemove:N}):jsxRuntime.jsx(kn,{accept:r,maxSize:a})]}),n?n({files:v,removeFile:N}):v&&v.length>0&&jsxRuntime.jsx(Cn,{files:v,removeFile:N}),s&&jsxRuntime.jsx(G,{children:s}),!s&&m&&jsxRuntime.jsx(O,{children:m})]})})});Dn.displayName="UploadFile";var Om=Dn;
58
-
59
- exports.AccordionPrimitive = pi;
60
- exports.AlertDescriptionPrimitive = Pi;
61
- exports.AlertPrimitive = ki;
62
- exports.AlertTitlePrimitive = Ni;
63
- exports.AvatarPrimitive = Es;
64
- exports.BadgePrimitive = Fi;
65
- exports.BreadcrumbPrimitive = $i;
66
- exports.ButtonPrimitive = Ui;
67
- exports.ButtonSpinnerPrimitive = Zc;
68
- exports.CardContentPrimitive = es;
69
- exports.CardDescriptionPrimitive = Qi;
70
- exports.CardFooterPrimitive = ts;
71
- exports.CardHeaderPrimitive = ji;
72
- exports.CardPrimitive = Ji;
73
- exports.CardTitlePrimitive = Zi;
74
- exports.CheckBoxGroupPrimitive = cl;
75
- exports.CheckBoxPrimitive = Zs;
76
- exports.ColorPicker = pr;
77
- exports.ColorPickerPrimitive = vl;
78
- exports.ComboBoxPrimitive = Yl;
79
- exports.ContentLoaderPrimitive = Qc;
80
- exports.DatePickerPrimitive = qc;
81
- exports.DialogContentPrimitive = us;
82
- exports.DialogFooterPrimitive = ms;
83
- exports.DialogHeaderPrimitive = cs;
84
- exports.DialogPrimitive = ls;
85
- exports.DialogTitlePrimitive = ds;
86
- exports.DropdownMenuContentPrimitive = ws;
87
- exports.DropdownMenuItemPrimitive = Cs;
88
- exports.DropdownMenuLabelPrimitive = Ns;
89
- exports.DropdownMenuPrimitive = hs;
90
- exports.DropdownMenuSeparatorPrimitive = ks;
91
- exports.DropdownMenuTriggerPrimitive = ys;
92
- exports.FieldFeedbackPrimitive = We;
93
- exports.HelperFieldPrimitive = O;
94
- exports.InputPrimitive = Ed;
95
- exports.LabelPrimitive = F;
96
- exports.LicenseProvider = Vn;
97
- exports.LoadingOverlayPrimitive = jc;
98
- exports.LoadingSpinnerPrimitive = Jc;
99
- exports.OtpInputPrimitive = Od;
100
- exports.RadioGroupPrimitive = iu;
101
- exports.RadioPrimitive = Xd;
102
- exports.RangePrimitive = vu;
103
- exports.RangeSliderPrimitive = Ru;
104
- exports.SelectPrimitive = Bu;
105
- exports.SkeletonPrimitive = ed;
106
- exports.SpinnerPrimitive = Vr;
107
- exports.SwitchPrimitive = Ku;
108
- exports.TextAreaPrimitive = rm;
109
- exports.ToastProvider = cm;
110
- exports.TooltipPrimitive = fm;
111
- exports.UploadFilePrimitive = Om;
112
- exports.ValidateFieldPrimitive = G;
113
- exports.useToast = lm;
package/dist/page.mjs DELETED
@@ -1,52 +0,0 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import qn, { createContext, forwardRef, useEffect, useState, useContext, useRef, useId, useCallback, useMemo, cloneElement, useImperativeHandle } from 'react';
3
- import zo, { clsx } from 'clsx';
4
- import { twMerge } from 'tailwind-merge';
5
-
6
- var kt=({title:e="Ocorreu um erro",message:t,description:r="Algo deu errado ao carregar esta p\xE1gina.",badge:n="Erro",actions:o})=>jsx("div",{className:"flex min-h-screen w-full items-center justify-center bg-linear-to-br from-red-50 via-rose-50 to-red-100 px-4 dark:from-red-950 dark:via-zinc-950 dark:to-red-900/30",children:jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-white/90 p-8 text-center shadow-2xl backdrop-blur animate-in fade-in zoom-in-95 dark:bg-zinc-900/90",children:[jsx("div",{className:"pointer-events-none absolute inset-0 rounded-2xl ring-1 ring-red-200 dark:ring-red-800"}),n&&jsx("span",{className:"mb-6 inline-block rounded-full bg-red-100 px-4 py-1 text-xs font-semibold text-red-700 dark:bg-red-900/40 dark:text-red-300",children:n}),jsx("div",{className:"mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-linear-to-tr from-red-200 to-red-100 text-red-600 shadow-inner dark:from-red-900/40 dark:to-red-800/40 dark:text-red-400",children:jsxs("svg",{className:"h-9 w-9 animate-pulse",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[jsx("path",{d:"M12 9v4"}),jsx("path",{d:"M12 17h.01"}),jsx("path",{d:"M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"})]})}),jsx("h1",{className:"mb-2 text-2xl font-extrabold text-zinc-900 dark:text-zinc-100",children:e}),jsx("p",{className:"mb-2 text-sm font-medium text-red-600 dark:text-red-400",children:t}),r&&jsx("p",{className:"mb-6 text-sm text-zinc-600 dark:text-zinc-400",children:r}),o&&o.length>0&&jsx("div",{className:"flex flex-col gap-3",children:o.map((i,a)=>{let l=i.variant!=="secondary";return jsx("button",{onClick:i.onClick,className:l?"rounded-xl bg-linear-to-r from-red-600 to-red-700 px-5 py-2.5 text-sm font-semibold text-white shadow-lg transition hover:scale-[1.02] hover:shadow-red-600/40 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-zinc-900":"rounded-xl border border-zinc-200 px-5 py-2.5 text-sm font-semibold text-zinc-700 transition hover:bg-zinc-100 dark:border-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-800",children:i.label},a)})})]})});var Nt=(e,t)=>{let r="Problema com licen\xE7a da aplica\xE7\xE3o",n=`
7
- Ol\xE1,
8
-
9
- Estou enfrentando um problema com a licen\xE7a da aplica\xE7\xE3o.
10
-
11
- Erro:
12
- ${t??"Licen\xE7a inv\xE1lida"}
13
-
14
- Aguardo retorno.
15
- `,o=`mailto:${e}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(n)}`;window.location.href=o;};var Pt=(e,t)=>{let r=`
16
- Ol\xE1! Estou com um problema de licen\xE7a na aplica\xE7\xE3o.
17
-
18
- Erro:
19
- ${t??"Licen\xE7a inv\xE1lida"}
20
-
21
- Pode me ajudar?
22
- `,n=`https://wa.me/${e}?text=${encodeURIComponent(r)}`;window.open(n,"_blank");};var Lt=createContext(void 0),Vn=({children:e,licenseKey:t})=>{let[r,n]=useState(!1),[o,i]=useState(null),[a,l]=useState(!0),s=m=>{if(i(null),!m)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let u="chave-secreta-123";if(m!==u)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");n(!0);};return useEffect(()=>{if(t){l(!0);try{s(t);}catch(m){i(m instanceof Error?m.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),a?null:jsx(Lt.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:o},children:r?e:jsx(kt,{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:()=>Pt("5544998204407",o)},{label:"Enviar e-mail",variant:"secondary",onClick:()=>Nt("marcos.vinicius.engsof@gmail.com",o)}]})})},Rt=()=>{let e=useContext(Lt);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var Mt=({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}=Rt();return t?jsx(Fragment,{children:e}):jsx(Mt,{})};var St=({items:e,type:t="single",defaultValue:r,value:n,onValueChange:o,className:i=""})=>{let a=u=>u===void 0?[]:Array.isArray(u)?u:[u],[l,s]=useState(a(n??r));useEffect(()=>{n!==void 0&&s(a(n));},[n]);let m=useCallback(u=>{s(c=>{let d;return t==="single"?d=c.includes(u)?[]:[u]:d=c.includes(u)?c.filter(p=>p!==u):[...c,u],o?.(t==="single"?d[0]??"":d),d});},[t,o]);return jsx("div",{className:`space-y-2 ${i}`,children:e.map(u=>jsx(On,{...u,isOpen:l.includes(u.id),onToggle:()=>m(u.id)},u.id))})},On=({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
- ${r?"opacity-50 cursor-not-allowed":"hover:bg-accent hover:text-accent-foreground"}
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})]})});St.displayName="Accordion";var pi=St;function g(...e){return twMerge(clsx(e))}var Vt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("h5",{ref:o,className:t?e:g("mb-1 font-medium leading-none tracking-tight",e),...n,children:r})}));Vt.displayName="AlertTitle";var It=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:g("text-sm [&_p]:leading-relaxed",e),...n,children:r})}));It.displayName="AlertDescription";var Ht=forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsx(f,{children:jsx("div",{ref:i,role:"alert",className:t?e:g("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:-translate-y-0.75 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{default:"bg-background text-foreground border-border",destructive:"border-red-500/50 text-red-700 dark:text-red-400 bg-red-50 dark:bg-red-950/50 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",warning:"border-yellow-500/50 text-yellow-700 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-950/50 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-400",success:"border-green-500/50 text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/50 [&>svg]:text-green-600 dark:[&>svg]:text-green-400"}[r],e),...o,children:n})}));Ht.displayName="Alert";var ki=Ht,Ni=Vt,Pi=It;var At=forwardRef(({className:e,overrideClassName:t=!1,variant:r="default",children:n,...o},i)=>jsx(f,{children:jsx("div",{ref:i,className:t?e:g("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})}));At.displayName="Badge";var Fi=At;var Bt=({items:e,separator:t="/",overrideClassName:r,className:n})=>jsx(f,{children:jsx("nav",{"aria-label":"Breadcrumb",className:r?n:g("flex",n),children:jsx("ol",{className:"flex items-center space-x-2",children:e.map((o,i)=>jsxs("li",{className:"flex items-center",children:[i>0&&jsx("span",{className:"mx-2 text-muted-foreground",children:t}),o.href&&!o.current?jsx("a",{href:o.href,className:"text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:o.label}):jsx("span",{className:g("text-sm font-medium",o.current?"text-foreground":"text-muted-foreground"),"aria-current":o.current?"page":void 0,children:o.label})]},i))})})});Bt.displayName="Breadcrumb";var $i=Bt;var Ot=qn.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:n="md",href:o,children:i,loading:a=!1,loadingContent:l,...s},m)=>{let u="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",c={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},d={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"},p=t?e:g(u,c[r],d[n],e);return o?jsx(f,{children:jsx("a",{href:o,className:p,ref:m,children:a&&l?l:i})}):jsx(f,{children:jsx("button",{className:p,ref:m,...s,children:a&&l?l:i})})});Ot.displayName="Button";var Ui=Ot;var Gt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:g("rounded-lg border bg-card text-card-foreground shadow-sm",e),...n,children:r})}));Gt.displayName="Card";var zt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:g("flex flex-col space-y-1.5 p-6",e),...n,children:r})}));zt.displayName="CardHeader";var Ut=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("h3",{ref:o,className:t?e:g("text-2xl font-semibold leading-none tracking-tight",e),...n,children:r})}));Ut.displayName="CardTitle";var Wt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("p",{ref:o,className:t?e:g("text-sm text-muted-foreground",e),...n,children:r})}));Wt.displayName="CardDescription";var qt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:g("p-6 pt-0",e),...n,children:r})}));qt.displayName="CardContent";var Yt=forwardRef(({className:e,overrideClassName:t=!1,children:r,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:t?e:g("flex items-center p-6 pt-0",e),...n,children:r})}));Yt.displayName="CardFooter";var Ji=Gt,ji=zt,Zi=Ut,Qi=Wt,es=qt,ts=Yt;var _t=forwardRef(({children:e,isOpen:t,onClose:r,size:n="md",className:o,overrideClassName:i=!1,...a},l)=>(useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset";}),[t]),useEffect(()=>{let m=u=>{u.key==="Escape"&&r();};return t&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,r]),t?jsx(f,{children:jsxs("div",{ref:l,className:"fixed inset-0 z-50 flex items-center justify-center",...a,children:[jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm",onClick:r}),jsx("div",{className:i?o:g("relative bg-background border border-border rounded-lg shadow-lg w-full mx-4",{sm:"max-w-md",md:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl"}[n],o),children:e})]})}):null));_t.displayName="Dialog";var Xt=forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:r?t:g("px-6 py-4 border-b border-border",t),...n,children:e})}));Xt.displayName="DialogHeader";var Jt=forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsx(f,{children:jsx("h2",{ref:o,className:r?t:g("text-lg font-semibold text-foreground",t),...n,children:e})}));Jt.displayName="DialogTitle";var jt=forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:r?t:g("px-6 py-4",t),...n,children:e})}));jt.displayName="DialogContent";var Zt=forwardRef(({children:e,className:t,overrideClassName:r=!1,...n},o)=>jsx(f,{children:jsx("div",{ref:o,className:r?t:g("px-6 py-4 border-t border-border flex justify-end space-x-2",t),...n,children:e})}));Zt.displayName="DialogFooter";var ls=_t,cs=Xt,ds=Jt,us=jt,ms=Zt;var Ae=createContext(void 0),er=forwardRef(({children:e,className:t,...r},n)=>{let[o,i]=useState(!1);return jsx(f,{children:jsx(Ae.Provider,{value:{isOpen:o,setIsOpen:i},children:jsx("div",{ref:n,className:g("relative inline-block",t),...r,children:e})})})});er.displayName="DropdownMenu";var tr=({children:e,asChild:t})=>{let r=useContext(Ae);if(!r)throw new Error("DropdownMenuTrigger must be used within DropdownMenu");let n=()=>r.setIsOpen(!r.isOpen);if(t){let o=e;return cloneElement(o,{onClick:i=>{o.props.onClick?.(i),n();}})}return jsx(f,{children:jsx("button",{onClick:n,children:e})})};tr.displayName="DropdownMenuTrigger";var rr=forwardRef(({children:e,align:t="end",className:r,...n},o)=>{let i=useContext(Ae),a=useRef(null);return useEffect(()=>{o&&(typeof o=="function"?o(a.current):o.current=a.current);},[o]),useEffect(()=>{let s=m=>{a.current&&!a.current.contains(m.target)&&i?.setIsOpen(!1);};return i?.isOpen&&document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s);}},[i?.isOpen]),i?.isOpen?jsx(f,{children:jsx("div",{ref:a,className:g("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});rr.displayName="DropdownMenuContent";var nr=forwardRef(({children:e,onClick:t,destructive:r,className:n,...o},i)=>{let a=useContext(Ae);return jsx(f,{children:jsx("button",{ref:i,onClick:s=>{t?.(s),a?.setIsOpen(!1);},className:g("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})})});nr.displayName="DropdownMenuItem";var or=forwardRef(({className:e,...t},r)=>jsx(f,{children:jsx("div",{ref:r,className:g("-mx-1 my-1 h-px bg-border",e),...t})}));or.displayName="DropdownMenuSeparator";var ar=forwardRef(({children:e,className:t,...r},n)=>jsx(f,{children:jsx("div",{ref:n,className:g("px-2 py-1.5 text-sm font-semibold",t),...r,children:e})}));ar.displayName="DropdownMenuLabel";var hs=er,ys=tr,ws=rr,Cs=nr,ks=or,Ns=ar;var ir=({src:e,alt:t="",fallback:r,size:n="md",className:o})=>{let[i,a]=useState(!1),l={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-lg"},s=m=>m.split(" ").map(u=>u.charAt(0)).join("").toUpperCase().slice(0,2);return jsx(f,{children:jsx("div",{className:g("relative flex shrink-0 overflow-hidden rounded-full bg-muted",l[n],o),children:e&&!i?jsx("img",{src:e||"/placeholder.svg",alt:t,className:"aspect-square h-full w-full object-cover",onError:()=>a(!0)}):jsx("div",{className:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground",children:r?s(r):"?"})})})};ir.displayName="Avatar";var Es=ir;var Zn=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(f,{children:jsx("p",{className:r?t:g("text-sm text-muted-foreground",t),children:e})})},O=Zn;var Qn=({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:g("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:"*"})]})}),F=Qn;var to=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx(f,{children:jsx("p",{className:r?t:g("text-sm text-red-600 dark:text-red-400",t),children:e})})},G=to;var cr=forwardRef(({label:e,required:t,option:r,description:n,icon:o,orientation:i="left",className:a,overrideClassName:l=!1,helperText:s,error:m,...u},c)=>{let d=useId(),p=g("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",m&&"border-destructive",a);return jsx(f,{children:jsxs("div",{className:"space-y-2 w-fit",children:[e&&jsx(F,{required:t,children:e}),jsxs("div",{className:`flex items-center ${i=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsx("input",{id:d,type:"checkbox",className:l?a:p,ref:c,...u}),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(F,{htmlFor:d,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(F,{id:`${d}-description`,htmlFor:d,className:"text-xs text-muted-foreground",children:n})]})]})]}),m&&jsx(G,{children:m}),!m&&s&&jsx(O,{children:s})]})})});cr.displayName="CheckBox";var Zs=cr;function io(e,t){let{typeSet:r="field",multiCheck:n=!1,value:o,onChange:i,labelKey:a,valueKey:l,options:s,alignment:m="vertical",className:u,overrideClassName:c=!1,helperText:d,error:p,label:w,name:y,required:b,...v}=e,E=useId(),D=useMemo(()=>new Map(s.map(k=>[String(k[l]),k])),[s,l]),V=useMemo(()=>o==null?[]:r==="field"?n?o.map(k=>String(k)):[String(o)]:n?o.map(k=>String(k[l])):[String(o[l])],[o,r,n,l]),P=(k,N)=>{if(!i)return;let x;if(r==="field")if(n)x=k.map(M=>{let H=D.get(M);return H?H[l]:M});else {let h=k[0];if(!h)x=void 0;else {let M=D.get(h);x=M?M[l]:h;}}else n?x=k.map(M=>D.get(M)).filter(M=>M!==void 0):x=D.get(k[0]??"")??void 0;i({target:{name:y,value:x,type:"checkboxgroup",checked:N}});},$=k=>{let N;n?N=V.includes(k)?V.filter(x=>x!==k):[...V,k]:N=V[0]===k?[]:[k],P(N,N.includes(k));},I=m==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",S=g("h-4 w-4 rounded 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:g("flex flex-col gap-3",u),children:[w&&jsx(F,{required:b,children:w}),jsx("div",{className:I,children:s.map((k,N)=>{let x=String(k[l]),h=V.includes(x),M=`${E}-${x}-${N}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...v,id:M,ref:t,type:"checkbox",name:y,checked:h,onChange:()=>$(x),className:c?u:S}),jsx(F,{htmlFor:M,children:String(k[a])})]},M)})}),!!p&&jsx(G,{children:String(p)}),!p&&d&&jsx(O,{children:d})]})})}function so(){let e=forwardRef(io);return e.displayName="CheckBoxGroup",e}var lo=so(),cl=lo;var po=["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#ffa500","#800080","#ffc0cb","#a52a2a","#808080","#000080","#008000"],pr=qn.forwardRef(({label:e,required:t,onChange:r,disabled:n=!1,presetColors:o=po,showPresets:i=!0,className:a,error:l,helperText:s,name:m},u)=>{let c=useId(),d=useRef(null),[p,w]=useState(!1),[y,b]=useState("COLOR"),[v,E]=useState("HEX"),[D,V]=useState("#000000"),[P,$]=useState(0),[I,S]=useState(0),[k,N]=useState(0),[x,h]=useState(1),[M,H]=useState("#000000"),[A,j]=useState("#ffffff"),[re,Ce]=useState(90),[R,T]=useState("linear-gradient(90deg, #000000, #ffffff)"),z=(L,U,De)=>Math.min(De,Math.max(U,L)),_=L=>{let U=L.replace("#","");return {r:parseInt(U.slice(0,2),16),g:parseInt(U.slice(2,4),16),b:parseInt(U.slice(4,6),16)}},W=L=>{r?.({target:{value:L,name:m}});};useEffect(()=>{let L=U=>{d.current&&!d.current.contains(U.target)&&w(!1);};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]),useEffect(()=>{if(/^#[0-9A-F]{6}$/i.test(D)){let L=_(D);$(L.r),S(L.g),N(L.b);}},[D]),useEffect(()=>{let L=`linear-gradient(${re}deg, ${M}, ${A})`;T(L),y==="GRADIENT"&&W(L);},[M,A,re]);let q=()=>{if(x>=1){if(v==="HEX")return D;if(v==="RGB")return `rgb(${P}, ${I}, ${k})`}return `rgba(${P}, ${I}, ${k}, ${Number(x.toFixed(2))})`},Z=y==="GRADIENT"?R:q();return jsx(f,{children:jsxs("div",{className:`space-y-2 ${a??""}`,children:[e&&jsx(F,{htmlFor:c,required:t,children:e}),jsxs("div",{ref:d,className:"relative",children:[jsxs("button",{type:"button",onClick:()=>!n&&w(!p),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})]}),p&&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(L=>jsx("button",{type:"button",onClick:()=>b(L),className:`px-2 py-1 text-xs rounded ${y===L?"bg-primary text-white":"border"}`,children:L==="COLOR"?"Cor":"Gradiente"},L))}),jsx("div",{className:"w-full h-10 rounded border",style:{background:Z}}),y==="COLOR"&&jsxs(Fragment,{children:[jsx("input",{ref:u,type:"color",value:D,onChange:L=>{V(L.target.value.toUpperCase()),W(q());},className:"w-full h-10 rounded"}),jsxs("div",{className:"flex gap-2 items-center",children:[jsxs("select",{value:v,onChange:L=>E(L.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:D,onChange:L=>{let U=L.target.value.toUpperCase().replace(/[^0-9A-F#]/g,"");U.startsWith("#")||(U="#"+U),U="#"+U.slice(1,7),V(U),/^#[0-9A-F]{6}$/.test(U)&&W(U);},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:P,s:$},{l:"G",v:I,s:S},{l:"B",v:k,s:N}].map(({l:L,v:U,s:De})=>jsxs("div",{className:"flex items-center gap-1",children:[jsx("span",{className:"text-xs font-semibold",children:L}),jsx("input",{type:"number",min:0,max:255,value:U,onChange:Mn=>{De(z(+Mn.target.value,0,255)),W(q());},className:"w-14 px-1 py-1 text-xs border rounded"})]},L))})]}),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:x,onChange:L=>{h(+L.target.value),W(q());},className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[Math.round(x*100),"%"]})]}),i&&jsx("div",{className:"grid grid-cols-5 gap-1",children:o.map(L=>jsx("button",{type:"button",onClick:()=>{V(L),h(1),W(L);},className:"w-8 h-8 rounded border",style:{background:L}},L))})]}),y==="GRADIENT"&&jsxs(Fragment,{children:[jsxs("div",{className:"flex gap-2 items-center",children:[jsx("input",{type:"color",value:M,onChange:L=>H(L.target.value)}),jsx("span",{className:"text-xs",children:"\u2192"}),jsx("input",{type:"color",value:A,onChange:L=>j(L.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:re,onChange:L=>Ce(+L.target.value),className:"flex-1"}),jsxs("span",{className:"text-xs w-10 text-right",children:[re,"\xB0"]})]})]})]})]}),l&&jsx(G,{children:l}),!l&&s&&jsx(O,{children:s})]})})});pr.displayName="ColorPicker";var vl=pr;var fo=({...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"})}),Ge=fo;var bo=(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]);},gr=bo;function tt({options:e,labelKey:t,valueKey:r,multiple:n,onChange:o,setSearchTerm:i,typeSet:a,name:l}){let[s,m]=useState([]),u=useMemo(()=>new Map(e.map(b=>[String(b[r]),b])),[e,r]),c=useCallback(()=>s.map(b=>u.get(b)).filter(b=>!!b),[s,u]),d=useCallback(b=>{if(!o)return;let v;if(a==="field"?n?v=b:v=b[0]??void 0:n?v=b.map(D=>u.get(D)).filter(D=>D!==void 0):v=u.get(b[0]??"")??void 0,i&&!n){let E=u.get(b[0]??"");E&&i(String(E[t]));}o({target:{name:l,value:v,type:"combobox"}});},[n,o,u,l,a,i,t]),p=useCallback(b=>{let v=String(b[r]),E=n?s.includes(v)?s.filter(D=>D!==v):[...s,v]:[v];m(E),d(E);},[n,s,d,r]),w=useCallback(b=>{let v=s.filter(E=>E!==b);m(v),d(v);},[s,d]),y=useCallback(()=>{m([]),i?.("");let b;a==="field"?b=n?[]:"":b=n?[]:void 0,o?.({target:{name:l,value:b,type:"combobox"}});},[n,o,l,i,a]);return {selectedValues:s,handleSelect:p,handleRemove:w,handleClear:y,getSelectedOptions:c}}function rt(e,t,r){return useMemo(()=>r?e.filter(o=>String(o[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var vr=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:n,setSearchTerm:o,selectedValues:i,filteredOptions:a,highlightedIndex:l,setHighlightedIndex:s,handleSelect:m,handleRemove:u})=>{let c=useCallback(p=>{if(a.length===0){s(-1);return}s(w=>w<0?p>0?0:a.length-1:(w+p+a.length)%a.length);},[a,s]);return useCallback(p=>{if(!e){if(p.key==="Enter"||p.key==="ArrowDown"){t(!0),s(0),p.preventDefault();return}r&&p.key==="Backspace"&&n===""&&i.length>0&&(p.preventDefault(),u(i[i.length-1]));return}switch(p.key){case"ArrowDown":p.preventDefault(),c(1);break;case"ArrowUp":p.preventDefault(),c(-1);break;case"Enter":p.preventDefault();let w=l>=0?l:0,y=a[w];y&&m(y),r&&o&&o(""),r||(t(!1),s(-1));break;case"Escape":p.preventDefault(),t(!1),s(-1),r||o("");break;case"Tab":t(!1),s(-1);break;case"Home":p.preventDefault(),a.length>0&&s(0);break;case"End":p.preventDefault(),a.length>0&&s(a.length-1);break;case"Backspace":r&&n===""&&i.length>0&&(p.preventDefault(),u(i[i.length-1]));break}},[e,r,n,i,a,l,t,o,s,m,u,c])};function xr({option:e,labelKey:t,valueKey:r,onRemove:n}){let o=String(e[t]),i=String(e[r]);return jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[o,jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>n(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${o}`,children:"\u2715"})]},i)}function Po(e,t){let{label:r,required:n=!1,name:o,placeholder:i="Buscar...",labelKey:a,valueKey:l,options:s,value:m,onChange:u,mode:c="single",typeSet:d="field",disabled:p=!1,ClearEnabled:w=!0,helperText:y,error:b=!1,className:v="",...E}=e,D=c==="multiple",[V,P]=useState(!1),[$,I]=useState(""),S=useRef(null),k=useRef(null),N=useRef(null);useImperativeHandle(t,()=>N.current),gr(k,()=>P(!1));let x=rt(s,a,$),[h,M]=useState(-1),{selectedValues:H,handleSelect:A,handleRemove:j,handleClear:re,getSelectedOptions:Ce}=tt({options:s,labelKey:a,valueKey:l,value:m,multiple:D,onChange:u,typeSet:d,name:o,setSearchTerm:I}),R=vr({isOpen:V,setIsOpen:P,multiple:D,searchTerm:$,setSearchTerm:I,selectedValues:H,filteredOptions:x,highlightedIndex:h,setHighlightedIndex:M,handleSelect:A,handleRemove:j}),T=useId(),z="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",_=g("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",b?"border-red-500":"border-gray-300 dark:border-gray-600",p?"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(F,{htmlFor:T,required:n,children:r}),jsxs("div",{ref:S,className:"relative",children:[jsxs("div",{className:_,children:[D&&Ce().length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:Ce().map((W,q)=>jsx(xr,{option:W,labelKey:a,valueKey:l,onRemove:j},String(W[l]??q)))}),jsx("input",{ref:N,...E,name:o,type:"text",placeholder:i,value:$,onChange:W=>{let q=W.target.value;I(q),!V&&q.trim()!==""&&P(!0);},onKeyDown:R,onMouseDown:W=>{document.activeElement===N.current&&(W.preventDefault(),P(q=>{let Z=!q;return Z&&M(0),Z}));},onFocus:()=>{P(!0),M(0);},disabled:p,className:z,role:"combobox","aria-expanded":V,"aria-controls":T,"aria-activedescendant":h>=0?`${T}-opt-${h}`:void 0}),w&&!!H.length&&jsx("button",{type:"button",onMouseDown:W=>W.preventDefault(),onClick:re,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(Ge,{width:12,height:12})})]}),V&&jsx("div",{ref:k,id:T,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":D||void 0,children:x.length===0?jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):x.map((W,q)=>{let Z=String(W[l]),L=H.includes(Z),U=q===h;return jsx("button",{id:`${T}-opt-${q}`,"data-index":q,role:"option","aria-selected":L,type:"button",onMouseDown:De=>De.preventDefault(),onClick:()=>A(W),className:g("w-full px-3 py-2 text-left text-sm transition-colors",U&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!U&&L&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!L&&!U&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsx("span",{children:String(W[a])})},Z)})})]}),b&&jsx(G,{children:b}),!b&&y&&jsx(O,{children:y})]})})}function To(){let e=forwardRef(Po);return e.displayName="ComboBox",e}var Lo=To(),Yl=Lo;var Ro=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),yr=Ro;var Do=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),de=Do;var Mo=({...e})=>jsx("svg",{...e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),ue=Mo;var be=["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var kr=["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"];var st=({type:e,currentMonth:t,selectedDate:r,onChange:n,onNavigate:o,onMonthClick:i,onYearClick:a})=>{let l=s=>{let m=s.getFullYear(),u=s.getMonth(),c=new Date(m,u,1),p=new Date(m,u+1,0).getDate(),w=c.getDay(),y=[];for(let b=w-1;b>=0;b--)y.push({date:new Date(m,u,-b),isCurrentMonth:!1});for(let b=1;b<=p;b++)y.push({date:new Date(m,u,b),isCurrentMonth:!0});for(;y.length<42;)y.push({date:new Date(m,u+1,y.length-p+1),isCurrentMonth:!1});return y};return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(de,{width:16,height:16})}),jsxs("div",{className:"font-medium flex gap-1",children:[jsx("span",{className:"cursor-pointer hover:underline",onClick:i,children:be[t.getMonth()]}),jsx("span",{className:"cursor-pointer hover:underline",onClick:a,children:t.getFullYear()})]}),jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ue,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:kr.map(s=>jsx("div",{className:"text-center text-xs font-medium text-muted-foreground p-2",children:s},s))}),jsx("div",{className:"grid grid-cols-7 gap-1",children:l(t).map((s,m)=>{let c=r&&s.date.toDateString()===r.toDateString(),d=s.date.toDateString()===new Date().toDateString();return jsx("button",{type:"button",onClick:()=>{if(e==="datetime-local"){let p=r??new Date,w=new Date(s.date.getFullYear(),s.date.getMonth(),s.date.getDate(),p.getHours(),p.getMinutes(),p.getSeconds());n(w);}else n(s.date);},className:`
26
- p-2 cursor-pointer text-sm rounded hover:bg-accent
27
- ${s.isCurrentMonth?"text-foreground":"text-muted-foreground"}
28
- ${c?"bg-primary text-primary-foreground hover:bg-primary":""}
29
- ${d&&!c?"bg-accent font-medium":""}
30
- `,children:s.date.getDate()},m)})})]})};var Nr=(e,t)=>{let r=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),a=String(e.getMinutes()).padStart(2,"0"),l=String(e.getSeconds()).padStart(2,"0");switch(t){case"date":return `${r}-${n}-${o}`;case"datetime-local":return `${r}-${n}-${o}T${i}:${a}:${l}`;case"year":return `${r}`;case"month":return `${r}-${n}`;case"week":{let s=new Date(e);s.setHours(0,0,0,0),s.setDate(s.getDate()+3-(s.getDay()+6)%7);let m=new Date(s.getFullYear(),0,4),u=1+Math.round(((s.getTime()-m.getTime())/864e5-3+(m.getDay()+6)%7)/7);return `${s.getFullYear()}-W${String(u).padStart(2,"0")}`}}};var lt=(e,t,r="pt-BR")=>{switch(t){case"date":return e.toLocaleDateString(r);case"datetime-local":return e.toLocaleString(r);case"year":return `${e.getFullYear()}`;case"month":return be?`${be[e.getMonth()]} ${e.getFullYear()}`:e.toLocaleDateString(r,{month:"long",year:"numeric"});case"week":{let n=new Date(e);n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);let o=new Date(n.getFullYear(),0,4);return `Semana ${1+Math.round(((n.getTime()-o.getTime())/864e5-3+(o.getDay()+6)%7)/7)} \u2022 ${n.getFullYear()}`}}};var So=(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]);},Pr=So;var Lr=({onChange:e,currentMonth:t,selectedDate:r,setIsOpen:n,onNavigate:o,onHeaderClick:i,closeOnSelect:a})=>{let l=t.getFullYear();return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>o("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(de,{width:16,height:16})}),jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:i,children:l}),jsx("button",{type:"button",onClick:()=>o("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ue,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-3 gap-2",children:be.map((s,m)=>{let u=r,c=u&&u.getFullYear()===l&&u.getMonth()===m;return jsx("button",{type:"button",onClick:()=>{e(new Date(l,m,1)),a&&n(!1);},className:`p-2 cursor-pointer text-sm rounded hover:bg-accent ${c?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:s},s)})})]})};var Rr=({selectedDate:e,onChange:t})=>{let r=e??new Date,n=r.getHours(),o=r.getMinutes(),i=r.getSeconds(),a=`
31
- ${String(n).padStart(2,"0")}:
32
- ${String(o).padStart(2,"0")}:
33
- ${String(i).padStart(2,"0")}
34
- `,l=Array.from({length:24},(c,d)=>d),s=Array.from({length:60},(c,d)=>d),m=Array.from({length:60},(c,d)=>d),u=(c,d,p)=>{let w=new Date(r.getFullYear(),r.getMonth(),r.getDate(),c,d,p);t(w);};return jsxs("div",{className:"space-y-2",children:[jsxs(F,{className:"flex items-center gap-2",children:["Hora",jsx("span",{className:"text-sm font-normal text-muted-foreground",children:a})]}),jsxs("div",{className:"flex h-full max-h-72 gap-2",children:[jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:l.map(c=>jsx("button",{type:"button",onClick:()=>u(c,o,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===n?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:s.map(c=>jsx("button",{type:"button",onClick:()=>u(n,c,i),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===o?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))}),jsx("div",{className:"w-16 overflow-y-auto border rounded-md scrollbar-thin",children:m.map(c=>jsx("button",{type:"button",onClick:()=>u(n,o,c),className:`w-full px-2 py-1 text-sm text-center cursor-pointer hover:bg-accent ${c===i?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:String(c).padStart(2,"0")},c))})]})]})};var Dr=({selectedDate:e,currentMonth:t,onChange:r,onNavigate:n,onHeaderClick:o,setIsOpen:i})=>{let a=t.getFullYear(),l=Array.from({length:52},(c,d)=>d+1),s=e,m=c=>{let d=new Date(a,0,1+(c-1)*7);r(d),i(!1);},u=(()=>{if(!s)return null;let c=new Date(s);c.setHours(0,0,0,0),c.setDate(c.getDate()+3-(c.getDay()+6)%7);let d=new Date(c.getFullYear(),0,4),p=1+Math.round(((c.getTime()-d.getTime())/864e5-3+(d.getDay()+6)%7)/7);return {year:c.getFullYear(),week:p}})();return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(de,{width:16,height:16})}),jsx("h3",{className:"font-medium cursor-pointer hover:underline",onClick:o,children:a}),jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ue,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-4 gap-2",children:l.map(c=>{let d=u&&u.year===a&&u.week===c;return jsxs("button",{type:"button",onClick:()=>m(c),className:`p-2 text-sm rounded cursor-pointer hover:bg-accent ${d?"bg-primary text-primary-foreground hover:bg-primary":""}`,children:["Semana ",c]},c)})})]})};var Er=({currentYear:e,selectedDate:t,onPick:r,onNavigate:n})=>{let o=e-6,i=Array.from({length:12},(a,l)=>o+l);return jsxs(Fragment,{children:[jsxs("div",{className:"flex items-center justify-between mb-4",children:[jsx("button",{type:"button",onClick:()=>n("prev"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(de,{width:16,height:16})}),jsx("h3",{className:"font-medium",children:e}),jsx("button",{type:"button",onClick:()=>n("next"),className:"p-1 cursor-pointer hover:bg-accent rounded",children:jsx(ue,{width:16,height:16})})]}),jsx("div",{className:"grid grid-cols-3 gap-2",children:i.map(a=>{let l=t?.getFullYear()===a;return jsx("button",{type:"button",onClick:()=>r(a),className:`p-2 text-sm rounded hover:bg-accent ${l?"bg-primary text-primary-foreground":""}`,children:a},a)})})]})};var Sr=forwardRef(({label:e,required:t,value:r,name:n,onChange:o,placeholder:i="Selecione uma data",type:a="date",locale:l="pt-BR",disabled:s=!1,error:m=!1,helperText:u,className:c,...d},p)=>{let w=useId(),y=useRef(null),b=useRef(null),[v,E]=useState(!1),[D,V]=useState(0),[P,$]=useState(r),[I,S]=useState(()=>r?lt(r,a,l):""),[k,N]=useState(()=>a==="month"?"month":a==="week"?"week":a==="year"?"year":"day");Pr(y,()=>E(!1));let x=P??new Date,h=new Date(x.getFullYear(),x.getMonth()+D,1),M=R=>{b.current=R,typeof p=="function"?p(R):p&&(p.current=R);},H=R=>{$(R);let T=Nr(R,a),z=lt(R,a,l);S(z),b.current&&(b.current.value=T,o?.({target:{name:b.current.name,value:T},type:"change"}),V(0));},A=(R,T,z)=>{let _=new Date(R,T+1,0).getDate();return Math.min(z,_)},j=R=>{let T=R.replace(/\D/g,"").slice(0,8),z=[];return T.length>=2&&z.push(T.slice(0,2)),T.length>=4&&z.push(T.slice(2,4)),T.length>4&&z.push(T.slice(4)),z.join("/")},re=R=>{let T=R.target.value,z=j(T);if(S(z),z.length===10){let[_,W,q]=z.split("/").map(Number),Z=new Date(q,W-1,_);isNaN(Z.getTime())||H(Z);}},Ce=()=>{switch(k){case"year":return jsx(Er,{currentYear:h.getFullYear(),selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onPick:R=>{let T=P??new Date,z=A(R,T.getMonth(),T.getDate()),_=new Date(R,T.getMonth(),z,T.getHours(),T.getMinutes(),T.getSeconds());$(_),a==="year"?(H(_),E(!1)):N(a==="month"?"month":a==="week"?"week":"month");}});case"month":return jsx(Lr,{currentMonth:h,selectedDate:P,setIsOpen:E,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onHeaderClick:()=>N("year"),closeOnSelect:a==="month",onChange:R=>{let T=P??new Date,z=A(R.getFullYear(),R.getMonth(),T.getDate()),_=new Date(R.getFullYear(),R.getMonth(),z,T.getHours(),T.getMinutes(),T.getSeconds());$(_),a==="month"?(H(_),E(!1)):N("day");}});case"week":return jsx(Dr,{currentMonth:h,selectedDate:P,setIsOpen:E,onNavigate:R=>V(T=>T+(R==="next"?12:-12)),onHeaderClick:()=>N("year"),onChange:R=>{H(R),E(!1);}});case"day":default:return a==="datetime-local"?jsxs("div",{className:"flex h-fit gap-4",children:[jsx("div",{className:"flex-1",children:jsx(st,{type:a,currentMonth:h,selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?1:-1)),onMonthClick:()=>N("month"),onYearClick:()=>N("year"),onChange:R=>{let T=P??new Date,z=new Date(R.getFullYear(),R.getMonth(),R.getDate(),T.getHours(),T.getMinutes(),T.getSeconds());H(z);}})}),jsx("div",{className:"w-fit",children:jsx(Rr,{selectedDate:P,onChange:R=>H(R)})})]}):jsx(st,{type:a,currentMonth:h,selectedDate:P,onNavigate:R=>V(T=>T+(R==="next"?1:-1)),onMonthClick:()=>N("month"),onYearClick:()=>N("year"),onChange:R=>{H(R),E(!1);}})}};return jsx(f,{children:jsxs("div",{className:`space-y-2 ${c}`,children:[e&&jsx(F,{htmlFor:w,required:t,children:e}),jsx("input",{ref:M,id:w,name:n,type:"text",className:"sr-only",disabled:s,...d}),jsxs("div",{ref:y,className:"relative",children:[jsxs("div",{className:"relative",children:[jsx("input",{type:"text",value:I,onChange:re,onFocus:()=>!s&&E(!0),placeholder:i,disabled:s,className:`
35
- w-full px-3 py-2 pr-9 border rounded-md bg-background
36
- ${m?"border-red-500":"border-input"}
37
- ${s?"opacity-50 cursor-not-allowed":"hover:border-ring"}
38
- focus:ring-2 focus:ring-ring focus:ring-offset-2
39
- `}),jsx(yr,{width:16,height:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"})]}),v&&jsx("div",{className:"absolute z-50 mt-1 bg-popover border border-border rounded-md shadow-lg p-4 min-w-70",children:Ce()})]}),m&&jsx(G,{children:m}),!m&&u&&jsx(O,{children:u})]})})});Sr.displayName="DatePicker";var qc=Sr;var Ue=({size:e="md",variant:t="default",color:r="primary",className:n="",speed:o="normal",text:i,textPosition:a="bottom",overlay:l=!1,progress:s})=>{let[m,u]=useState(s||0);useEffect(()=>{s!==void 0&&u(Math.min(Math.max(s,0),100));},[s]);let c=()=>{switch(e){case"xs":return "w-3 h-3";case"sm":return "w-4 h-4";case"lg":return "w-8 h-8";case"xl":return "w-12 h-12";case"xxl":return "w-16 h-16";default:return "w-6 h-6"}},d=()=>{switch(r){case"secondary":return "text-gray-500 dark:text-gray-400";case"muted":return "text-gray-400 dark:text-gray-500";case"success":return "text-green-600 dark:text-green-400";case"danger":return "text-red-600 dark:text-red-400";case"warning":return "text-yellow-600 dark:text-yellow-400";case"info":return "text-blue-400 dark:text-blue-300";case"white":return "text-white dark:text-gray-200";default:return "text-blue-600 dark:text-blue-400"}},p=()=>{switch(o){case"slow":return "animate-[spin_2s_linear_infinite]";case"fast":return "animate-[spin_0.5s_linear_infinite]";default:return "animate-spin"}},w=()=>{switch(o){case"slow":return "animate-pulseSlow";case"fast":return "animate-pulseFast";default:return "animate-pulse"}},y=()=>{switch(o){case"slow":return "animate-bounceSlow";case"fast":return "animate-bounceFast";default:return "animate-bounce"}},b=()=>{switch(e){case"xs":return "w-1 h-1";case"sm":return "w-1.5 h-1.5";case"lg":return "w-3 h-3";case"xl":return "w-4 h-4";case"xxl":return "w-5 h-5";default:return "w-2 h-2"}},v=()=>{switch(e){case"xs":return "w-0.5 h-3";case"sm":return "w-0.5 h-4";case"lg":return "w-1 h-8";case"xl":return "w-1.5 h-12";case"xxl":return "w-2 h-16";default:return "w-1 h-6"}},E=()=>{switch(e){case"xs":return "w-0.5";case"sm":return "w-1";case"lg":return "w-1.5";case"xl":return "w-2";case"xxl":return "w-2.5";default:return "w-1"}},D=()=>{switch(e){case"xs":return "w-1 h-1";case"sm":return "w-1.5 h-1.5";case"lg":return "w-2 h-2";case"xl":return "w-3 h-3";case"xxl":return "w-4 h-4";default:return "w-1.5 h-1.5"}},V=()=>t==="dots"?jsx("div",{className:"flex space-x-1",children:[0,1,2].map(S=>jsx("div",{className:`${b()} ${d()} bg-current rounded-full ${w()}`,style:{animationDelay:`${S*.2}s`}},S))}):t==="bars"?jsx("div",{className:"flex items-end space-x-1",children:[0,1,2,3].map(S=>jsx("div",{className:`${v()} ${d()} bg-current ${w()}`,style:{animationDelay:`${S*.15}s`}},S))}):t==="ring"?jsx("div",{className:c(),children:jsx("div",{className:`w-full h-full border-2 border-gray-200 dark:border-gray-700 border-t-current rounded-full ${p()} ${d()}`})}):t==="pulse"?jsx("div",{className:`${c()} ${d()}`,children:jsx("div",{className:`w-full h-full bg-current rounded-full ${w()}`})}):t==="wave"?jsx("div",{className:"flex items-end space-x-1",children:[0,1,2,3,4].map(S=>jsx("div",{className:`${E()} ${d()} bg-current rounded animate-wave`,style:{animationDelay:`${S*.15}s`,height:e==="xs"?"8px":e==="sm"?"10px":e==="lg"?"16px":e==="xl"?"20px":e==="xxl"?"24px":"12px"}},S))}):t==="bounce"?jsx("div",{className:"flex space-x-1",children:[0,1,2].map(S=>jsx("div",{className:`${b()} ${d()} bg-current rounded-full ${y()}`,style:{animationDelay:`${S*.2}s`}},S))}):t==="grid"?jsx("div",{className:`${c()} ${d()} grid grid-cols-3 gap-0.5`,children:[...Array(9)].map((S,k)=>jsx("div",{className:`${D()} bg-current rounded-full ${w()}`,style:{animationDelay:`${k*.1}s`}},k))}):t==="clock"?jsxs("div",{className:`${c()} relative ${d()}`,children:[jsx("div",{className:"w-full h-full border-2 border-current rounded-full"}),jsx("div",{className:"absolute top-1/2 left-1/2 w-1/2 h-0.5 bg-current origin-left -translate-y-1/2 animate-clock"}),jsx("div",{className:"absolute top-1/2 left-1/2 w-2/5 h-0.5 bg-current origin-left -translate-y-1/2 animate-clock",style:{animationDelay:"-4s"}})]}):t==="orbit"?jsxs("div",{className:`${c()} relative`,children:[jsx("div",{className:`w-full h-full border-2 border-gray-200 dark:border-gray-700 rounded-full ${d()}`}),jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2",children:jsx("div",{className:`${b()} ${d()} bg-current rounded-full animate-orbit`})})]}):t==="cube"?jsxs("div",{className:`${c()} ${d()} relative transform-style-3d animate-rotateCube`,children:[jsx("div",{className:"absolute w-full h-full bg-current opacity-25"}),jsx("div",{className:"absolute w-full h-full bg-current opacity-25 transform-rotateY(90deg)"}),jsx("div",{className:"absolute w-full h-full bg-current opacity-25 transform-rotateX(90deg)"})]}):t==="circle-dots"?jsx("div",{className:`${c()} relative ${d()}`,children:[...Array(8)].map((S,k)=>jsx("div",{className:"absolute w-full h-full animate-circleDots",style:{transform:`rotate(${k*45}deg)`},children:jsx("div",{className:`${b()} bg-current rounded-full absolute top-0 left-1/2 -translate-x-1/2 animate-fadePulse`,style:{animationDelay:`${k*.1}s`}})},k))}):t==="infinity"?jsx("div",{className:`${c()} ${d()}`,children:jsxs("svg",{viewBox:"0 0 120 30",className:"w-full h-full",children:[jsx("circle",{cx:"15",cy:"15",r:"12",className:"animate-infinity1"}),jsx("circle",{cx:"60",cy:"15",r:"12",className:"animate-infinity2"}),jsx("circle",{cx:"105",cy:"15",r:"12",className:"animate-infinity3"})]})}):t==="progress"?jsxs("div",{className:`${c()} relative ${d()}`,children:[jsxs("svg",{className:"w-full h-full",viewBox:"0 0 36 36",children:[jsx("path",{className:"text-gray-200 dark:text-gray-700",stroke:"currentColor",strokeWidth:"3",fill:"transparent",d:`M18 2.0845\r
40
- a 15.9155 15.9155 0 0 1 0 31.831\r
41
- a 15.9155 15.9155 0 0 1 0 -31.831`}),jsx("path",{className:"transition-all duration-300",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",fill:"transparent",strokeDasharray:"100, 100",strokeDashoffset:100-m,d:`M18 2.0845\r
42
- a 15.9155 15.9155 0 0 1 0 31.831\r
43
- a 15.9155 15.9155 0 0 1 0 -31.831`})]}),e!=="xs"&&e!=="sm"&&jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-xs font-medium",children:[m,"%"]})]}):jsx("div",{className:c(),children:jsxs("svg",{className:`${p()} ${d()}`,fill:"none",viewBox:"0 0 24 24",children:[jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),P=()=>{switch(a){case"top":return "flex-col-reverse";case"left":return "flex-row-reverse";case"right":return "flex-row";default:return "flex-col"}},$=()=>{switch(e){case"xs":case"sm":return "text-xs";case"lg":return "text-base";case"xl":case"xxl":return "text-lg";default:return "text-sm"}},I=jsx(f,{children:jsxs("div",{className:`inline-flex ${i?`items-center ${P()} space-y-1 space-x-0 ${a==="left"||a==="right"?"space-y-0 space-x-2":""}`:""}`,children:[V(),i&&jsx("span",{className:`${$()} text-gray-500 dark:text-gray-400`,children:i})]})});return l?jsx("div",{className:"fixed inset-0 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm flex items-center justify-center z-50",children:I}):jsx("div",{className:n,children:I})};Ue.displayName="Spinner";var Vr=Ue,Ir=({text:e="Carregando...",size:t="md",variant:r="default",color:n="primary",className:o="",textPosition:i="right"})=>jsx(f,{children:jsx("div",{className:o,children:jsx(Ue,{size:t,variant:r,color:n,text:e,textPosition:i})})});Ir.displayName="LoadingSpinner";var Jc=Ir,Hr=({isVisible:e,text:t="Carregando...",variant:r="default",size:n="lg",className:o=""})=>e?jsx(f,{children:jsx("div",{className:`fixed inset-0 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm flex items-center justify-center z-50 ${o}`,children:jsxs("div",{className:"flex flex-col items-center space-y-4",children:[jsx(Ue,{size:n,variant:r}),jsx("p",{className:"text-gray-500 dark:text-gray-400",children:t})]})})}):null;Hr.displayName="LoadingOverlay";var jc=Hr,$r=({size:e="sm",color:t="primary"})=>jsx(f,{children:jsx("div",{className:`${(()=>{switch(e){case"xs":return "w-3 h-3";case"md":return "w-5 h-5";default:return "w-4 h-4"}})()} ${t==="white"?"text-white":"text-current"}`,children:jsxs("svg",{className:"animate-spin",fill:"none",viewBox:"0 0 24 24",children:[jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsx("path",{className:"opacity-75",fill:"currentColor",d:"m4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})})});$r.displayName="ButtonSpinner";var Zc=$r,Ar=({lines:e=3,className:t=""})=>jsx(f,{children:jsx("div",{className:`space-y-3 ${t}`,children:[...Array(e)].map((r,n)=>jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse",style:{width:n===e-1?"60%":"100%"}},n))})});Ar.displayName="ContentLoader";var Qc=Ar,Br=({width:e="100%",height:t="1rem",circle:r=!1,className:n=""})=>jsx(f,{children:jsx("div",{className:`bg-gray-200 dark:bg-gray-700 animate-pulse ${r?"rounded-full":"rounded"} ${n}`,style:{width:e,height:t}})});Br.displayName="Skeleton";var ed=Br;var Or=({children:e,type:t,className:r,overrideClassName:n=!1})=>{if(e)switch(t){case"loading":return jsxs("p",{className:n?r:g("text-sm text-muted-foreground flex items-center gap-2",r),children:[jsx(Vr,{size:"xs"}),e]});case"error":return jsx("p",{className:n?r:g("text-sm text-red-600 dark:text-red-400",r),children:e});case"warning":return jsx("p",{className:n?r:g("text-sm text-yellow-600 dark:text-yellow-400",r),children:e});case"success":return jsx("p",{className:n?r:g("text-sm text-green-600 dark:text-green-400",r),children:e});case"info":return jsx("p",{className:n?r:g("text-sm text-blue-600 dark:text-blue-400",r),children:e});case"helper":return jsx("p",{className:n?r:g("text-sm text-muted-foreground",r),children:e});default:return null}};Or.displayName="FieldFeedback";var We=Or;var Uo=({children:e,before:t,after:r,className:n})=>{let i=zo("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},n);return jsx("div",{className:i,children:jsx("span",{children:e})})},ut=Uo;var Wo=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),Ur=Wo;var qo=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),qr=qo;function Yr(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 Kr(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),n=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${n}`;return e.currentTarget.value=a,e}function _r(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 Xr(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 Jr(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 jr(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 Zr(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 Qr(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 Yo=({e,mask:t})=>{switch(t){case"money":return Kr(e);case"mobile":return Xr(e);case"phone":return Jr(e);case"cpfCnpj":return jr(e);case"cpf":return _r(e);case"rg":return Zr(e);case"cnpj":return Qr(e);case"cep":return Yr(e);default:return e}},en=Yo;var Xo=({mask:e,initialValue:t=""})=>{let[r,n]=useState(t);useEffect(()=>{t!==r&&n(t);},[t]);let o=useCallback(a=>{let s=en({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;n(s);},[e]),i=useCallback(()=>n(""),[]);return {value:r,setValue:n,handleChange:o,handleClear:i}},rn=Xo;var nn=forwardRef(({label:e,required:t=!1,mask:r,name:n,prefix:o,suffix:i,addonBefore:a,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:m,ClearEnabled:u=!0,className:c,overrideClassName:d=!1,error:p,helperText:w,value:y=void 0,onChange:b,...v},E)=>{let D=useId(),{handleChange:V,handleClear:P,setValue:$}=rn({mask:r,initialValue:y}),I=g("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",p&&"border-destructive focus-visible:ring-destructive",!o&&!i&&"px-3",o&&!i&&"pl-10 pr-3",i&&!o&&"pl-3 pr-10",o&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",c),S=N=>{V(N),b?.(N);},k=()=>{P(),$(""),b?.({target:{name:n||"",value:""}});};return jsx(f,{children:jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(F,{htmlFor:D,required:t,children:e}),jsxs("div",{className:"relative flex",children:[a&&jsx(ut,{before:!0,className:l,children:a}),jsxs("div",{className:"relative flex items-center w-full",children:[o&&jsx(Ur,{children:o}),jsx("input",{id:D,ref:E,name:n,onChange:S,className:d?c:I,...v}),u&&y&&jsx(Ge,{onClick:k,width:12,height:12,className:g("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsx(qr,{children:i})]}),s&&jsx(ut,{after:!0,className:m,children:s})]}),p&&jsx(G,{children:p}),!p&&w&&jsx(O,{children:w})]})})});nn.displayName="Input";var Ed=nn;var an=forwardRef(({length:e=6,groupBy:t,value:r,name:n,label:o,required:i=!1,helperText:a,error:l,onChange:s,onBlur:m,className:u,charType:c="numeric",customPattern:d,caseMode:p="none",...w},y)=>{let b=useId(),v=useRef([]),E=x=>{switch(p){case"upper":return x.toUpperCase();case"lower":case"visual-upper":return x.toLowerCase();case"visual-lower":return x.toUpperCase();default:return x}},D=x=>{if(!x)return "";let h=x.slice(0,1);switch(h=E(h),c){case"numeric":return /\d/.test(h)?h:"";case"alpha":return /[A-Za-z]/.test(h)?h:"";case"alphanumeric":return /[A-Za-z0-9]/.test(h)?h:"";case"custom":return d?.test(h)?h:"";default:return h}},V=()=>(r!=null?String(r):"").split("").map(D).slice(0,e),P=V().concat(Array(e).fill(" ")).slice(0,e),$=x=>{let h=x.split("").map(D).join("").slice(0,e),M=h===""?void 0:typeof r=="number"?Number(h):h;s?.({target:{name:n,value:M}});},I=(x,h)=>{let M=D(h),H=V();if(M===""){H[x]="",$(H.join(""));return}if(h.length>1){let A=h.split("").map(D).join("").slice(0,e);$(A),v.current[Math.min(A.length-1,e-1)]?.focus();return}M&&(H[x]=M,$(H.join("")),x<e-1&&v.current[x+1]?.focus());},S=x=>{let h=V();!h[x]&&x>0?h[x-1]="":h[x]="",$(h.join("")),x>0&&v.current[x-1]?.focus();},k=x=>{x.preventDefault();let M=x.clipboardData.getData("text").split("").map(D).join("").slice(0,e);M&&($(M),v.current[Math.min(M.length-1,e-1)]?.focus());},N=x=>{switch(p){case"upper":case"visual-upper":return x.toUpperCase();case"lower":case"visual-lower":return x.toLowerCase();default:return x}};return jsx(f,{children:jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o&&jsx(F,{htmlFor:b,required:i,children:o}),jsx("div",{className:g("flex gap-3 items-center",l&&"text-red-500",u),...w,children:P.map((x,h)=>{let M=t&&h>0&&h%t===0;return jsxs(qn.Fragment,{children:[M&&jsx("span",{className:"flex items-center justify-center text-xl font-bold select-none",children:"-"}),jsx("input",{id:b,type:"text",maxLength:1,inputMode:c==="numeric"?"numeric":"text",value:N(x).trim(),ref:H=>{v.current[h]=H,h===0&&y&&(typeof y=="function"?y(H):typeof y=="object"&&(y.current=H));},onPaste:k,onChange:H=>I(h,H.target.value),onKeyDown:H=>H.key==="Backspace"&&S(h),onBlur:m,className:g("h-14 w-12 text-center text-2xl rounded-md border border-input bg-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l&&"border-red-500")})]},h)})}),l&&jsx(G,{children:l}),!l&&a&&jsx(O,{children:a})]})})});an.displayName="OtpInput";var Od=an;var sn=forwardRef(({label:e,required:t,option:r,description:n,icon:o,className:i,overrideClassName:a,helperText:l,error:s,...m},u)=>{let c=useId(),d=g("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",i);return jsx(f,{children:jsxs("div",{className:"space-y-3",children:[e&&jsx(F,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{id:c,type:"radio",className:a?i:d,ref:u,...m}),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(F,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r}),n&&jsx(F,{id:`${c}-description`,htmlFor:c,className:"text-xs text-muted-foreground",children:n})]})]})]}),s&&jsx(G,{children:s}),!s&&l&&jsx(O,{children:l})]})})});sn.displayName="Radio";var Xd=sn;function ia(e,t){let{label:r,required:n,name:o,labelKey:i,valueKey:a,options:l,alignment:s="vertical",className:m,overrideClassName:u=!1,helperText:c,error:d,typeSet:p="field",value:w,onChange:y,...b}=e,v=useId(),E=useMemo(()=>new Map(l.map(I=>[String(I[a]),I])),[l,a]),D=useMemo(()=>w==null?"":String(p==="field"?w:w[a]),[w,p,a]),V=I=>{if(!y)return;let S;if(p==="field"){let k=E.get(I);if(k)S=k[a];else {let N=Number(I);S=Number.isNaN(N)?I:N;}}else S=E.get(I)??void 0;y({target:{name:o,value:S,type:"radiogroup",checked:!0}});},P=s==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=g("h-4 w-4 rounded-full 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:g("flex flex-col gap-3",m),children:[r&&jsx(F,{required:n,children:r}),jsx("div",{className:P,children:l.map((I,S)=>{let k=String(I[a]),N=`${v}-${k}-${S}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...b,id:N,ref:t,name:o,type:"radio",checked:D===k,onChange:()=>V(k),className:u?m:$}),jsx(F,{htmlFor:N,children:String(I[i])})]},N)})}),d&&jsx(G,{children:String(d)}),!d&&c&&jsx(O,{children:c})]})})}function sa(){let e=forwardRef(ia);return e.displayName="RadioGroup",e}var la=sa(),iu=la;var ca=["loading","error","warning","success","info","helper"],Ye=e=>{if(!e)return null;let t=ca.find(r=>e[r]);return t?{type:t,message:e[t]}:null};var dn=forwardRef(({label:e,required:t,className:r,showValue:n=!1,min:o=0,max:i=100,step:a=1,value:l,overrideClassName:s,feedback:m,...u},c)=>{let d=useId(),p=(Number(l)-Number(o))/(Number(i)-Number(o))*100,w=Ye(m),y=g("w-full h-2 bg-secondary rounded-lg appearance-none cursor-pointer slider","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",r);return jsx(f,{children:jsxs("div",{className:"space-y-2",children:[(e||n)&&jsxs("div",{className:"flex justify-between items-center",children:[e&&jsx(F,{htmlFor:d,required:t,children:e}),n&&jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),jsxs("div",{className:"relative",children:[jsx("input",{type:"range",id:d,ref:c,min:o,max:i,step:a,value:l,className:s?r:y,style:{background:`linear-gradient(to right, hsl(var(--primary)) 0%, hsl(var(--primary)) ${p}%, hsl(var(--secondary)) ${p}%, hsl(var(--secondary)) 100%)`},...u}),w&&jsx(We,{type:w.type,children:w.message})]})]})})});dn.displayName="Range";var vu=dn;var pa=({value:e,defaultValue:t,onChange:r})=>{let[n,o]=useState(t),i=e!==void 0;return [i?e:n??t,s=>{i||o(s),r?.(s);}]},un=pa;var pn=forwardRef(({min:e=0,max:t=100,step:r=1,value:n,defaultValue:o=[e,t],onChange:i,disabled:a,label:l,showValues:s=!0,className:m="",feedback:u,required:c},d)=>{let p=useId(),w=useRef(null),y=useRef(null),b=Ye(u),[v,E]=un({value:n,defaultValue:o,onChange:P=>i?.({target:{value:P}})}),D=P=>(P-e)/(t-e)*100,V=useCallback(P=>{if(!w.current||!y.current||a)return;let $=w.current.getBoundingClientRect(),I=Math.min(100,Math.max(0,(P-$.left)/$.width*100)),S=e+I/100*(t-e),k=Math.round(S/r)*r,N=[...v];y.current==="min"?N[0]=Math.min(k,v[1]):N[1]=Math.max(k,v[0]),E(N);},[v,e,t,r,E,a]);return useEffect(()=>{let P=I=>V(I.clientX),$=()=>y.current=null;return document.addEventListener("mousemove",P),document.addEventListener("mouseup",$),()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",$);}},[V]),jsx(f,{children:jsxs("div",{ref:d,className:`space-y-2 ${m}`,children:[l&&jsxs("div",{className:"flex justify-between",children:[jsx(F,{htmlFor:p,required:c,children:l}),s&&jsxs("span",{className:"text-sm text-muted-foreground",children:[v[0]," \u2013 ",v[1]]})]}),jsxs("div",{ref:w,className:"relative h-2 bg-secondary rounded-full",children:[jsx("div",{className:"absolute h-2 bg-primary rounded-full",style:{left:`${D(v[0])}%`,width:`${D(v[1])-D(v[0])}%`}}),["min","max"].map(P=>jsx("div",{onMouseDown:()=>y.current=P,className:`absolute w-5 h-5 bg-background border-2 border-primary rounded-full\r
44
- top-1/2 -translate-y-1/2 -translate-x-1/2 cursor-pointer`,style:{left:`${D(P==="min"?v[0]:v[1])}%`}},P))]}),b&&jsx(We,{type:b.type,children:b.message})]})})});pn.displayName="RangeSlider";var Ru=pn;function ya({label:e,required:t=!1,options:r,labelKey:n,valueKey:o,placeholder:i,error:a,helperText:l,className:s,...m},u){let c=useId(),d=g("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",s);return jsx(f,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(F,{htmlFor:c,required:t,children:e}),jsxs("select",{id:c,ref:u,className:d,...m,children:[i&&jsx("option",{value:"",disabled:!0,children:i}),r.map((p,w)=>jsx("option",{value:String(p[o]),children:String(p[n])},w))]}),a&&jsx(G,{children:a}),!a&&l&&jsx(O,{children:l})]})})}function wa(){let e=forwardRef(ya);return e.displayName="Select",e}var Ca=wa(),Bu=Ca;var gn=forwardRef(({label:e,required:t,option:r,description:n,icon:o,checked:i=!1,className:a,overrideClassName:l,error:s,name:m,...u},c)=>{let d=useId();return jsx(f,{children:jsxs("div",{className:"flex flex-col gap-2",children:[e&&jsx(F,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{type:"checkbox",id:d,name:m,checked:i,className:"peer sr-only",ref:c,...u}),jsx("label",{htmlFor:d,className:g("relative flex items-center h-6 w-11 cursor-pointer rounded-full bg-input transition-colors duration-200","peer-checked:bg-primary peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-focus:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50",a),children:jsx("span",{className:g("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",i?"translate-x-5":"translate-x-1")})}),jsx("span",{children:o&&o}),(r||n)&&jsxs("div",{className:"grid gap-1.5 leading-none select-none",children:[e&&jsx(F,{id:`${d}-label`,htmlFor:d,className:"text-sm font-medium leading-none",children:r}),n&&jsx(F,{id:`${d}-description`,htmlFor:d,className:"text-xs text-muted-foreground",children:n})]})]})]})})});gn.displayName="Switch";var Ku=gn;var bn=qn.forwardRef(({label:e,required:t,showCount:r,maxLength:n,className:o,overrideClassName:i=!1,error:a,helperText:l,...s},m)=>{let u=useId(),[c,d]=useState(0),p=g("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",o);return jsx(f,{children:jsxs("div",{className:"space-y-2",children:[e&&jsx(F,{htmlFor:u,required:t,children:e}),jsxs("div",{className:"relative",children:[jsx("textarea",{id:u,className:i?o:p,maxLength:n,onInput:w=>d(w.currentTarget.textLength),ref:m,...s}),r&&jsxs("span",{className:"absolute bottom-2 right-3 text-xs text-muted-foreground",children:[c,n?` / ${n}`:""]})]}),a&&jsx(G,{children:a}),!a&&l&&jsx(O,{children:l})]})})});bn.displayName="TextArea";var rm=bn;var xn=createContext(void 0),lm=()=>{let e=useContext(xn);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},cm=({children:e})=>jsx(f,{children:jsx(Fa,{children:e})}),Fa=({children:e})=>{let[t,r]=useState([]),n=useCallback(a=>{r(l=>l.filter(s=>s.id!==a));},[]),o=useCallback(a=>{let l=crypto.randomUUID(),s={...a,id:l};r(m=>[...m,s]),a.duration!==0&&setTimeout(()=>{n(l);},a.duration??5e3);},[n]),i=useMemo(()=>({toasts:t,addToast:o,removeToast:n}),[t,o,n]);return jsxs(xn.Provider,{value:i,children:[e,jsx(Sa,{toasts:t,onRemove:n})]})},Sa=({toasts:e,onRemove:t})=>jsx("div",{className:"fixed top-4 right-4 z-50 flex flex-col gap-2",children:e.map(r=>jsx(hn,{toast:r,onRemove:t},r.id))}),hn=({toast:e,onRemove:t})=>jsx("div",{className:`min-w-80 max-w-md p-4 border rounded-md shadow-lg animate-in slide-in-from-right-full ${{default:"bg-white border-gray-200 text-gray-900 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100",success:"bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800 dark:text-green-200",warning:"bg-yellow-50 border-yellow-200 text-yellow-800 dark:bg-yellow-900/20 dark:border-yellow-800 dark:text-yellow-200",destructive:"bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800 dark:text-red-200"}[e.variant??"default"]}`,children:jsxs("div",{className:"flex items-start justify-between",children:[jsxs("div",{className:"flex-1",children:[e.title&&jsx("h4",{className:"font-medium mb-1",children:e.title}),jsx("p",{className:"text-sm",children:e.description})]}),jsx("button",{onClick:()=>t(e.id),className:"ml-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})});hn.displayName="ToastItem";var wn=({children:e,content:t,position:r="top",className:n,overrideClassName:o=!1})=>{let i={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},a={top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-gray-900",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-gray-900",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-gray-900",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-gray-900"};return jsx(f,{children:jsxs("div",{className:"relative inline-block group",children:[jsx("div",{children:e}),jsxs("div",{className:o?n:g("absolute z-50 px-2 py-1 text-xs text-white bg-gray-900 rounded shadow-lg whitespace-nowrap","opacity-0 scale-95 pointer-events-none transition-all duration-150","group-hover:opacity-100 group-hover:scale-100 group-hover:pointer-events-auto","group-focus-within:opacity-100 group-focus-within:scale-100 group-focus-within:pointer-events-auto",i[r],n),children:[t,jsx("div",{className:g("absolute w-0 h-0 border-4",a[r])})]})]})})};wn.displayName="Tooltip";var fm=wn;var Va=({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}`))}),Cn=Va;var Ia=({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`]})]})]}),kn=Ia;var Nn=({files:e,setFiles:t,multiple:r=!1,disabled:n=!1,filterFiles:o=i=>i})=>{let i=useRef(null),[a,l]=useState(!1),s=useCallback(d=>{d.preventDefault(),!n&&l(!0);},[n]),m=useCallback(()=>{l(!1);},[]),u=useCallback(d=>{if(d.preventDefault(),n||!i.current)return;l(!1);let p=Array.from(d.dataTransfer.files);if(!r&&!e||!r&&p.length>1)return;let w=o(p),y=r?w:w.slice(0,1);t(y);let b=new DataTransfer;y.forEach(v=>b.items.add(v)),i.current.files=b.files,i.current.dispatchEvent(new Event("change",{bubbles:!0}));},[n,r,e,o]),c=useCallback(()=>{t([]),i.current&&(i.current.value="");},[]);return {files:e,setFiles:t,clearFiles:c,inputRef:i,isDragOver:a,setIsDragOver:l,handleDrop:u,handleDragOver:s,handleDragLeave:m}};var Pn=({files:e,setFiles:t,inputRef:r})=>({removeFile:useCallback(o=>{if(!r.current)return;let i=e?.filter((l,s)=>s!==o);t(i);let a=new DataTransfer;i?.forEach(l=>a.items.add(l)),r.current.files=a.files,r.current.dispatchEvent(new Event("change",{bubbles:!0}));},[e,t,r])});var Oa=({previews:e,onRemove:t})=>{let[r,n]=useState(0),o=()=>n(a=>a===0?e?.length-1:a-1),i=()=>n(a=>a===e?.length-1?0:a+1);return jsxs("div",{className:"relative w-full h-56 rounded-lg overflow-hidden bg-black/5",children:[jsx("img",{src:e[r]?.url,alt:e[r]?.file?.name,className:"w-full h-full object-cover"}),e.length>1&&jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,className:"absolute left-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u2039"}),jsx("button",{type:"button",onClick:i,className:"absolute right-2 top-1/2 -translate-y-1/2 bg-black/50 text-white px-2 py-1 rounded",children:"\u203A"})]}),jsx("button",{type:"button",onClick:()=>t(r),className:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1",children:"\u2715"})]})},Ln=Oa;var Dn=forwardRef(({label:e,required:t,accept:r,renderFiles:n,preview:o=!1,multiple:i=!1,maxSize:a=10,disabled:l=!1,error:s=!1,helperText:m,className:u,name:c,onChange:d,onBlur:p,...w},y)=>{let b=useId(),[v,E]=useState([]),D=1024*1024,V=A=>A.filter(j=>(!a||j.size<=a*D)&&(!r||j.type.match(r))),{inputRef:P,isDragOver:$,handleDrop:I,handleDragOver:S,handleDragLeave:k}=Nn({files:v,setFiles:E,multiple:i,filterFiles:V}),{removeFile:N}=Pn({files:v,setFiles:E,inputRef:P}),x=A=>{P.current=A,typeof y=="function"?y(A):y&&(y.current=A);},h=A=>{let j=Array.from(A.target.files??[]);if(!j.length)return;let re=V(j);E(i?re:re.slice(0,1)),d?.(A);},M=useMemo(()=>!o||!v||!v.length?[]:v.filter(A=>A.type.startsWith("image/")).map(A=>({file:A,url:URL.createObjectURL(A)})),[v,o]);useEffect(()=>()=>M.forEach(A=>URL.revokeObjectURL(A.url)),[M]);let H=o&&M.length>0;return jsx(f,{children:jsxs("div",{className:`space-y-2 ${u}`,children:[e&&jsx(F,{htmlFor:b,required:t,children:e}),jsxs("div",{onDrop:I,onDragOver:S,onDragLeave:k,onClick:()=>{!l&&!H&&P.current?.click();},className:`
45
- border-2 border-dashed rounded-lg p-6 text-center cursor-pointer
46
- transition-colors
47
- ${$?"border-primary bg-primary/5":"border-border"}
48
- ${s?"border-red-500":""}
49
- ${l?"opacity-50 cursor-not-allowed":"hover:border-primary"}
50
- `,children:[jsx("input",{ref:x,id:b,name:c,type:"file",accept:r,multiple:i,disabled:l,onChange:h,onBlur:p,className:"hidden",...w}),o&&M.length>0?jsx(Ln,{previews:M,onRemove:N}):jsx(kn,{accept:r,maxSize:a})]}),n?n({files:v,removeFile:N}):v&&v.length>0&&jsx(Cn,{files:v,removeFile:N}),s&&jsx(G,{children:s}),!s&&m&&jsx(O,{children:m})]})})});Dn.displayName="UploadFile";var Om=Dn;
51
-
52
- export { pi as AccordionPrimitive, Pi as AlertDescriptionPrimitive, ki as AlertPrimitive, Ni as AlertTitlePrimitive, Es as AvatarPrimitive, Fi as BadgePrimitive, $i as BreadcrumbPrimitive, Ui as ButtonPrimitive, Zc as ButtonSpinnerPrimitive, es as CardContentPrimitive, Qi as CardDescriptionPrimitive, ts as CardFooterPrimitive, ji as CardHeaderPrimitive, Ji as CardPrimitive, Zi as CardTitlePrimitive, cl as CheckBoxGroupPrimitive, Zs as CheckBoxPrimitive, pr as ColorPicker, vl as ColorPickerPrimitive, Yl as ComboBoxPrimitive, Qc as ContentLoaderPrimitive, qc as DatePickerPrimitive, us as DialogContentPrimitive, ms as DialogFooterPrimitive, cs as DialogHeaderPrimitive, ls as DialogPrimitive, ds as DialogTitlePrimitive, ws as DropdownMenuContentPrimitive, Cs as DropdownMenuItemPrimitive, Ns as DropdownMenuLabelPrimitive, hs as DropdownMenuPrimitive, ks as DropdownMenuSeparatorPrimitive, ys as DropdownMenuTriggerPrimitive, We as FieldFeedbackPrimitive, O as HelperFieldPrimitive, Ed as InputPrimitive, F as LabelPrimitive, Vn as LicenseProvider, jc as LoadingOverlayPrimitive, Jc as LoadingSpinnerPrimitive, Od as OtpInputPrimitive, iu as RadioGroupPrimitive, Xd as RadioPrimitive, vu as RangePrimitive, Ru as RangeSliderPrimitive, Bu as SelectPrimitive, ed as SkeletonPrimitive, Vr as SpinnerPrimitive, Ku as SwitchPrimitive, rm as TextAreaPrimitive, cm as ToastProvider, fm as TooltipPrimitive, Om as UploadFilePrimitive, G as ValidateFieldPrimitive, lm as useToast };